I have an ~amd64 system (with really custom USE flags) but I think this will apply for every arch and KEYWORD because the ebuild has something idiotic... : rm "${S}/lt*" || die "clean-up ltmain.sh failed" rm "${S}/m4/lt*" || die "clean-up lt scripts failed" rm "${S}/m4/libtool*" || die "clean-up libtool script failed" the tarball doesn't even contain these files... removing this and adding some other rm (found in the bootstrap.sh called by autogen.sh) it fails during eautoreconf : ***** autoconf ***** ***** PWD: /var/tmp/portage/media-libs/libcanberra-0.14/work/libcanberra-0.14 ***** autoconf configure.ac:364: error: possibly undefined macro: AM_GCONF_SOURCE_2 If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. libcanberra-0.14 has a reference to some gconf autoconf macro, so even if you don't want to compile with gconf support you need the macro, which means you need gconf installed. Reproducible: Always Steps to Reproduce: 1. make sure gconf is not installed 2. USE="-gtk" emerge =libcanberra-0.14 3. watch it fail Actual Results: it fails with errors Expected Results: should compile...
Created attachment 198501 [details] my modified version of the ebuild that compiles (need the patch) I apply the patch to remove the references to the gconf macro if the gtk useflag is disabled.
Created attachment 198502 [details, diff] the patch to remove references to gconf macro
(In reply to comment #0) > > rm "${S}/lt*" || die "clean-up ltmain.sh failed" > rm "${S}/m4/lt*" || die "clean-up lt scripts failed" > rm "${S}/m4/libtool*" || die "clean-up libtool script failed" > > the tarball doesn't even contain these files... Have a look to the last commit (it was fixed, so resync the tree) and then have a look to the tarball, these files exist. These files was generated using libtool-2.2 into tarball, in the case where libtool-1.5 is used , compilation will fail, if these files are not regenerated. now try the following command: $ USE="-gtk" ebuild /usr/portage/media-libs/libcanberra/libcanberra-0.14.ebuild install then have a look to ${D}/usr, there are no schemas, however there is gnome2_gconf_install into pkg_postinst() ...
ok it goes through the rm now that I synced the tree but the problem with autoconf is still there... (and having "|| die" is idiotic for a rm... we are root so if it fails it just means the files aren't here so we are in the case we wanted no need to die...)
Fixed into the overlay without a revision bump. I backported gconf-2.m4 from aclocal's system dir to m4/ sources dir. See diego's blog about "why don't use aclocal.m4 as a reference". Due to our policy (and for some technicals reasons) we avoid to apply a patch conditionnally into ebuilds (from a if statement) Thanks for reporting ;)