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

Bug 192899

Summary: libpng-manual.txt updated breaking digests plus USE=doc broken
Product: Gentoo Linux Reporter: It's me <mai98fhw>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: VERIFIED FIXED    
Severity: normal CC: dhp_gentoo, jakub, jer, kroemmelbein, mathfox, shur, skelter, tais.hansen
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description It's me 2007-09-18 07:37:58 UTC
>>> Emerging (1 of 213) media-libs/libpng-1.2.18-r1 to /
!!! No write access to '/usr/portage/distfiles'
!!! Previously fetched file: 'libpng-manual.txt'
!!! Reason: Failed on RMD160 verification
!!! Got:      e8d684bc04363879d9731ae1c5515c7e1aae5361
!!! Expected: f019974f931327e6d9d332d306e07dce71ff031b
!!! File libpng-manual.txt isn't fetched but unable to get it.
 * Fetch failed for 'media-libs/libpng-1.2.18-r1'

 * Messages for package media-libs/libpng-1.2.18-r1:

 * Fetch failed for 'media-libs/libpng-1.2.18-r1'


Reproducible: Always
Comment 1 DEMAINE BenoƮt-Pierre, aka DoubleHP 2007-09-18 18:23:31 UTC
please run
emerge --sync

and try again. If still happens, please confirm so, and attach 
emerge --info
Comment 2 SpanKY gentoo-dev 2007-09-20 05:34:28 UTC
manifest rebuilt
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-10-11 08:20:11 UTC
*** Bug 195475 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-10-11 09:14:58 UTC
*** Bug 195480 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-10-11 09:16:19 UTC
And again... and again and again until we finally drop this from the ebuild, start to mirror this as a versioned file or until upstream finally sticks it into the darned tarball as everyone else does.

Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2007-10-11 17:42:20 UTC
Fixed again for now.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2007-10-11 17:53:59 UTC
(In reply to comment #5)
> And again... 

The problem is actually worse than that! :)

>>> Unpacking libpng-manual.txt to /dev/shm/portage/media-libs/libpng-1.2.21-r3/
work
unpack libpng-manual.txt: file format not recognized. Ignoring.
cp: cannot stat `/dev/shm/portage/media-libs/libpng-1.2.21-r3/work/libpng-manual
.txt': No such file or directory
...
>>> Install libpng-1.2.21-r3 into /dev/shm/portage/media-libs/libpng-1.2.21-r3/image/ category media-lib
...
dodoc: libpng-manual.txt does not exist
Comment 8 skelter 2007-10-11 22:29:01 UTC
 * libpng-1.2.21.tar.bz2 RMD160 ;-) ...                                   [ ok ]
 * libpng-1.2.21.tar.bz2 SHA1 ;-) ...                                     [ ok ]
 * libpng-1.2.21.tar.bz2 SHA256 ;-) ...                                   [ ok ]
 * libpng-1.2.21.tar.bz2 size ;-) ...                                     [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking libpng-1.2.21.tar.bz2 ;-) ...                                 [ ok ]
 * checking libpng-manual.txt ;-) ...                                     [ !! ]

!!! Digest verification failed:
!!! /usr/portage/distfiles/libpng-manual.txt
!!! Reason: Filesize does not match recorded size
!!! Got: 128284
!!! Expected: 128288
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-10-12 09:40:12 UTC
(In reply to comment #7)
> The problem is actually worse than that! :)

> unpack libpng-manual.txt: file format not recognized. Ignoring.

Harmless warning...

> cp: cannot stat
> `/dev/shm/portage/media-libs/libpng-1.2.21-r3/work/libpng-manual
> .txt': No such file or directory

Well, because it should be like this:

-use doc && cp "${WORKDIR}"/${PN}-manual.txt .
+use doc && cp "${DISTDIR}"/${PN}-manual.txt .

(In reply to comment #8)
> !!! Got: 128284
> !!! Expected: 128288

rm -f /usr/portage/distfiles/libpng-manual.txt (but then you'll get the original bug mentioned in comment #0). Regenerating the digests over and over again is definitely not a solution here, even with a correct one you get issues like in comment #8 when people have old file in ${DISTDIR}.



Comment 10 Michael Shurtleff 2007-10-12 11:43:31 UTC
This is what I get: (an RMD check failure for libpng-manual.txt)

Connecting to distfiles.gentoo.org|216.165.129.135|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 128,284 (125K) [text/plain]

100%[====================================>] 128,284 161.93K/s
[ebuild U ] media-libs/libpng-1.2.21-r3 [1.2.18-r1] USE="doc" 726 kB

15:05:35 (161.51 KB/s) - `/usr/portage/distfiles/libpng-manual.txt' saved [128284/128284]

* libpng-1.2.21.tar.bz2 RMD160 ;-) ... [ ok ]
* libpng-1.2.21.tar.bz2 SHA1 ;-) ... [ ok ]
* libpng-1.2.21.tar.bz2 SHA256 ;-) ... [ ok ]
* libpng-1.2.21.tar.bz2 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking libpng-1.2.21.tar.bz2 ;-) ... [ ok ]
* checking libpng-manual.txt ;-) ... [ !! ]

!!! Digest verification failed:
!!! /usr/portage/distfiles/libpng-manual.txt
!!! Reason: Failed on RMD160 verification
!!! Got: f019974f931327e6d9d332d306e07dce71ff031b
!!! Expected: 8f6262b838769ae342f2930c8ab1bee5e4fc1ef2
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-10-12 11:50:11 UTC
(In reply to comment #10)
> This is what I get: (an RMD check failure for libpng-manual.txt)

As noted in Comment #9. That's because people keep redigesting the old file on stabilization.
Comment 12 Andrey Grozin gentoo-dev 2007-10-12 12:02:21 UTC
I had to
ebuild libpng-1.2.21-r3.ebuild digest
after that libpng emerged OK. Please update the digest in the tree.
Comment 13 SpanKY gentoo-dev 2007-10-12 14:49:40 UTC
people can fetch the file themselves; dropped
Comment 14 Oliver Schoett 2007-10-12 15:45:55 UTC
(In reply to comment #13)
> people can fetch the file themselves; dropped
> 

Could you be a bit less cryptic please - how exactly do we obtain a matching doc file and ebuild?  I tried to delete the doc file and emerge just fetched a non-matching version again.  So either my gentoo mirror or the checksum is wrong (or both), which is it?
Comment 15 Peter `MathFox' Roozemaal 2007-10-12 16:10:52 UTC
(In reply to comment #13)
> people can fetch the file themselves; dropped
> 
But how do you prevent someone like you from signing an older copy of the file that happens to live on his harddisk?

<b>PLEASE REOPEN</b>
Comment 16 Michael Shurtleff 2007-10-12 16:43:23 UTC
See comment 12 for the short-term solution. But obviously something is wrong. Either there is a bug in the current libpng ebuild, or there is a bug in the ebuild application. Other ebuilds don't do this. Seems to me that there is some obfuscation going on.
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2007-10-12 17:21:19 UTC
(In reply to comment #14)

USE=doc removed, the ebuild does NOT fetch and install the manual any more. Download it from http://www.libpng.org/pub/png/libpng-manual.txt if you need it.

FIXED, closed, nothing more to do here.