NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.13k stars 14.16k forks source link

libva-minimal-1.8.3: build failure #176673

Closed pghvlaans closed 2 years ago

pghvlaans commented 2 years ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build libva-minimal-1.8.3 nix-build /nix/store/8s57pr9j16gadkvxgqxwrn996bm1cq2s-libva-minimal-1.8.3.drv

Build log

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/rnjfs2snrhqifr5z2337qzjh021x68sv-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "autoreconfPhase" }
autoreconfPhase
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS}
Can't exec "/bin/sh": No such file or directory at /nix/store/m8qg2a69mda3amfmyg8ri6l4r5siwixs-autoconf-2.71/share/autoconf/Autom4te/FileUtils.pm line 275.
autoreconf: error: aclocal failed with exit status: 2

Additional context

I was trying to install steam, and later wpsoffice

Notify maintainers

@SuperSandro2000 (sorry, forgot the first time)

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

- system: `"x86_64-linux"`
 - host os: `Linux 5.10.119, Slackware, 15.0, nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.8.1`
 - channels(root): `"nixpkgs"`
 - channels(pghvlaans): `"nixpkgs"`
 - nixpkgs: `/home/pghvlaans/.nix-defexpr/channels/nixpkgs`
SuperSandro2000 commented 2 years ago

Can't reproduce on nixos-unstable. Which channel are you using?

pghvlaans commented 2 years ago

nixpkgs-unstable

SuperSandro2000 commented 2 years ago

What did you try to build?

pghvlaans commented 2 years ago

I was trying to install steam.

SuperSandro2000 commented 2 years ago

Can't reproduce on current nixpkgs-unstable when doing nix build .#steam.

Can you provide more details? I tried this on commit 7b3e907a6fef935794b5049c2c57c519853deb90. Otherwise I am closing this issue.

pghvlaans commented 2 years ago

I tried again on the new commit: nix-env -iA nixpkgs.steam. The log of the failed build is below.

[pghvlaans@ambiorix] ~ $ nix log /nix/store/8s57pr9j16gadkvxgqxwrn996bm1cq2s-libva-minimal-1.8.3.drv 
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/rnjfs2snrhqifr5z2337qzjh021x68sv-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "autoreconfPhase" }
autoreconfPhase
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS}
Can't exec "/bin/sh": No such file or directory at /nix/store/m8qg2a69mda3amfmyg8ri6l4r5siwixs-aut>
autoreconf: error: aclocal failed with exit status: 2

Is there anything more specific that would be helpful?

SuperSandro2000 commented 2 years ago

I actually got another idea. Please run the following command and compare the sandbox paths to mine:

$ nix show-config | grep sandbox-paths
sandbox-paths = /bin/sh=/nix/store/kas8m76rr10h78hfl3yk66akdi08bkf9-busybox-static-x86_64-unknown-linux-musl-1.35.0/bin/busybox
pghvlaans commented 2 years ago

Ah, it's empty! Maybe that's the issue.

[pghvlaans@ambiorix] ~ $ nix show-config | grep sandbox-paths
sandbox-paths = 
pghvlaans commented 2 years ago

Yes, that was it. Adding a "sandbox-paths" line to /etc/nix/nix.conf and restarting the daemon got past the error. Sorry about the noise; I'll close the issue.

Thank you very much!

SuperSandro2000 commented 2 years ago

On NixOS this is configured automatically and I did the same mistake a year ago.