[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#459603: marked as done (lsb-rpm: Produces packages that are not LSB-compliant)



Your message dated Sun, 14 Jun 2009 10:51:42 +0000
with message-id <E1MFnJO-0007fq-Pm@ries.debian.org>
and subject line Bug#459603: fixed in rpm 4.7.0-3
has caused the Debian Bug report #459603,
regarding lsb-rpm: Produces packages that are not LSB-compliant
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
459603: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=459603
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: lsb-rpm
Version: 4.4.1-14.1
Severity: grave
Justification: renders package unusable

Packages created by lsb-rpm don't pass the checks that the lsbpkgchk
program (from the lsb-pkgchk3 package, or directly from LSB website,
http://ftp.freestandards.org/pub/lsb/test_suites/released-3.1.0/binary/application/lsb-pkgchk-3.1.1-1.i486.rpm)
does.

Additionally, according to some anonymous pretending to be Jeff
Johnson on the linux.org.ru site,

(http://www.linux.org.ru/jump-message.jsp?msgid=2391597&cid=2394613)
"The LSB format is not used by any version of rpm since rpm-3.0.5 and
LSB packages cannot be produced by any version of rpm currently used in
Linux."

(http://www.linux.org.ru/jump-message.jsp?msgid=2391597&cid=2394781)
"unmodified rpm-4.4.2.1 cannot produce LSB "standard" packages" (and
debian doesn't apply patches that affect the output format)

I don't know whether the comments above come actually from Jeff Johnson
and whether they are true, but the "lsbpkgchk" messages do have the
ultimate authority.

Testcase: try bulding something simple, like Bison.

First, edit the /usr/lib/rpm/rpmrc file so that the "buildarchtranslate"
statements point to i486 (as mandated by LSB) instead of i386.

Second, put bison-2.3.tar.bz2 (from GNU) to /usr/src/rpm/SOURCES/ and
create the following spec file (save as bison.spec):

----- 8< -----
Summary: Generates parsers
Name: bison
Version: 2.3
Release: 1
Group: Base
License: GPL
Distribution: LeafOS
Vendor: LeafOS
Packager: LeafOS
URL: http://www.gnu.org/software/bison/
Source0: http://ftp.gnu.org/gnu/bison/bison-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-root
Requires: lsb = 3.1, lsb-core-ia32 >= 3.0

%description
Bison generates, from a series of rules, a program for analyzing the
structure
of text files; Bison is a replacement for Yacc (Yet Another Compiler
Compiler)

%prep
%setup -q

%build
%configure CC=lsbcc3 CXX=lsbc++3
echo '#define YYENABLE_NLS 1' >> config.h
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/usr/share/info/dir

%preun
install-info --delete %{_infodir}/bison.info.gz %{_infodir}/dir

%post
install-info %{_infodir}/bison.info.gz %{_infodir}/dir

%files
%defattr(-,root,root)
/*
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO

%clean
rm -rf $RPM_BUILD_ROOT
----- 8< -----

Finally, run these commands:

lsb-rpm -bb bison.spec
lsbpkgchk /usr/src/rpm/RPMS/i486/bison-2.3-1.i486.rpm

and see the following errors:

Error: checkRpmIdx() unexpected Index tag=1140 type=4 offset=d00 count=21
Error: checkRpmIdx() unexpected Index tag=1141 type=4 offset=d84 count=21
Error: checkRpmIdx() unexpected Index tag=1142 type=8 offset=e08 count=7
Error: checkRpmIdx() unexpected Index tag=1143 type=4 offset=eec count=21
Error: checkRpmIdx() unexpected Index tag=1144 type=4 offset=f70 count=21
Error: checkRpmIdx() unexpected Index tag=1145 type=4 offset=ff4 count=1
Error: checkRpmIdx() unexpected Index tag=1147 type=8 offset=ff8 count=21

Since the only purpose of lsb-rpm is to produce LSB-compliant packages
and it fails to do this, I am reporting a grave bug.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lsb-rpm depends on:
ii  rpm                           4.4.1-14.1 Red Hat package manager

lsb-rpm recommends no packages.

-- no debconf information

-- 
Alexander E. Patrakov



--- End Message ---
--- Begin Message ---
Source: rpm
Source-Version: 4.7.0-3

We believe that the bug you reported is fixed in the latest version of
rpm, which is due to be installed in the Debian FTP archive:

librpm-dbg_4.7.0-3_amd64.deb
  to pool/main/r/rpm/librpm-dbg_4.7.0-3_amd64.deb
librpm-dev_4.7.0-3_amd64.deb
  to pool/main/r/rpm/librpm-dev_4.7.0-3_amd64.deb
librpm0_4.7.0-3_amd64.deb
  to pool/main/r/rpm/librpm0_4.7.0-3_amd64.deb
librpmbuild0_4.7.0-3_amd64.deb
  to pool/main/r/rpm/librpmbuild0_4.7.0-3_amd64.deb
librpmio0_4.7.0-3_amd64.deb
  to pool/main/r/rpm/librpmio0_4.7.0-3_amd64.deb
lsb-rpm_4.7.0-3_amd64.deb
  to pool/main/r/rpm/lsb-rpm_4.7.0-3_amd64.deb
python-rpm_4.7.0-3_amd64.deb
  to pool/main/r/rpm/python-rpm_4.7.0-3_amd64.deb
rpm-i18n_4.7.0-3_all.deb
  to pool/main/r/rpm/rpm-i18n_4.7.0-3_all.deb
rpm_4.7.0-3.diff.gz
  to pool/main/r/rpm/rpm_4.7.0-3.diff.gz
rpm_4.7.0-3.dsc
  to pool/main/r/rpm/rpm_4.7.0-3.dsc
rpm_4.7.0-3_amd64.deb
  to pool/main/r/rpm/rpm_4.7.0-3_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 459603@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michal Čihař <nijel@debian.org> (supplier of updated rpm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 10 Jun 2009 10:56:55 +0200
Source: rpm
Binary: rpm rpm-i18n lsb-rpm librpm-dbg librpm0 librpmio0 librpmbuild0 librpm-dev python-rpm
Architecture: source all amd64
Version: 4.7.0-3
Distribution: unstable
Urgency: low
Maintainer: Michal Čihař <nijel@debian.org>
Changed-By: Michal Čihař <nijel@debian.org>
Description: 
 librpm-dbg - debugging symbols for RPM
 librpm-dev - RPM shared library, development kit
 librpm0    - RPM shared library
 librpmbuild0 - RPM build shared library
 librpmio0  - RPM IO shared library
 lsb-rpm    - RPM Package Manager for LSB package building
 python-rpm - Python bindings for RPM
 rpm        - package manager for RPM
 rpm-i18n   - localization and localized man pages for rpm
Closes: 419870 459603 476972
Changes: 
 rpm (4.7.0-3) unstable; urgency=low
 .
   * Okay, I'll stop uploading new version every hour.
   * Build depend on libelf-dev, and libdwarf-dev to get debugedit binary
     (LP: #341891).
   * Include lsb-rpmbuild in lsb-rpm package.
   * Update lsb-rpm man page and add lsb-rpmbuild one (Closes: #419870).
   * rpmTagTable is no longer part of API, so it can not be referenced
     (Closes: #476972).
   * Document in lsb-rpmbuild(1) what is needed to build LSB package
     (Closes: #459603).
Checksums-Sha1: 
 d1d9155814f5700497621969f2b889c849020a1d 1609 rpm_4.7.0-3.dsc
 33fcfc30500d147b2d7b38de7e3a6bb7eb4987e9 460085 rpm_4.7.0-3.diff.gz
 03c83bceca6299b5f15e242e62b9459b3d7b891e 1131996 rpm-i18n_4.7.0-3_all.deb
 dc63509d7301b2534143128ef7c1199c889f1066 801614 rpm_4.7.0-3_amd64.deb
 c941ab2b2add437dc0b4898585ddcdb6eb25dbc3 1186192 lsb-rpm_4.7.0-3_amd64.deb
 ab4f867140ba051e827af392ee5d4f31637912a4 2821868 librpm-dbg_4.7.0-3_amd64.deb
 9b21c869dcfeb0580d7e9a7fddd465a7fdcee9ae 840080 librpm0_4.7.0-3_amd64.deb
 37611e989f8f39ded409548b3e39ac91ba27003d 699846 librpmio0_4.7.0-3_amd64.deb
 d6f334f4fc41d1007194ad87c36b82b748873067 702436 librpmbuild0_4.7.0-3_amd64.deb
 f08b2ac97b13dc02b385e2315d3b8d701d736507 699522 librpm-dev_4.7.0-3_amd64.deb
 40f590e459dec204e66815a9c1ac5c55bb6e5b6c 712666 python-rpm_4.7.0-3_amd64.deb
Checksums-Sha256: 
 7ca3ed81a638aa397a9c5d54dba76bbca34da6783b74182c13b45c6935f32918 1609 rpm_4.7.0-3.dsc
 49bb19de007bc3bb88ff750eac36293714a63267939856b95d4117f82523a9bf 460085 rpm_4.7.0-3.diff.gz
 5a8346881aa72d363e8ad342b202adf4623ff0f369231637e039743712c1492c 1131996 rpm-i18n_4.7.0-3_all.deb
 bf3a7997f13f8ca5e8ca334fafb41ea3e32317e25e92853100d0e07950b84d32 801614 rpm_4.7.0-3_amd64.deb
 c58e2052071486f1e32ebf15b31c4e17229ba95ef6755d7448144428befa10b5 1186192 lsb-rpm_4.7.0-3_amd64.deb
 a1fb8454431019697a165a51f0b2ff0ade0d523003e167f0138e40cffb9e32d7 2821868 librpm-dbg_4.7.0-3_amd64.deb
 2e6e1255394259c8b022f1175bf694cae16509188ed3fc78af2b5388adfe3ea8 840080 librpm0_4.7.0-3_amd64.deb
 fbdbd50206df7e39ebe3124b8a68253383b765fe943627adca7321794e35596d 699846 librpmio0_4.7.0-3_amd64.deb
 4cf3e25accae452c3ba88e711a1639c442b679910ac8dcd546d30625a3f244d4 702436 librpmbuild0_4.7.0-3_amd64.deb
 90625f70380b6ec2926bcf29307d0d9a81aeb9424b384d1c80e4e148a968e790 699522 librpm-dev_4.7.0-3_amd64.deb
 04a69fbe88b0794d4ef1142f8ec441e8fc27f0ef37559b972229978447fceef0 712666 python-rpm_4.7.0-3_amd64.deb
Files: 
 1e6d725acac1876412d53dca11628f8d 1609 admin optional rpm_4.7.0-3.dsc
 270a0ff1ebe66d65c9194b322e895927 460085 admin optional rpm_4.7.0-3.diff.gz
 58c653df657ebde7677700ef0d53144e 1131996 localization optional rpm-i18n_4.7.0-3_all.deb
 6f3cc8acee45c975e73e104b25b88105 801614 admin optional rpm_4.7.0-3_amd64.deb
 68150c4d338e43c89b1a71d84eb67239 1186192 devel optional lsb-rpm_4.7.0-3_amd64.deb
 8bb84e5aa5d1ddc57a1a4bc4ad3febb2 2821868 debug extra librpm-dbg_4.7.0-3_amd64.deb
 8d30a04db3c7facc7fac33d7273e50b2 840080 libs optional librpm0_4.7.0-3_amd64.deb
 714c7eeea8f4fdd6760dfc287be124ed 699846 libs optional librpmio0_4.7.0-3_amd64.deb
 1b7f235ca545736aff3a98efdbeef1af 702436 libs optional librpmbuild0_4.7.0-3_amd64.deb
 54ac3ccdd91fbf2bf4f9a3c7970e9e86 699522 libdevel extra librpm-dev_4.7.0-3_amd64.deb
 b9d173aa6dda04d61d3ff22d2dbbb08d 712666 python extra python-rpm_4.7.0-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkovdmgACgkQ3DVS6DbnVgQBcACeNBAVCU3y/DiLpcjqTWQAHhVb
X5QAoN5DHfd1fqodRYzBed1O3vGnrTdj
=5XcZ
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: