On Thu, 16 Feb 2006, Jeff Johnson wrote:
> > We are attempting to build an rpm for an embedded
system that does not
> > require libbz2. No matter how much patching I seem
to do, I still
> > cannot seem to get the rpm binary to build without
requiring libbz2 at
> > runtime. I've quite literally patched *ALL*
references to libbz2, bz2
> > and all possible variants therof out of the
codebase. I'm at a
> > complete loss at this point. I even tried deleting
libbz2 out of
> > /usr/lib (and then ran ldconfig), in an effort to
get the build to
> > give me *SOME* sort of error message, but to no
avail.
>
> Good, you've discovered the
"--without-selinux" ./configure option
Yup, but read on...
> Presumably you mean you want rpm-4.3.3 to build without
bzip2.
Yes.
> Have you tried
> rpm -e bzip2-devel?
> and then building?
Yup, tried that.
> Otherwise edit config.h immediately after configuring
and nuke these
> lines
>
> /* Define to 1 if you have the <bzlib.h> header
file. */
> #define HAVE_BZLIB_H 1
>
> That should drop out bzip2.
Did that, but no joy. Here's what I did:
apt-get source rpm
cd ~/rpmbuild/SPECS
rpmbuild -bp rpm.spec
cd ../BUILD/rpm-4.3.3
./confingure --prefix=/usr --sysconfdir=/etc
--localstatedir=/var \
--infodir='/usr/share/info' --mandir='/usr/share/man'
\
--without-python --enable-posixmutexes --without-javaglue
\
--without-selinux
make -j4
Finally, after the build, I did a:
cd .libs
ldd ./rpm
And here's the bad news:
linux-gate.so.1 => (0xffffe000)
librpm-4.3.so => /usr/lib/librpm-4.3.so
(0x4fd51000)
librpmdb-4.3.so => /usr/lib/librpmdb-4.3.so
(0x4fb34000)
librpmio-4.3.so => /usr/lib/librpmio-4.3.so
(0x4fa53000)
libpopt.so.0 => /usr/lib/libpopt.so.0
(0x4fe10000)
libelf.so.1 => /usr/lib/libelf.so.1 (0x4fa21000)
libbeecrypt.so.6 => /usr/lib/libbeecrypt.so.6
(0x4fa34000)
libm.so.6 => /lib/tls/libm.so.6 (0x4f9e6000)
libdl.so.2 => /lib/libdl.so.2 (0x4fa0b000)
librt.so.1 => /lib/tls/librt.so.1 (0x4101e000)
libpthread.so.0 => /lib/tls/libpthread.so.0
(0x4faea000)
libz.so.1 => /usr/lib/libz.so.1 (0x4fb22000)
libc.so.6 => /lib/tls/libc.so.6 (0x4f8ba000)
--> libselinux.so.1 => /lib/libselinux.so.1
(0x4fa11000)
--> libbz2.so.1 => /usr/lib/libbz2.so.1
(0x4226a000)
Arrrggggghhhhh, what am I doing wrong?
..Chuck..
--
http://www.quantumlinux.c
om
Quantum Linux Laboratories, LLC.
ACCELERATING Business with Open Technology
"The measure of the restoration lies in the extent to
which we apply
social values more noble than mere monetary profit."
- FDR
_______________________________________________
Rpm-devel mailing list
Rpm-devel lists.dulug.duke.edu
https://lists.dulug.duke.edu/mailman/listinfo/rpm-devel
a>
|