Emerging media-libs/libtheora-1.1.1-r1 w/ USE="doc examples" fails on amd64, w/ the error below: /usr/bin/install: cannot stat ‘examples/*.[ch]’: No such file or directory !!! doins: examples/*.[ch] does not exist * ERROR: media-libs/libtheora-1.1.1-r1 failed (install phase): * doins failed This appears to be because the examples/*.[ch] only exist in ${WORKDIR}/libtheora-1.1.1, but the doins is called from multilib_src_install(), which seems to be working from ${WORKDIR}/libtheora-1.1.1-amd64. I was able to fix this by editing the ebuild & adding a multilib_src_install_all() function, and moving the doins examples/*.[ch] there. I also restored the dodoc AUTHORS CHANGES README that was removed in media-libs/libtheora-1.1.1-r1. I found the multilib_src_install_all() function by looking at another ebuild that used multilib-minimal (specifically, app-arch/bzip2-1.0.6-r4). Reproducible: Always Steps to Reproduce: 1. amd64 multilib profile 2. USE="doc examples" 3. emerge =media-libs/libtheora-1.1.1-r1 Actual Results: /usr/bin/install: cannot stat ‘examples/*.[ch]’: No such file or directory !!! doins: examples/*.[ch] does not exist * ERROR: media-libs/libtheora-1.1.1-r1 failed (install phase): * doins failed Expected Results: libtheora installed correctly, including the example source code.
Created attachment 352190 [details] Updated media-libs/libtheora-1.1.1-r1.ebuild Updated media-libs/libtheora-1.1.1-r1.ebuild, installs example source code & AUTHORS CHANGES README docs correctly.
Thanks, the patched ebuild works here.
Comment on attachment 352190 [details] Updated media-libs/libtheora-1.1.1-r1.ebuild --- libtheora-1.1.1-r1.ebuild 2013-06-27 18:22:31.000000000 +0200 +++ - 2013-07-02 16:09:42.949986944 +0200 @@ -72,11 +72,6 @@ install if use examples && [ "${ABI}" = "${DEFAULT_ABI}" ]; then - if use doc; then - insinto /usr/share/doc/${PF}/examples - doins examples/*.[ch] - fi - dobin examples/.libs/png2theora for bin in dump_{psnr,video} {encoder,player}_example; do newbin examples/.libs/${bin} theora_${bin} @@ -85,3 +80,12 @@ prune_libtool_files } + +multilib_src_install_all() { + dodoc AUTHORS CHANGES README + + if use examples && use doc; then + insinto /usr/share/doc/${PF}/examples + doins examples/*.[ch] + fi +}
thanks! applied a (slightly modified) patch