NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/47487: libssl.pc etc. has wrong version number for many software's configure script



>Number:         47487
>Category:       lib
>Synopsis:       libssl.pc etc. has wrong version number for many software's 
>configure script
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 22 13:25:00 +0000 2013
>Originator:     Ryo ONODERA
>Release:        NetBSD 6.99.16
>Organization:
        
>Environment:
        
        
System: NetBSD tellurium.elements.tetera.org 6.99.16 NetBSD 6.99.16 (NODKWEDGE) 
#96: Sun Jan 20 13:29:51 JST 2013 
root%tellurium.elements.tetera.org@localhost:/usr/obj/sys/arch/amd64/compile/NODKWEDGE
 amd64
Architecture: x86_64
Machine: amd64
>Description:
pkg-config --modversion libssl returns the following result.

% pkg-config --modversion libssl
OpenSSL 1.0.1c 10 May 2012

But many software's GNU configure script require version number only.
You can try to build pkgsrc/audio/pulseaudio or pkgsrc/net/aria2, and
you can get the errors.
        
>How-To-Repeat:
For example,

% cd pkgsrc/net/aria2
% make configure
        

>Fix:
        
I am not sure about OpenSSL's version number rule.
But the following is sufficient for NUMBER.NUMBER.NUMBERALPAHBET.

Index: mkpc
===================================================================
RCS file: /cvsroot/src/crypto/external/bsd/openssl/mkpc,v
retrieving revision 1.1
diff -u -r1.1 mkpc
--- mkpc        18 Jan 2013 17:56:11 -0000      1.1
+++ mkpc        22 Jan 2013 13:13:12 -0000
@@ -3,7 +3,7 @@
 
 getversion() {
        (echo '#include <openssl/opensslv.h>'; echo OPENSSL_VERSION_TEXT) |
-           cpp | grep OpenSSL | tr -d \"
+           cpp | grep OpenSSL | awk 'match($0,/[0-9.]+[a-z]/){print 
substr($0,RSTART,RLENGTH)}'
 }
 VERSION="$(getversion)"
 

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index