Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414863 - media-gfx/geeqie-1.0-r2 - /usr/bin/install: cannot create regular file ‘.../image//usr/share/doc/geeqie-1.0-r2/html/AdvancedFeatures.html’: No such file or directory
Summary: media-gfx/geeqie-1.0-r2 - /usr/bin/install: cannot create regular file ‘.../i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-06 12:49 UTC by nzqr
Modified: 2012-06-07 23:01 UTC (History)
5 users (show)

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


Attachments
build log (media-gfx:geeqie-1.0-r2:20120506-124101.log,82.65 KB, text/plain)
2012-05-06 12:49 UTC, nzqr
Details
emerge --info output (emerge_info.txt,3.03 KB, text/plain)
2012-05-06 12:49 UTC, nzqr
Details
Be compatible with >=automake-1.11.4 (geeqie-1.0-automake-1.11.patch,609 bytes, patch)
2012-06-02 13:41 UTC, Marien Zwart (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nzqr 2012-05-06 12:49:13 UTC
Created attachment 310967 [details]
build log

media-gfx/geeqie-1.0-r2 build fails on `make install` stage:

/usr/bin/install: cannot create regular file ‘/mnt/1/p/tmp/portage/media-gfx/geeqie-1.0-r2/image//usr/share/doc/geeqie-1.0-r2/html/AdvancedFeatures.html’: No such file or directory
...
Comment 1 nzqr 2012-05-06 12:49:44 UTC
Created attachment 310969 [details]
emerge --info output
Comment 2 Sander Sweers 2012-05-08 21:00:27 UTC
media-gfx/geeqie-1.0-r1 is fine so it is either the patch or the autoreconf. I'll see if I can narrow it down to one of them.

+src_prepare() {
+	epatch "${FILESDIR}"/${P}-lfs_support.patch
+	eautoreconf
+}
+
Comment 3 Sander Sweers 2012-05-08 21:17:44 UTC
(In reply to comment #2)
> media-gfx/geeqie-1.0-r1 is fine so it is either the patch or the autoreconf.
> I'll see if I can narrow it down to one of them.

I commented out the patch and it fails with this message. Then I did a diff on the original source against the one generated by autoreconf. The uncompressed diff is half a meg o_O. Look like they have not run their automagic for a while.. (Or I am wrong which is more likely).

Anyway, the culprit is the autoreconf so a simple mask =media-gfx/geeqie-1.0-r2 for anyone hit by this should do the trick untill the maintainer sorts it out.
Comment 4 Jesús Guerrero Botella (RETIRED) gentoo-dev 2012-05-10 21:59:39 UTC
I've been hit by this as well. What about completely masking the ebuild in the tree or just removing it?
Comment 5 Bernard Cafarelli gentoo-dev 2012-05-29 15:10:53 UTC
Apparently some changes in autotools (since I added -r2 in tree) broke the build system

Debian worked around this by creating the html directory before the make install... (see the "See Also" link), but I would rather add a proper fix.

And sorry for the delay on this bug, I still do not have a working Gentoo box at the moment, so cannot study it and fix. In the meantime, -r1 should work fine (and only lacks large file support)
Comment 6 Sander Sweers 2012-05-29 15:49:13 UTC
(In reply to comment #5)
> Apparently some changes in autotools (since I added -r2 in tree) broke the
> build system
> 
> And sorry for the delay on this bug, I still do not have a working Gentoo
> box at the moment, so cannot study it and fix. In the meantime, -r1 should
> work fine (and only lacks large file support)

So it looks like a parallel install issue then. I'll see if I can make it install correctly with MAKEOPTS="-j1". This *may* be a reasonable workaround for the time being.

If you have patches I can try.. I am happy to test.
Comment 7 Bernard Cafarelli gentoo-dev 2012-05-29 16:02:11 UTC
From what I read from Debian and Fedora comments, the mkdir commmand is simply skipped (or disappeared), maybe an old macro or something like that?

Anyway, to workaround this, I think adding this as the first line of src_install() should do the trick:
dodir /usr/share/doc/${PF}/html
Comment 8 Small_Penguin 2012-06-01 08:23:09 UTC
Thanks, Bernard Cafarelli, the one-liner does the trick.
Comment 9 Marien Zwart (RETIRED) gentoo-dev 2012-06-02 13:41:39 UTC
Created attachment 313931 [details, diff]
Be compatible with >=automake-1.11.4

Geeqie's doc/Makefile.am does this:

# empty help_DATA just installs the directory
help_DATA = 

And the automake 1.11 NEWS file mentions a "long-standing bug" fixed in 1.11.4:

  - An empty declaration of a "foo_PRIMARY" don't cause anymore the
    generated install rules to create an empty $(foodir) directory;

Which is exactly what geeqie is relying on, and its shipped Makefile.in files are generated by automake 1.10, so that fits.

The attached patch removes the no longer functional empty help_DATA, and has geeqie's install-data-hook just create its target directory before it tries to use it, using the same mkdir command that automake would run for us if help_DATA was non-empty. This makes the build work for me.
Comment 10 Sander Sweers 2012-06-02 13:50:59 UTC
(In reply to comment #9)
> Created attachment 313931 [details, diff] [details, diff]
> Be compatible with >=automake-1.11.4
<snip>
> The attached patch removes the no longer functional empty help_DATA, and has
> geeqie's install-data-hook just create its target directory before it tries
> to use it, using the same mkdir command that automake would run for us if
> help_DATA was non-empty. This makes the build work for me.

Confirmed installing and running with this patch.
Comment 11 Bernard Cafarelli gentoo-dev 2012-06-07 23:01:18 UTC
Thanks for the explanation and patch, marienz! That is some side-effect
Added to tree in -r2. I'm plannig a -r3 with some patches grabbed from Debian and Fedora, but first let's fix compilation for those patiently waiting here