[gtk-osx-devel] [PATCH] Run autoreconf before configuring liboil



Without this, I was getting a weird libtool build failure on
Lion with the 0.3.17 tarball:

/bin/sh ../libtool --tag=CC   --mode=link /usr/bin/llvm-gcc-4.2  -arch x86_64
-mmacosx-version-min=10.7 -no-undefined -export-symbols-regex 'oil_'
-L/Users/teuf/gtk3/inst/lib -L/Users/teuf/gtk3/inst/lib -arch x86_64
-mmacosx-version-min=10.7 -Wl,-headerpad_max_install_names -o liboiltmp1.la
-rpath /Users/teuf/gtk3/inst/lib liboiltmp.lo liboilfunctions.la libtool: link:
link -dump -symbols  .libs/liboiltmp.o   ./.libs/liboilfunctions.a |  |
/usr/bin/sed 's/.* //' | sort | uniq > .libs/liboiltmp1.exp

../libtool: eval: line 947: syntax error near unexpected token `|'
../libtool: eval: line 947: `link -dump -symbols  .libs/liboiltmp.o
./.libs/liboilfunctions.a |  | /usr/bin/sed 's/.* //' | sort | uniq >
.libs/liboiltmp1.exp'

The tarball uses libtool 2.2.6, and rerunning libtoolize/autoreconf to use
libtool 2.4 instead seems to avoid this issue with the 0.3.17 tarball.

autogen-sh="autoreconf" cannot be used because of bgo #673202
---
 modulesets-stable/gtk-osx-gstreamer.modules | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modulesets-stable/gtk-osx-gstreamer.modules b/modulesets-stable/gtk-osx-gstreamer.modules
index bab4931..b378175 100644
--- a/modulesets-stable/gtk-osx-gstreamer.modules
+++ b/modulesets-stable/gtk-osx-gstreamer.modules
@@ -9,7 +9,8 @@
   <repository type="tarball" name="sourceforge" 
               href="http://downloads.sourceforge.net/sourceforge/"/>
 
-  <autotools id="liboil" autogen-sh="configure"
+  <autotools id="liboil"
+             autogen-template="autoreconf -fis &amp;&amp; %(srcdir)s/configure --prefix %(prefix)s --libdir %(libdir)s %(autogenargs)s"
 	     makeargs=" CFLAGS=-DHAVE_SYMBOL_UNDERSCORE">
     <branch repo="liboil" module="liboil-0.3.17.tar.gz" version="0.3.17" />
   </autotools>
-- 
1.7.12.1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]