dev-libs/ace wrongfully install several PACKAGE_* definitions in /usr/include/ace/config.h. Most packages have their own PACKAGE_* definitions which will make compiler to throw redefinition warnings at every C/C++ file that includes <ace/config.h> either directly or indirectly. Output of grep PACKAGE /usr/include/ace/config.h: #define PACKAGE_BUGREPORT "ace-bugs@cs.wustl.edu" #define PACKAGE_NAME "ACE" #define PACKAGE_STRING "ACE 5.5.9" #define PACKAGE_TARNAME "ace" #define PACKAGE_VERSION "5.5.9" Please remove these definitions in the next revision/version you make. These are meant to be used when ace library is compiled, not when some program is linked against libace.
Daniel, I see you are the active maintainer of ace. Please fix this bug.
fixed in stable and latest.
added upstream report.
That is not the correct fix. At the end of src_install you should do the following: sed -i -e "^#define PACKAGE_.*//g" "${D}"/usr/include/ace/config.h Currently you run sed -i -e "^#define PACKAGE_.*//g" /usr/include/ace/config.h at the end of src_test, which will trigger a sandbox exception if you try do install it with FEATURES=test.
Fixed in ace-5.6.5-r2.