[Patches] [ python-Patches-731328 ] AssertionError when building rpm under RedHat 9.1

SourceForge.net noreply at sourceforge.net
Mon May 22 10:52:01 CEST 2006


Patches item #731328, was opened at 2003-05-02 12:56
Message generated for change (Comment added) made by jafo
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=731328&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Distutils and setup.py
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ricardo Niederberger Cabral (niederberger)
>Assigned to: Sean Reifschneider (jafo)
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: Sean Reifschneider (jafo)
Date: 2006-05-22 08:52

Message:
Logged In: YES 
user_id=81797

Is 1.0.3 from the Red Hat RPMs, the python.org RPMs (which
version), or directly downloaded from the distutils?  If
this is an issue in Distutils, I'd be interested in still
fixing it.  However, there hasn't been any activity on this
in 3 years, so I'm planning on closing this unless I hear
something further over, say, the next few weeks.

Red Hat 9.1 is extremely legacy now, of course.  Not at all
supported for errata by either Red Hat or the other Legacy
sites, so I'm inclined to feel the same.

----------------------------------------------------------------------

Comment By: Georg Brandl (birkenfeld)
Date: 2005-03-03 14: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 01: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 11: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