libssl.a missing from libopenssl-devel

hi
I really feel like an idiot by asking that but where can I find libssl.a in opensuse-12.1 ?
I looked into the obvious package libopenssl-devel-1.0.0e-34.1.2.i586.rpm (which is I believe the latest) and there is no libssl.a in there. I also tried my luck in the non devel package.

What puzzles me more is that even if I fork the latest openssl package, rebuild it, I notice that the libssl.a gets generate in the build-root but not included in the final rpms’ .

honestly, if someone can point me to some reference on that matter I’d be happy and thankful.

Best,
seb

Hi
As a rule, static libs are deleted…


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.31-0.9-default
up 1:22, 4 users, load average: 0.61, 0.65, 0.68
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

On 2012-06-25 17:57, malcolmlewis wrote:
> As a rule, static libs are deleted…

Sure? I thought they were left on the devel package.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Am 25.06.2012 23:48, schrieb Carlos E. R.:
> On 2012-06-25 17:57, malcolmlewis wrote:
>> As a rule, static libs are deleted…
>
> Sure? I thought they were left on the devel package.
>


martinh@ganymed:~> locate "/usr/lib*.a" | wc -l
744

shows a lot of static libs due to the devel packages on my laptop, so
not always are static libs stripped from the rpm’s and sometimes it
simply makes sense to link static for better portability of the
resulting binary.


PC: oS 12.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.4 | GeForce GT 420
ThinkPad E320: oS 12.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.8.4 | HD 3000
eCAFE 800: oS 12.1 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10

Not these days, normally compiled with static disabled since it’s
shared libraries.

In the case of libopenssl they are excluded;


%exclude %{_libdir}/libcrypto.a
%exclude %{_libdir}/libssl.a


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.31-0.9-default
up 7:17, 2 users, load average: 0.43, 0.41, 0.41
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Am 25.06.2012 23:59, schrieb malcolmlewis:
> In the case of libopenssl they are excluded;
>


> %exclude %{_libdir}/libcrypto.a
> %exclude %{_libdir}/libssl.a
> 

>
So the simple solution for the OP is to rebuild the rpm deleting that
lines from the spec file, fair enough.


PC: oS 12.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.4 | GeForce GT 420
ThinkPad E320: oS 12.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.8.4 | HD 3000
eCAFE 800: oS 12.1 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10

hi
I thought that this would be a solution and recompiled a openssl-devel package without the excluded lines.
This will probably solve my build issues.

It’s a solution. but not a good solution.

Anyone “mis”-installed your package will have two unused files on her system.

You’d better remove the “find %{buildroot}%{_libdir} -name “*.a” -print -delete” or “%exclude” lines.

And split a new sub-package called “openssl-devel-static” to contain them.(the name comes from openSUSE wiki - shared library chapter). they’re designed for such use.

then people will not mis-install or mis-use. only you need to install that sub-package.