wok diff coreutils/receipt @ rev 21339

updated gnuradio (3.7.10.1 -> 3.7.13.4)
author Hans-G?nter Theisgen
date Sat Apr 20 11:34:23 2019 +0100 (2019-04-20)
parents d6ca18366f41
children 9b6a3a5c1a07
line diff
     1.1 --- a/coreutils/receipt	Mon Dec 21 02:53:09 2015 +0200
     1.2 +++ b/coreutils/receipt	Sat Apr 20 11:34:23 2019 +0100
     1.3 @@ -1,90 +1,84 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="coreutils"
     1.7 -VERSION="8.12"
     1.8 +VERSION="8.25"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="Utilities for using and setting the basic system."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12  LICENSE="GPL3"
    1.13 +WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
    1.14  TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.15 -WEB_SITE="http://www.gnu.org/software/coreutils/"
    1.16 -WGET_URL="ftp://ftp.gnu.org/gnu/$PACKAGE/$TARBALL"
    1.17 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.18  
    1.19 -DEPENDS="glibc-base gmp libcap"
    1.20 -BUILD_DEPENDS="slitaz-toolchain libcap-dev gmp-dev m4 autoconf automake"
    1.21 +SIBLINGS="coreutils-multicall"
    1.22 +SPLIT="coreutils-character coreutils-command coreutils-conditions coreutils-\
    1.23 +context-system coreutils-context-user coreutils-context-working coreutils-\
    1.24 +directory coreutils-disk coreutils-file-attributes coreutils-file-format \
    1.25 +coreutils-file-output-full coreutils-file-output-part coreutils-file-sort \
    1.26 +coreutils-file-special coreutils-file-summarize coreutils-line coreutils-\
    1.27 +numeric coreutils-operations coreutils-path coreutils-print coreutils-\
    1.28 +redirection"
    1.29 +DEPENDS="glibc-base acl attr gmp"
    1.30 +BUILD_DEPENDS="automake xz libcap-dev gmp-dev"
    1.31  
    1.32  # Rules to configure and make the package.
    1.33  compile_rules()
    1.34  {
    1.35 -	# NOTE: There does not seem to be a problem with sigcontext.h in Linux 2.6.29.3
    1.36 +	# LFS: Coreutils Internationalization Fixes Patch
    1.37 +	patch -Np1 -i $stuff/coreutils-8.25-i18n-2.patch
    1.38 +	# SliTaz: show extended info touching CPU via uname
    1.39 +	patch  -p1 -i $stuff/uname.u
    1.40  
    1.41 -	# Hack to fix ls: expected specifier-qualifier-list before '__u64'
    1.42 -	# Hack to change uname: so can see the cpu type your running on with uname
    1.43 -	while read patch_file; do
    1.44 -		if [ -f done.$patch_file ]; then
    1.45 -			echo "Skipping $patch_file"
    1.46 -			continue
    1.47 -		fi
    1.48 -		echo "Apply $patch_file"
    1.49 -		patch -p1 < $stuff/$patch_file || return 1
    1.50 -		touch done.$patch_file
    1.51 -	done <<EOT
    1.52 -ls.u
    1.53 -uname.u
    1.54 -EOT
    1.55 +	autoreconf -fi
    1.56  
    1.57 -	sed -i 's/1.10a/1.10.2/' configure.ac || return 1
    1.58 -	sed -i 's/dist-xz/dist-lzma/' configure.ac || return 1
    1.59 -
    1.60 -	./configure $CONFIGURE_ARGS &&
    1.61 +	FORCE_UNSAFE_CONFIGURE=1 ./configure $CONFIGURE_ARGS &&
    1.62  	make && make install
    1.63  
    1.64 -	# Restore original sigcontext.h
    1.65 -	# mv -f /usr/include/asm/sigcontext.h.bak /usr/include/asm/sigcontext.h
    1.66 +	# LFS: Move programs to the locations specified by the FHS
    1.67 +	mkdir -p \
    1.68 +		$install/bin \
    1.69 +		$install/usr/sbin \
    1.70 +		$install/usr/share/man/man8
    1.71 +	for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \
    1.72 +		mknod mv pwd rm rmdir stty sync true uname; do
    1.73 +		mv $install/usr/bin/$i $install/bin
    1.74 +	done
    1.75 +	mv  $install/usr/bin/chroot $install/usr/sbin
    1.76 +	mv  $install/usr/share/man/man1/chroot.1 \
    1.77 +		$install/usr/share/man/man8/chroot.8
    1.78 +	sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8
    1.79 +
    1.80 +	find $install/usr/share/man -type f -exec gzip -9 \{\} \;
    1.81  }
    1.82  
    1.83  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.84 -#
    1.85 -# This is a special package for installed system or developer. We only take
    1.86 -# a fiew things, Busybox provide all the basic utilitie, but not for compiling.
    1.87 -# But DO NOT ecrase a Busybox applet, remove it before with pre_install rules.
    1.88 -#
    1.89  genpkg_rules()
    1.90  {
    1.91 +	# A set of binaries looks intriguing, isn't it?
    1.92 +	# For what is this package with exactly these binaries?
    1.93 +
    1.94  	mkdir -p $fs/usr/bin $fs/bin
    1.95 -	# Utils...
    1.96 -	cp -a $install/usr/bin/base64 $fs/usr/bin
    1.97 -	cp -a $install/usr/bin/csplit $fs/usr/bin
    1.98 -	cp -a $install/usr/bin/factor $fs/usr/bin
    1.99 -	cp -a $install/usr/bin/fmt $fs/usr/bin
   1.100 -	cp -a $install/usr/bin/join $fs/usr/bin
   1.101 -	cp -a $install/usr/bin/od $fs/usr/bin
   1.102 -	cp -a $install/usr/bin/paste $fs/usr/bin
   1.103 -	cp -a $install/usr/bin/ptx $fs/usr/bin
   1.104 -	cp -a $install/usr/bin/shred $fs/usr/bin
   1.105 -	cp -a $install/usr/bin/shuf $fs/usr/bin
   1.106 -	cp -a $install/usr/bin/split $fs/usr/bin
   1.107 -	cp -a $install/usr/bin/users $fs/usr/bin
   1.108 -	cp -a $install/usr/bin/groups $fs/usr/bin
   1.109 -	cp -a $install/usr/bin/cp $fs/usr/bin
   1.110 +
   1.111 +	cd $install/usr/bin
   1.112 +	cp -a base64 csplit factor fmt join od paste ptx shred shuf split users \
   1.113 +		groups $fs/usr/bin
   1.114 +
   1.115 +	cp -a $install/bin/cp $fs/bin
   1.116  }
   1.117  
   1.118  post_install()
   1.119  {
   1.120 -	rm "$1/bin/cp" &&
   1.121 -	mv "$1/usr/bin/cp" "$1/bin"
   1.122 +	# Remove Busybox applet in order to not clash with
   1.123 +	# /usr/bin/base64 from this package.
   1.124 +	rm "$1/bin/base64"
   1.125  }
   1.126  
   1.127  post_remove()
   1.128  {
   1.129 -	ln -s ../../bin/busybox "$1/usr/bin/od"
   1.130 -	ln -s ../../bin/busybox "$1/usr/bin/split"
   1.131 -	rm -f "$1/bin/cp"
   1.132 -	ln -s busybox "$1/bin/cp"
   1.133 +	ln -s      busybox "$1/bin/base64"
   1.134 +	ln -s      busybox "$1/bin/cp"
   1.135 +	ln -s /bin/busybox "$1/usr/bin/groups"
   1.136 +	ln -s /bin/busybox "$1/usr/bin/od"
   1.137 +	ln -s /bin/busybox "$1/usr/bin/split"
   1.138 +	ln -s /bin/busybox "$1/usr/bin/users"
   1.139  }
   1.140 -
   1.141 -clean_wok()
   1.142 -{
   1.143 -	rm -rf $WOK/$PACKAGE-*/taz
   1.144 -	rm -rf $WOK/$PACKAGE-*/process.log
   1.145 -}