pkgsrc-Bugs archive

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

pkg/37879: cannot build net/openvpn



>Number:         37879
>Category:       pkg
>Synopsis:       cannot build net/openvpn
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 26 22:40:00 +0000 2008
>Originator:     cheusov%tut.by@localhost
>Release:        NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #2: 
Tue Dec 25 17:42:38 EET 2007 
cheusov%chen.chizhovka.net@localhost:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

CHECK_INTERPRETER=yes

'make install'  fails like this


ERROR: [check-interpreter.mk] The interpreter "/bin/bash" of 
"/usr/pkg/share/openvpn/easy-rsa/build-ca" does not exist.
ERROR: [check-interpreter.mk] The interpreter "/bin/bash" of 
"/usr/pkg/share/openvpn/easy-rsa/build-dh" does not exist.
ERROR: [check-interpreter.mk] The interpreter "/bin/bash" of 
"/usr/pkg/share/openvpn/easy-rsa/build-inter" does not exist.
ERROR: [check-interpreter.mk] The interpreter "/bin/bash" of 
"/usr/pkg/share/openvpn/easy-rsa/build-key" does not exist.
ERROR: [check-interpreter.mk] The interpreter "/bin/bash" of 
"/usr/pkg/share/openvpn/easy-rsa/build-key-pass" does not exist.
ERROR: [check-interpreter.mk] The interpreter "/bin/bash" of 
"/usr/pkg/share/openvpn/easy-rsa/build-key-pkcs12" does not exist.
ERROR: [check-interpreter.mk] The interpreter "/bin/bash" of 
"/usr/pkg/share/openvpn/easy-rsa/build-key-server" does not exist.
ERROR: [check-interpreter.mk] The interpreter "/bin/bash" of 
"/usr/pkg/share/openvpn/easy-rsa/build-req" does not exist.
ERROR: [check-interpreter.mk] The interpreter "/bin/bash" of 
"/usr/pkg/share/openvpn/easy-rsa/build-req-pass" does not exist.
ERROR: [check-interpreter.mk] The interpreter "/bin/bash" of 
"/usr/pkg/share/openvpn/easy-rsa/clean-all" does not exist.
ERROR: [check-interpreter.mk] The interpreter "/bin/bash" of 
"/usr/pkg/share/openvpn/easy-rsa/inherit-inter" does not exist.
ERROR: [check-interpreter.mk] The interpreter "/bin/bash" of 
"/usr/pkg/share/openvpn/easy-rsa/list-crl" does not exist.
ERROR: [check-interpreter.mk] The interpreter "/bin/bash" of 
"/usr/pkg/share/openvpn/easy-rsa/revoke-full" does not exist.
ERROR: [check-interpreter.mk] The interpreter "/bin/bash" of 
"/usr/pkg/share/openvpn/easy-rsa/sign-req" does not exist.

>Fix:
I'm not sure about all but many of these scripts don't use bash extensions.
The following patch works in any case.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/openvpn/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile    1 Jul 2007 01:11:38 -0000       1.22
+++ Makefile    26 Jan 2008 22:38:32 -0000
@@ -13,11 +13,29 @@
 COMMENT=       Easy-to-use SSL VPN daemon
 
 GNU_CONFIGURE=         yes
-USE_TOOLS+=            grep:run
+USE_TOOLS+=            grep:run bash:run
 USE_LIBTOOL=           yes
 USE_OLD_DES_API=       yes
 TEST_TARGET=           check
 
+REPLACE_INTERPRETER+=  bash
+REPLACE.bash.old=      /bin/bash
+REPLACE.bash.new=      ${BASH}
+REPLACE_FILES.bash+=   easy-rsa/2.0/build-ca
+REPLACE_FILES.bash+=   easy-rsa/2.0/build-dh
+REPLACE_FILES.bash+=   easy-rsa/2.0/build-inter
+REPLACE_FILES.bash+=   easy-rsa/2.0/build-key
+REPLACE_FILES.bash+=   easy-rsa/2.0/build-key-pass
+REPLACE_FILES.bash+=   easy-rsa/2.0/build-key-pkcs12
+REPLACE_FILES.bash+=   easy-rsa/2.0/build-key-server
+REPLACE_FILES.bash+=   easy-rsa/2.0/build-req
+REPLACE_FILES.bash+=   easy-rsa/2.0/build-req-pass
+REPLACE_FILES.bash+=   easy-rsa/2.0/clean-all
+REPLACE_FILES.bash+=   easy-rsa/2.0/inherit-inter
+REPLACE_FILES.bash+=   easy-rsa/2.0/list-crl
+REPLACE_FILES.bash+=   easy-rsa/2.0/revoke-full
+REPLACE_FILES.bash+=   easy-rsa/2.0/sign-req
+
 PKG_SYSCONFSUBDIR=     openvpn
 DATADIR=               ${PREFIX}/share/${PKGBASE}
 DOCDIR=                        ${PREFIX}/share/doc/${PKGBASE}




Home | Main Index | Thread Index | Old Index