Hi,

The patch I propose to introduce to libsdl.spec is Damien's work
really. Damien and I were discussing offline how to fix the
SUNWgnome-games failing build and he tried the following patch to
gnome-games/m4/sdl.m4. Later was discovered that sdl.m4 is picked up
from %datadir/aclocal , per the exported variable in
SUNWgnome-games.spec. Therefor I "migrated" his patch proposal to
SUNWlibsdl.spec.


--
Patrick


--- base-specs/libsdl.spec      (revision 12822)
+++ base-specs/libsdl.spec      (working copy)
@@ -16,6 +16,7 @@
 Vendor:       Sun Microsystems, Inc.
 Summary:      libsdl - Simple DirectMedia Layer
 Source:       http://www.libsdl.org/release/SDL-%{version}.tar.gz
+Patch1:              sdl-01-fixPATH.diff
 URL:          http://www.libsdl.org/
 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
 Docdir:       %{_defaultdocdir}/%{name}
@@ -38,6 +39,7 @@

 %prep
 %setup -q -n SDL-%{version}
+%patch1 -p1

 %build
 %ifos linux



--- SDL-1.2.13/sdl.m4.orig      2008-01-17 20:50:30.689228733 +0100
+++ SDL-1.2.13/sdl.m4   2008-01-17 20:51:41.567595493 +0100
@@ -32,10 +32,13 @@
     fi
   fi

+  as_save_PATH="$PATH"
   if test "x$prefix" != xNONE; then
+
     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
   fi
   AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH])
+  PATH="$as_save_PATH"
   min_sdl_version=ifelse([$1], ,0.11.0,$1)
   AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
   no_sdl=""

Reply via email to