Mailinglist Archive: opensuse-buildservice (175 mails)

< Previous Next >
Re: [opensuse-buildservice] Installing on Mandriva via OBS repo
  • From: alexander barakin <alex.barakin@xxxxxxxxx>
  • Date: Wed, 19 Oct 2011 11:48:21 +0400
  • Message-id: <>
On Wed, Oct 19, 2011 at 11:33, Rüdiger Meier <sweet_f_a@xxxxxx> wrote:
On Wednesday 19 October 2011, alexander barakin wrote:

i understand that rpm-devel package from sle11 does not contain
/usr/lib/pkgconfig/rpm.pc and therefore command "pkg-config --libs
rpm" failes·
in what package can be this file?
or how else can i get LDFLAGS for rpm in sle11?

jfyi: in opensuse.11.4 and opensuse.factory command "pkg-config
--libs rpm" returns "-lrpm -lrpmio"

Try something like this
if ! pkg-config --libs rpms &>/dev/null ;then
       export rpm_LIBS="-lrpm -lrpmio";

well, will do so·

%configure ...

(in doubt see configure --help whether rpm_LIBS is supported)

or you could ship such rpm.pc with your rpm sources and set
PKG_CONFIG_PATH="." before configure.

wbr, alexander barakin aka sash-kan.
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >