[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: rpm-4.0.4 released
- From: Ralf Corsepius <corsepiu faw uni-ulm de>
- To: rpm-list redhat com
- Subject: Re: rpm-4.0.4 released
- Date: 03 May 2002 06:51:12 +0200
Am Don, 2002-05-02 um 21.58 schrieb Pierre Sarrazin:
> Dixit Guy Waugh <guywaugh at hotmail dot com> (2002-04-29 22:44):
> >
> > sarrazip at sympatico dot ca (Pierre Sarrazin)
> > wrote in message news:<20020427220001.A13095@localhost>...
> > > Dixit Dr. Doug L. Hoffman <hoffman at dlhoffman dot com> (2002-03-15 22:37):
> > > >
> > > > Are the rpms for rpm-4.0.4-6x on ftp.rpm.org hosed? They seem way
> > > > too small to be correct.
> > >
> > > Those RPMs (in ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/) are still
> > > too small as of April 27th. Any news about that?
> [...]
> > That's exactly where I'm at, Pierre... rpm segfaults at this very
> > package (kernel-pcmcia-cs-2.2.14-5.0. I had just upgraded to the new
> > kernel before this started happening. If you get an answer to your
> > query directly, please post it to this group...
> [...]
>
> I was able to build binary RPMs from rpm-4.0.4-7x.src.rpm on my
> RedHat 6.2 machine, but only if I changed
>
> %define with_perl_subpackage 1
>
> to this:
>
> %define with_perl_subpackage 0
>
> near the top of the rpm.spec file.
This probably is the same bug in rpm.spec I recently encountered when
building rpm-4.0.4-cvs on an rpm3-based system.
The perl-stuff's configuration in rpm-4.0.4 picks up the rpmlib headers
of the installed rpm3, instead of those of the rpm4, which has just been
built.
My work-around was to let perl search for the rpm-binary inside of the
build directory first (prepend '..' to $PATH before running perl
Makefile.PL, cf. to the patch enclosed)
Ralf
Index: rpm.spec.in
===================================================================
RCS file: /cvs/devel/rpm/rpm.spec.in,v
retrieving revision 1.1.2.224
diff -u -r1.1.2.224 rpm.spec.in
--- rpm.spec.in 26 Apr 2002 19:44:51 -0000 1.1.2.224
+++ rpm.spec.in 29 Apr 2002 15:55:23 -0000
@@ -170,7 +183,8 @@
%if %{with_perl_subpackage}
{ cd Perl-RPM
- CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
+ # Set path to make sure to get the currently building rpm
+ PATH="..:$PATH" CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
export SUBDIR="%{_builddir}/%{buildsubdir}"
make INC="-I. -I$SUBDIR/lib -I$SUBDIR/rpmdb -I$SUBDIR/rpmio -I$SUBDIR/popt" \
LDDLFLAGS="-shared -L$SUBDIR/lib/.libs -L$SUBDIR/rpmdb/.libs -L$SUBDIR/rpmio/.libs -L$SUBDIR/popt/.libs" %{?_smp_mflags}
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]