attr fails to build with /bin/sh set to a different POSIX shell. Reproducible: Always Steps to Reproduce: 1. set /bin/sh to point to /bin/dash 2. emerge =sys-apps/attr-2.4.46 Actual Results: ... eval: 1: base_compile+= x86_64-pc-linux-gnu-gcc: not found eval: 1: base_compile+= -O2: not found eval: 1: base_compile+= -march=native: not found eval: 1: base_compile+= -pipe: not found ... Expected Results: /bin/sh should not be used on bash scripts.
Created attachment 272683 [details] build.log
Created attachment 272685 [details, diff] Fix for attr-2.4.46.ebuild This patch replaces SHELL=/bin/sh with SHELL=/bin/bash in include/buildmacros, which causes the build to complete successfully.
Created attachment 272687 [details] Patched ebuild (for convenience)
Confirmed this and Bug 366393 on Gentoo AMD64 with /bin/dash. Patch works, too. ¡Thank you!
Created attachment 273317 [details, diff] Fix for attr-2.4.46.ebuild, by passing SHELL to emake A better fix as suggested by mgorny in bug 366393.
Comment on attachment 273317 [details, diff] Fix for attr-2.4.46.ebuild, by passing SHELL to emake this ignores the actual problem
probably fixed now http://sources.gentoo.org/sys-apps/attr/attr-2.4.46.ebuild?r1=1.1&r2=1.2 http://sources.gentoo.org/sys-apps/attr/files/attr-2.4.46-config-shell.patch?rev=1.1
Thanks, it works.