[Patches] [ python-Patches-731328 ] AssertionError when building
rpm under RedHat 9.1
SourceForge.net
noreply at sourceforge.net
Thu Mar 3 15:36:46 CET 2005
Patches item #731328, was opened at 2003-05-02 14:56
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=731328&group_id=5470
Category: Distutils and setup.py
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ricardo Niederberger Cabral (niederberger)
Assigned to: Nobody/Anonymous (nobody)
Summary: AssertionError when building rpm under RedHat 9.1
Initial Comment:
When trying to build an rpm on RH 9:
>From distutils __version__ = "1.0.3":
File "distutils/command/bdist_rpm.py", line 316, in run
assert len(rpms) == 1, AssertionError: unexpected number of RPM files found: ['build/bdist.
linux-i686/rpm/RPMS/i386/imgSeek-0.7-1.i386.rpm', 'build/bdist.
linux-i686/rpm/RPMS/i386/imgSeek-debuginfo-0.7-1.i386.rpm']
I had to remove the assert statement on bdist_rpm.py:316 in order to
build my rpm since rpmbuild from RH always seems to generate this
extra -debuginfo rpm.
So attached is a patch (cvs rev 1.37) to simply copy all generated
RPM's to the dist/ directory.
----------------------------------------------------------------------
Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-03-03 15:36
Message:
Logged In: YES
user_id=1188172
Does anyone still care about this issue?
Or, other way round, does anything speak against applying
and so copying all RPMs?
----------------------------------------------------------------------
Comment By: Ricardo Niederberger Cabral (niederberger)
Date: 2003-05-28 03:59
Message:
Logged In: YES
user_id=354686
Sorry for not replying faster and providing more info. SF tracker didn't email
me about your comment, and I don't have the RH system at hand right now.
Anyway, it generates:
foo-version.i386.rpm
foo-version.src.rpm
foo-debuginfo-version.i386.rpm
instead of only the binary and src rpm's I would get on Mandrake 9 for
example, which is what bdist_rpm.py currently expects.
I don't know exactly what goes inside this debug-info rpm, but i guess it's
probably the binary one compiled with debug symbols on. I can provide
more info if necessary in a few days.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2003-05-03 13:01
Message:
Logged In: YES
user_id=21627
Can you provide more information? What rpm gets generated,
and what files does it contain?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=731328&group_id=5470
More information about the Patches
mailing list