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

Bug 517512

Summary: =app-misc/beanstalkd-1.9 calls cc directly
Product: Gentoo Linux Reporter: Chema Alonso Josa (RETIRED) <nimiux>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED FIXED    
Severity: normal CC: bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502, 512332    

Description Chema Alonso Josa (RETIRED) gentoo-dev 2014-07-19 16:14:50 UTC
From the build log:

make -j6 'CFLAGS=-O2 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 
cc -O2 -pipe   -c -o linux.o linux.c
cc -O2 -pipe   -c -o conn.o conn.c
cc -O2 -pipe   -c -o file.o file.c
cc -O2 -pipe   -c -o heap.o heap.c
cc -O2 -pipe   -c -o job.o job.c
cc -O2 -pipe   -c -o ms.o ms.c
cc -O2 -pipe   -c -o net.o net.c
Comment 1 Johan Bergström 2014-07-20 01:36:27 UTC
Thanks for the bug.

Suggested patch:
diff --git usr/portage/app-misc/beanstalkd/beanstalkd-1.9.ebuild beanstalkd-1.9.ebuild
index 457e430..5ae3cf2 100644
--- usr/portage/app-misc/beanstalkd/beanstalkd-1.9.ebuild
+++ beanstalkd-1.9.ebuild
@@ -4,7 +4,7 @@

 EAPI=5

-inherit eutils systemd user
+inherit eutils systemd toolchain-funcs user

 DESCRIPTION="A simple, fast work queue"
 HOMEPAGE="http://kr.github.io/beanstalkd/"
@@ -32,7 +32,7 @@ src_prepare() {
 }

 src_compile() {
-       emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+       emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" LD="$(tc-getLD)"
 }

 src_install() {
Comment 2 Patrick Lauer gentoo-dev 2014-07-21 06:44:00 UTC
+  21 Jul 2014; Patrick Lauer <patrick@gentoo.org> +beanstalkd-1.9-r1.ebuild,
+  -beanstalkd-1.9.ebuild:
+  Fix cc invocation #517512