NetBSD Problem Report #43478
From oster@scrooge.usask.ca Tue Jun 15 15:01:28 2010
Return-Path: <oster@scrooge.usask.ca>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 4BA2163B873
for <gnats-bugs@gnats.NetBSD.org>; Tue, 15 Jun 2010 15:01:28 +0000 (UTC)
Message-Id: <20100615150125.BBAE2113D82@scrooge.usask.ca>
Date: Tue, 15 Jun 2010 09:01:25 -0600 (CST)
From: oster@netbsd.org
Reply-To: oster@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: rpm2pkg 3.0.1 complains about cpio header errors...
X-Send-Pr-Version: 3.95
>Number: 43478
>Category: pkg
>Synopsis: rpm2pkg 3.0.1 complains about cpio header errors
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tron
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 15 15:05:00 +0000 2010
>Closed-Date: Tue Jun 15 21:23:39 +0000 2010
>Last-Modified: Tue Jun 15 21:23:39 +0000 2010
>Originator: Greg Oster
>Release: NetBSD 5.1_RC3
>Organization:
>Environment:
System: NetBSD scrooge 5.1_RC3 NetBSD 5.1_RC3 (QUAD) #0: Sun Jun 13 16:32:20 CST 2010 oster@quad:/u1/builds/build179/src/obj/i386/u1/builds/build179/src/sys/arch/i386/compile/QUAD i386
Architecture: i386
Machine: i386
>Description:
Attempt to install print/acroread8 on NetBSD 5.1_RC3 i386 with
up-to-date pkgsrc, and observe the following error:
===> Installing dependencies for suse_compat-10.0nb3
==========================================================================
The following variables will affect the build process of this package,
suse_compat-10.0nb3. Their current value is shown below:
* RPMFILES = /usr/pkgsrc/distfiles/suse100/i586/compat-2004.11.13-4.i586.rpm /usr/pkgsrc/distfiles/suse100/i586/compat-g77-3.3.5-2.i586.rpm /usr/pkgsrc/distfiles/suse100/i586/compat-libstdc++-5.0.7-6.i586.rpm
You may want to abort the process now with CTRL-C and change their value
before continuing. Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Build dependency rpm2pkg>=2.1: found rpm2pkg-3.0.1
=> Full dependency suse_base-10.0{,nb*}: NOT found
=> Verifying reinstall for ../../emulators/suse100_base
=> Bootstrap dependency digest>=20010302: found digest-20080510
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Installing for suse_base-10.0nb5
=> Creating installation directories
=> Running PRE-INSTALL script actions
=> Extracting RPM files
/usr/pkgsrc/distfiles/suse100/i586/aaa_base-10.0-28.i586.rpm: error in cpio header.
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/emulators/suse100_base
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/emulators/suse100_base
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/emulators/suse100_base
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/emulators/suse100_compat
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/print/acroread8
hostname>
The problem is seen with versions 3.0 and 3.0.1 of rpm2pkg. Version
2.3 doesn't have this issue.
>How-To-Repeat:
Attempt to build print/acroread8 from pkgsrc. Observe the
claimed error cpio header.
>Fix:
Downgrade to rpm2pkg version 2.3 to get around the issue.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->tron
Responsible-Changed-By: tron@NetBSD.org
Responsible-Changed-When: Tue, 15 Jun 2010 16:28:30 +0000
Responsible-Changed-Why:
I'm the maintainer of the "rpm2pkg" package.
State-Changed-From-To: open->feedback
State-Changed-By: tron@NetBSD.org
State-Changed-When: Tue, 15 Jun 2010 16:28:30 +0000
State-Changed-Why:
Please provide more information. Can you e.g. send "ktrace" output of
the failing "rpm2pkg" command?
From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/43478 CVS commit: pkgsrc/pkgtools/rpm2pkg
Date: Tue, 15 Jun 2010 19:52:02 +0000
Module Name: pkgsrc
Committed By: tron
Date: Tue Jun 15 19:52:02 UTC 2010
Modified Files:
pkgsrc/pkgtools/rpm2pkg: Makefile
pkgsrc/pkgtools/rpm2pkg/files: rpm2pkg.c
Log Message:
Update "rpm2pkg" package to version 3.0.2. Changes since 3.0.1:
Avoid problems on 32-bit platforms by gently hinting the compiler how
to do type expansion properly.
This fixes PR pkg/43478 by Greg Oster.
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pkgsrc/pkgtools/rpm2pkg/Makefile
cvs rdiff -u -r1.10 -r1.11 pkgsrc/pkgtools/rpm2pkg/files/rpm2pkg.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->closed
State-Changed-By: tron@NetBSD.org
State-Changed-When: Tue, 15 Jun 2010 21:23:39 +0000
State-Changed-Why:
Greg provided a "ktrace" dump which allowed me to fix the problem
in version 3.0.2 of the package.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.