Issues with rebuilding the src rpms for 2.0
Bill Anderson
anderson at boi.hp.com
Tue Dec 12 14:03:32 EST 2000
When trying to rebuild the src.rpms provided on python.org for 2.0,
particularly expat, as non-root, I've discovered some issues.
Right off the bat this happens:
"""
...
inflating: /home/anderson/rpmdir/BUILD/expat/xmlwf/xmlwf.dsp
+ echo 'Patch #0 (expat-Makefile.patch):'
Patch #0 (expat-Makefile.patch):
+ patch -p1 -s
missing header for context diff at line 3 of patch
The text leading up to this was:
--------------------------
|*** Makefile 2000/07/06 18:08:45 1.1
|--- Makefile 2000/07/06 18:10:34
--------------------------
File to patch:
"""
Typing in Makefile seems to work.
An then we come to issue #2:
Building an rpm should _not_ install anything. When bulding as root, you
won't notice it, but when building the BeOpen-Python-2.0-1.src.rpm as
non-root, without the permissions to install anything to /usr/*, you'll
see:
"""
...
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.92343
+ umask 022
+ cd /home/anderson/rpmdir/BUILD
+ cd expat
+ install -D xmlwf/xmlwf /usr/local/bin/xmlwf
install: cannot create regular file `/usr/local/bin/xmlwf': Permission
denied
Bad exit status from /var/tmp/rpm-tmp.92343 (%install)
"""
Under NO circumstance should rebuilding a source rpm go dropping files
into anywhere outside the build tree and RPM Build Root. Fortunately,
modifying the spec file to do this shouldn't be that difficult. If I get
time to do so, I'll post it if the maintainer hasn't fixed that by then.
--
Bill Anderson Linux Specialist
Modular Network Storage R&D
Random Quote:
Portable: survives system reboot.
More information about the Python-list
mailing list