Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174786 - net-misc/openvpn-2.0.6 setting USE="static" does not work
Summary: net-misc/openvpn-2.0.6 setting USE="static" does not work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-16 11:16 UTC by Michael Gisbers
Modified: 2007-04-16 11:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gisbers 2007-04-16 11:16:01 UTC
Emerging static version of openvpn results in dynamic linked version.

Reproducible: Always

Steps to Reproduce:
1. USE="static" emerge =net-misc/openvpn-2.0.6
2. ldd /usr/sbin/openvpn


Actual Results:  
ldd /usr/sbin/openvpn
      linux-gate.so.1 =>  (0xffffe000)
      libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xf7ead000)
      libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xf7d78000)
      liblzo2.so.2 => /usr/lib/liblzo2.so.2 (0xf7d59000)
      libdl.so.2 => /lib/libdl.so.2 (0xf7d55000)
      libc.so.6 => /lib/libc.so.6 (0xf7c36000)
      /lib/ld-linux.so.2 (0xf7eef000)


Expected Results:  
ldd /usr/sbin/openvpn
      not a dynamic executable


Seems like '-e' and '-i' have to be exchanged in ebuild:

--- openvpn-2.0.6.ebuild_old    2007-04-16 13:14:42.000000000 +0200
+++ openvpn-2.0.6.ebuild        2007-04-16 13:15:04.000000000 +0200
@@ -53,7 +53,7 @@
                $(use_enable threads pthread) \
                || die "configure failed"

-       use static && sed -e -i '/^LIBS/s/LIBS = /LIBS = -static /' Makefile
+       use static && sed -i -e '/^LIBS/s/LIBS = /LIBS = -static /' Makefile

        emake || die "make failed"
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-04-16 11:43:52 UTC
Fixed, thanks.