Created attachment 463152 [details] new ebuild When updating app-text/podofo to version 0.9.5 it failed to compile because of cppunit's functions in temp/build.log was this message: Set the BOOST_ROOT env var if you have problems. -- Found Boost: /usr/include Building shared PoDoFo library Pkg-config found, creating a pkg-config file for linking against shared library. -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: HAVE_CPPUNIT -- Build files have been written to: /var/tmp/portage/app-text/podofo-0.9.5/work/podofo-0.9.5_build >>> Source configured. looking for changes in the source code I found that it was changed to PODOFO_BUILD_LIB_ONLY It build changing the line: -DHAVE_CPPUNIT=$(usex test ON OFF) for: -DPODOFO_BUILD_LIB_ONLY=$(usex test 0 1) in the ebuild
(In reply to Anielkis from comment #0) > Created attachment 463152 [details] > new ebuild When proposing ebuild changes, please attach a unified diff (created by 'diff -u oldfile newfile > newfile.diff'). > looking for changes in the source code I found that it was changed to > PODOFO_BUILD_LIB_ONLY > > It build changing the line: > > -DHAVE_CPPUNIT=$(usex test ON OFF) > > for: > > -DPODOFO_BUILD_LIB_ONLY=$(usex test 0 1) > > > in the ebuild With your change, it only installs the library, and these files are no longer installed: /usr/bin/podofobox /usr/bin/podofocolor /usr/bin/podofocountpages /usr/bin/podofocrop /usr/bin/podofoencrypt /usr/bin/podofogc /usr/bin/podofoimg2pdf /usr/bin/podofoimgextract /usr/bin/podofoimpose /usr/bin/podofoincrementalupdates /usr/bin/podofomerge /usr/bin/podofopages /usr/bin/podofopdfinfo /usr/bin/podofosign /usr/bin/podofotxt2pdf /usr/bin/podofotxtextract /usr/bin/podofouncompress /usr/bin/podofoxmp /usr/share/man/man1/podofobox.1 /usr/share/man/man1/podofocolor.1 /usr/share/man/man1/podofocountpages.1 /usr/share/man/man1/podofocrop.1 /usr/share/man/man1/podofoencrypt.1 /usr/share/man/man1/podofogc.1 /usr/share/man/man1/podofoimg2pdf.1 /usr/share/man/man1/podofoimgextract.1 /usr/share/man/man1/podofoimpose.1 /usr/share/man/man1/podofoincrementalupdates.1 /usr/share/man/man1/podofomerge.1 /usr/share/man/man1/podofopages.1 /usr/share/man/man1/podofopdfinfo.1 /usr/share/man/man1/podofotxt2pdf.1 /usr/share/man/man1/podofotxtextract.1 /usr/share/man/man1/podofouncompress.1 /usr/share/man/man1/podofoxmp.1
Added "tools" USE flag: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e7b347eb8060275d19b5c707cb8647580596ab1 https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=957a06fa8f4a58066925f78c75290670c2841e07
I've updated the ebuild to disable linking with cppunit whenever tests are not enabled: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24598d33ad2f2c5f9c2077ad850fb7516f782bdd