diff --git a/packages/audio/faac/build b/packages/audio/faac/build index 22d22771b0..ff5b357fcb 100755 --- a/packages/audio/faac/build +++ b/packages/audio/faac/build @@ -5,7 +5,7 @@ $SCRIPTS/build toolchain cd $BUILD/$1* -./bootstrap +#./bootstrap ./configure --host=$TARGET_NAME \ --build=$HOST_NAME \ --prefix=/usr \ @@ -13,8 +13,9 @@ cd $BUILD/$1* --disable-shared \ --with-mp4v2 -make +make -C libfaac #$STRIP libfaac/.libs/*.so* -$MAKEINSTALL +$MAKEINSTALL -C libfaac +cp -PR include/*.h $SYSROOT_PREFIX/usr/include diff --git a/packages/audio/faac/url b/packages/audio/faac/url index 334dc47a3e..a4292730d5 100644 --- a/packages/audio/faac/url +++ b/packages/audio/faac/url @@ -1 +1 @@ -http://heanet.dl.sourceforge.net/sourceforge/faac/faac-1.26.tar.gz \ No newline at end of file +http://heanet.dl.sourceforge.net/sourceforge/faac/faac-1.28.tar.gz diff --git a/packages/audio/libsndfile/build b/packages/audio/libsndfile/build index cdea63fcec..dc0f1f6468 100755 --- a/packages/audio/libsndfile/build +++ b/packages/audio/libsndfile/build @@ -13,8 +13,8 @@ cd $BUILD/$1* --enable-static \ --disable-shared -make +make -C src #$STRIP src/.libs/*.so* -$MAKEINSTALL +$MAKEINSTALL -C src diff --git a/packages/audio/libsndfile/url b/packages/audio/libsndfile/url index c5c5a9af63..374c8eff4b 100644 --- a/packages/audio/libsndfile/url +++ b/packages/audio/libsndfile/url @@ -1 +1 @@ -http://www.mega-nerd.com/libsndfile/libsndfile-1.0.18.tar.gz +http://www.mega-nerd.com/libsndfile/libsndfile-1.0.19.tar.gz diff --git a/packages/emulators/SDL_ttf/build b/packages/emulators/SDL_ttf/build new file mode 100755 index 0000000000..5b4d470de3 --- /dev/null +++ b/packages/emulators/SDL_ttf/build @@ -0,0 +1,21 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/build toolchain +$SCRIPTS/build SDL + +cd $BUILD/$1* +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-shared \ + --disable-static \ + +make + +$STRIP .libs/*.so* + +$MAKEINSTALL diff --git a/packages/emulators/SDL_ttf/install b/packages/emulators/SDL_ttf/install new file mode 100755 index 0000000000..4eca9961ef --- /dev/null +++ b/packages/emulators/SDL_ttf/install @@ -0,0 +1,9 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/install SDL + +mkdir -p $INSTALL/usr/lib +cp -P $BUILD/$1*/.libs/*.so* $INSTALL/usr/lib + diff --git a/packages/emulators/SDL_ttf/url b/packages/emulators/SDL_ttf/url new file mode 100644 index 0000000000..54daaacf29 --- /dev/null +++ b/packages/emulators/SDL_ttf/url @@ -0,0 +1 @@ +http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.9.tar.gz \ No newline at end of file diff --git a/packages/emulators/install b/packages/emulators/install index af4b75836c..984642a10b 100755 --- a/packages/emulators/install +++ b/packages/emulators/install @@ -2,6 +2,6 @@ . config/options -$SCRIPTS/install zsnes -$SCRIPTS/install scummvm -$SCRIPTS/install mednafen +#!!!!$SCRIPTS/install zsnes +#!!!!$SCRIPTS/install scummvm +#!!!!$SCRIPTS/install mednafen diff --git a/packages/emulators/mednafen/build b/packages/emulators/mednafen/build index faefd18610..c8135c225d 100755 --- a/packages/emulators/mednafen/build +++ b/packages/emulators/mednafen/build @@ -18,7 +18,7 @@ cd $BUILD/$1* --x-includes="$SYSROOT_PREFIX/usr/include" \ --x-libraries="$SYSROOT_PREFIX/usr/lib" \ --disable-rath \ - --enable-nls \ + --disable-nls \ --enable-threads=posix \ --disable-debugger \ --disable-cjk-fonts \ @@ -42,4 +42,4 @@ cd $BUILD/$1* make -$STRIP src/$1 \ No newline at end of file +$STRIP src/$1 diff --git a/packages/emulators/scummvm/build b/packages/emulators/scummvm/build index 55605cab0b..4d0e073aed 100755 --- a/packages/emulators/scummvm/build +++ b/packages/emulators/scummvm/build @@ -11,7 +11,11 @@ $SCRIPTS/build zlib #export CFLAGS="-O -g3 -Wall -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" #export CXXFLAGS="-O -g3 -Wall -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" + +#openelec-$TARGET_ARCH + cd $BUILD/$1* +export CXX=$TARGET_CXX ./configure --host=openelec-$TARGET_ARCH \ --prefix=/usr \ --backend=sdl \ diff --git a/packages/sysutils/busybox/config/busybox-initramfs.conf b/packages/sysutils/busybox/config/busybox-initramfs.conf index 5a74600965..bb1c7a6585 100644 --- a/packages/sysutils/busybox/config/busybox-initramfs.conf +++ b/packages/sysutils/busybox/config/busybox-initramfs.conf @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Busybox version: 1.14.0 -# Sat Apr 18 19:45:01 2009 +# Thu Apr 23 01:11:28 2009 # CONFIG_HAVE_DOT_CONFIG=y diff --git a/packages/toolchain/devel/jam/build b/packages/toolchain/devel/jam/build new file mode 100755 index 0000000000..ee5341ff6b --- /dev/null +++ b/packages/toolchain/devel/jam/build @@ -0,0 +1,18 @@ +#!/bin/sh + +. config/options + +#export CC=$HOST_CC +#export CXX=$HOST_CXX +#export CFLAGS="$HOST_CFLAGS" +#export CXXFLAGS="$HOST_CXXFLAGS" +#setup_toolchain host + +cd $BUILD/$1* + +make CC=$HOST_CC CFLAGS="$HOST_CFLAGS" AR="$HOST_AR" RANLIB="$HOST_RANLIB" + +#./configure --no-qt-gui +#make +#cp bin/cmake bin/ccmake bin/cpack bin/ctest $ROOT/$TOOLCHAIN/bin + diff --git a/packages/toolchain/devel/jam/url b/packages/toolchain/devel/jam/url new file mode 100644 index 0000000000..bc397d0070 --- /dev/null +++ b/packages/toolchain/devel/jam/url @@ -0,0 +1 @@ +http://sources.openelec.tv/svn/jam-2.5.tar.bz2 diff --git a/packages/toolchain/lang/gcc/099-gcc-4.3.3-posix-1.diff b/packages/toolchain/lang/gcc/099-gcc-4.3.3-posix-1.diff new file mode 100644 index 0000000000..03185b3cc5 --- /dev/null +++ b/packages/toolchain/lang/gcc/099-gcc-4.3.3-posix-1.diff @@ -0,0 +1,304 @@ +Submitted By: Jim Gifford (jim at cross-lfs dot org) +Date: 01-25-2009 +Initial Package Version: 4.3.3 +Origin: Jim Gifford + Rediffed against 4.1.0 by Chris Staub + Rediffed against 4.1.2 by Jim Gifford + Rediffed and additions against 4.2.0 by Joe Ciccone + Rediffed against 4.3.0 by Joe Ciccone + Rediffed against 4.3.3 by Jim Gifford +Upstream Status: On Hold +Description: Makes GCC Posix Compliant + +diff -Naur gcc-4.3.3.orig/contrib/patch_tester.sh gcc-4.3.3/contrib/patch_tester.sh +--- gcc-4.3.3.orig/contrib/patch_tester.sh 2007-12-26 13:01:38.000000000 -0800 ++++ gcc-4.3.3/contrib/patch_tester.sh 2009-01-25 00:53:32.447636261 -0800 +@@ -287,7 +287,7 @@ + + if ! make $dashj `grep "^make:" $PATCH | sed -e "s/^make://g"` bootstrap &> $1/bootstrap ; then + report "bootstrap failed with last lines:" +- tail -30 $1/bootstrap > $1/last_bootstrap ++ tail -n 30 $1/bootstrap > $1/last_bootstrap + freport $1/last_bootstrap + report "grep --context=20 Error bootstrap:" + grep --context=20 Error $1/bootstrap > $1/bootstrap_error +@@ -420,7 +420,7 @@ + # After selfexec, $TESTING is already set up. + if [ -d $TESTING ]; then + # The only file in $TESTING is the patch. +- PATCH=`ls -rt -1 $TESTING | head -1` ++ PATCH=`ls -rt -1 $TESTING | head -n 1` + PATCH=$TESTING/$PATCH + if [ -f $PATCH ]; then + bootntest_patched && bootntest_pristine && compare_passes +@@ -429,7 +429,7 @@ + fi + + while true; do +- PATCH=`ls -rt -1 $PATCHES | head -1` ++ PATCH=`ls -rt -1 $PATCHES | head -n 1` + if [ x$PATCH = x ]; then + sleep ${standby}m + else +diff -Naur gcc-4.3.3.orig/contrib/test_summary gcc-4.3.3/contrib/test_summary +--- gcc-4.3.3.orig/contrib/test_summary 2007-02-09 16:30:46.000000000 -0800 ++++ gcc-4.3.3/contrib/test_summary 2009-01-25 00:53:32.447636261 -0800 +@@ -107,7 +107,7 @@ + srcdir = configflags; + sub(/\/configure .*/, "", srcdir); + printf "LAST_UPDATED: "; +- system("tail -1 " srcdir "/LAST_UPDATED"); ++ system("tail -n 1 " srcdir "/LAST_UPDATED"); + print ""; + + sub(/^[^ ]*\/configure */, " ", configflags); +diff -Naur gcc-4.3.3.orig/gcc/configure gcc-4.3.3/gcc/configure +--- gcc-4.3.3.orig/gcc/configure 2008-08-01 02:51:03.000000000 -0700 ++++ gcc-4.3.3/gcc/configure 2009-01-25 00:53:32.455839362 -0800 +@@ -20245,7 +20245,7 @@ + # Therefore, use diff -b for the comparisons. + if test x$gcc_cv_objdump != x \ + && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \ +- | tail -3 > conftest.got \ ++ | tail -n 3 > conftest.got \ + && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \ + || diff -b conftest.big conftest.got > /dev/null 2>&1; } + then +diff -Naur gcc-4.3.3.orig/gcc/configure.ac gcc-4.3.3/gcc/configure.ac +--- gcc-4.3.3.orig/gcc/configure.ac 2008-08-01 02:51:03.000000000 -0700 ++++ gcc-4.3.3/gcc/configure.ac 2009-01-25 00:53:32.455839362 -0800 +@@ -2241,7 +2241,7 @@ + # Therefore, use diff -b for the comparisons. + if test x$gcc_cv_objdump != x \ + && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \ +- | tail -3 > conftest.got \ ++ | tail -n 3 > conftest.got \ + && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \ + || diff -b conftest.big conftest.got > /dev/null 2>&1; } + then +diff -Naur gcc-4.3.3.orig/gcc/testsuite/ada/acats/run_all.sh gcc-4.3.3/gcc/testsuite/ada/acats/run_all.sh +--- gcc-4.3.3.orig/gcc/testsuite/ada/acats/run_all.sh 2006-09-14 03:12:03.000000000 -0700 ++++ gcc-4.3.3/gcc/testsuite/ada/acats/run_all.sh 2009-01-25 00:53:32.459940773 -0800 +@@ -68,7 +68,7 @@ + ls ${i}?.adb > ${i}.lst 2> /dev/null + ls ${i}*m.adb >> ${i}.lst 2> /dev/null + ls ${i}.adb >> ${i}.lst 2> /dev/null +- main=`tail -1 ${i}.lst` ++ main=`tail -n 1 ${i}.lst` + } + + EXTERNAL_OBJECTS="" +diff -Naur gcc-4.3.3.orig/libgomp/acinclude.m4 gcc-4.3.3/libgomp/acinclude.m4 +--- gcc-4.3.3.orig/libgomp/acinclude.m4 2007-03-18 04:17:44.000000000 -0700 ++++ gcc-4.3.3/libgomp/acinclude.m4 2009-01-25 00:53:32.459940773 -0800 +@@ -147,7 +147,7 @@ + # Start by getting the version number. I think the libtool test already + # does some of this, but throws away the result. + changequote(,) +- ldver=`$LD --version 2>/dev/null | head -1 | \ ++ ldver=`$LD --version 2>/dev/null | head -n 1 | \ + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + changequote([,]) + libgomp_gnu_ld_version=`echo $ldver | \ +diff -Naur gcc-4.3.3.orig/libgomp/configure gcc-4.3.3/libgomp/configure +--- gcc-4.3.3.orig/libgomp/configure 2008-01-24 08:23:13.000000000 -0800 ++++ gcc-4.3.3/libgomp/configure 2009-01-25 00:53:32.464042184 -0800 +@@ -17600,7 +17600,7 @@ + # Start by getting the version number. I think the libtool test already + # does some of this, but throws away the result. + +- ldver=`$LD --version 2>/dev/null | head -1 | \ ++ ldver=`$LD --version 2>/dev/null | head -n 1 | \ + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + + libgomp_gnu_ld_version=`echo $ldver | \ +diff -Naur gcc-4.3.3.orig/libjava/classpath/configure gcc-4.3.3/libjava/classpath/configure +--- gcc-4.3.3.orig/libjava/classpath/configure 2008-02-29 15:47:54.000000000 -0800 ++++ gcc-4.3.3/libjava/classpath/configure 2009-01-25 00:53:32.480448386 -0800 +@@ -29126,7 +29126,7 @@ + fi # shortcircut to system "stdint.h" + # ------------------ PREPARE VARIABLES ------------------------------ + if test "$GCC" = "yes" ; then +-ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1` ++ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1` + else + ac_cv_stdint_message="using $CC" + fi +diff -Naur gcc-4.3.3.orig/libjava/classpath/ltcf-c.sh gcc-4.3.3/libjava/classpath/ltcf-c.sh +--- gcc-4.3.3.orig/libjava/classpath/ltcf-c.sh 2006-01-17 10:09:40.000000000 -0800 ++++ gcc-4.3.3/libjava/classpath/ltcf-c.sh 2009-01-25 00:53:32.484550356 -0800 +@@ -153,7 +153,7 @@ + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is. + # If DATA tags from a recent dlltool are present, honour them! +- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then ++ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname-def; + else + echo EXPORTS > $output_objdir/$soname-def; +diff -Naur gcc-4.3.3.orig/libjava/classpath/ltcf-gcj.sh gcc-4.3.3/libjava/classpath/ltcf-gcj.sh +--- gcc-4.3.3.orig/libjava/classpath/ltcf-gcj.sh 2005-09-23 14:31:04.000000000 -0700 ++++ gcc-4.3.3/libjava/classpath/ltcf-gcj.sh 2009-01-25 00:53:32.484550356 -0800 +@@ -156,7 +156,7 @@ + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is. + # If DATA tags from a recent dlltool are present, honour them! +- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then ++ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname-def; + else + echo EXPORTS > $output_objdir/$soname-def; +diff -Naur gcc-4.3.3.orig/libjava/classpath/m4/ax_create_stdint_h.m4 gcc-4.3.3/libjava/classpath/m4/ax_create_stdint_h.m4 +--- gcc-4.3.3.orig/libjava/classpath/m4/ax_create_stdint_h.m4 2007-05-19 13:44:43.000000000 -0700 ++++ gcc-4.3.3/libjava/classpath/m4/ax_create_stdint_h.m4 2009-01-25 00:53:32.484550356 -0800 +@@ -217,7 +217,7 @@ + fi # shortcircut to system "stdint.h" + # ------------------ PREPARE VARIABLES ------------------------------ + if test "$GCC" = "yes" ; then +-ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1` ++ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1` + else + ac_cv_stdint_message="using $CC" + fi +diff -Naur gcc-4.3.3.orig/libjava/configure gcc-4.3.3/libjava/configure +--- gcc-4.3.3.orig/libjava/configure 2009-01-24 02:32:29.000000000 -0800 ++++ gcc-4.3.3/libjava/configure 2009-01-25 00:53:32.492753177 -0800 +@@ -18673,8 +18673,8 @@ + echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6 + LD_PROG=`$CC --print-prog-name=ld` + LD_VERSION=`$LD_PROG --version` +-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4` +-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2` ++LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4` ++LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2` + if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then + LD_OK="ok" + else +diff -Naur gcc-4.3.3.orig/libjava/mingwld.m4 gcc-4.3.3/libjava/mingwld.m4 +--- gcc-4.3.3.orig/libjava/mingwld.m4 2005-08-22 15:36:35.000000000 -0700 ++++ gcc-4.3.3/libjava/mingwld.m4 2009-01-25 00:53:32.492753177 -0800 +@@ -3,8 +3,8 @@ + AC_MSG_CHECKING(whether 'ld' is at least 2.13) + LD_PROG=`$CC --print-prog-name=ld` + LD_VERSION=`$LD_PROG --version` +-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4` +-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2` ++LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4` ++LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2` + if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then + LD_OK="ok" + else +diff -Naur gcc-4.3.3.orig/libstdc++-v3/acinclude.m4 gcc-4.3.3/libstdc++-v3/acinclude.m4 +--- gcc-4.3.3.orig/libstdc++-v3/acinclude.m4 2008-04-25 09:52:57.000000000 -0700 ++++ gcc-4.3.3/libstdc++-v3/acinclude.m4 2009-01-25 00:53:32.500956558 -0800 +@@ -234,7 +234,7 @@ + if test x"$with_gnu_ld" = x"yes"; then + AC_MSG_CHECKING([for ld version]) + changequote(,) +- ldver=`$LD --version 2>/dev/null | head -1 | \ ++ ldver=`$LD --version 2>/dev/null | head -n 1 | \ + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + changequote([,]) + glibcxx_gnu_ld_version=`echo $ldver | \ +diff -Naur gcc-4.3.3.orig/libstdc++-v3/configure gcc-4.3.3/libstdc++-v3/configure +--- gcc-4.3.3.orig/libstdc++-v3/configure 2008-07-07 12:49:54.000000000 -0700 ++++ gcc-4.3.3/libstdc++-v3/configure 2009-01-25 00:53:32.582987288 -0800 +@@ -17490,7 +17490,7 @@ + echo "$as_me:$LINENO: checking for ld version" >&5 + echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + +- ldver=`$LD --version 2>/dev/null | head -1 | \ ++ ldver=`$LD --version 2>/dev/null | head -n 1 | \ + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ +@@ -42215,7 +42215,7 @@ + echo "$as_me:$LINENO: checking for ld version" >&5 + echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + +- ldver=`$LD --version 2>/dev/null | head -1 | \ ++ ldver=`$LD --version 2>/dev/null | head -n 1 | \ + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ +@@ -84606,7 +84606,7 @@ + echo "$as_me:$LINENO: checking for ld version" >&5 + echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + +- ldver=`$LD --version 2>/dev/null | head -1 | \ ++ ldver=`$LD --version 2>/dev/null | head -n 1 | \ + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ +@@ -85622,7 +85622,7 @@ + echo "$as_me:$LINENO: checking for ld version" >&5 + echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + +- ldver=`$LD --version 2>/dev/null | head -1 | \ ++ ldver=`$LD --version 2>/dev/null | head -n 1 | \ + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ +@@ -86610,7 +86610,7 @@ + echo "$as_me:$LINENO: checking for ld version" >&5 + echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + +- ldver=`$LD --version 2>/dev/null | head -1 | \ ++ ldver=`$LD --version 2>/dev/null | head -n 1 | \ + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ +@@ -109089,7 +109089,7 @@ + echo "$as_me:$LINENO: checking for ld version" >&5 + echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + +- ldver=`$LD --version 2>/dev/null | head -1 | \ ++ ldver=`$LD --version 2>/dev/null | head -n 1 | \ + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ +@@ -109934,7 +109934,7 @@ + echo "$as_me:$LINENO: checking for ld version" >&5 + echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + +- ldver=`$LD --version 2>/dev/null | head -1 | \ ++ ldver=`$LD --version 2>/dev/null | head -n 1 | \ + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ +@@ -110828,7 +110828,7 @@ + echo "$as_me:$LINENO: checking for ld version" >&5 + echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + +- ldver=`$LD --version 2>/dev/null | head -1 | \ ++ ldver=`$LD --version 2>/dev/null | head -n 1 | \ + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ +@@ -112114,7 +112114,7 @@ + echo "$as_me:$LINENO: checking for ld version" >&5 + echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + +- ldver=`$LD --version 2>/dev/null | head -1 | \ ++ ldver=`$LD --version 2>/dev/null | head -n 1 | \ + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ +@@ -112850,7 +112850,7 @@ + echo "$as_me:$LINENO: checking for ld version" >&5 + echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + +- ldver=`$LD --version 2>/dev/null | head -1 | \ ++ ldver=`$LD --version 2>/dev/null | head -n 1 | \ + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ +@@ -113351,7 +113351,7 @@ + echo "$as_me:$LINENO: checking for ld version" >&5 + echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + +- ldver=`$LD --version 2>/dev/null | head -1 | \ ++ ldver=`$LD --version 2>/dev/null | head -n 1 | \ + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ diff --git a/packages/toolchain/lang/gcc/100-uclibc-conf-gcc-4.4.0.diff b/packages/toolchain/lang/gcc/100-uclibc-conf-gcc-4.4.0.diff new file mode 100644 index 0000000000..cca8c82292 --- /dev/null +++ b/packages/toolchain/lang/gcc/100-uclibc-conf-gcc-4.4.0.diff @@ -0,0 +1,33 @@ +--- gcc/gcc/config/--- gcc/contrib/regression/objs-gcc.sh ++++ gcc/contrib/regression/objs-gcc.sh +@@ -105,6 +105,10 @@ + then + make all-gdb all-dejagnu all-ld || exit 1 + make install-gdb install-dejagnu install-ld || exit 1 ++elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ] ++ then ++ make all-gdb all-dejagnu all-ld || exit 1 ++ make install-gdb install-dejagnu install-ld || exit 1 + elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then + make bootstrap || exit 1 + make install || exit 1 +--- gcc/libjava/classpath/ltconfig ++++ gcc/libjava/classpath/ltconfig +@@ -603,7 +603,7 @@ + + # Transform linux* to *-*-linux-gnu*, to support old configure scripts. + case $host_os in +-linux-gnu*) ;; ++linux-gnu*|linux-uclibc*) ;; + linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` + esac + +@@ -1251,7 +1251,7 @@ + ;; + + # This must be Linux ELF. +-linux-gnu*) ++linux*) + version_type=linux + need_lib_prefix=no + need_version=no diff --git a/packages/toolchain/lang/gcc/100_uclibc-conf.diff b/packages/toolchain/lang/gcc/100_uclibc-conf.diff new file mode 100644 index 0000000000..6bad179e62 --- /dev/null +++ b/packages/toolchain/lang/gcc/100_uclibc-conf.diff @@ -0,0 +1,13 @@ +--- gcc/gcc/config/--- gcc/contrib/regression/objs-gcc.sh ++++ gcc/contrib/regression/objs-gcc.sh +@@ -105,6 +105,10 @@ + then + make all-gdb all-dejagnu all-ld || exit 1 + make install-gdb install-dejagnu install-ld || exit 1 ++elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ] ++ then ++ make all-gdb all-dejagnu all-ld || exit 1 ++ make install-gdb install-dejagnu install-ld || exit 1 + elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then + make bootstrap || exit 1 + make install || exit 1 diff --git a/packages/toolchain/lang/gcc/301-missing-execinfo_h-gcc-4.4.0.diff b/packages/toolchain/lang/gcc/301-missing-execinfo_h-gcc-4.4.0.diff new file mode 100644 index 0000000000..0e2092f3fb --- /dev/null +++ b/packages/toolchain/lang/gcc/301-missing-execinfo_h-gcc-4.4.0.diff @@ -0,0 +1,11 @@ +--- gcc-4.0.0/boehm-gc/include/gc.h-orig 2005-04-28 22:28:57.000000000 -0500 ++++ gcc-4.0.0/boehm-gc/include/gc.h 2005-04-28 22:30:38.000000000 -0500 +@@ -500,7 +500,7 @@ + #ifdef __linux__ + # include + # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \ +- && !defined(__ia64__) ++ && !defined(__ia64__) && !defined(__UCLIBC__) + # ifndef GC_HAVE_BUILTIN_BACKTRACE + # define GC_HAVE_BUILTIN_BACKTRACE + # endif diff --git a/packages/toolchain/lang/gcc/995-short-enums.diff b/packages/toolchain/lang/gcc/995-short-enums.diff new file mode 100644 index 0000000000..79afdb8fea --- /dev/null +++ b/packages/toolchain/lang/gcc/995-short-enums.diff @@ -0,0 +1,30 @@ +see gcc PR34205 +Index: gcc-4.3.0/gcc/rtl.h +=================================================================== +--- gcc-4.3.0/gcc/rtl.h (revision 130511) ++++ gcc-4.3.0/gcc/rtl.h (working copy) +@@ -48,9 +48,11 @@ + #include "rtl.def" /* rtl expressions are documented here */ + #undef DEF_RTL_EXPR + +- LAST_AND_UNUSED_RTX_CODE}; /* A convenient way to get a value for ++ LAST_AND_UNUSED_RTX_CODE /* A convenient way to get a value for + NUM_RTX_CODE. + Assumes default enum value assignment. */ ++ ,__LAST_AND_UNUSED_RTX_CODE=32767 /* Force 16bit width. */ ++}; + + #define NUM_RTX_CODE ((int) LAST_AND_UNUSED_RTX_CODE) + /* The cast here, saves many elsewhere. */ +Index: gcc-4.3.0/gcc/c-common.h +=================================================================== +--- gcc-4.3.0/gcc/c-common.h (revision 130511) ++++ gcc-4.3.0/gcc/c-common.h (working copy) +@@ -125,6 +125,7 @@ + RID_LAST_AT = RID_AT_IMPLEMENTATION, + RID_FIRST_PQ = RID_IN, + RID_LAST_PQ = RID_ONEWAY ++ ,__LAST_AND_UNUSED_RID=32767 /* Force 16bit width. */ + }; + + #define OBJC_IS_AT_KEYWORD(rid) \ diff --git a/packages/toolchain/lang/gcc/patches/995-short-enums.diff b/packages/toolchain/lang/gcc/patches/995-short-enums.diff index 79afdb8fea..03c470c9e4 100644 --- a/packages/toolchain/lang/gcc/patches/995-short-enums.diff +++ b/packages/toolchain/lang/gcc/patches/995-short-enums.diff @@ -1,4 +1,16 @@ see gcc PR34205 +Index: gcc-4.3.0/gcc/tree.h +=================================================================== +--- gcc-4.3.0/gcc/tree.h (revision 130511) ++++ gcc-4.3.0/gcc/tree.h (working copy) +@@ -38,6 +38,7 @@ + + LAST_AND_UNUSED_TREE_CODE /* A convenient way to get a value for + NUM_TREE_CODES. */ ++ ,__LAST_AND_UNUSED_TREE_CODE=32767 /* Force 16bit width. */ + }; + + #undef DEFTREECODE Index: gcc-4.3.0/gcc/rtl.h =================================================================== --- gcc-4.3.0/gcc/rtl.h (revision 130511) diff --git a/packages/toolchain/lang/gcc/url b/packages/toolchain/lang/gcc/url index b4ed9381b0..27801e151b 100644 --- a/packages/toolchain/lang/gcc/url +++ b/packages/toolchain/lang/gcc/url @@ -1,2 +1,2 @@ -ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-4.4.0/gcc-4.4.0.tar.bz2 +ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-4.3.3/gcc-4.3.3.tar.bz2