Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556604 - net-libs/libupnp-1.6.19 with USE="doc" fails during install phase: /usr/bin/install: will not overwrite just-created '/var/tmp/portage/net-libs/libupnp-1.6.19/image//usr/share/doc/libupnp-1.6.19/examples/sample_util.c' with 'common/sample_util.c'
Summary: net-libs/libupnp-1.6.19 with USE="doc" fails during install phase: /usr/bin/i...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Marcus Stjärnås
Keywords: PATCH
Depends on:
Reported: 2015-08-03 21:49 UTC by James Ausmus
Modified: 2016-07-03 15:30 UTC (History)
4 users (show)

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

libupnp-1.6.19-docs-install.patch (libupnp-1.6.19-docs-install.patch,387 bytes, patch)
2016-06-04 15:40 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Ausmus 2015-08-03 21:49:23 UTC
emerge net-libs/libupnp-1.6.19 with USE="doc ipv6 -debug -static-libs" fails during the install phase with the following output:

Making install in sample
make[2]: Entering directory '/var/tmp/portage/net-libs/libupnp-1.6.19/work/libupnp-1.6.19/upnp/sample'
make[3]: Entering directory '/var/tmp/portage/net-libs/libupnp-1.6.19/work/libupnp-1.6.19/upnp/sample'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/var/tmp/portage/net-libs/libupnp-1.6.19/image//usr/share/doc/libupnp-1.6.19/examples'
 /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c -m 644 common/sample_util.c common/sample_util.h common/tv_ctrlpt.c common/tv_ctrlpt.h linux/tv_ctrlpt_main.c common/sample_util.c common/sample_util.h common/tv_device.c common/tv_device.h linux/tv_device_main.c '/var/tmp/portage/net-libs/libupnp-1.6.19/image//usr/share/doc/libupnp-1.6.19/examples'
/usr/bin/install: will not overwrite just-created '/var/tmp/portage/net-libs/libupnp-1.6.19/image//usr/share/doc/libupnp-1.6.19/examples/sample_util.c' with 'common/sample_util.c'
/usr/bin/install: will not overwrite just-created '/var/tmp/portage/net-libs/libupnp-1.6.19/image//usr/share/doc/libupnp-1.6.19/examples/sample_util.h' with 'common/sample_util.h'
Makefile:707: recipe for target 'install-examplesDATA' failed
make[3]: *** [install-examplesDATA] Error 1
make[3]: Leaving directory '/var/tmp/portage/net-libs/libupnp-1.6.19/work/libupnp-1.6.19/upnp/sample'
Makefile:823: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/var/tmp/portage/net-libs/libupnp-1.6.19/work/libupnp-1.6.19/upnp/sample'
Makefile:1374: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-libs/libupnp-1.6.19/work/libupnp-1.6.19/upnp'
Makefile:522: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
 * ERROR: net-libs/libupnp-1.6.19::gentoo failed (install phase):
 *   emake failed

Reproducible: Always

Steps to Reproduce:
1. emerge libupnp
Actual Results:  
libupnp fails during the install phase

Expected Results:  
libupnp emerges properly

Running MAKEOPTS="-j1" emerge libupnp makes no difference.

Running USE="-doc" emerge libupnp results are successful
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2015-08-12 11:32:05 UTC
This bug occurs from duplication of files in

examples_DATA = \
        $(tv_ctrlpt_SOURCES) \

will not overwrite just-created files sample_util.c & sample_util.h
These 2 files are listed in arrays of both tv_ctrlpt_SOURCES & tv_device_SOURCES.

A patch taking out these files in one of these need be prepared , submitted here and sent to upstream for testing and endorsement.
Comment 2 Andrew Savchenko gentoo-dev 2016-06-04 15:40:46 UTC
Created attachment 436452 [details, diff]

Patch that fixes install phase by removing duplicates from the sources list.
Comment 3 Andrew Savchenko gentoo-dev 2016-06-19 10:04:48 UTC
Ping here.

I'm going to apply proposed patch in two weeks if there are no objections.
Comment 4 Andrew Savchenko gentoo-dev 2016-07-03 15:30:11 UTC
Fixed in git.