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

libeatmydata binary does not work #8665

Closed
srhb opened this issue Jul 6, 2015 · 7 comments
Closed

libeatmydata binary does not work #8665

srhb opened this issue Jul 6, 2015 · 7 comments

Comments

@srhb
Copy link
Contributor

srhb commented Jul 6, 2015

Steps to reproduce, with a fresh nixpkgs repo:

❯ nix-env -f nixpkgs -iA pkgs.libeatmydata                                                                           ~
replacing old ‘libeatmydata-82’
installing ‘libeatmydata-82’
building path(s) ‘/nix/store/3yad1r4aim4bnzq4778djpsfa4z4yidv-user-environment’
created 1621 symlinks in user environment
❯ eatmydata anycommand                                                                                                  ~
eatmydata error: unable to find 'eatmydata' in PATH

I'm not sure if the specific error is indicating some mis-setup of my PATH, but I don't know how to test that either.

@srhb
Copy link
Contributor Author

srhb commented Jul 6, 2015

Apparently not reproducible by the kind folks on IRC. Must be my shell setup.

@srhb srhb closed this as completed Jul 6, 2015
@lihop
Copy link
Member

lihop commented Jul 6, 2015

On IRC, I said that I couldn't reproduce this, but I wasn't paying enough attention.
I get this error too.

@srhb srhb reopened this Jul 6, 2015
@pSub
Copy link
Member

pSub commented Jul 6, 2015

I can reproduce this error as well. I am really sure whats going on. Adding eatmydata's bin directory to PATH seems to work, but I am not sure why it is attempting to call itself in the first place.

@srhb Can you try to add it to PATH like

PATH=/nix/store/*-libeatmydata-*/bin:$PATH eatmydata echo

and test if this does the correct thing?

@srhb
Copy link
Contributor Author

srhb commented Jul 6, 2015

Yes, this:

❯ PATH=/nix/store/x26ch4jk4zwwxnl7hrb13fxsrf7mw222-libeatmydata-82/bin:$PATH eatmydata uname
Linux

works correctly.

@pSub
Copy link
Member

pSub commented Jul 6, 2015

I have pushed a fix to master. It seems hacky to me, so it would make sense to investigate whether that fix is really adequate.

@srhb
Copy link
Contributor Author

srhb commented Jul 10, 2015

Your fix Works For Me^(tm), so perhaps we should consider this closed for now?

@pSub
Copy link
Member

pSub commented Jul 10, 2015

Yes, I think this can be closed. If there are problems with this fix in the future we just open a new ticket.

@pSub pSub closed this as completed Jul 10, 2015
enolan added a commit to enolan/nixpkgs that referenced this issue Feb 22, 2020
The new version of the launcher script in version 105 doesn't have the NixOS#8665
bug, but it does try to find the shell library using Debian tools, which
obviously doesn't work on Nix. Removed the now-unneccessary makeWrapper and
patched out the Debian bits.
nh2 pushed a commit to nh2/nixpkgs that referenced this issue May 5, 2020
The new version of the launcher script in version 105 doesn't have the NixOS#8665
bug, but it does try to find the shell library using Debian tools, which
obviously doesn't work on Nix. Removed the now-unneccessary makeWrapper and
patched out the Debian bits.

(cherry picked from commit 4e9b948)
stigok pushed a commit to stigok/nixpkgs that referenced this issue Jun 12, 2020
The new version of the launcher script in version 105 doesn't have the NixOS#8665
bug, but it does try to find the shell library using Debian tools, which
obviously doesn't work on Nix. Removed the now-unneccessary makeWrapper and
patched out the Debian bits.

(cherry picked from commit 4e9b948)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants