Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 469812

Summary: sys-process/wait_on_pid : does not respect CC
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Matthias Schwarzott <zzam>
Status: RESOLVED FIXED    
Severity: QA CC: hd_brummy, mmk
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: wait_on_pid-0.0.1-r1.ebuild
patch against makefile

Description Agostino Sarubbo gentoo-dev 2013-05-14 09:24:41 UTC
You receive this bug because this package does not respect my system's CC (x86_64-pc-linux-gnu-gcc) and calls directly /usr/bin/gcc(or similar)
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can;
2)inherit toolchain-funcs and use tc-export CC
3)inherit toolchain-funcs and use emake CC="$(tc-getCC)"


From the build log:

cc -march=native -O2 -g0 -pipe  -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu  wait_on_pid.c   -o wait_on_pid
Comment 1 Michael Mair-Keimberger (iamnr3) 2013-05-20 17:36:55 UTC
Created attachment 348776 [details]
wait_on_pid-0.0.1-r1.ebuild

I've updated the ebuild and created a patch for the makefile. This should fix the direct calling. please review
Comment 2 Michael Mair-Keimberger (iamnr3) 2013-05-20 17:37:15 UTC
Created attachment 348778 [details, diff]
patch against makefile
Comment 3 Joerg Bornkessel (RETIRED) gentoo-dev 2013-05-20 19:20:03 UTC
iam fixed the Makefile in the wait_on_pid sources
this results in a new version -> wait_on_pid-0.0.2

please recheck

Note: wait_on_pid-0.0.2 is now unstable on ~ARCH


Thanks for help out