Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475138 - media-libs/libtheora-1.1.1-r1 USE="doc examples" - /usr/bin/install: cannot stat ‘examples/*.[ch]’: No such file or directory
Summary: media-libs/libtheora-1.1.1-r1 USE="doc examples" - /usr/bin/install: cannot s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-06-28 19:16 UTC by Conway S. Smith
Modified: 2013-07-02 22:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Updated media-libs/libtheora-1.1.1-r1.ebuild (libtheora-1.1.1-r1.ebuild,2.41 KB, text/plain)
2013-06-28 19:18 UTC, Conway S. Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Conway S. Smith 2013-06-28 19:16:10 UTC
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.
Comment 1 Conway S. Smith 2013-06-28 19:18:53 UTC
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.
Comment 2 Juergen Rose 2013-06-29 08:22:55 UTC
Thanks, the patched ebuild works here.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-02 14:09:53 UTC
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
+}
Comment 4 Alexis Ballier gentoo-dev 2013-07-02 22:08:22 UTC
thanks! applied a (slightly modified) patch