wok-6.x rev 21874

facter: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 28 11:31:06 2019 +0200 (2019-09-28)
parents bf5e98cbe36f
children 2e43f9923d01
files facter/receipt gcc83-lib-base/receipt sed/receipt
line diff
     1.1 --- a/facter/receipt	Fri Sep 27 15:06:17 2019 +0200
     1.2 +++ b/facter/receipt	Sat Sep 28 11:31:06 2019 +0200
     1.3 @@ -16,7 +16,7 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	cd $src
     1.8 +	sed -i "s|require 'tempfile'|&\\nrequire 'test/unit'|" install.rb
     1.9  	ruby ./install.rb \
    1.10  		--destdir=$DESTDIR \
    1.11  		--bindir=/usr/bin \
     2.1 --- a/gcc83-lib-base/receipt	Fri Sep 27 15:06:17 2019 +0200
     2.2 +++ b/gcc83-lib-base/receipt	Sat Sep 28 11:31:06 2019 +0200
     2.3 @@ -30,7 +30,7 @@
     2.4  post_remove()
     2.5  {
     2.6  	cd "$1/usr/lib"
     2.7 -	if [ "$(ls libstdc++.so.8.*.*)" ]; then
     2.8 +	if [ "$(ls libstdc++.so.8.*.* 2> /dev/null)" ]; then
     2.9  		ln -s libstdc++.so.8.*.* libstdc++.so.8
    2.10  		ln -s libstdc++.so.8.*.* libstdc++.so
    2.11  	fi
     3.1 --- a/sed/receipt	Fri Sep 27 15:06:17 2019 +0200
     3.2 +++ b/sed/receipt	Sat Sep 28 11:31:06 2019 +0200
     3.3 @@ -27,3 +27,13 @@
     3.4  	cook_copy_folders bin
     3.5  }
     3.6  
     3.7 +# Pre and post install commands for Tazpkg.
     3.8 +post_install()
     3.9 +{
    3.10 +	[ "$(readlink $1/bin/sed)" = "busybox" ] && mv $1/bin/sed $1/bin/sed-bb
    3.11 +}
    3.12 +
    3.13 +pre_remove()
    3.14 +{
    3.15 +	[ -e $1/bin/sed-bb ] && mv $1/bin/sed-bb $1/bin/sed
    3.16 +}