RPM build of 2.0-rc16 fails on MandrakeSoft
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 ===============
[[email protected]... 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 ===============
[[email protected]... openvpn-2.0_rc16]$ rpm -q --provides liblzo1-devel liblzo1-devel = 1.08-4mdk
liblzo-devel = 1.08-4mdk
devel(liblzo)
=============== snip ================
From the above query, it does appear that rpmbuild is really stupid and won't bother reading beyond the first provides line!? :P
This patch corrects the problem on Mandrake 10.1 and still achieves the same result:
=============== patch ================
openvpn.spec 2005-02-26 16:20:11.794723464 -0500 renamed from openvpn.spec.orig 2005-02-26 16:26:09.922279800 -0500 +0 -0
@@ -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 ==================
Signature · 4 lines
Tom Walsh - WN3L - Embedded Systems Consultant email at http://openhardware.net?file=emailcomment.php any ReplyTo direct email will disappear (blackhole). ----------------------------------------------------
Quoted 18 lines · TomWalsh
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 ===============
[[email protected]... 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 ===============
Quoted 8 lines
Querying the rpm database for liblzo-devel, it reports:
=============== rpm -q ===============
[[email protected]... 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 ?
Quoted 2 lines
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.
Quoted 18 lines
This patch corrects the problem on Mandrake 10.1 and still achieves the same result:
=============== patch ================
openvpn.spec 2005-02-26 16:20:11.794723464 -0500 renamed from openvpn.spec.orig 2005-02-26 16:26:09.922279800 -0500 +0
-0@@ -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
Quoted 3 lines
%{!?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
Quoted 7 lines · James Yonan
What if you use this instead for the Mandrake section:
%{!?without_lzo:BuildRequires: liblzo-devel >= 1.07}
%{!?without_lzo:Requires: liblzo >= 1.07}James
Still fails.
Signature · 4 lines
Tom Walsh - WN3L - Embedded Systems Consultant email at http://openhardware.net?file=emailcomment.php any ReplyTo direct email will disappear (blackhole). ----------------------------------------------------
Quoted 5 lines · TomWalsh
Quoted 3 lines · James Yonan
What if you use this instead for the Mandrake section:
Quoted 10 lines
Quoted 4 lines
%{!?without_lzo:BuildRequires: liblzo-devel >= 1.07}
%{!?without_lzo:Requires: liblzo >= 1.07}James
Still fails.
Err, I got something mixed up here. It did work that time using the "liblzo" instead of "liblzo1". I had thought that I tried that, but when I did it again it worked.
I've build RPM spec files before, but nothing that actually compiled the target code and produced the RPM. So, I'm a little over my head here. Wouldn't something like this work? It would only require a single mention of the revision level:
================= begin =================
%if "%{_vendor}" == "MandrakeSoft"
#define _LIBLZO liblzo
%else
#define _LIBLZO lzo
%endif
%{!?without_lzo:BuildRequires: %{_LIBLZO}-devel >= 1.07}
%{!?without_lzo:Requires: %{_LIBLZO} >= 1.07}
=================== snip ================
I doesn't though, I think it is a nesting problem with the braces for this statement?
TomW
Signature · 4 lines
Tom Walsh - WN3L - Embedded Systems Consultant email at http://openhardware.net?file=emailcomment.php any ReplyTo direct email will disappear (blackhole). ----------------------------------------------------
Quoted 12 lines · TomWalsh
Quoted 7 lines · James Yonan
What if you use this instead for the Mandrake section:
%{!?without_lzo:BuildRequires: liblzo-devel >= 1.07}
%{!?without_lzo:Requires: liblzo >= 1.07}James
Hmm, although the build of the RPM will succeed, the package won't install. Doing a mere "urpmi openvpn" results in:
================== error ==================== [[email protected]... root]# urpmi openvpn
Some package requested cannot be installed:
openvpn-2.0_rc16-3.i586 (due to unsatisfied liblzo[>= 1.07]) Continue? (Y/n)
==================== snip ===================
Ok, I see the problem, the MandrakeSoft "liblzo1-devel" rpm claims that it would provide "liblzo" while the "liblzo1" rpm only claims provision of "liblzo1". Apparently something is getting confused, in the rpmbuild, as to what is what?
rpmbuild must be scanning provide lists and finds mention of liblzo and later when urpmi attempts to install a liblzo package, it cannot find one. This is true, liblzo1 is the correct package but lacks the liblzo provision:
=================== liblzo1 vs. liblzo1-devel =================== [[email protected]... openvpn]# rpm -q --provides liblzo1-devel-1.08-4mdk liblzo1-devel = 1.08-4mdk
liblzo-devel = 1.08-4mdk
devel(liblzo)
[[email protected]... root]# rpm -q --provides liblzo1-1.08-4mdk liblzo.so.1
liblzo1 = 1.08-4mdk
========================= snip ==================================
I will let the package maintainer of liblzo1 of the problem of it not saying it provides "liblzo" while the liblzo1-devel does say that.
The correct statement which works around the Mandrake 10.1 problem would be:
============================ fix =============================== %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
============================ snip ==============================
Either way, there would still be an issue with Mandrake as I see that the lzo package of SuSE 9.1 provides "lzo" not "liblzo".
Thanks,
TomW
Signature · 4 lines
Tom Walsh - WN3L - Embedded Systems Consultant email at http://openhardware.net?file=emailcomment.php any ReplyTo direct email will disappear (blackhole). ----------------------------------------------------
Quoted 10 lines · TomWalsh
Hmm, although the build of the RPM will succeed, the package won't install. Doing a mere "urpmi openvpn" results in:
================== error ==================== [[email protected]... root]# urpmi openvpn
Some package requested cannot be installed:
openvpn-2.0_rc16-3.i586 (due to unsatisfied liblzo[>= 1.07])Either way, there would still be an issue with Mandrake as I see that the lzo package of SuSE 9.1 provides "lzo" not "liblzo".
Just make the dependency libzo.so.1 and be done with distro-specific differences whether it is liblzo, lzo, lzo1, liblzo1, my_grandma_ate_all_her_chickens or whatever.
Signature · 1 line
Matthias Andree
Quoted 11 lines · Matthias Andree
Quoted 6 lines · TomWalsh
Hmm, although the build of the RPM will succeed, the package won't install. Doing a mere "urpmi openvpn" results in:
================== error ==================== [[email protected]... root]# urpmi openvpn
Some package requested cannot be installed:
openvpn-2.0_rc16-3.i586 (due to unsatisfied liblzo[>= 1.07])
Quoted 7 lines
Quoted 1 line
Either way, there would still be an issue with Mandrake as I see that the lzo package of SuSE 9.1 provides "lzo" not "liblzo".
Just make the dependency libzo.so.1 and be done with distro-specific differences whether it is liblzo, lzo, lzo1, liblzo1,
my_grandma_ate_all_her_chickensor whatever.
Unfortunately, you would lose the versioning check. Something like this still compiles:
%{!?without_lzo:Requires: liblzo.so.1 >= 9.99}
I think you still need to do the conditional for the provided name.
Signature · 4 lines
Tom Walsh - WN3L - Embedded Systems Consultant email at http://openhardware.net?file=emailcomment.php any ReplyTo direct email will disappear (blackhole). ----------------------------------------------------
Quoted 15 lines
I will let the package maintainer of liblzo1 of the problem of it not saying it provides "liblzo" while the liblzo1-devel does say that.
The correct statement which works around the Mandrake 10.1 problem would be:
============================ fix =============================== %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
============================ snip ==============================
Quoted 2 lines
Either way, there would still be an issue with Mandrake as I see that the lzo package of SuSE 9.1 provides "lzo" not "liblzo".
The problem I have with this patch is that it assumes that Mandrake will continue to follow the broken behavior. The ideal solution would be one which doesn't break when Mandrake gets around to using the same standard LZO RPM spec which everyone else is using.
James
Quoted 4 lines · James Yonan
The problem I have with this patch is that it assumes that Mandrake will continue to follow the broken behavior. The ideal solution would be one which doesn't break when Mandrake gets around to using the same standard LZO RPM spec which everyone else is using.
Are names/provides/whatever standardized in any way? (LSB perhaps)?
Signature · 1 line
Matthias Andree
Quoted 14 lines · James Yonan
Quoted 14 lines
I will let the package maintainer of liblzo1 of the problem of it not saying it provides "liblzo" while the liblzo1-devel does say that.
The correct statement which works around the Mandrake 10.1 problem would be:
============================ fix =============================== %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
============================ snip ==============================
Quoted 8 lines
Quoted 1 line
Either way, there would still be an issue with Mandrake as I see that the lzo package of SuSE 9.1 provides "lzo" not "liblzo".
The problem I have with this patch is that it assumes that Mandrake will continue to follow the broken behavior. The ideal solution would be one which doesn't break when Mandrake gets around to using the same standard LZO RPM spec which everyone else is using.
Yeah, probably the best solution. However, I see that they have been calling it liblzo1 since their 8.1 distro, and, technically, it is a library?
The package maintainer has added the missing provide for "liblzo", this is now in liblzo1-devel-1.08-5mdk.i586.rpm and the liblzo1-1.08-5mdk.i586.rpm. That would at least clear up some confusion between liblzo1 vs. liblzo
TomW
Signature · 4 lines
Tom Walsh - WN3L - Embedded Systems Consultant email at http://openhardware.net?file=emailcomment.php any ReplyTo direct email will disappear (blackhole). ----------------------------------------------------
Quoted 26 lines · TomWalsh
Quoted 15 lines · James Yonan
Quoted 15 lines
I will let the package maintainer of liblzo1 of the problem of it not saying it provides "liblzo" while the liblzo1-devel does say that.
The correct statement which works around the Mandrake 10.1 problem would be:
============================ fix =============================== %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
============================ snip ==============================Quoted 9 lines
Quoted 2 lines
Either way, there would still be an issue with Mandrake as I see that the lzo package of SuSE 9.1 provides "lzo" not "liblzo".
The problem I have with this patch is that it assumes that Mandrake will continue to follow the broken behavior. The ideal solution would be one which doesn't break when Mandrake gets around to using the same standard LZO RPM spec which everyone else is using.
Quoted 3 lines
Yeah, probably the best solution. However, I see that they have been calling it liblzo1 since their 8.1 distro, and, technically, it is a library?
True, but SuSE and RH/Fedora both use "lzo" and "lzo-devel" as the provider names. That seems reasonable, as prepending a "lib" to the provider names for all libraries would render most RPM .spec files incompatible.
Any guidance from LSB?
James
As long as we are on the subject of "Requires" in the openvpn.spec file, shouldn't there also be a:
Requires: bridge-utils >= 0.9.7
?
I know that this is not part of a default installation under Mandrake.
TomW
Signature · 4 lines
Tom Walsh - WN3L - Embedded Systems Consultant email at http://openhardware.net?file=emailcomment.php any ReplyTo direct email will disappear (blackhole). ----------------------------------------------------
Quoted 4 lines · TomWalsh
As long as we are on the subject of "Requires" in the openvpn.spec file, shouldn't there also be a:
Requires: bridge-utils >= 0.9.7
Is 0.9.7 the minimum required version? SuSE 9.1 (hence, the current SuSE Linux Enterprise Server, too) for instance ships 0.9.6.
Signature · 1 line
Matthias Andree
Quoted 4 lines · TomWalsh
As long as we are on the subject of "Requires" in the openvpn.spec file, shouldn't there also be a:
Requires: bridge-utils >= 0.9.7
Why is this required? What if you are not bridging?
James
Quoted 26 lines · TomWalsh
Quoted 15 lines · James Yonan
Quoted 15 lines
I will let the package maintainer of liblzo1 of the problem of it not saying it provides "liblzo" while the liblzo1-devel does say that.
The correct statement which works around the Mandrake 10.1 problem would be:
============================ fix =============================== %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
============================ snip ==============================Quoted 9 lines
Quoted 2 lines
Either way, there would still be an issue with Mandrake as I see that the lzo package of SuSE 9.1 provides "lzo" not "liblzo".
The problem I have with this patch is that it assumes that Mandrake will continue to follow the broken behavior. The ideal solution would be one which doesn't break when Mandrake gets around to using the same standard LZO RPM spec which everyone else is using.
Quoted 8 lines
Yeah, probably the best solution. However, I see that they have been calling it liblzo1 since their 8.1 distro, and, technically, it is a library?
The package maintainer has added the missing provide for "liblzo", this is now in liblzo1-devel-1.08-5mdk.i586.rpm and the liblzo1-1.08-5mdk.i586.rpm. That would at least clear up some confusion between liblzo1 vs. liblzo
Where are we on this?
Should we work around this in the openvpn.spec file, or just leave as-is for 2.0, and wait for the lzo spec to be fixed?
James
Quoted 30 lines · James Yonan
Quoted 27 lines · TomWalsh
Quoted 14 lines · James Yonan
Quoted 14 lines
I will let the package maintainer of liblzo1 of the problem of it not saying it provides "liblzo" while the liblzo1-devel does say that.
The correct statement which works around the Mandrake 10.1 problem would be:
============================ fix =============================== %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
============================ snip ==============================Quoted 8 lines
Quoted 1 line
Either way, there would still be an issue with Mandrake as I see that the lzo package of SuSE 9.1 provides "lzo" not "liblzo".
The problem I have with this patch is that it assumes that Mandrake will continue to follow the broken behavior. The ideal solution would be one which doesn't break when Mandrake gets around to using the same standard LZO RPM spec which everyone else is using.
Yeah, probably the best solution. However, I see that they have been calling it liblzo1 since their 8.1 distro, and, technically, it is a library?
Quoted 8 lines
Quoted 1 line
The package maintainer has added the missing provide for "liblzo", this is now in liblzo1-devel-1.08-5mdk.i586.rpm and the liblzo1-1.08-5mdk.i586.rpm. That would at least clear up some confusion between liblzo1 vs. liblzo
Where are we on this?
Should we work around this in the openvpn.spec file, or just leave as-is for 2.0, and wait for the lzo spec to be fixed?
You're not going to see that, at least I doubt it. I'll contact the maintainer for his views on the subject and perhaps some insight as to where Mandrake is going with naming (LSB and all).
TomW
Signature · 4 lines
Tom Walsh - WN3L - Embedded Systems Consultant email at http://openhardware.net?file=emailcomment.php any ReplyTo direct email will disappear (blackhole). ----------------------------------------------------
Quoted 12 lines · James Yonan
Quoted 3 lines · TomWalsh
As long as we are on the subject of "Requires" in the openvpn.spec file, shouldn't there also be a:
Requires: bridge-utils >= 0.9.7
Why is this required? What if you are not bridging?
James
Ok, my view on an RPM is that the package is there to provide some level of convenience to the end-installer. All aspects of the package are incorporated into the RPM: config, init.d scripts, binaries, additional packages, etc. The bridge utils only comprise 60K of drivespace.
When I first installed the openvpn package, it took me some research to learn that I needed the bridge-utils to create a tap / tun device. The first installation of openvpn was from a source package, so I expected to have to do some detail work. I've built a lot from source and have learned the value of "README".
Why would an RPM end-user have to do that work to determine that they need an additional package to make their VPN work in a bridge setup? I'd say that if you want "lean + mean", build from source, if you want a dead simple installation then use an RPM. Therefore, include the Requires for the bridge-utils.
Learning the concepts to setup a bridged network is confusing enough without running into problems ensuring that you have the additional software installed to setup a simple bridge device?
If the additional space is that much more valuable, then you would be building from source anyway.
Regards,
TomW
Signature · 4 lines
Tom Walsh - WN3L - Embedded Systems Consultant email at http://openhardware.net?file=emailcomment.php any ReplyTo direct email will disappear (blackhole). ----------------------------------------------------
Quoted 32 lines · James Yonan
Quoted 19 lines · TomWalsh
Quoted 17 lines · James Yonan
Quoted 15 lines
I will let the package maintainer of liblzo1 of the problem of it not saying it provides "liblzo" while the liblzo1-devel does say that.
The correct statement which works around the Mandrake 10.1 problem would be:
============================ fix =============================== %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
============================ snip ==============================Either way, there would still be an issue with Mandrake as I see that the lzo package of SuSE 9.1 provides "lzo" not "liblzo".
Quoted 7 lines
Quoted 5 lines
The problem I have with this patch is that it assumes that Mandrake will continue to follow the broken behavior. The ideal solution would be one which doesn't break when Mandrake gets around to using the same standard LZO RPM spec which everyone else is using.
Yeah, probably the best solution. However, I see that they have been calling it liblzo1 since their 8.1 distro, and, technically, it is a library?
Quoted 7 lines
True, but SuSE and RH/Fedora both use "lzo" and "lzo-devel" as the provider names. That seems reasonable, as prepending a "lib" to the provider names for all libraries would render most RPM .spec files incompatible.
Any guidance from LSB?
No, LSB seems to deal with more basic issues of the O/S. What you could consider the "primatives" of a GNU/Linux systems contents. Nothing as far reaching as naming conventions for packages other than the minimum requisite packages to start & run a basic Linux system, RPM construction, etc.
Signature · 4 lines
Tom Walsh - WN3L - Embedded Systems Consultant email at http://openhardware.net?file=emailcomment.php any ReplyTo direct email will disappear (blackhole). ----------------------------------------------------
Quoted 12 lines · TomWalsh
Quoted 11 lines · James Yonan
Quoted 4 lines · TomWalsh
As long as we are on the subject of "Requires" in the openvpn.spec file, shouldn't there also be a:
Requires: bridge-utils >= 0.9.7
Why is this required? What if you are not bridging?
Quoted 7 lines
Quoted 2 lines
James
Ok, my view on an RPM is that the package is there to provide some level of convenience to the end-installer. All aspects of the package are incorporated into the RPM: config, init.d scripts, binaries, additional packages, etc. The bridge utils only comprise 60K of drivespace.
In my mind, it's not so much an issue of drivespace (though 60K matters in a tight embeddded environment). Rather, it's the principle that an installer should not assert a mandatory dependency for optional components. This component is optional -- it is only needed for ethernet bridging. To require it would force people to track down an RPM that they might not need.
You are also, to a certain extent, contaminating the dependency graph of the RPM database by adding "Requires" for optional components. RPM will think that openvpn cannot be installed unless bridge-utils is present. If bridge-utils has any "Requires" then they would now be required as well. If you take this to the extreme, i.e. if every RPM spec file lists as "Requires" all optional components, you break down the ability of the global dependency graph to communicate useful information about the minimal component tree required to install a given package.
For example, until recently, the OpenVPN RPM install was requiring perl as a mandatory dependency. This requirement was being auto-generated by rpmbuild because it noticed the inclusion of the auth-pam.pl script. Of course this is silly because most people are not going to use this script -- it is provided mostly as a code sample. People running OpenVPN in a tight embedded environment were rightly annoyed by this gratuitous dependency (it has since been removed by disabling the auto-generation of dependencies).
I think the important philosophical point here is that OpenVPN tries to be lightweight. While lightweight refers to code size, it also refers to the complexity of the dependency tree. I would rather address the need for optional components in the docs, than making the dependency tree larger than it needs to be.
James
Quoted 41 lines · TomWalsh
Quoted 40 lines · James Yonan
Quoted 35 lines · TomWalsh
Quoted 15 lines · James Yonan
Quoted 15 lines
I will let the package maintainer of liblzo1 of the problem of it not saying it provides "liblzo" while the liblzo1-devel does say that.
The correct statement which works around the Mandrake 10.1 problem would be:
============================ fix =============================== %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
============================ snip ==============================Quoted 9 lines
Quoted 2 lines
Either way, there would still be an issue with Mandrake as I see that the lzo package of SuSE 9.1 provides "lzo" not "liblzo".
The problem I have with this patch is that it assumes that Mandrake will continue to follow the broken behavior. The ideal solution would be one which doesn't break when Mandrake gets around to using the same standard LZO RPM spec which everyone else is using.
Yeah, probably the best solution. However, I see that they have been calling it liblzo1 since their 8.1 distro, and, technically, it is a library?
The package maintainer has added the missing provide for "liblzo", this is now in liblzo1-devel-1.08-5mdk.i586.rpm and the liblzo1-1.08-5mdk.i586.rpm. That would at least clear up some confusion between liblzo1 vs. liblzo
Quoted 8 lines
Quoted 5 lines
Where are we on this?
Should we work around this in the openvpn.spec file, or just leave as-is for 2.0, and wait for the lzo spec to be fixed?
You're not going to see that, at least I doubt it. I'll contact the maintainer for his views on the subject and perhaps some insight as to where Mandrake is going with naming (LSB and all).
Okay, though I'll need your best try at a workaround patch for openvpn.spec very soon to have any chance of making it into 2.0 final.
James
Quoted 46 lines · James Yonan
Quoted 43 lines · TomWalsh
Quoted 40 lines · James Yonan
Quoted 26 lines · TomWalsh
Quoted 14 lines · James Yonan
Quoted 14 lines
I will let the package maintainer of liblzo1 of the problem of it not saying it provides "liblzo" while the liblzo1-devel does say that.
The correct statement which works around the Mandrake 10.1 problem would be:
============================ fix =============================== %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
============================ snip ==============================Quoted 8 lines
Quoted 1 line
Either way, there would still be an issue with Mandrake as I see that the lzo package of SuSE 9.1 provides "lzo" not "liblzo".
The problem I have with this patch is that it assumes that Mandrake will continue to follow the broken behavior. The ideal solution would be one which doesn't break when Mandrake gets around to using the same standard LZO RPM spec which everyone else is using.
Quoted 3 lines
Yeah, probably the best solution. However, I see that they have been calling it liblzo1 since their 8.1 distro, and, technically, it is a library?
The package maintainer has added the missing provide for "liblzo", this is now in liblzo1-devel-1.08-5mdk.i586.rpm and the liblzo1-1.08-5mdk.i586.rpm. That would at least clear up some confusion between liblzo1 vs. liblzo
Where are we on this?
Should we work around this in the openvpn.spec file, or just leave as-is for 2.0, and wait for the lzo spec to be fixed?
Quoted 9 lines
Quoted 1 line
You're not going to see that, at least I doubt it. I'll contact the maintainer for his views on the subject and perhaps some insight as to where Mandrake is going with naming (LSB and all).
Okay, though I'll need your best try at a workaround patch for openvpn.spec very soon to have any chance of making it into 2.0 final.
James
Give me a date or 24hours warning. I'm still awaiting a response from the MandrakeSoft package maintainer. If he doesn't answer by the time you need to freeze, I'll give you what I've got.
TomW
Signature · 4 lines
Tom Walsh - WN3L - Embedded Systems Consultant email at http://openhardware.net?file=emailcomment.php any ReplyTo direct email will disappear (blackhole). ----------------------------------------------------
Quoted 62 lines · TomWalsh
Quoted 61 lines · James Yonan
Quoted 46 lines · TomWalsh
Quoted 44 lines · James Yonan
Quoted 28 lines · TomWalsh
Quoted 15 lines · James Yonan
Quoted 15 lines
I will let the package maintainer of liblzo1 of the problem of it not saying it provides "liblzo" while the liblzo1-devel does say that.
The correct statement which works around the Mandrake 10.1 problem would be:
============================ fix =============================== %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
============================ snip ==============================Quoted 9 lines
Quoted 2 lines
Either way, there would still be an issue with Mandrake as I see that the lzo package of SuSE 9.1 provides "lzo" not "liblzo".
The problem I have with this patch is that it assumes that Mandrake will continue to follow the broken behavior. The ideal solution would be one which doesn't break when Mandrake gets around to using the same standard LZO RPM spec which everyone else is using.
Quoted 8 lines
Yeah, probably the best solution. However, I see that they have been calling it liblzo1 since their 8.1 distro, and, technically, it is a library?
The package maintainer has added the missing provide for "liblzo", this is now in liblzo1-devel-1.08-5mdk.i586.rpm and the liblzo1-1.08-5mdk.i586.rpm. That would at least clear up some confusion between liblzo1 vs. liblzo
Where are we on this?
Quoted 7 lines
Quoted 3 lines
Should we work around this in the openvpn.spec file, or just leave as-is for 2.0, and wait for the lzo spec to be fixed?
You're not going to see that, at least I doubt it. I'll contact the maintainer for his views on the subject and perhaps some insight as to where Mandrake is going with naming (LSB and all).
Okay, though I'll need your best try at a workaround patch for openvpn.spec very soon to have any chance of making it into 2.0 final.
Quoted 6 lines
Quoted 3 lines
James
Give me a date or 24hours warning. I'm still awaiting a response from the MandrakeSoft package maintainer. If he doesn't answer by the time you need to freeze, I'll give you what I've got.
I'd like to put out rc17 on Sunday, so if you can get me what you have by 3/13 @ 6pm GMT, that would be perfect.
2.0 final is very close -- probably the end of this month or early April, and it may very well be rc17 which gets promoted.
James
Quoted 5 lines · TomWalsh
Quoted 5 lines
True, but SuSE and RH/Fedora both use "lzo" and "lzo-devel" as the provider names. That seems reasonable, as prepending a "lib" to the provider names for all libraries would render most RPM .spec files incompatible.
Quoted 7 lines
Quoted 2 lines
Any guidance from LSB?
No, LSB seems to deal with more basic issues of the O/S. What you could consider the "primatives" of a GNU/Linux systems contents. Nothing as far reaching as naming conventions for packages other than the minimum requisite packages to start & run a basic Linux system, RPM construction, etc.
RPM appears to, at least on Red Hat and Novell/SUSE derived machines, support the libraries' ELF SONAME, too, which is what my former suggestion has been about, and AFAICS, the soname is the same on all machines, namely liblzo.so.1 (use readelf -d to figure).
Signature · 1 line
Matthias Andree
Quoted 15 lines · Matthias Andree
Quoted 5 lines · TomWalsh
Quoted 5 lines
True, but SuSE and RH/Fedora both use "lzo" and "lzo-devel" as the provider names. That seems reasonable, as prepending a "lib" to the provider names for all libraries would render most RPM .spec files incompatible.
Quoted 7 lines
Quoted 2 lines
Any guidance from LSB?
No, LSB seems to deal with more basic issues of the O/S. What you could consider the "primatives" of a GNU/Linux systems contents. Nothing as far reaching as naming conventions for packages other than the minimum requisite packages to start & run a basic Linux system, RPM construction, etc.
Quoted 4 lines
RPM appears to, at least on Red Hat and Novell/SUSE derived machines, support the libraries' ELF SONAME, too, which is what my former suggestion has been about, and AFAICS, the soname is the same on all machines, namely liblzo.so.1 (use readelf -d to figure).
Shorter term, because 2.0 final is so close, I don't want to change anything in the .spec except for stuff which is bracketed by %if "%{_vendor}" == "MandrakeSoft".
James
Quoted 7 lines · Matthias Andree
RPM appears to, at least on Red Hat and Novell/SUSE derived machines, support the libraries' ELF SONAME, too, which is what my former suggestion has been about, and AFAICS, the soname is the same on all machines, namely liblzo.so.1 (use readelf -d to figure).
Wouldn't we still be into a conditional situation of resolving which liblzo / lzo to call out for based on vendor name? I'm not sure how the readelf works...
If we keep the conditional patch for MandrakeSoft vs. all others, you would then cover the Mandrake distros from 8.1 through 10.1. Not a clean solution, but looping back on past mistakes (Mandrakes) never are...
We are spending too much time on this subject? Here is the patch that satisfies the MandrakeSoft mess up:
=============== patch ================
openvpn.spec 2005-02-26 16:20:11.794723464 -0500 renamed from openvpn.spec.orig 2005-02-26 16:26:09.922279800 -0500 +0 -0
@@ -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 ==================
============== Changlog ==============
2005.03.11 -- Version 2.0-rc17
* MandrakeSoft liblzo1 RPM only Provides for a 'liblzo1'. A conditional test of the vendor has been added to Require the appropriately named 'lzo' (liblzo1 / lzo). (Tom Walsh - http://openhardware.net)
================ snip =================
Signature · 4 lines
Tom Walsh - WN3L - Embedded Systems Consultant email at http://openhardware.net?file=emailcomment.php any ReplyTo direct email will disappear (blackhole). ----------------------------------------------------
fredag 11 mars 2005 17:47 skrev James Yonan:
Quoted 15 lines · Matthias Andree
Quoted 14 lines · TomWalsh
Quoted 12 lines
Quoted 6 lines
True, but SuSE and RH/Fedora both use "lzo" and "lzo-devel" as the provider names. That seems reasonable, as prepending a "lib" to the provider names for all libraries would render most RPM .spec files incompatible.
Any guidance from LSB?
No, LSB seems to deal with more basic issues of the O/S. What you could consider the "primatives" of a GNU/Linux systems contents. Nothing as far reaching as naming conventions for packages other than the minimum requisite packages to start & run a basic Linux system, RPM construction, etc.
Quoted 9 lines
Quoted 4 lines
RPM appears to, at least on Red Hat and Novell/SUSE derived machines, support the libraries' ELF SONAME, too, which is what my former suggestion has been about, and AFAICS, the soname is the same on all machines, namely liblzo.so.1 (use readelf -d to figure).
Shorter term, because 2.0 final is so close, I don't want to change anything in the .spec except for stuff which is bracketed by %if "%{_vendor}" == "MandrakeSoft".
Well.. Mandrake is breaking it anyway... (sic!) In 10.2 beta they changed MandrakeSoft to Mandrakesoft... :), so openvpn is not building fine in cooker. First rpm -ta doesn't find "Specfile", which rpm in 10.2 apparently wants, so I have to extract in manually, and then it fails because vendor is not Mandrakesoft.
I bug reported the lzo-inconsistency a long time ago (they have other libraries that have "compatibility provides", so having one for liblzo would be too miuch, but so far nothing has changed to the better.
-- robin