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

Bug 484200

Summary: sci-libs/libsvm : does not respect CC
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: QA CC: jlec, pchrist
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 538508    
Bug Blocks: 243502    

Description Agostino Sarubbo gentoo-dev 2013-09-08 08:12:01 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 -c svm-scale.c -o svm-scale.o
cc -march=native -O2 -g0 -pipe -c svm-train.c -o svm-train.o
cc -march=native -O2 -g0 -pipe -c svm-predict.c -o svm-predict.o
Comment 1 Ted Tanberry 2015-02-01 16:12:20 UTC
--- libsvm-3.17.ebuild
+++ libsvm-3.17.ebuild
@@ -48,7 +48,7 @@
 			-e "s/JAVAC_FLAGS =/JAVAC_FLAGS=${JAVAC_FLAGS}/g" \
 			java/Makefile || die "Failed to fix java makefile"
 	fi
-	tc-export CXX
+	tc-export CXX CC
 }
 
 src_compile() {
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2015-02-02 08:10:03 UTC
+*libsvm-3.17-r1 (02 Feb 2015)
+
+  02 Feb 2015; Justin Lecher <jlec@gentoo.org> -libsvm-2.90-r1.ebuild,
+  -libsvm-3.14.ebuild, +libsvm-3.17-r1.ebuild, metadata.xml:
+  Respect CC, #484200
+