Skip to contentSkip to conversation

libsdl-x11: configure with --disable-rpath

PATCH In review Michael Smith 3 participants 6 messages Nov 10, 2010 – Nov 17, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libsdl-x11: configure with --disable-rpath

Otherwise libtool and ld try to link against ${libdir}/libdl.so.2 on the host system.

---
 recipes/libsdl/libsdl-x11_1.2.14.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
recipes/libsdl/libsdl-x11_1.2.14.bb +2 -2
index 4c84d99..37799c3 100644
@@ -8,7 +8,7 @@ LICENSE = "LGPL"
 DEPENDS = "alsa-lib virtual/libgl virtual/libx11 libxext tslib"
 DEPENDS_avr32 = "alsa-lib virtual/libx11 libxext tslib"
 PROVIDES = "virtual/libsdl"
-PR = "r5"
+PR = "r6"
 
 SRC_URI = " \
   http://www.libsdl.org/release/SDL-${PV}.tar.gz \
@@ -30,7 +30,7 @@ EXTRA_OECONF = " \
   --disable-video-xbios --disable-video-gem --disable-video-dummy \
   --enable-video-opengl --enable-input-events --enable-pthreads \
   --disable-video-picogui --disable-video-qtopia --enable-dlopen \
-  --enable-input-tslib --disable-video-ps3 \
+  --enable-input-tslib --disable-video-ps3 --disable-rpath \
 "
 
 do_configure() { 
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 2/2 smpeg: configure with --disable-rpath

Otherwise libtool and ld try to link against ${libdir}/libdl.so.2 on the host system.

---
 .../smpeg-0.4.5+svnr387/add-disable-rpath.patch    |   47 ++++++++++++++++++++
 recipes/smpeg/smpeg_svn.bb                         |    6 ++-
 2 files changed, 51 insertions(+), 2 deletions(-)
 create mode 100644 recipes/smpeg/smpeg-0.4.5+svnr387/add-disable-rpath.patch
recipes/smpeg/smpeg-0.4.5+svnr387/add-disable-rpath.patch new file +47 -0
new file mode 100644
index 0000000..e1de0ea
@@ -0,0 +1,47 @@
+Upstream: http://icculus.org/pipermail/smpeg/2010-November/000183.html
+
+Add --disable-rpath to fix build in OE.
+
+--- trunk/configure.in.orig	2010-11-07 09:00:19.000000000 -0500
++++ trunk/configure.in	2010-11-10 13:02:06.000000000 -0500
+@@ -84,19 +84,27 @@
+         ;;
+ esac
+ 
+-# Set runtime shared library paths as needed 
+-
+-case "$target" in
+-    *-*-linux*)
+-	SMPEG_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
+-	;;
+-    *-*-freebsd*)
+-	SMPEG_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
+-	;;
+-    *-*-solaris*)
+-	SMPEG_RLD_FLAGS="-R\${exec_prefix}/lib"
+-	;;
+-esac
++dnl Set runtime shared library paths as needed 
++AC_ARG_ENABLE(rpath,
++	AC_HELP_STRING([--enable-rpath],
++		[use an rpath when linking SDL [[default=yes]]]),,
++	enable_rpath=yes)
++
++if test "x$enable_rpath" = "xyes"; then
++  case "$target" in
++      *-*-linux*)
++	  SMPEG_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
++	  ;;
++      *-*-freebsd*)
++	  SMPEG_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
++	  ;;
++      *-*-solaris*)
++	  SMPEG_RLD_FLAGS="-R\${exec_prefix}/lib"
++	  ;;
++  esac
++else
++  SMPEG_RLD_FLAGS=""
++fi
+ 
+ AC_SUBST(SMPEG_RLD_FLAGS)
+ 
recipes/smpeg/smpeg_svn.bb +4 -2
index 394270d..6fea95d 100644
@@ -7,15 +7,17 @@ PROVIDES = "smpeg"
 PV = "0.4.5+svnr${SRCPV}"
 PE = "2"
 SRCREV = "387"
+PR = "r1"
 
-SRC_URI = "svn://svn.icculus.org/smpeg/;module=trunk"
+SRC_URI = "svn://svn.icculus.org/smpeg/;module=trunk \
+	file://add-disable-rpath.patch;apply=yes"
 
 S = "${WORKDIR}/trunk"
 
 inherit autotools binconfig
 
 EXTRA_OECONF = "--disable-gtktest --disable-opengl-player --without-x \
-		--without-gtk --disable-gtk-player"
+		--without-gtk --disable-gtk-player --disable-rpath"
 
 do_configure_prepend () {
 	touch NEWS AUTHORS ChangeLog
Signature · 1 line
1.7.0.4
Acked-by Denys Dmytriyenko Acked-by Khem Raj on v1 2/2
#2 lore raw

Re: [PATCH 2/2] smpeg: configure with --disable-rpath

Am Mittwoch, den 10.11.2010, 13:35 -0500 schrieb Michael Smith:

Quoted 9 lines

Otherwise libtool and ld try to link against ${libdir}/libdl.so.2 on the host system.

---
 .../smpeg-0.4.5+svnr387/add-disable-rpath.patch    |   47 ++++++++++++++++++++
 recipes/smpeg/smpeg_svn.bb                         |    6 ++-
 2 files changed, 51 insertions(+), 2 deletions(-)
 create mode 100644 recipes/smpeg/smpeg-0.4.5+svnr387/add-disable-rpath.patch

[…]

recipes/smpeg/smpeg_svn.bb PROVIDES = "smpeg" · line 13

Quoted 3 lines
recipes/smpeg/smpeg_svn.bb +2 -1
-SRC_URI = "svn://svn.icculus.org/smpeg/;module=trunk"
+SRC_URI = "svn://svn.icculus.org/smpeg/;module=trunk \
+	file://add-disable-rpath.patch;apply=yes"

Please remove the apply=yes since that is assumed implicitly if a file has the extension patch [1].

commit 6fe7cef27069415f2eba36bc640cf59013d4979b
Author: Chris Larson <[email protected]>
Date: Mon May 24 13:01:00 2010 -0700

Make the do_patch apply=yes param implicit if extension is .diff/.patch

For .diff/.patch you need to apply manually, you can specify apply=no.

recipes/smpeg/smpeg_svn.bb PROVIDES = "smpeg" · line 23

Quoted 10 lines

S = "${WORKDIR}/trunk"

inherit autotools binconfig

EXTRA_OECONF = "--disable-gtktest --disable-opengl-player --without-x \

recipes/smpeg/smpeg_svn.bb +1 -1
-		--without-gtk --disable-gtk-player"
+		--without-gtk --disable-gtk-player --disable-rpath"
 
 do_configure_prepend () {
 	touch NEWS AUTHORS ChangeLog

Thanks,

Paul

[1] http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=6fe7cef27069415f2eba36bc640cf59013d4979b

#3 lore raw

Re: [PATCH 2/2] smpeg: configure with --disable-rpath

Quoted 6 lines · Paul Menzel

recipes/smpeg/smpeg_svn.bb PROVIDES = "smpeg" · line 13

Quoted 3 lines
recipes/smpeg/smpeg_svn.bb +2 -1
-SRC_URI = "svn://svn.icculus.org/smpeg/;module=trunk"
+SRC_URI = "svn://svn.icculus.org/smpeg/;module=trunk \
+	file://add-disable-rpath.patch;apply=yes"

Please remove the apply=yes since that is assumed implicitly if a file has the extension patch [1].

Thanks, fixed.

Mike

#4 lore raw

Re: [PATCH 2/2] smpeg: configure with --disable-rpath

In reply to Michael Smith
Quoted 3 lines · Michael Smith

Otherwise libtool and ld try to link against ${libdir}/libdl.so.2 on the host system.

Does it happen with libtool 2.4 as well ?

Quoted 93 lines

---
 .../smpeg-0.4.5+svnr387/add-disable-rpath.patch    |   47 ++++++++++++++++++++ recipes/smpeg/smpeg_svn.bb                         |    6 ++-

 2 files changed, 51 insertions(+), 2 deletions(-)

 create mode 100644 recipes/smpeg/smpeg-0.4.5+svnr387/add-disable-rpath.patch

recipes/smpeg/smpeg-0.4.5+svnr387/add-disable-rpath.patch new file +47 -0
new file mode 100644
index 0000000..e1de0ea
@@ -0,0 +1,47 @@
+Upstream: http://icculus.org/pipermail/smpeg/2010-November/000183.html
+
+Add --disable-rpath to fix build in OE.
+
+--- trunk/configure.in.orig    2010-11-07 09:00:19.000000000 -0500
++++ trunk/configure.in 2010-11-10 13:02:06.000000000 -0500
+@@ -84,19 +84,27 @@
+         ;;
+ esac
+
+-# Set runtime shared library paths as needed
+-
+-case "$target" in
+-    *-*-linux*)
+-      SMPEG_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
+-      ;;
+-    *-*-freebsd*)
+-      SMPEG_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
+-      ;;
+-    *-*-solaris*)
+-      SMPEG_RLD_FLAGS="-R\${exec_prefix}/lib"
+-      ;;
+-esac
++dnl Set runtime shared library paths as needed
++AC_ARG_ENABLE(rpath,
++      AC_HELP_STRING([--enable-rpath],
++              [use an rpath when linking SDL [[default=yes]]]),,
++      enable_rpath=yes)
++
++if test "x$enable_rpath" = "xyes"; then
++  case "$target" in
++      *-*-linux*)
++        SMPEG_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
++        ;;
++      *-*-freebsd*)
++        SMPEG_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
++        ;;
++      *-*-solaris*)
++        SMPEG_RLD_FLAGS="-R\${exec_prefix}/lib"
++        ;;
++  esac
++else
++  SMPEG_RLD_FLAGS=""
++fi
+
+ AC_SUBST(SMPEG_RLD_FLAGS)
+
recipes/smpeg/smpeg_svn.bb +0 -0
index 394270d..6fea95d 100644
@@ -7,15 +7,17 @@ PROVIDES = "smpeg"

 PV = "0.4.5+svnr${SRCPV}"
 PE = "2"
 SRCREV = "387"

recipes/smpeg/smpeg_svn.bb +3 -1
+PR = "r1"
 
-SRC_URI = "svn://svn.icculus.org/smpeg/;module=trunk"
+SRC_URI = "svn://svn.icculus.org/smpeg/;module=trunk \
+       file://add-disable-rpath.patch;apply=yes"

 S = "${WORKDIR}/trunk"

 inherit autotools binconfig

 EXTRA_OECONF = "--disable-gtktest --disable-opengl-player --without-x \
-               --without-gtk --disable-gtk-player"
+               --without-gtk --disable-gtk-player --disable-rpath"

 do_configure_prepend () {
       touch NEWS AUTHORS ChangeLog
--
1.7.0.4

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#5 lore raw

Re: [PATCH 2/2] smpeg: configure with --disable-rpath

Quoted 5 lines · Khem Raj
Quoted 2 lines · Michael Smith

Otherwise libtool and ld try to link against ${libdir}/libdl.so.2 on the host system.

Does it happen with libtool 2.4 as well ?

Yes, it does.

Mike