[Apt-Rpm] apt-0.5.15lorg3.94 build fails on RH7 and RHEL2.1
Dag Wieers
dag at wieers.com
Wed Jun 11 12:56:12 PDT 2008
Hi,
Building newer apt packages for RPMforge (for testing purposes) and I
noticed that apt-0.5.15lorg3.94 fails to build for RH7 and RHEL2.1.
The main reason is that it fails to find rpmlib.h or rpm.pc on the dated
rpm-4.0.4-7x release and bails out. The easiest solution would be to patch
configure, but I would prefer if there was an option to configure in the
future to have it work.
On RHEL2.1:
checking pkg-config is at least version 0.9.0... yes
checking for RPM... yes
Package rpm was not found in the pkg-config search path.
Perhaps you should add the directory containing `rpm.pc'
to the PKG_CONFIG_PATH environment variable
No package 'rpm' found
checking for RPM version... configure: error: can't parse RPM version
error: Bad exit status from /dar/tmp/rpm-tmp.97583 (%build)
On RH7:
checking pkg-config is at least version 0.9.0... yes
checking for RPM... Package rpm was not found in the pkg-config search
path.
Perhaps you should add the directory containing `rpm.pc'
to the PKG_CONFIG_PATH environment variable
No package 'rpm' found
no
checking for rpm... /bin/rpm
checking for RPM version... 4.0.4
checking db1/db.h usability... yes
checking db1/db.h presence... yes
checking for db1/db.h... yes
checking for rpmdbOpen in -lrpmdb... yes
checking for RPM libraries... -lrpm -lrpmdb -lrpmio -lz -lbz2 -lpopt
checking rpm/rpmlib.h usability... no
checking rpm/rpmlib.h presence... no
checking for rpm/rpmlib.h... no
configure: error: Can't find rpmlib.h
error: Bad exit status from /dar/tmp/rpm-tmp.24965 (%build)
And for apt-0.5.15lorg3.2 I already have to provide some environment
variables to make configure happy on RHEL2.1:
export PKG_CONFIG="/bin/true"
export LIBXML2_CFLAGS="$(xml2-config --cflags)"
export LIBXML2_LIBS="$(xml2-config --libs)"
Especially the PKG_CONFIG should be unneeded to make the LIBXML
environment variables work.
--
-- dag wieers, dag at wieers.com, http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]
More information about the Apt-Rpm
mailing list