# HG changeset patch # User Aleksej Bobylev # Date 1482383461 -7200 # Node ID 10e3347b5a0da34c8509b70e67cb30d108103c4b # Parent a6984f0827942cb4bb7853fd5a4092c6df0e0863 Chapter 6: (linux-api-headers), man-pages, (glibc), zlib, (file), (binutils), gmp, mpfr, mpc-library, gcc, (bzip2), pkg-config, (ncurses), attr diff -r a6984f082794 -r 10e3347b5a0d attr-dev/receipt --- a/attr-dev/receipt Thu Dec 22 00:25:33 2016 +0200 +++ b/attr-dev/receipt Thu Dec 22 07:11:01 2016 +0200 @@ -7,17 +7,13 @@ MAINTAINER="rcx@zoominternet.net" LICENSE="GPL2" WEB_SITE="http://savannah.nongnu.org/projects/attr/" -WANTED="attr" HOST_ARCH="i486 arm" +WANTED="attr" DEPENDS="attr" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib $fs/lib - cp -a $install/usr/lib/*.*a $fs/usr/lib - ( cd $fs/lib ; ln -s ../usr/lib/*a . ) - cp -a $install/usr/include $fs/usr - find $fs -type f -name '*.la' -exec chmod a+x \{\} \; + cook_copy_files *.h *.la } diff -r a6984f082794 -r 10e3347b5a0d attr/receipt --- a/attr/receipt Thu Dec 22 00:25:33 2016 +0200 +++ b/attr/receipt Thu Dec 22 07:11:01 2016 +0200 @@ -6,13 +6,14 @@ SHORT_DESC="Commands for Manipulating Filesystem Extended Attributes." MAINTAINER="rcx@zoominternet.net" LICENSE="GPL2" -WEB_SITE="http://savannah.nongnu.org/projects/attr/" -TARBALL="$PACKAGE-$VERSION.src.tar.gz" -WGET_URL="http://download.savannah.gnu.org/releases-noredirect/$PACKAGE/$TARBALL" +WEB_SITE="http://savannah.nongnu.org/projects/attr" HOST_ARCH="i486 arm" +TARBALL="$PACKAGE-$VERSION.src.tar.gz" +WGET_URL="http://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL" + DEPENDS="glibc-base" -BUILD_DEPENDS="autoconf automake m4 libtool gettext" +BUILD_DEPENDS="autoconf automake m4 libtool gettext coreutils-operations" # When cross compiling auto-tools, gettext and m4 build system are used. case "$ARCH" in @@ -22,27 +23,26 @@ # Rules to configure and make the package. compile_rules() { - # Need bash sh to compile - mv /bin/sh /bin/sh.bak - ln -s /bin/bash /bin/sh + rm /bin/rpm + sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in - # No need to use rpm - rm /bin/rpm - - export INSTALL_USER=root INSTALL_GROUP=root - - ./configure $CONFIGURE_ARGS && + ./configure \ + --bindir=/bin \ + --disable-static \ + $CONFIGURE_ARGS && make && make install install-lib install-dev DIST_ROOT=$DESTDIR - - mv -f /bin/sh.bak /bin/sh + + mkdir -p $install/lib + mv $install/usr/lib/libattr.so.* $install/lib + ln -sf ../../lib/$(readlink $install/usr/lib/libattr.so) \ + $install/usr/lib/libattr.so + find $install -type f \( -name '*.so*' -o -name '*.la' \) \ + -exec chmod 755 \{\} \; } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib - cp -a $install/usr/lib/*.so* $fs/usr/lib - cp -a $install/usr/bin $fs/usr - find $fs -type f -name '*.so*' -exec chmod a+x \{\} \; + cook_copy_files attr getfattr setfattr *.so* } diff -r a6984f082794 -r 10e3347b5a0d gcc/receipt --- a/gcc/receipt Thu Dec 22 00:25:33 2016 +0200 +++ b/gcc/receipt Thu Dec 22 07:11:01 2016 +0200 @@ -16,7 +16,7 @@ # for cookutils that are not used by tazwok/cook-toolchain since it installs # and uses its own copy. DEPENDS="binutils libgomp libobjc gcc-lib-base mpc-library elfutils" -BUILD_DEPENDS="mpc-library mpfr-dev gmp-dev elfutils-dev zlib-dev" +BUILD_DEPENDS="mpc-library-dev mpfr-dev gmp-dev elfutils-dev zlib-dev" # Handle cross compilation (native i486/ARM gcc) case "$ARCH" in diff -r a6984f082794 -r 10e3347b5a0d gmp-dev/receipt --- a/gmp-dev/receipt Thu Dec 22 00:25:33 2016 +0200 +++ b/gmp-dev/receipt Thu Dec 22 07:11:01 2016 +0200 @@ -1,20 +1,19 @@ # SliTaz package receipt PACKAGE="gmp-dev" -VERSION="6.0.0a" +VERSION="6.1.1" CATEGORY="development" SHORT_DESC="GNU Multiple Precision Arithmetic devel files." MAINTAINER="pankso@slitaz.org" LICENSE="GPL3" +WEB_SITE="https://gmplib.org/" +HOST_ARCH="i486 arm" + WANTED="gmp" -WEB_SITE="http://gmplib.org/" -HOST_ARCH="i486 arm" +DEPENDS="gmp" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib - cp -a $install/usr/lib/*.*a $fs/usr/lib - cp -a $install/usr/include $fs/usr + cook_copy_files *.h *.la } - diff -r a6984f082794 -r 10e3347b5a0d gmp/receipt --- a/gmp/receipt Thu Dec 22 00:25:33 2016 +0200 +++ b/gmp/receipt Thu Dec 22 07:11:01 2016 +0200 @@ -1,32 +1,42 @@ # SliTaz package receipt PACKAGE="gmp" -VERSION="6.0.0a" +VERSION="6.1.1" CATEGORY="development" SHORT_DESC="GNU Multiple Precision Arithmetic Library." MAINTAINER="pankso@slitaz.org" LICENSE="GPL3" -TARBALL="$PACKAGE-$VERSION.tar.bz2" -WEB_SITE="http://gmplib.org/" -WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" +WEB_SITE="https://gmplib.org/" HOST_ARCH="i486 arm" -BUILD_DEPENDS="binutils m4" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" + +BUILD_DEPENDS="binutils m4 ncurses-dev readline-dev texinfo" # Rules to configure and make the package. compile_rules() { ./configure \ --enable-cxx \ + --disable-static \ + --docdir=/usr/share/doc/gmp-$VERSION \ $CONFIGURE_ARGS && # -j > 1 make install fails. - make && make -j 1 install + make && make html && make install && make install-html } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib - cp -a $install/usr/lib/*.so* $fs/usr/lib + cook_copy_files *.so* } +testsuite() +{ + checklog=$(mktemp) + make check 2>&1 | tee $checklog + pass=$(awk '/# PASS:/{total+=$3} ; END{print total}' $checklog) + echo "$pass / 190 tests passed" + rm $checklog +} diff -r a6984f082794 -r 10e3347b5a0d man-pages/receipt --- a/man-pages/receipt Thu Dec 22 00:25:33 2016 +0200 +++ b/man-pages/receipt Thu Dec 22 07:11:01 2016 +0200 @@ -1,12 +1,12 @@ # SliTaz package receipt. PACKAGE="man-pages" -VERSION="4.06" +VERSION="4.07" CATEGORY="doc" SHORT_DESC="Linux manual pages" MAINTAINER="al.bobylev@gmail.com" LICENSE="" -WEB_SITE="http://www.kernel.org/doc/man-pages/" +WEB_SITE="https://www.kernel.org/doc/man-pages/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="https://www.kernel.org/pub/linux/docs/man-pages/$TARBALL" diff -r a6984f082794 -r 10e3347b5a0d mpc-library-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mpc-library-dev/receipt Thu Dec 22 07:11:01 2016 +0200 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="mpc-library-dev" +VERSION="1.0.3" +CATEGORY="development" +SHORT_DESC="MPC is a C library for the arithmetic of complex numbers." +MAINTAINER="pankso@slitaz.org" +LICENSE="GPL2" +WEB_SITE="http://www.multiprecision.org/" +HOST_ARCH="i486 arm" + +WANTED="mpc-library" +DEPENDS="mpc-library mpfr-dev gmp-dev" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cook_copy_files *.h *.la +} diff -r a6984f082794 -r 10e3347b5a0d mpc-library/receipt --- a/mpc-library/receipt Thu Dec 22 00:25:33 2016 +0200 +++ b/mpc-library/receipt Thu Dec 22 07:11:01 2016 +0200 @@ -6,28 +6,28 @@ SHORT_DESC="MPC is a C library for the arithmetic of complex numbers." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" -SOURCE="mpc" -TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="http://www.multiprecision.org/" -WGET_URL="http://www.multiprecision.org/mpc/download/$TARBALL" HOST_ARCH="i486 arm" -#BUGS="Shared libs dont build with 0.9" +TARBALL="mpc-$VERSION.tar.gz" +WGET_URL="${WEB_SITE}mpc/download/$TARBALL" DEPENDS="mpfr gmp" -BUILD_DEPENDS="mpfr-dev gmp-dev" +BUILD_DEPENDS="mpfr-dev gmp-dev texinfo" compile_rules() { #patch -Np1 -i $stuff/libmpc-0.9-configure_cflags_egrep_issue.patch - ./configure $CONFIGURE_ARGS && make && make install + + ./configure \ + --disable-static \ + --docdir=/usr/share/doc/mpc-$VERSION \ + $CONFIGURE_ARGS && + make && make html && make install && make install-html } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr - cp -a $install/usr/lib $fs/usr - cp -a $install/usr/include $fs/usr + cook_copy_files *.so* } - diff -r a6984f082794 -r 10e3347b5a0d mpfr-dev/receipt --- a/mpfr-dev/receipt Thu Dec 22 00:25:33 2016 +0200 +++ b/mpfr-dev/receipt Thu Dec 22 07:11:01 2016 +0200 @@ -6,10 +6,10 @@ SHORT_DESC="GNU Multiple Precision Arithmetic devel files." MAINTAINER="pankso@slitaz.org" LICENSE="GPL3" -WANTED="mpfr" WEB_SITE="http://www.mpfr.org/" HOST_ARCH="i486 arm" +WANTED="mpfr" DEPENDS="mpfr" # Rules to gen a SliTaz package suitable for Tazpkg. diff -r a6984f082794 -r 10e3347b5a0d mpfr/receipt --- a/mpfr/receipt Thu Dec 22 00:25:33 2016 +0200 +++ b/mpfr/receipt Thu Dec 22 07:11:01 2016 +0200 @@ -6,13 +6,14 @@ SHORT_DESC="C library for multiple-precision floating-point computations." MAINTAINER="pankso@slitaz.org" LICENSE="GPL3" -TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.mpfr.org/" -WGET_URL="http://www.mpfr.org/mpfr-current/$TARBALL" HOST_ARCH="i486 arm" +TARBALL="$PACKAGE-$VERSION.tar.xz" +WGET_URL="http://www.mpfr.org/$PACKAGE-$VERSION/$TARBALL" + DEPENDS="gmp" -BUILD_DEPENDS="gmp-dev" +BUILD_DEPENDS="gmp-dev texinfo" #--with-gmp-lib=/cross/$ARCH/sysroot/usr/lib #--with-gmp-include=/cross/$ARCH/sysroot/usr/include @@ -20,19 +21,14 @@ # Rules to configure and make the package. compile_rules() { - patch -Np1 -i $stuff/mpfr-3.1.2-upstream_fixes-3.patch - case "$ARCH" in - i?86) - ./configure \ - --enable-thread-safe \ - $CONFIGURE_ARGS && - make && make check && make install ;; - *) - ./configure \ - --enable-thread-safe \ - $CONFIGURE_ARGS && - make && make install ;; - esac +# patch -Np1 -i $stuff/mpfr-3.1.2-upstream_fixes-3.patch + + ./configure \ + --disable-static \ + --enable-thread-safe \ + --docdir=/usr/share/doc/mpfr-$VERSION \ + $CONFIGURE_ARGS && + make && make html && make install && make install-html } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -40,3 +36,8 @@ { cook_copy_files *.so* } + +testsuite() +{ + case "$ARCH" in i?86) make check;; esac +} diff -r a6984f082794 -r 10e3347b5a0d pkg-config/receipt --- a/pkg-config/receipt Thu Dec 22 00:25:33 2016 +0200 +++ b/pkg-config/receipt Thu Dec 22 07:11:01 2016 +0200 @@ -1,18 +1,19 @@ # SliTaz package receipt. PACKAGE="pkg-config" -VERSION="0.28" +VERSION="0.29.1" CATEGORY="development" SHORT_DESC="Free desktop packages manager." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" -TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="http://pkgconfig.freedesktop.org/wiki/" -WGET_URL="http://pkgconfig.freedesktop.org/releases/$TARBALL" +WEB_SITE="https://www.freedesktop.org/wiki/Software/pkg-config/" HOST_ARCH="i486 arm" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://pkg-config.freedesktop.org/releases/$TARBALL" + DEPENDS="glibc-base" -BUILD_DEPENDS="gcc libtool" +BUILD_DEPENDS="gcc libtool perl" # Handle cross compilation. case "$ARCH" in @@ -22,8 +23,9 @@ # Rules to configure and make the package. compile_rules() { - patch -p1 < $stuff/autoconf-2.66.patch - sed -i 's/\$(LN) pkg-config\$(EXEEXT) \$(host_tool)/echo \1/' Makefile* +# patch -p1 < $stuff/autoconf-2.66.patch +# sed -i 's/\$(LN) pkg-config\$(EXEEXT) \$(host_tool)/echo \1/' Makefile* + case "$ARCH" in arm) ./configure \ @@ -33,21 +35,24 @@ --cache-file=arm-linux.cache ;; *) ./configure \ - --program-prefix=$TOOLPREFIX \ + --prefix=/usr \ + --with-internal-glib \ + --disable-compile-warnings \ + --disable-host-tool \ + --docdir=/usr/share/doc/pkg-config-$VERSION \ --build=$HOST_SYSTEM \ - --host=$HOST_SYSTEM 2>&1 | \ - grep -v './libtool: No such file' ;; + --host=$HOST_SYSTEM + ;; esac && make && make install + + cd $install/usr/bin + mv pkg-config ${TOOLPREFIX}pkg-config + ln -s ${TOOLPREFIX}pkg-config pkg-config } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/share/aclocal $fs/usr/share - # This is the default pkg-config so make a symling for package that dont - # cross compile or search for /usr/bin/pkg-config. - cd $fs/usr/bin && ln -s ${TOOLPREFIX}pkg-config pkg-config + cook_copy_files *pkg-config *.m4 } diff -r a6984f082794 -r 10e3347b5a0d zlib-dev/receipt --- a/zlib-dev/receipt Thu Dec 22 00:25:33 2016 +0200 +++ b/zlib-dev/receipt Thu Dec 22 07:11:01 2016 +0200 @@ -6,17 +6,14 @@ SHORT_DESC="Zlib compression library devel files." MAINTAINER="pankso@slitaz.org" LICENSE="zlib/libpng" -WANTED="zlib" WEB_SITE="http://zlib.net/" HOST_ARCH="i486 arm x86_64" +WANTED="zlib" DEPENDS="zlib pkg-config" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib - cp -a $install/usr/lib/*.*a $fs/usr/lib - cp -a $install/usr/lib/pkgconfig $fs/usr/lib - cp -a $install/usr/include $fs/usr + cook_copy_files *.h *.a *.pc } diff -r a6984f082794 -r 10e3347b5a0d zlib/receipt --- a/zlib/receipt Thu Dec 22 00:25:33 2016 +0200 +++ b/zlib/receipt Thu Dec 22 07:11:01 2016 +0200 @@ -6,10 +6,11 @@ SHORT_DESC="Compression library" MAINTAINER="pankso@slitaz.org" LICENSE="zlib/libpng" +WEB_SITE="http://www.zlib.net/" +HOST_ARCH="i486 arm x86_64" + TARBALL="$PACKAGE-$VERSION.tar.xz" -WEB_SITE="http://zlib.net" -WGET_URL="$SF_MIRROR/libpng/$TARBALL" -HOST_ARCH="i486 arm x86_64" +WGET_URL="$WEB_SITE$TARBALL" DEPENDS="glibc-base" BUILD_DEPENDS="" @@ -17,25 +18,30 @@ # Rules to configure and make the package. compile_rules() { - case "$ARCH" in - i486) - # work around gcc bug; see https://bugs.archlinux.org/task/20647 - export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" ;; - esac - ./configure --prefix=/usr --shared && - make && make install +# case "$ARCH" in +# i486) +# # work around gcc bug; see https://bugs.archlinux.org/task/20647 +# export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" ;; +# esac + + ./configure --prefix=/usr && + make && make install + + mkdir -p $install/lib + mv -v $install/usr/lib/libz.so.* $install/lib + ln -sf ../../lib/$(readlink $install/usr/lib/libz.so) \ + $install/usr/lib/libz.so } # Important cross compiled package so run readelf. testsuite() { cd $install - readelf -h usr/lib/*.so.$VERSION + readelf -h lib/*.so.$VERSION } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib - cp -a $install/usr/lib/libz.so* $fs/usr/lib + cook_copy_files libz.so* } diff -r a6984f082794 -r 10e3347b5a0d zlib/stuff/zlib-1.2.5-lfs-decls.patch --- a/zlib/stuff/zlib-1.2.5-lfs-decls.patch Thu Dec 22 00:25:33 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -Index: zlib-1.2.5/zlib.h -=================================================================== ---- zlib-1.2.5.orig/zlib.h -+++ zlib-1.2.5/zlib.h -@@ -1578,7 +1578,7 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF( - # define gzoffset gzoffset64 - # define adler32_combine adler32_combine64 - # define crc32_combine crc32_combine64 --# ifdef _LARGEFILE64_SOURCE -+# ifndef _LARGEFILE64_SOURCE - ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); - ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int)); - ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));