Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 584724

Summary: 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
Product: Gentoo Linux Reporter: Andrew Savchenko <bircoph>
Component: [OLD] LibraryAssignee: Hanno Böck <hanno>
Status: RESOLVED FIXED    
Severity: normal CC: mattst88
Priority: Normal Keywords: EBUILD, PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
environment
emerge --info
libhx-3.22-no-lyx.patch
libhx-3.22.ebuild.patch

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.