Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366671 - sys-apps/attr-2.4.46 fails to build if /bin/sh is not bash
Summary: sys-apps/attr-2.4.46 fails to build if /bin/sh is not bash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 365397
Blocks:
  Show dependency tree
 
Reported: 2011-05-09 23:26 UTC by Alec Moskvin
Modified: 2011-05-16 18:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,27.57 KB, text/plain)
2011-05-09 23:26 UTC, Alec Moskvin
Details
Fix for attr-2.4.46.ebuild (attr-2.4.46-shell.patch,390 bytes, patch)
2011-05-09 23:27 UTC, Alec Moskvin
Details | Diff
Patched ebuild (for convenience) (attr-2.4.46.ebuild,1.48 KB, text/plain)
2011-05-09 23:28 UTC, Alec Moskvin
Details
Fix for attr-2.4.46.ebuild, by passing SHELL to emake (attr-2.4.46-shell2.patch,510 bytes, patch)
2011-05-15 19:13 UTC, Alec Moskvin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alec Moskvin 2011-05-09 23:26:09 UTC
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.
Comment 1 Alec Moskvin 2011-05-09 23:26:30 UTC
Created attachment 272683 [details]
build.log
Comment 2 Alec Moskvin 2011-05-09 23:27:27 UTC
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.
Comment 3 Alec Moskvin 2011-05-09 23:28:37 UTC
Created attachment 272687 [details]
Patched ebuild (for convenience)
Comment 4 Otamay 2011-05-12 07:26:01 UTC
Confirmed this and Bug 366393 on Gentoo AMD64 with /bin/dash. Patch works, too.

¡Thank you!
Comment 5 Alec Moskvin 2011-05-15 19:13:15 UTC
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 6 SpanKY gentoo-dev 2011-05-16 05:52:13 UTC
Comment on attachment 273317 [details, diff]
Fix for attr-2.4.46.ebuild, by passing SHELL to emake

this ignores the actual problem
Comment 8 Alec Meyers 2011-05-16 18:16:59 UTC
Thanks, it works.