Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rambox package broken #307545

Closed
tbaumann opened this issue Apr 28, 2024 · 2 comments · Fixed by #307681
Closed

rambox package broken #307545

tbaumann opened this issue Apr 28, 2024 · 2 comments · Fixed by #307681

Comments

@tbaumann
Copy link

tbaumann commented Apr 28, 2024

Describe the bug

bin/rambox is ambiguous and a dead link (home manager)

Steps To Reproduce

Upgrade system

flake input

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
 }

Errors during home manager build

user-environment> building '/nix/store/svklgckg4x6dwv0rk2387dvfqj9ndc6m-user-environment.drv'
user-environment> building '/nix/store/w1bpdzl18xx9qi3w1f02ycd3nqssqp34-user-environment.drv'
user-environment> warning: creating dangling symlink `/nix/store/0yqc9crcjb7yxkrv6s2lyp1nh7wcz325-user-environment//bin/rambox' -> `/nix/store/b7dag4b8pw284n568bjyic43sirgq3zc-home-manager-path/bin/rambox' -> `/nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/bin/rambox'
hm_.manpath> building '/nix/store/2xb7dq2dk4y5bg78pr4z35474gxsdnxn-hm_.manpath.drv'
user-environment> created 999 symlinks in user environment
user-environment> warning: creating dangling symlink `/nix/store/k63s29yrv4zslspm4c2l63b1pdkq0nyr-user-environment//bin/rambox' -> `/nix/store/hpag5z01vq7ccnlz2chylb9kif8qsqr0-home-manager-path/bin/rambox' -> `/nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/bin/rambox'
user-environment> created 1021 symlinks in user environment
 find /nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/
/nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/
/nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/bin
/nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/bin/rambox
/nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/share
/nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/share/applications
/nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/share/applications/rambox.desktop
/nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/share/icons
/nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/share/icons/hicolor
/nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/share/icons/hicolor/256x256
/nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/share/icons/hicolor/256x256/apps
/nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/share/icons/hicolor/256x256/apps/rambox.png
› ls -l /nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/bin/rambox
lrwxrwxrwx root root 12 B Thu Jan  1 00:00:01 1970  /nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/bin/rambox ⇒ rambox-2.3.1

The binary is here

nix-config/nix on  main [!+?⇡] 
› ls -l /nix/store/00yijzfivyivv83i6l0a3jf7l7a3hzib-rambox-2.3.1/bin/rambox-2.3.1 
lrwxrwxrwx root root 62 B Thu Jan  1 00:00:01 1970  /nix/store/00yijzfivyivv83i6l0a3jf7l7a3hzib-rambox-2.3.1/bin/rambox-2.3.1 ⇒ /nix/store/fi94zgbib3sj75m93kgby7d4wziaa7j5-rambox-2.3.1-bwrap

nix-config/nix on  main [!+?⇡] 
› ls -l /nix/store/00yijzfivyivv83i6l0a3jf7l7a3hzib-rambox-2.3.1/bin/rambox-2.3.1
lrwxrwxrwx root root 62 B Thu Jan  1 00:00:01 1970  /nix/store/00yijzfivyivv83i6l0a3jf7l7a3hzib-rambox-2.3.1/bin/rambox-2.3.1 ⇒ /nix/store/fi94zgbib3sj75m93kgby7d4wziaa7j5-rambox-2.3.1-bwrap

nix-config/nix on  main [!+?⇡] 
› ls -l /nix/store/fi94zgbib3sj75m93kgby7d4wziaa7j5-rambox-2.3.1-bwrap 
.r-xr-xr-x root root 4.0 KB Thu Jan  1 00:00:01 1970  /nix/store/fi94zgbib3sj75m93kgby7d4wziaa7j5-rambox-2.3.1-bwrap

I can launch that and it works.

Expected behavior

The home manager bin/rambox symlink should point to the right derivative I think the whole reason why it doesn't work is because bin/rambox has become ambiguous.

› ls -l /nix/store/*-rambox-2.3.1*/bin/rambox
lrwxrwxrwx root root 12 B Thu Jan  1 00:00:01 1970  /nix/store/00yijzfivyivv83i6l0a3jf7l7a3hzib-rambox-2.3.1/bin/rambox ⇒ rambox-2.3.1
lrwxrwxrwx root root 12 B Thu Jan  1 00:00:01 1970  /nix/store/8r52v102hh7pkz0l1ayw42hxvs0bwwss-rambox-2.3.1/bin/rambox ⇒ rambox-2.3.1
lrwxrwxrwx root root 12 B Thu Jan  1 00:00:01 1970  /nix/store/myg6hc9jknq2zayy2i8z15v793yjfqd7-rambox-2.3.1/bin/rambox ⇒ rambox-2.3.1

The middle one is the dead link

Notify maintainers

@nazarewk

Metadata

› nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.8.7, NixOS, 24.05 (Uakari), 24.05.20240427.2b1f64b`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/f5n79magaxc51b2pvpbdwp6yh26i2wmz-source`
@tbaumann
Copy link
Author

I think I confused myself. It's not ambiguous. Just broken in the last generation of the derivative.

ln -sf rambox-${version} $out/bin/${pname}
forces the symlink.

@nazarewk
Copy link
Member

looks like something must have changed in extracting appimages resulting in different structure

@eclairevoyant eclairevoyant changed the title Rambos package broken rambox package broken Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants