make: Entering directory '/tmp/portage/dev-util/astyle-3.0.1/work/astyle/src' g++ -DNDEBUG -Wall -Wextra -fno-rtti -fno-exceptions -std=c++11 -march=k8-sse3 -mcx16 -msahf --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -c astyle_main.cpp -o obj/astyle_main.o g++ -DNDEBUG -Wall -Wextra -fno-rtti -fno-exceptions -std=c++11 -march=k8-sse3 -mcx16 -msahf --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -c ASBeautifier.cpp -o obj/ASBeautifier.o [...]
Created attachment 477508 [details, diff] astyle-3.0.1-CXX.patch It appears upstream ships a Makefile that sets CXX on its own, and the prior maintainer didn't catch it. Attached is a quick patch extending the sed call in src_prepare. Does it solve the problem correctly?
Can't you just pass CXX to make instead of doing awful seds?
Created attachment 477582 [details, diff] astyle-3.0.1-CXX-r1.patch New patch passes CXX directly via emake argument. Is this what you meant? If so I can go ahead and push it.
Yes, that looks correct. Note that I haven't tested it though but it should be trivial for you to reproduce.
Pushed to gentoo.git: commit afde8cea96633a7b9a9c95fa444b7277f04ab11b Author: Daniel Campbell <zlg@gentoo.org> Date: Fri Jun 23 12:38:09 2017 -0700 dev-util/astyle: Respect CXX wrt bug 622068 Thanks to mgorny for finding the issue. Gentoo-Bug: 622068 Gentoo-Bug-URL: https://bugs.gentoo.org/622068 Package-Manager: Portage-2.3.6, Repoman-2.3.2