Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 584724 - sys-libs/libhx-3.22: install fails: /usr/bin/install: cannot create regular file '/var/tmp/portage/sys-libs/libhx-3.22/image//usr/share/doc/libhx-3.22/libHX_Documentation.pdf': File exists
Summary: sys-libs/libhx-3.22: install fails: /usr/bin/install: cannot create regular f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2016-06-01 05:48 UTC by Andrew Savchenko
Modified: 2016-06-02 04:53 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,30.61 KB, text/plain)
2016-06-01 05:48 UTC, Andrew Savchenko
Details
environment (environment,78.59 KB, text/plain)
2016-06-01 05:49 UTC, Andrew Savchenko
Details
emerge --info (emerge.info,11.10 KB, text/plain)
2016-06-01 05:50 UTC, Andrew Savchenko
Details
libhx-3.22-no-lyx.patch (libhx-3.22-no-lyx.patch,495 bytes, patch)
2016-06-01 15:47 UTC, Andrew Savchenko
Details | Diff
libhx-3.22.ebuild.patch (libhx-3.22.ebuild.patch,1003 bytes, patch)
2016-06-01 15:51 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2016-06-01 05:48:52 UTC
Created attachment 435996 [details]
build.log

Hi,

libhx-3.22 fails to install here:

 /bin/mkdir -p '/var/tmp/portage/sys-libs/libhx-3.22/image//usr/share/doc/libhx-3.22'
 /usr/bin/install -c -m 644 libHX_Documentation.pdf '/var/tmp/portage/sys-libs/libhx-3.22/image//usr/share/doc/libhx-3.22'
/usr/bin/install: cannot create regular file '/var/tmp/portage/sys-libs/libhx-3.22/image//usr/share/doc/libhx-3.22/libHX_Documentation.pdf': File exists
make[2]: *** [Makefile:319: install-dist_docDATA] Error 1

Also it would be nice to have USE="doc" for documentation.
Comment 1 Andrew Savchenko gentoo-dev 2016-06-01 05:49:27 UTC
Created attachment 435998 [details]
environment
Comment 2 Andrew Savchenko gentoo-dev 2016-06-01 05:50:14 UTC
Created attachment 436000 [details]
emerge --info
Comment 3 Andrew Savchenko gentoo-dev 2016-06-01 06:09:57 UTC
Looks like package has an automagick dependency on app-office/lyx and builds PDF docs if it is found.
Comment 4 Andrew Savchenko gentoo-dev 2016-06-01 15:47:58 UTC
Created attachment 436030 [details, diff]
libhx-3.22-no-lyx.patch

Since source tarball already contains generated pdf, there is no need to regenerate it using lyx, thus proposed patch removes lyx detection and disables pdf regeneration.

It also fixes original problem with already existent pdf.
Comment 5 Andrew Savchenko gentoo-dev 2016-06-01 15:51:02 UTC
Created attachment 436032 [details, diff]
libhx-3.22.ebuild.patch

Brand new EAPI=6 ebuild with eautoreconf, needed for a proposed no-lyx.patch and new USE=doc to control PDF and API docs.
Comment 6 Matt Turner gentoo-dev 2016-06-01 18:14:12 UTC
Thank you. That looks good to me. Feel free to commit the changes.
Comment 7 Andrew Savchenko gentoo-dev 2016-06-02 04:53:07 UTC
Thanks for prompt review, committed to the tree.