Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160683 - media-libs/libpng fails to install manual w/ USE=doc
Summary: media-libs/libpng fails to install manual w/ USE=doc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-07 13:33 UTC by Konrad Karczewski
Modified: 2007-01-07 16:33 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konrad Karczewski 2007-01-07 13:33:00 UTC
Yesterday there was a problem with 'libpng-manual-1.2.14.txt' - registered lenght was incorrect, digesting the ebuild fixed that. Today the ebuild is updated and downloads 'libpng-manual-1.2.14.txt.bz2' but it still tries to copy the '.txt' file:

cp: cannot stat `/var/tmp/portage/libpng-1.2.14/distdir/libpng-manual-1.2.14.txt': No such file or directory



Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-07 14:26:06 UTC
This stupid txt file that about noone actually needs for anything starts to drive me mad... :X

--- libpng-1.2.14.ebuild	2007-01-07 01:06:23.000000000 +0100
+++ libpng-1.2.14.ebuild	2007-01-07 15:20:30.000000000 +0100
@@ -20,8 +20,8 @@
 
 src_unpack() {
 	unpack ${A}
+	use doc && cp ${PN}-manual-${PV}.txt "${S}"
 	cd "${S}"
-	use doc && cp "${DISTDIR}"/${PN}-manual-${PV}.txt ${PN}-manual.txt
 
 	epatch "${FILESDIR}"/1.2.7-gentoo.diff
 
@@ -39,7 +39,7 @@
 src_install() {
 	make DESTDIR="${D}" install || die
 	dodoc ANNOUNCE CHANGES KNOWNBUG README TODO Y2KINFO
-	use doc && dodoc libpng-manual.txt
+	use doc && newdoc ${PN}-manual-${PV}.txt ${PN}-manual.txt
 }
 
 pkg_postinst() {
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2007-01-07 16:33:56 UTC
sorry about that, forgot to switch DISTDIR to WORKDIR

fixed in cvs