Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 447728 - app-backup/bacula does not respect CXX
Summary: app-backup/bacula does not respect CXX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Beierlein
Depends on:
Blocks: tc-directly
  Show dependency tree
Reported: 2012-12-18 16:01 UTC by Agostino Sarubbo
Modified: 2012-12-20 11:57 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 Agostino Sarubbo gentoo-dev 2012-12-18 16:01:19 UTC
You receive this bug because this package does not respect my system's CXX ( x86_64-pc-linux-gnu-g++ - /usr/bin/x86_64-pc-linux-gnu-g++ ) and calls directly g++ -/usr/bin/g++
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can
2)inherit toolchain-funcs and use tc-export CXX
3)inherit toolchain-funcs and use emake CXX="$(tc-getCXX)"

g++ -c -pipe -g -D_REENTRANT -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui 
-I/usr/include/qt4 -I.. -I. -Iconsole -Irestore -Iselect -Imoc -Iui -o obj/main.o main.cpp
Comment 1 Vicente Olivert Riera (RETIRED) gentoo-dev 2012-12-19 12:22:36 UTC
Inheriting from toolchain-funcs and adding CXX="$(tc-getCXX)" to emake fixes this proble:

x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I.. -I. -Iconsole -Irestore -Iselect -Imoc -Iui -o obj/main.o main.cpp
Comment 2 Thomas Beierlein gentoo-dev 2012-12-20 11:57:39 UTC
Fixed version in tree. I hope I got all problems. Thanks for thorough test.

+  20 Dec 2012; Thomas Beierlein <> bacula-5.0.3-r3.ebuild:
+  Fix to respect CXX and CXXFLAGS (bug #447728 and 447730). Make build log
+  verbose (bug #447806). Fix problems with USE=static. Switch to EAPI=5 and
+  REQUIRED_USE. Thanks ago and peratu