wok-undigest rev 1180

Update binutils in chroot (2.25)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Mon Nov 02 05:55:43 2015 +0100 (2015-11-02)
parents 507a1c6e863c
children f836b85e4c0d
files binutils/description.txt binutils/receipt gnome-panel/receipt libgweather-dev/receipt libgweather/receipt libsoup-dev/receipt libsoup/receipt mplayer/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/binutils/description.txt	Mon Nov 02 05:55:43 2015 +0100
     1.3 @@ -0,0 +1,4 @@
     1.4 +The GNU Binutils are a collection of binary tools. The main ones are:
     1.5 +
     1.6 +    ld - the GNU linker.
     1.7 +    as - the GNU assembler.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/binutils/receipt	Mon Nov 02 05:55:43 2015 +0100
     2.3 @@ -0,0 +1,73 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="binutils"
     2.7 +VERSION="2.25"
     2.8 +CATEGORY="development"
     2.9 +SHORT_DESC="GNU assembler, linker and binary utilities."
    2.10 +MAINTAINER="pankso@slitaz.org"
    2.11 +LICENSE="GPL2"
    2.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.13 +WEB_SITE="http://www.gnu.org/software/binutils/"
    2.14 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    2.15 +#WGET_URL="http://www.kernel.org/pub/linux/devel/binutils/$TARBALL"
    2.16 +PROVIDE="libbfd"
    2.17 +TAGS="assembler linker"
    2.18 +HOST_ARCH="i486 arm"
    2.19 +
    2.20 +DEPENDS="glibc zlib"
    2.21 +BUILD_DEPENDS="glibc-dev zlib-dev texinfo"
    2.22 +
    2.23 +# Handle cross compilation.
    2.24 +case "$ARCH" in
    2.25 +	arm) BUILD_DEPENDS="" ;;
    2.26 +esac
    2.27 +
    2.28 +# Rules to configure and make the package.
    2.29 +compile_rules()
    2.30 +{
    2.31 +	case "$ARCH" in
    2.32 +		i?86) ARCH_ARGS="--disable-werror" ;;
    2.33 +	esac
    2.34 +	mkdir -p ../binutils-build && cd ../binutils-build
    2.35 +	$src/configure \
    2.36 +		--program-prefix=$TOOLPREFIX \
    2.37 +		--enable-shared \
    2.38 +		--disable-initfini-array \
    2.39 +		--with-bugurl="http://bugs.slitaz.org/" \
    2.40 +		$CONFIGURE_ARGS $ARCH_ARGS &&
    2.41 +	make tooldir=/usr &&
    2.42 +	make tooldir=/usr install &&
    2.43 +	# This is the default binutils, so create symlinks to the target platform
    2.44 +	# binutil binaries. Delete duplicate binaries to save space.
    2.45 +	for binutil in $(ls -1 $DESTDIR/usr/bin | grep "${TOOLPREFIX}") ; do
    2.46 +		path="$DESTDIR/usr/bin/$(echo "$binutil" | sed "s:$TOOLPREFIX::g")"
    2.47 +		if [ -e $path ] ; then
    2.48 +			rm -f $path
    2.49 +		fi
    2.50 +		ln -s $binutil $path
    2.51 +	done
    2.52 +}
    2.53 +
    2.54 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.55 +genpkg_rules()
    2.56 +{
    2.57 +	mkdir -p $fs/usr/lib
    2.58 +	cp -a $install/usr/bin $fs/usr
    2.59 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.60 +	cp -a $install/usr/lib/*.a $fs/usr/lib
    2.61 +	cp -a $install/usr/include $fs/usr
    2.62 +
    2.63 +	# libiberty.h
    2.64 +	cp -a $src/include/libiberty.h $fs/usr/include
    2.65 +
    2.66 +	# Remove 'strings' (Busybox).
    2.67 +	#rm $fs/usr/lib/libiberty.a
    2.68 +	rm $fs/usr/bin/strings $fs/usr/bin/*-strings
    2.69 +
    2.70 +	# Remove build directory (cookutils and tazwok path).
    2.71 +	rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
    2.72 +	rm -rf $WOK/$PACKAGE/$PACKAGE-build
    2.73 +
    2.74 +	chown -R root:root $fs/usr/include/libiberty.h
    2.75 +	chmod 644 $fs/usr/include/libiberty.h
    2.76 +}
     3.1 --- a/gnome-panel/receipt	Mon Nov 02 05:11:43 2015 +0100
     3.2 +++ b/gnome-panel/receipt	Mon Nov 02 05:55:43 2015 +0100
     3.3 @@ -47,3 +47,4 @@
     3.4  		$fs/usr/share/icons/hicolor
     3.5  	rm $fs/usr/share/gnome-panelrc
     3.6  }
     3.7 +
     4.1 --- a/libgweather-dev/receipt	Mon Nov 02 05:11:43 2015 +0100
     4.2 +++ b/libgweather-dev/receipt	Mon Nov 02 05:55:43 2015 +0100
     4.3 @@ -19,3 +19,4 @@
     4.4  	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
     4.5  	cp -a $install/usr/include $fs/usr
     4.6  }
     4.7 +
     5.1 --- a/libgweather/receipt	Mon Nov 02 05:11:43 2015 +0100
     5.2 +++ b/libgweather/receipt	Mon Nov 02 05:55:43 2015 +0100
     5.3 @@ -40,4 +40,3 @@
     5.4  	
     5.5  	#cp -a $install/usr/share/dbus-1 $fs/usr/share
     5.6  }
     5.7 -
     6.1 --- a/libsoup-dev/receipt	Mon Nov 02 05:11:43 2015 +0100
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,22 +0,0 @@
     6.4 -# SliTaz package receipt.
     6.5 -
     6.6 -PACKAGE="libsoup-dev"
     6.7 -VERSION="2.44.2"
     6.8 -CATEGORY="x-window"
     6.9 -SHORT_DESC="GNOME Soup Library (devel files)."
    6.10 -MAINTAINER="pankso@slitaz.org"
    6.11 -LICENSE="LGPL2"
    6.12 -WANTED="libsoup"
    6.13 -WEB_SITE="http://live.gnome.org/LibSoup/"
    6.14 -
    6.15 -DEPENDS="libsoup libxml2-dev gnutls-dev glib-dev pkg-config"
    6.16 -
    6.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    6.18 -genpkg_rules()
    6.19 -{
    6.20 -	mkdir -p $fs/usr/lib $fs/usr/share
    6.21 -	cp -a $install/usr/lib/*.*a $fs/usr/lib
    6.22 -	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    6.23 -	cp -a $install/usr/include $fs/usr
    6.24 -	cp -a $install/usr/share/gir-1.0 $fs/usr/share
    6.25 -}
     7.1 --- a/libsoup/receipt	Mon Nov 02 05:11:43 2015 +0100
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,37 +0,0 @@
     7.4 -# SliTaz package receipt.
     7.5 -
     7.6 -PACKAGE="libsoup"
     7.7 -VERSION="2.44.2"
     7.8 -CATEGORY="x-window"
     7.9 -SHORT_DESC="GNOME Soup Library."
    7.10 -MAINTAINER="pankso@slitaz.org"
    7.11 -LICENSE="LGPL2"
    7.12 -TARBALL="$PACKAGE-$VERSION.tar.xz"
    7.13 -WEB_SITE="https://live.gnome.org/LibSoup/"
    7.14 -WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
    7.15 -
    7.16 -DEPENDS="glibc-base libxml2 zlib glib glib-networking libgio gtk+ \
    7.17 -libgnutls libtasn1 libgcrypt sqlite"
    7.18 -BUILD_DEPENDS="gtk+-dev glib-networking-dev libgio libgio-dev libxml2-dev \
    7.19 -libgcrypt-dev libtasn1-dev gobject-introspection-dev gnutls-dev zlib-dev \
    7.20 -sqlite-dev glib-dev"
    7.21 -
    7.22 -# Rules to configure and make the package.
    7.23 -compile_rules()
    7.24 -{
    7.25 -	./configure \
    7.26 -		--with-html-dir=/usr/share/doc \
    7.27 -		--disable-gtk-doc \
    7.28 -		--without-gnome \
    7.29 -		$CONFIGURE_ARGS &&
    7.30 -	make && make install
    7.31 -}
    7.32 -
    7.33 -# Rules to gen a SliTaz package suitable for Tazpkg.
    7.34 -genpkg_rules()
    7.35 -{
    7.36 -	mkdir -p $fs/usr/lib
    7.37 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    7.38 -	cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
    7.39 -}
    7.40 -
     8.1 --- a/mplayer/receipt	Mon Nov 02 05:11:43 2015 +0100
     8.2 +++ b/mplayer/receipt	Mon Nov 02 05:55:43 2015 +0100
     8.3 @@ -23,7 +23,8 @@
     8.4  # Rules to configure and make the package.
     8.5  compile_rules()
     8.6  {
     8.7 -
     8.8 +	export CFLAGS="$CFLAGS -mtune=i686"
     8.9 +	export CXXFLAGS="$CFLAGS"
    8.10  	ARCH_ARGS="--target=i486-linux --disable-sdl --enable-runtime-cpudetection"
    8.11  	./configure \
    8.12  		--prefix=/usr \
    8.13 @@ -44,8 +45,6 @@
    8.14  		--disable-faac \
    8.15  		--disable-speex \
    8.16  		${ARCH_ARGS} &&
    8.17 -	export CFLAGS="$CFLAGS -mtune=i686"
    8.18 -        export CXXFLAGS="$CFLAGS"
    8.19  	make $MAKEFLAGS &&
    8.20  	make DESTDIR=$DESTDIR install
    8.21  }