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

fpp: bugfix #95218

Merged
merged 1 commit into from Aug 12, 2020
Merged

fpp: bugfix #95218

merged 1 commit into from Aug 12, 2020

Conversation

afreakk
Copy link
Contributor

@afreakk afreakk commented Aug 11, 2020

Motivation for this change

Current derivation causes error:

/nix/store/n994z5x2j7w03gdbm7p6q6bzph7pifad-fpp-0.9.2/bin/fpp: line 35: python3: command not found

when invoking fpp, reason is that the bin/fpp looks like this:

PYTHONCMD="python3"

While the derivation thinks it looks like this:

PYTHONCMD="python"

So we need to change the replace expression to replace it properly.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Copy link
Contributor

@danieldk danieldk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Result of nixpkgs-review pr 95218 1

2 packages built:
- fpp
- tmuxPlugins.fpp

Interestingly, the Python subprocess module seems to have an (impure) dependency on /bin/sh

$ wrapit `realpath results/fpp/bin/fpp`
Traceback (most recent call last):
  File "/nix/store/vin4yxddc44mgc377g344d2x2p7zaiwp-fpp-0.9.2/share/fpp/src/processInput.py", line 11, in <module>
    import parse
  File "/nix/store/vin4yxddc44mgc377g344d2x2p7zaiwp-fpp-0.9.2/share/fpp/src/parse.py", line 242, in <module>
    PREPEND_PATH = str(getRepoPath().strip()) + '/'
  File "/nix/store/vin4yxddc44mgc377g344d2x2p7zaiwp-fpp-0.9.2/share/fpp/src/parse.py", line 212, in getRepoPath
    proc = subprocess.Popen(["git rev-parse --show-toplevel"],
  File "/nix/store/fjgnz0xfl04hsblsi4ym5y5akfh6mlmy-python3-3.8.5/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/nix/store/fjgnz0xfl04hsblsi4ym5y5akfh6mlmy-python3-3.8.5/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/bin/sh'

@danieldk danieldk merged commit 800d9e7 into NixOS:master Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants