openssl.spec build errors on CentOS 6?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

openssl.spec build errors on CentOS 6?

mangoo
I'm trying to build openssl-1.0.2g on CentOS 6.7 64 bit, using the
supplied openssl.spec. Unfortunately it fails as below. Is it possible
to build openssl 1.0.2x with bundled openssl.spec on CentOS 6?

# rpmbuild -ba openssl.spec
(...)
symlinked /usr/lib/debug/usr/bin/openssl.debug to
/usr/lib/debug/usr/bin/ssleay.debug
symlinked /usr/lib/debug/usr/lib64/libssl.so.1.0.0.debug to
/usr/lib/debug/usr/lib64/libssl.so.debug
symlinked /usr/lib/debug/usr/lib64/libcrypto.so.1.0.0.debug to
/usr/lib/debug/usr/lib64/libcrypto.so.debug
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip
/usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: openssl-1.0.2g-1.x86_64
error: File not found by glob:
/root/rpmbuild/BUILDROOT/openssl-1.0.2g-1.x86_64/usr/lib/*.so*
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.PvUXni
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd openssl-1.0.2g
+
DOCDIR=/root/rpmbuild/BUILDROOT/openssl-1.0.2g-1.x86_64/usr/share/doc/openssl-1.0.2g
+ export DOCDIR
+ rm -rf
/root/rpmbuild/BUILDROOT/openssl-1.0.2g-1.x86_64/usr/share/doc/openssl-1.0.2g
+ /bin/mkdir -p
/root/rpmbuild/BUILDROOT/openssl-1.0.2g-1.x86_64/usr/share/doc/openssl-1.0.2g
+ cp -pr CHANGES CHANGES.SSLeay LICENSE NEWS README
/root/rpmbuild/BUILDROOT/openssl-1.0.2g-1.x86_64/usr/share/doc/openssl-1.0.2g
+ exit 0


RPM build errors:
     File not found by glob:
/root/rpmbuild/BUILDROOT/openssl-1.0.2g-1.x86_64/usr/lib/*.so*




Tomasz Chmielewski
http://wpkg.org

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Reply | Threaded
Open this post in threaded view
|

Re: openssl.spec build errors on CentOS 6?

Matěj Cepl
On 2016-04-06, 12:16 GMT, Tomasz Chmielewski wrote:
> error: File not found by glob:
> /root/rpmbuild/BUILDROOT/openssl-1.0.2g-1.x86_64/usr/lib/*.so*

This is something really really weird. x86_64 package should
never ever write anything to /usr/lib/ , but only to /usr/lib64.  
You have to have something else screwed up in your
configuration.

Matěj

--
https://matej.ceplovi.cz/blog/, Jabber: [hidden email]
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
 
All of us could take a lesson from the weather. It pays no attention to
criticism.
  -- somewhere on the Intenret

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Reply | Threaded
Open this post in threaded view
|

Re: openssl.spec build errors on CentOS 6?

mangoo
On 2016-04-07 01:18, Matěj Cepl wrote:
> On 2016-04-06, 12:16 GMT, Tomasz Chmielewski wrote:
>> error: File not found by glob:
>> /root/rpmbuild/BUILDROOT/openssl-1.0.2g-1.x86_64/usr/lib/*.so*
>
> This is something really really weird. x86_64 package should
> never ever write anything to /usr/lib/ , but only to /usr/lib64.
> You have to have something else screwed up in your
> configuration.

Don't think it's something screwed in my configuration - I was able to
reproduce it on two different servers.

Also, the paths in the .spec file are hardcoded to /usr/lib/, not
/usr/lib64/ - correcting the spec to use /usr/lib64/ fixes this issue
and the packages are built correctly.


Unfortunately it also turns out that the packages created with the
bundled spec are not usable with CentOS 6 (built packages don't contain
required files/symlinks/dependencies needed by other packages in CentOS
6).


Tomasz Chmielewski
http://wpkg.org



--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users