Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517512 - =app-misc/beanstalkd-1.9 calls cc directly
Summary: =app-misc/beanstalkd-1.9 calls cc directly
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
Depends on:
Blocks: tc-directly 512332
  Show dependency tree
Reported: 2014-07-19 16:14 UTC by Chema Alonso Josa (RETIRED)
Modified: 2014-07-21 06:44 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
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 @@


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

 DESCRIPTION="A simple, fast work queue"
@@ -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 <> +beanstalkd-1.9-r1.ebuild,
+  -beanstalkd-1.9.ebuild:
+  Fix cc invocation #517512