pkgsrc-Bugs archive

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

pkg/45993: x11/xlockmore: no -rpath on linux



>Number:         45993
>Category:       pkg
>Synopsis:       x11/xlockmore: no -rpath on linux
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 12 08:20:00 +0000 2012
>Originator:     Stefan Schaeckeler
>Release:        Linux Slackware
>Organization:
>Environment:
>Description:
On linux, x11/xlockmore doesn't link in pkgsrc's lib directory ("-rpath"). At 
runtime shared libs are not found.
>How-To-Repeat:

>Fix:
Replace patch-ab with this patch (the two single + are new):

$NetBSD$

--- configure.orig      2010-01-21 17:16:14.000000000 -0800
+++ configure   2012-02-12 00:20:09.000000000 -0800
@@ -9281,10 +9281,10 @@
         dirname=`which gcc`
         dirname=`dirname $dirname`
         dirname=`dirname $dirname`/lib
-       if test "$dirname" != "/lib"; then
-           XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$dirname"
-           XMLOCK_LDFLAGS="${XMLOCK_LDFLAGS}:$dirname"
-       fi
+#      if test "$dirname" != "/lib"; then
+#          XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$dirname"
+#          XMLOCK_LDFLAGS="${XMLOCK_LDFLAGS}:$dirname"
+#      fi
     fi
     XLOCKLDFLAGS="-Wl,-R${XLOCK_LDFLAGS}"
     XMLOCKLDFLAGS="-Wl,-R${XMLOCK_LDFLAGS}"
@@ -9333,6 +9333,8 @@
     ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" 
"$ac_includes_default"
 if test "x$ac_cv_header_elf_h" = x""yes; then :
   $as_echo "#define HAVE_SHADOW 1" >>confdefs.h
+    XLOCKLDFLAGS="-Wl,-R${XLOCK_LDFLAGS}"
+    XMLOCKLDFLAGS="-Wl,-R${XMLOCK_LDFLAGS}"
 
 fi
 
@@ -9428,10 +9430,10 @@
         dirname=`which gcc`
         dirname=`dirname $dirname`
         dirname=`dirname $dirname`/lib
-       if test "$dirname" != "/lib"; then
-           XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$dirname"
-           XMLOCK_LDFLAGS="${XMLOCK_LDFLAGS}:$dirname"
-       fi
+#      if test "$dirname" != "/lib"; then
+#          XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$dirname"
+#          XMLOCK_LDFLAGS="${XMLOCK_LDFLAGS}:$dirname"
+#      fi
     fi
     XLOCKLDFLAGS="-R${XLOCK_LDFLAGS}"
     XMLOCKLDFLAGS="-R${XMLOCK_LDFLAGS}"



Home | Main Index | Thread Index | Old Index