Subject: Re: pkg/34462 (rpm2pkg cannot install suse100_libpng on amd64)
To: None <gnats-bugs@netbsd.org>
From: Paulo Alexandre Pinto Pires <p@ppires.org>
List: pkgsrc-bugs
Date: 09/30/2006 20:24:52
On Mon, Sep 11, 2006 at 12:15:16PM +0000, Nicolas Joly wrote:
> The following reply was made to PR pkg/34462; it has been noted by GNATS.
> 
> From: Nicolas Joly <njoly@pasteur.fr>
> To: gnats-bugs@NetBSD.org
> Cc: tron@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org,
> 	p@ppires.org
> Subject: Re: pkg/34462 (rpm2pkg cannot install suse100_libpng on amd64)
> Date: Mon, 11 Sep 2006 14:12:52 +0200
> 
>  On Tue, Sep 05, 2006 at 03:50:55PM +0200, Nicolas Joly wrote:
>  > On Tue, Sep 05, 2006 at 08:45:02AM +0000, Matthias Scheler wrote:
>  > > The following reply was made to PR pkg/34462; it has been noted by GNATS.
>  > > 
>  > >  I'll try to find somebody who uses this packages on a NetBSD-amd64 system
>  > >  to debug this.
>  [...]
>  > I just checked on my -current NetBSD/amd64, and it looks like the
>  > problem comes from the provided RPM (i tried to download many times,
>  > and got the same results ...).
>  > 
>  > njoly@lanfeust [emulators/suse100_libpng]> rpm -qvv -p /local/src/NetBSD/pkgsrc/distfiles/suse100/x86_64/libpng-1.2.8-5.x86_64.rpm
>  > D: New Header signature
>  > D: Signature size: 264
>  > D: Signature pad : 0
>  > D: sigsize         : 264
>  > D: Header + Archive: 192360
>  > D: expected size   : 192365
>  > query of /local/src/NetBSD/pkgsrc/distfiles/suse100/x86_64/libpng-1.2.8-5.x86_64.rpm failed
>  
>  I just checked again, and the RPM appreas to be fixed.
>  
>  njoly@lanfeust [emulators/suse100_libpng]> rpm -qvv -p /local/src/NetBSD/pkgsrc/distfiles/suse100/x86_64/libpng-1.2.8-5.x86_64.rpm
>  D: New Header signature
>  D: Signature size: 264
>  D: Signature pad : 0
>  D: sigsize         : 264
>  D: Header + Archive: 192365
>  D: expected size   : 192365
>  libpng-1.2.8-5
>  
>  Here follow the corresponding distinfo update:
>  
>  Index: distinfo
>  ===================================================================
>  RCS file: /cvsroot/pkgsrc/emulators/suse100_libpng/distinfo,v
>  retrieving revision 1.1
>  diff -u -r1.1 distinfo
>  --- distinfo	3 Apr 2006 18:17:55 -0000	1.1
>  +++ distinfo	11 Sep 2006 12:08:06 -0000
>  @@ -6,6 +6,6 @@
>   SHA1 (suse100/ppc/libpng-1.2.8-5.ppc.rpm) = 54c5b529283e9bc6961de241185b9f7cfa3c96fd
>   RMD160 (suse100/ppc/libpng-1.2.8-5.ppc.rpm) = fe0ea5e247c5059efc385ac839266b44ed5a7b2d
>   Size (suse100/ppc/libpng-1.2.8-5.ppc.rpm) = 181975 bytes
>  -SHA1 (suse100/x86_64/libpng-1.2.8-5.x86_64.rpm) = f4baa12e4b0a2cd41b7baae59f9ac3fcf08c23b5
>  -RMD160 (suse100/x86_64/libpng-1.2.8-5.x86_64.rpm) = 7c76d4c3c9a25006ebec534e52d9020076ca595e
>  -Size (suse100/x86_64/libpng-1.2.8-5.x86_64.rpm) = 192720 bytes
>  +SHA1 (suse100/x86_64/libpng-1.2.8-5.x86_64.rpm) = 49482058dda187e58a9535cdfbbccbe1a7f62282
>  +RMD160 (suse100/x86_64/libpng-1.2.8-5.x86_64.rpm) = 6eb66b646051ff6a70bc51cee44176f3022d9252
>  +Size (suse100/x86_64/libpng-1.2.8-5.x86_64.rpm) = 192725 bytes
>  
>  -- 
>  Nicolas Joly
>  
>  Biological Software and Databanks.
>  Institut Pasteur, Paris.
>  
> 

I did today a

	cd /usr/pkgsrc/emulators/suse100_libpng
	make clean
	cvs update -PAd
	make update

Correct rpms could be fetched from many sources but pkgsrc rejected them
because of the still worng signatures in distinfo.  Again it used the
wrong file in ftp.netbsd.org repository, and failed.  I had to manually
download the rpm from a good source and change distinfo to have the
right sigantures.

NetBSD's repository should be fixed, as well as pkgsrc files.

Best regards.
-- 
	Pappires

... Qui habet aurem audiat quid Spiritus dicat ecclesiis.