[leafnode-list] leafnode-1.10.0.rc3 available
Bulgrien, Kevin
Kevin.Bulgrien at TriPointGlobal.com
Fri Jun 11 22:02:54 CEST 2004
> I don't know a good solution for that yet. Does it work for
> you to write:
>
> BuildPrereq: libpcre.so.0
>
> Is the Mandrake pcre.h file installed in either of
> /usr/include/pcre or
> /usr/include? (Try: rpm -ql libpcre0-devel)
>
> TIA,
>
> --
> Matthias Andree
Yes, using BuildPrereq as shown above does indeed work on this
system:
$ rpm -qa | grep pcre
libpcre0-4.5-3mdk
Original RPM with BuildPrereq pcre:
$ rpmbuild -tb tmp/leafnode-1.10.0.rel.tar.bz2
error: Failed build dependencies:
pcre is needed by leafnode-1.10.0.rel-1
Modified leafnode.spec as shown above:
$ rpmbuild -tb leafnode-1.10.0.rel.tar.bz2 Executing(%prep):
/bin/sh -e /var/tmp/rpm-tmp.71393
+ umask 022
+ cd /usr/src/RPM/BUILD
+ test -f /usr/include/pcre/pcre.h
+ test -f /usr/include/pcre.h
+ echo 'You MUST install the pcre-devel package before building this RPM.'
You MUST install the pcre-devel package before building this RPM.
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.71393 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.71393 (%prep)
$ sudo rpm -i libpcre0-devel-4.5-3mdk.i586.rpm
$ rpm -qa | grep pcre
libpcre0-4.5-3mdk
libpcre0-devel-4.5-3mdk
Original RPM with BuildPrereq pcre:
$ rpmbuild -tb tmp/leafnode-1.10.0.rel.tar.bz2
error: Failed build dependencies:
pcre is needed by leafnode-1.10.0.rel-1
Modified leafnode.spec as shown above:
$ rpmbuild -tb leafnode-1.10.0.rel.tar.bz2
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.15793
+ umask 022
+ cd /usr/src/RPM/BUILD
+ test -f /usr/include/pcre/pcre.h
+ test -f /usr/include/pcre.h
+ cd /usr/src/RPM/BUILD
+ rm -rf leafnode-1.10.0.rel
+ /usr/bin/bzip2 -dc /home/operator/leafnode-1.10.0.rel.tar.bz2
+ tar -xvvf -
...
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.64301
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd leafnode-1.10.0.rel
+ rm -rf /var/tmp/leafnode-1.10.0.rel-buildroot
+ exit 0
Verifying what I did:
$ cd tmp
$ tar xjf leafnode-1.10.0.rel.tar.bz2
$ cd ..
$ tar xjf leafnode-1.10.0.rel.tar.bz2
$ diff -u tmp/leafnode-1.10.0.rel/leafnode.spec
leafnode-1.10.0.rel/leafnode.spec
--- tmp/leafnode-1.10.0.rel/leafnode.spec 2004-06-10
18:15:16.000000000 -0400
+++ leafnode-1.10.0.rel/leafnode.spec 2004-06-11 15:43:55.000000000
-0400
@@ -13,7 +13,7 @@
# Distribution: ${DISTRIBUTION}
Buildroot: /var/tmp/leafnode-%version-buildroot/
Packager: Matthias Andree <matthias.andree at web.de>
-BuildPrereq: pcre
+BuildPrereq: libpcre.so.0
Requires: xinetd
# WARNING: DO -NOT- REMOVE THE /leafnode COMPONENT FROM confdir!
---
Kevin R. Bulgrien
Mailto:kevin.bulgrien at tripointglobal.com
More information about the leafnode-list
mailing list