Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484200 - sci-libs/libsvm : does not respect CC
Summary: sci-libs/libsvm : does not respect CC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on: 538508
Blocks: tc-directly
  Show dependency tree
 
Reported: 2013-09-08 08:12 UTC by Agostino Sarubbo
Modified: 2015-02-02 08:10 UTC (History)
2 users (show)

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


Attachments

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