On Sat, 26 Feb 2005, TomWalsh wrote: > Just a note to say that the openvpn.spec file seems to have a problem > building an RPM on a Mandrake system. The build system info: > > Mandrake 10.1 Official PowerPack (stock distro, not upgraded). > RPM version 4.2.2 > > > The problem seems to be with rpmbuild incorrectly identifying / seeing > liblzo-devel, this is the error: > > =============== error =============== > [tom@sparebox openvpn]$ rpmbuild -tb > ../../../dev-rpms/openvpn-2.0_rc16.tar.gz > error: Failed build dependencies: > lzo-devel >= 1.07 is needed by openvpn-2.0_rc16-1 > ================ snip =============== > > > Querying the rpm database for liblzo-devel, it reports: > > =============== rpm -q =============== > [tom@sparebox openvpn-2.0_rc16]$ rpm -q --provides liblzo1-devel > liblzo1-devel = 1.08-4mdk > liblzo-devel = 1.08-4mdk > devel(liblzo) > =============== snip ================
What's the difference between liblzo and liblzo1 ? > From the above query, it does appear that rpmbuild is really stupid and > won't bother reading beyond the first provides line!? :P I would guess that it's not matching because of the "lib" prefix. > This patch corrects the problem on Mandrake 10.1 and still achieves the > same result: > > =============== patch ================ > --- openvpn.spec.orig 2005-02-26 16:26:09.922279800 -0500 > +++ openvpn.spec 2005-02-26 16:20:11.794723464 -0500 > @@ -33,8 +33,13 @@ > BuildRequires: openssl-devel >= 0.9.6 > Requires: openssl >= 0.9.6 > > +%if "%{_vendor}" == "MandrakeSoft" > +%{!?without_lzo:BuildRequires: liblzo1-devel >= 1.07} > +%{!?without_lzo:Requires: liblzo1 >= 1.07} > +%else > %{!?without_lzo:BuildRequires: lzo-devel >= 1.07} > %{!?without_lzo:Requires: lzo >= 1.07} > +%endif > > %{!?without_pam:BuildRequires: pam-devel} > %{!?without_pam:Requires: pam} > ============== snip ================== What if you use this instead for the Mandrake section: %{!?without_lzo:BuildRequires: liblzo-devel >= 1.07} %{!?without_lzo:Requires: liblzo >= 1.07} James