Google Groups unterstützt keine neuen Usenet-Beiträge oder ‑Abos mehr. Bisherige Inhalte sind weiterhin sichtbar.

distutils / RedHat8 with rpm 4.1

1 Aufruf
Direkt zur ersten ungelesenen Nachricht

Achim Domma

ungelesen,
02.02.2003, 07:20:1202.02.03
an
Hi,

I tried to build a rpm with binary extension modules, using distutils on
RedHat8. It fails when it calls 'rpm -ba ...' and complains about unknown
options. I'm quite new to linux and have never build an rpm before, the
version of rpm is 4.1. Are there any known issues with distutils on RedHat8
with rpm 4.1?

regards,
Achim


Jeff Epler

ungelesen,
02.02.2003, 15:36:3102.02.03
an
"rpm -b..." and a few related options (rpm --rebuild) must now be called
through a separate "rpmbuild" program

I recall from a discussion that "rpmbuild" has existed for several releases
(at least the 7.x versions) so it may be mostly safe by now to use in
distutils. (any rpm 4.x version)

adding lines like these to your "rpmpopt" file might make the old "rpm
-b..." commands work (taken from a 7.2 machine) :
# Popt glue to preserve legacy CLI behavior.
#
# XXX popt exec parsing doesn't honor POPT_ARGFLAG_ONEDASH
rpm exec --bp rpmb -bp
rpm exec --bc rpmb -bc
rpm exec --bi rpmb -bi
rpm exec --bl rpmb -bl
rpm exec --ba rpmb -ba
rpm exec --bb rpmb -bb
rpm exec --bs rpmb -bs
rpm exec --tp rpmb -tp
rpm exec --tc rpmb -tc
rpm exec --ti rpmb -ti
rpm exec --tl rpmb -tl
rpm exec --ta rpmb -ta
rpm exec --tb rpmb -tb
rpm exec --ts rpmb -ts
rpm exec --rebuild rpmb --rebuild
rpm exec --recompile rpmb --recompile
rpm exec --clean rpmb --clean
rpm exec --rmsource rpmb --rmsource
rpm exec --rmspec rpmb --rmspec
rpm exec --target rpmb --target
rpm exec --short-circuit rpmb --short-circuit

rpm exec --initdb rpmd --initdb
rpm exec --rebuilddb rpmd --rebuilddb
rpm exec --verifydb rpmd --verifydb

#rpm exec -e rpme -e
#rpm exec --erase rpme --erase
#rpm exec -U rpmu -U
#rpm exec --upgrade rpmu --upgrade

rpm exec --addsign rpmk --addsign
rpm exec -K rpmk -K
rpm exec --checksig rpmk --checksig
rpm exec --resign rpmk --resign

rpm exec -q rpmq -q
rpm exec --query rpmq --query
rpm exec --querytags rpmq --querytags
rpm exec -V rpmv -V
rpm exec -y rpmv -y
rpm exec --verify rpmv --verify

rpm alias --with --define "_with_!#:+ --with-!#:+" \
--POPTdesc=$"enable configure <option> for build" \
--POPTargs=$"<option>"
rpm alias --without --define "_without_!#:+ --without-!#:+"
\
--POPTdesc=$"disable configure <option> for build" \
--POPTargs=$"<option>"

0 neue Nachrichten