wok-next rev 20659

Up libical (3.0.1), libidn2 (2.0.4), libunistring (0.9.8), logrotate (3.11.0), mc (4.8.20), mercurial (4.5), nasm (2.13.03), newt (0.52.20), node (9.5.0), opencv (3.4.1), slitaz-tools-boxes (1028), slitaz-tools (1028), spacefm (1.0.6), tiff (4.0.9); add npapi-sdk, obex-data-server.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed May 09 16:46:19 2018 +0300 (2018-05-09)
parents 0a9b2a43d493
children c7b121a4ffd9
files libical/receipt libidn2/receipt libunique/receipt libunistring/receipt logrotate/receipt logrotate/stuff/logrotate.conf logrotate/stuff/sys.log lsof/receipt lua/receipt lzo/receipt mc/receipt mc/stuff/patches/mc-slitaz.patch mc/stuff/patches/series mercurial/receipt nasm/receipt newt/receipt node/receipt node/stuff/SConstruct node/stuff/SConstruct.patch npapi-sdk/receipt npth/receipt nspr/receipt obex-data-server/receipt obex-data-server/stuff/patches/obex-data-server-0.4.6-build-fixes-1.patch obex-data-server/stuff/patches/series opencv/receipt slitaz-tools-boxes/receipt slitaz-tools/receipt spacefm-gtk2/receipt spacefm/receipt spacefm/stuff/applications/spacefm-desktop-pref.desktop spacefm/stuff/autostart/spacefm.desktop spacefm/stuff/prefdlg.ui.diff spacefm/stuff/settings.h.diff spacefm/stuff/spacefm-desktop-pref.desktop spacefm/stuff/spacefm.conf spacefm/stuff/vfs-file-task.c.diff tiff/receipt
line diff
     1.1 --- a/libical/receipt	Sun May 06 04:24:54 2018 +0300
     1.2 +++ b/libical/receipt	Wed May 09 16:46:19 2018 +0300
     1.3 @@ -1,42 +1,43 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="libical"
     1.7 -VERSION="2.0.0"
     1.8 +VERSION="3.0.1"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="iCalendar library implementation in C"
    1.11  MAINTAINER="erjo@slitaz.org"
    1.12  LICENSE="MPL LGPL2.1"
    1.13  WEB_SITE="https://github.com/libical"
    1.14 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libical.html"
    1.15  
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17  WGET_URL="https://github.com/libical/libical/releases/download/v$VERSION/$TARBALL"
    1.18  
    1.19 -BUILD_DEPENDS="cmake perl db-dev gobject-introspection-dev"
    1.20 +BUILD_DEPENDS="cmake perl db-dev glib-dev gobject-introspection-dev libxml2-dev"
    1.21  SPLIT="libical-dev"
    1.22  
    1.23 -# Rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{
    1.26 -	# http://www.linuxfromscratch.org/blfs/view/stable/general/libical.html
    1.27 -	mkdir build &&
    1.28 -	cd build &&
    1.29 +compile_rules() {
    1.30 +	mkdir build
    1.31 +	cd    build
    1.32  	cmake \
    1.33  		-DCMAKE_INSTALL_PREFIX=/usr \
    1.34  		-DCMAKE_BUILD_TYPE=Release \
    1.35  		-DSHARED_ONLY=yes \
    1.36  		.. &&
    1.37 -	make && make install || return 1
    1.38 +	make &&
    1.39 +	make install || return 1
    1.40  
    1.41 -	docdir="$install/usr/share/doc/$PACKAGE-$VERSION"
    1.42 -	mkdir -p $docdir
    1.43 -	cp -r $src/doc/UsingLibical.txt $docdir
    1.44 +	cook_pick_docs $src/doc/UsingLibical.txt
    1.45  }
    1.46  
    1.47 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.48 -genpkg_rules()
    1.49 -{
    1.50 +genpkg_rules() {
    1.51  	case $PACKAGE in
    1.52 -		libical) copy @std;;
    1.53 -		*-dev)   copy @dev;;
    1.54 +		libical)
    1.55 +			copy @std
    1.56 +			DEPENDS="glib libdb"
    1.57 +			;;
    1.58 +		*-dev)
    1.59 +			copy @dev
    1.60 +			DEPENDS="libical glib-dev"
    1.61 +			;;
    1.62  	esac
    1.63  }
     2.1 --- a/libidn2/receipt	Sun May 06 04:24:54 2018 +0300
     2.2 +++ b/libidn2/receipt	Wed May 09 16:46:19 2018 +0300
     2.3 @@ -1,21 +1,24 @@
     2.4  # SliTaz package receipt v2.
     2.5  
     2.6  PACKAGE="libidn2"
     2.7 -VERSION="2.0.0"
     2.8 +VERSION="2.0.4"
     2.9  CATEGORY="system-tools"
    2.10  SHORT_DESC="Encode and decode internationalized domain names"
    2.11  MAINTAINER="al.bobylev@gmail.com"
    2.12  LICENSE="GPL3 LGPL2.1"
    2.13  WEB_SITE="https://www.gnu.org/software/libidn/"
    2.14 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libidn2.html"
    2.15  
    2.16 -TARBALL="$PACKAGE-$VERSION.tar.xz"
    2.17 -WGET_URL="https://alpha.gnu.org/gnu/libidn/$TARBALL"
    2.18 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.19 +WGET_URL="$GNU_MIRROR/libidn/$TARBALL"
    2.20  
    2.21  BUILD_DEPENDS="gtk-doc gettext"
    2.22  SPLIT="libidn2-dev"
    2.23  
    2.24  compile_rules() {
    2.25 -	./configure $CONFIGURE_ARGS &&
    2.26 +	./configure \
    2.27 +		--disable-static \
    2.28 +		$CONFIGURE_ARGS &&
    2.29  	fix libtool &&
    2.30  	make &&
    2.31  	make install
     3.1 --- a/libunique/receipt	Sun May 06 04:24:54 2018 +0300
     3.2 +++ b/libunique/receipt	Wed May 09 16:46:19 2018 +0300
     3.3 @@ -33,20 +33,11 @@
     3.4  	case $PACKAGE in
     3.5  		libunique)
     3.6  			copy @std
     3.7 -			DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib gtk+ \
     3.8 -			libffi libharfbuzz liblzma libpng16 libxml2 pango pcre \
     3.9 -			util-linux-blkid util-linux-mount util-linux-uuid xorg-libX11 \
    3.10 -			xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender xorg-libxcb \
    3.11 -			xorg-pixman zlib"
    3.12 +			DEPENDS="glib gtk+ xorg-libX11"
    3.13  			;;
    3.14  		*-dev)
    3.15  			copy @dev
    3.16 -			DEPENDS="libunique atk-dev bzip2-dev cairo-dev fontconfig-dev \
    3.17 -			freetype-dev gdk-pixbuf-dev glib-dev gtk+-dev harfbuzz-dev \
    3.18 -			libffi-dev libpng16-dev libxml2-dev pango-dev pcre-dev \
    3.19 -			util-linux-blkid-dev util-linux-mount-dev util-linux-uuid-dev \
    3.20 -			xorg-libX11-dev xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev \
    3.21 -			xorg-libXrender-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
    3.22 +			DEPENDS="libunique gtk+-dev"
    3.23  			;;
    3.24  	esac
    3.25  }
     4.1 --- a/libunistring/receipt	Sun May 06 04:24:54 2018 +0300
     4.2 +++ b/libunistring/receipt	Wed May 09 16:46:19 2018 +0300
     4.3 @@ -1,12 +1,13 @@
     4.4  # SliTaz package receipt v2.
     4.5  
     4.6  PACKAGE="libunistring"
     4.7 -VERSION="0.9.7"
     4.8 +VERSION="0.9.8"
     4.9  CATEGORY="libdevel"
    4.10  SHORT_DESC="Unicode string library"
    4.11  MAINTAINER="al.bobylev@gmail.com"
    4.12  LICENSE="GPL3 LGPL3 FDL"
    4.13  WEB_SITE="https://www.gnu.org/software/libunistring/"
    4.14 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libunistring.html"
    4.15  
    4.16  TARBALL="$PACKAGE-$VERSION.tar.xz"
    4.17  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    4.18 @@ -14,7 +15,9 @@
    4.19  SPLIT="libunistring-dev"
    4.20  
    4.21  compile_rules() {
    4.22 -	./configure $CONFIGURE_ARGS &&
    4.23 +	./configure \
    4.24 +		--disable-static \
    4.25 +		$CONFIGURE_ARGS &&
    4.26  	fix libtool &&
    4.27  	make &&
    4.28  	make install
     5.1 --- a/logrotate/receipt	Sun May 06 04:24:54 2018 +0300
     5.2 +++ b/logrotate/receipt	Wed May 09 16:46:19 2018 +0300
     5.3 @@ -1,49 +1,47 @@
     5.4 -# SliTaz package receipt.
     5.5 +# SliTaz package receipt v2.
     5.6  
     5.7  PACKAGE="logrotate"
     5.8 -VERSION="3.8.2"
     5.9 +VERSION="3.11.0"
    5.10  CATEGORY="system-tools"
    5.11 -SHORT_DESC="Automatic rotation compression, removal of log files."
    5.12 +SHORT_DESC="Automatic rotation compression, removal of log files"
    5.13  MAINTAINER="pascal.bellard@slitaz.org"
    5.14  LICENSE="GPL2"
    5.15 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    5.16 -WEB_SITE="https://fedorahosted.org/logrotate/"
    5.17 -WGET_URL="https://fedorahosted.org/releases/l/o/logrotate/$TARBALL"
    5.18 -CONFIG_FILE="/etc/logrotate.conf"
    5.19 +WEB_SITE="https://github.com/logrotate/logrotate"
    5.20 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/logrotate.html"
    5.21  
    5.22 -DEPENDS="popt"
    5.23 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    5.24 +WGET_URL="https://github.com/logrotate/logrotate/releases/download/$VERSION/$TARBALL"
    5.25 +
    5.26  BUILD_DEPENDS="popt-dev"
    5.27  
    5.28 -# Rules to configure and make the package.
    5.29 -compile_rules()
    5.30 -{
    5.31 -	make && make PREFIX=$DESTDIR MANDIR=/usr/share/man install
    5.32 +compile_rules() {
    5.33 +	sed -i '/exit 5/s/^/echo uncompress failed -- skipping #/' test/test
    5.34 +
    5.35 +	./configure $CONFIGURE_ARGS &&
    5.36 +	make &&
    5.37 +	make install || return 1
    5.38 +
    5.39 +	install -Dm644 $stuff/logrotate.conf $install/etc/logrotate.conf
    5.40 +	install -Dm644 $stuff/sys.log        $install/etc/logrotate.d/sys.log
    5.41  }
    5.42  
    5.43 -# Rules to gen a SliTaz package suitable for Tazpkg.
    5.44 -genpkg_rules()
    5.45 -{
    5.46 -	mkdir -p $fs/usr $fs/etc
    5.47 -	echo -e "#Logrotate Config file\n\ninclude /etc/logrotate.d" \
    5.48 -	  > $fs/etc/logrotate.conf
    5.49 -	cp -a $install/usr/sbin $fs/usr
    5.50 +genpkg_rules() {
    5.51 +	copy @std
    5.52 +	DEPENDS="popt"
    5.53 +	CONFIG_FILE="/etc/logrotate.conf"
    5.54  }
    5.55  
    5.56 -post_install()
    5.57 -{
    5.58 +post_install() {
    5.59  	if [ -f "$1/var/spool/cron/crontabs/root" ]; then
    5.60 -		echo "Runing post install command..."
    5.61 -		echo -e "#Run log rotation\n25 6 * * * /usr/sbin/logrotate /etc/logrotate.conf " \
    5.62 -	   		>> "$1/var/spool/cron/crontabs/root"
    5.63 +		cat >> "$1/var/spool/cron/crontabs/root" <<EOT
    5.64 +# Run log rotation
    5.65 +25 6 * * * /usr/sbin/logrotate /etc/logrotate.conf
    5.66 +EOT
    5.67  	fi
    5.68  }
    5.69  
    5.70 -
    5.71 -post_remove()
    5.72 -{
    5.73 +post_remove() {
    5.74  	if [ -f "$1/var/spool/cron/crontabs/root" ]; then
    5.75 -		echo "Runing post install command..."
    5.76 -		sed -i s!.*logrotate.*!!  "$1/var/spool/cron/crontabs/root"
    5.77 +		sed -i 's!.*logrotate.*!!' "$1/var/spool/cron/crontabs/root"
    5.78  	fi
    5.79  }
    5.80 -		
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/logrotate/stuff/logrotate.conf	Wed May 09 16:46:19 2018 +0300
     6.3 @@ -0,0 +1,40 @@
     6.4 +# Begin of /etc/logrotate.conf
     6.5 +
     6.6 +# Rotate log files weekly
     6.7 +weekly
     6.8 +
     6.9 +# Don't mail logs to anybody
    6.10 +nomail
    6.11 +
    6.12 +# If the log file is empty, it will not be rotated
    6.13 +notifempty
    6.14 +
    6.15 +# Number of backups that will be kept
    6.16 +# This will keep the 2 newest backups only
    6.17 +rotate 2
    6.18 +
    6.19 +# Create new empty files after rotating old ones
    6.20 +# This will create empty log files, with owner
    6.21 +# set to root, group set to sys, and permissions 644
    6.22 +create 0664 root sys
    6.23 +
    6.24 +# Compress the backups with gzip
    6.25 +compress
    6.26 +
    6.27 +# No packages own lastlog or wtmp -- rotate them here
    6.28 +/var/log/wtmp {
    6.29 +    monthly
    6.30 +    create 0664 root utmp
    6.31 +    rotate 1
    6.32 +}
    6.33 +
    6.34 +/var/log/lastlog {
    6.35 +    monthly
    6.36 +    rotate 1
    6.37 +}
    6.38 +
    6.39 +# Some packages drop log rotation info in this directory
    6.40 +# so we include any file in it.
    6.41 +include /etc/logrotate.d
    6.42 +
    6.43 +# End of /etc/logrotate.conf
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/logrotate/stuff/sys.log	Wed May 09 16:46:19 2018 +0300
     7.3 @@ -0,0 +1,9 @@
     7.4 +/var/log/sys.log {
     7.5 +   # If the log file is larger than 100kb, rotate it
     7.6 +   size   100k
     7.7 +   rotate 5
     7.8 +   weekly
     7.9 +   postrotate
    7.10 +      /bin/killall -HUP syslogd
    7.11 +   endscript
    7.12 +}
     8.1 --- a/lsof/receipt	Sun May 06 04:24:54 2018 +0300
     8.2 +++ b/lsof/receipt	Wed May 09 16:46:19 2018 +0300
     8.3 @@ -7,6 +7,7 @@
     8.4  MAINTAINER="pascal.bellard@slitaz.org"
     8.5  LICENSE="BSD"
     8.6  WEB_SITE="https://people.freebsd.org/~abe/"
     8.7 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/lsof.html"
     8.8  
     8.9  TARBALL="${PACKAGE}_$VERSION.tar.bz2"
    8.10  WGET_URL="ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/$TARBALL"
     9.1 --- a/lua/receipt	Sun May 06 04:24:54 2018 +0300
     9.2 +++ b/lua/receipt	Wed May 09 16:46:19 2018 +0300
     9.3 @@ -7,6 +7,7 @@
     9.4  MAINTAINER="pankso@slitaz.org"
     9.5  LICENSE="MIT"
     9.6  WEB_SITE="https://www.lua.org/"
     9.7 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/lua.html"
     9.8  
     9.9  TARBALL="$PACKAGE-$VERSION.tar.gz"
    9.10  WGET_URL="https://www.lua.org/ftp/$TARBALL"
    9.11 @@ -52,7 +53,7 @@
    9.12  	case $PACKAGE in
    9.13  		lua)
    9.14  			copy bin/
    9.15 -			DEPENDS="ncurses readline"
    9.16 +			DEPENDS="readline"
    9.17  			;;
    9.18  		liblua)
    9.19  			copy *.so*
    10.1 --- a/lzo/receipt	Sun May 06 04:24:54 2018 +0300
    10.2 +++ b/lzo/receipt	Wed May 09 16:46:19 2018 +0300
    10.3 @@ -7,9 +7,10 @@
    10.4  MAINTAINER="erjo@slitaz.org"
    10.5  LICENSE="GPL2"
    10.6  WEB_SITE="http://www.oberhumer.com/opensource/lzo/"
    10.7 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/lzo.html"
    10.8  
    10.9  TARBALL="$PACKAGE-$VERSION.tar.gz"
   10.10 -WGET_URL="${WEB_SITE}download/$TARBALL"
   10.11 +WGET_URL="http://www.oberhumer.com/opensource/lzo/download/$TARBALL"
   10.12  
   10.13  SPLIT="lzo-dev"
   10.14  
    11.1 --- a/mc/receipt	Sun May 06 04:24:54 2018 +0300
    11.2 +++ b/mc/receipt	Wed May 09 16:46:19 2018 +0300
    11.3 @@ -1,49 +1,43 @@
    11.4  # SliTaz package receipt v2.
    11.5  
    11.6  PACKAGE="mc"
    11.7 -VERSION="4.8.19"
    11.8 +VERSION="4.8.20"
    11.9  CATEGORY="system-tools"
   11.10  SHORT_DESC="Midnight Commander - ncurses based file manager"
   11.11  MAINTAINER="erjo@slitaz.org"
   11.12  LICENSE="GPL3"
   11.13  WEB_SITE="http://midnight-commander.org/"
   11.14 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/mc.html"
   11.15  
   11.16  TARBALL="$PACKAGE-$VERSION.tar.xz"
   11.17  WGET_URL="http://ftp.midnight-commander.org/$TARBALL"
   11.18  
   11.19 -BUILD_DEPENDS="gpm-dev glib-dev ncurses-dev util-linux-mount-dev \
   11.20 -util-linux-blkid-dev util-linux-uuid-dev check-dev gettext libssh2-dev"
   11.21 +BUILD_DEPENDS="check-dev glib-dev gettext gpm-dev libssh2-dev"
   11.22  
   11.23  COOKOPTS="!menus"
   11.24  
   11.25  compile_rules() {
   11.26 -	sed -i 's/lzma -cd/lzcat/' $src/src/editor/edit.c
   11.27 -
   11.28  	./configure \
   11.29  		--enable-charset \
   11.30  		--with-gpm-mouse \
   11.31  		--with-screen=ncurses \
   11.32  		$CONFIGURE_ARGS &&
   11.33 +	fix libtool &&
   11.34  	make &&
   11.35 -	make install
   11.36 +	make install || return 1
   11.37  
   11.38 -	mkdir -p $install/usr/share/terminfo/s
   11.39 -	cp -a /usr/share/terminfo/s/screen-256color $install/usr/share/terminfo/s
   11.40 +	install -Dm644 /usr/share/terminfo/s/screen-256color \
   11.41 +	       $install/usr/share/terminfo/s/screen-256color
   11.42  
   11.43 -	mkdir -p $install/usr/share/applications
   11.44 -	cp $stuff/*.desktop $install/usr/share/applications
   11.45 -
   11.46 -	install -m755 $stuff/mc.sh $install/usr/bin
   11.47 -
   11.48 -	chown -R root:root $install
   11.49 +	install -Dm644 $stuff/mc.desktop      $install/usr/share/applications/mc.desktop
   11.50 +	install -Dm644 $stuff/mc-root.desktop $install/usr/share/applications/mc-root.desktop
   11.51 +	install -Dm755 $stuff/mc.sh           $install/usr/bin/mc.sh
   11.52  }
   11.53  
   11.54  genpkg_rules() {
   11.55 -	copy bin/ mc/ terminfo/ applications/
   11.56 -
   11.57 -	sed -i 's#|profile|#&receipt|#' $fs/usr/share/mc/syntax/Syntax
   11.58 -	sed -i 's/lzma -dc/lzcat/g'     $fs/usr/libexec/mc/ext.d/archive.sh
   11.59 -	DEPENDS="ncurses glib e2fsprogs util-linux-blkid libssh2 openssl zlib pcre"
   11.60 -	SUGGESTED="gpm xz cdrkit-isoinfo lynx w3m wv poppler-apps file"
   11.61 +	copy @std
   11.62 +	DEPENDS="glib libssh2 ncurses"
   11.63 +	SUGGESTED="perl python openssl gpm xz cdrkit-isoinfo lynx w3m wv \
   11.64 +	poppler-apps file"
   11.65  	TAGS="file-manager text-editor"
   11.66  }
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/mc/stuff/patches/mc-slitaz.patch	Wed May 09 16:46:19 2018 +0300
    12.3 @@ -0,0 +1,33 @@
    12.4 +--- a/src/editor/edit.c
    12.5 ++++ b/src/editor/edit.c
    12.6 +@@ -128,7 +128,7 @@
    12.7 +     { "xz -cd %s 2>&1", "xz > %s", ".xz"},
    12.8 +     { "lz4 -cd %s 2>&1", "lz4 > %s", ".lz4" },
    12.9 +     { "lzip -cd %s 2>&1", "lzip > %s", ".lz"},
   12.10 +-    { "lzma -cd %s 2>&1", "lzma > %s", ".lzma" },
   12.11 ++    { "lzcat %s 2>&1", "lzma > %s", ".lzma" },
   12.12 +     { "bzip2 -cd %s 2>&1", "bzip2 > %s", ".bz2" },
   12.13 +     { "gzip -cd %s 2>&1", "gzip > %s", ".gz" },
   12.14 +     { "gzip -cd %s 2>&1", "gzip > %s", ".Z" }
   12.15 +--- a/misc/syntax/Syntax.in
   12.16 ++++ b/misc/syntax/Syntax.in
   12.17 +@@ -37,7 +37,7 @@
   12.18 + file ..\*\\.lsm$ LSM\sFile
   12.19 + include lsm.syntax
   12.20 + 
   12.21 +-file .\*(bash_completion|profile|\\.(sh|bash_login|bash_profile|bash_logout|bash_aliases|bash_exports|bash_history|bashrc|profile|zlogin|zlogout|zprofile|zshenv|zshrc))$ Shell\sScript ^#!\s\*/(.\*/|usr/bin/env\s)([a-z]?|ba|pdk)sh
   12.22 ++file .\*(bash_completion|profile|receipt|\\.(sh|bash_login|bash_profile|bash_logout|bash_aliases|bash_exports|bash_history|bashrc|profile|zlogin|zlogout|zprofile|zshenv|zshrc))$ Shell\sScript ^#!\s\*/(.\*/|usr/bin/env\s)([a-z]?|ba|pdk)sh
   12.23 + include sh.syntax
   12.24 + 
   12.25 + file ..\*\\.((?i:pl|pm|psgi)|t)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@)
   12.26 +--- a/misc/ext.d/archive.sh
   12.27 ++++ b/misc/ext.d/archive.sh
   12.28 +@@ -30,7 +30,7 @@
   12.29 +         lz4 -dc "${MC_EXT_FILENAME}" 2>/dev/null
   12.30 +         ;;
   12.31 +     lzma)
   12.32 +-        lzma -dc "${MC_EXT_FILENAME}" 2>/dev/null
   12.33 ++        lzcat "${MC_EXT_FILENAME}" 2>/dev/null
   12.34 +         ;;
   12.35 +     xz)
   12.36 +         xz -dc "${MC_EXT_FILENAME}" 2>/dev/null
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/mc/stuff/patches/series	Wed May 09 16:46:19 2018 +0300
    13.3 @@ -0,0 +1,1 @@
    13.4 +mc-slitaz.patch
    14.1 --- a/mercurial/receipt	Sun May 06 04:24:54 2018 +0300
    14.2 +++ b/mercurial/receipt	Wed May 09 16:46:19 2018 +0300
    14.3 @@ -1,7 +1,7 @@
    14.4  # SliTaz package receipt v2.
    14.5  
    14.6  PACKAGE="mercurial"
    14.7 -VERSION="4.3.1"
    14.8 +VERSION="4.5"
    14.9  CATEGORY="development"
   14.10  SHORT_DESC="Revision tools system"
   14.11  MAINTAINER="pankso@slitaz.org"
   14.12 @@ -36,7 +36,7 @@
   14.13  
   14.14  genpkg_rules() {
   14.15  	copy @std
   14.16 -	DEPENDS="python patch openssl   cacerts"
   14.17 +	DEPENDS="python   patch openssl cacerts"
   14.18  	CONFIG_FILES="/etc/mercurial/hgweb.config"
   14.19  	PROVIDE="hg"
   14.20  }
    15.1 --- a/nasm/receipt	Sun May 06 04:24:54 2018 +0300
    15.2 +++ b/nasm/receipt	Wed May 09 16:46:19 2018 +0300
    15.3 @@ -1,16 +1,16 @@
    15.4  # SliTaz package receipt v2.
    15.5  
    15.6  PACKAGE="nasm"
    15.7 -VERSION="2.12.02"
    15.8 +VERSION="2.13.03"
    15.9  CATEGORY="development"
   15.10  SHORT_DESC="The netwide assembler"
   15.11  MAINTAINER="pascal.bellard@slitaz.org"
   15.12  LICENSE="BSD"
   15.13  WEB_SITE="http://www.nasm.us/"
   15.14 -HOST_ARCH="i486 arm x86_64"
   15.15 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/nasm.html"
   15.16  
   15.17  TARBALL="$PACKAGE-$VERSION.tar.xz"
   15.18 -WGET_URL="${WEB_SITE}pub/nasm/releasebuilds/$VERSION/$TARBALL"
   15.19 +WGET_URL="http://www.nasm.us/pub/nasm/releasebuilds/$VERSION/$TARBALL"
   15.20  
   15.21  compile_rules() {
   15.22  	./configure $CONFIGURE_ARGS &&
   15.23 @@ -19,6 +19,6 @@
   15.24  }
   15.25  
   15.26  genpkg_rules() {
   15.27 -	copy bin/
   15.28 +	copy @std
   15.29  	TAGS="assembler"
   15.30  }
    16.1 --- a/newt/receipt	Sun May 06 04:24:54 2018 +0300
    16.2 +++ b/newt/receipt	Wed May 09 16:46:19 2018 +0300
    16.3 @@ -1,17 +1,18 @@
    16.4  # SliTaz package receipt v2.
    16.5  
    16.6  PACKAGE="newt"
    16.7 -VERSION="0.52.19"
    16.8 +VERSION="0.52.20"
    16.9  CATEGORY="libdevel"
   16.10  SHORT_DESC="Programming library for color text mode"
   16.11  MAINTAINER="erjo@slitaz.org"
   16.12  LICENSE="GPL2"
   16.13 -WEB_SITE="https://fedorahosted.org/newt/"
   16.14 +WEB_SITE="https://pagure.io/newt"
   16.15 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/newt.html"
   16.16  
   16.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
   16.18 -WGET_URL="https://fedorahosted.org/releases/n/e/$PACKAGE/$TARBALL"
   16.19 +WGET_URL="https://releases.pagure.org/newt/$TARBALL"
   16.20  
   16.21 -BUILD_DEPENDS="slang-dev popt-dev python-dev tcl-dev"
   16.22 +BUILD_DEPENDS="slang-dev popt-dev python-dev tcl-dev gpm-dev"
   16.23  SPLIT="newt-dev"
   16.24  
   16.25  compile_rules() {
   16.26 @@ -23,14 +24,16 @@
   16.27  	./configure \
   16.28  		--with-gpm-support \
   16.29  		$CONFIGURE_ARGS &&
   16.30 -	make && make install
   16.31 +	make &&
   16.32 +	make install
   16.33  }
   16.34  
   16.35  genpkg_rules() {
   16.36  	case $PACKAGE in
   16.37  		newt)
   16.38  			copy @std *.mo
   16.39 -			DEPENDS="popt python slang tcl gpm"
   16.40 +			DEPENDS="popt python slang tcl"
   16.41 +			SUGGESTED="gpm"
   16.42  			;;
   16.43  		*-dev) copy @dev;;
   16.44  	esac
    17.1 --- a/node/receipt	Sun May 06 04:24:54 2018 +0300
    17.2 +++ b/node/receipt	Wed May 09 16:46:19 2018 +0300
    17.3 @@ -1,30 +1,41 @@
    17.4 -# SliTaz package receipt.
    17.5 +# SliTaz package receipt v2.
    17.6  
    17.7  PACKAGE="node"
    17.8 -VERSION="0.10.41"
    17.9 +VERSION="9.5.0"
   17.10  CATEGORY="network"
   17.11 -SHORT_DESC="Node.js is a platform for easily building network applications."
   17.12 +SHORT_DESC="Node.js - JavaScript runtime built on Chrome's V8 JavaScript engine"
   17.13  MAINTAINER="pankso@slitaz.org"
   17.14  LICENSE="MIT"
   17.15 -TARBALL="$PACKAGE-v$VERSION.tar.gz"
   17.16 -WEB_SITE="http://nodejs.org/"
   17.17 -WGET_URL="http://nodejs.org/dist/v$VERSION/$TARBALL"
   17.18 +WEB_SITE="https://nodejs.org/"
   17.19 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/nodejs.html"
   17.20  
   17.21 -DEPENDS="python openssl"
   17.22 -BUILD_DEPENDS="python-dev openssl-dev"
   17.23 +TARBALL="$PACKAGE-v$VERSION.tar.xz"
   17.24 +WGET_URL="https://nodejs.org/dist/v$VERSION/$TARBALL"
   17.25  
   17.26 -# Rules to configure and make the package.
   17.27 -compile_rules()
   17.28 -{
   17.29 -	#patch -p0 < ${stuff}/SConstruct.patch || return 1
   17.30 -	./configure --prefix=/usr &&
   17.31 -	make && make install
   17.32 +BUILD_DEPENDS="python-dev zlib-dev c-ares-dev openssl-dev icu-dev"
   17.33 +SPLIT="node-dev"
   17.34 +
   17.35 +compile_rules() {
   17.36 +	# site script didn't used, define prefix here
   17.37 +	./configure \
   17.38 +		--prefix=/usr \
   17.39 +		--shared-cares \
   17.40 +		--shared-openssl \
   17.41 +		--shared-zlib \
   17.42 +		--with-intl=system-icu \
   17.43 +		&&
   17.44 +	make &&
   17.45 +	make install
   17.46  }
   17.47  
   17.48 -# Rules to gen a SliTaz package suitable for Tazpkg.
   17.49 -genpkg_rules()
   17.50 -{
   17.51 -	mkdir -p $fs/usr/lib
   17.52 -	cp -a $install/usr/bin $fs/usr
   17.53 -	cp -a $install/usr/lib/node* $fs/usr/lib
   17.54 +genpkg_rules() {
   17.55 +	case $PACKAGE in
   17.56 +		node)
   17.57 +			copy @std
   17.58 +			DEPENDS="c-ares icu libicu openssl python zlib"
   17.59 +			;;
   17.60 +		*-dev)
   17.61 +			copy @dev
   17.62 +			;;
   17.63 +	esac
   17.64  }
    18.1 --- a/node/stuff/SConstruct	Sun May 06 04:24:54 2018 +0300
    18.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.3 @@ -1,1636 +0,0 @@
    18.4 -# Copyright 2012 the V8 project authors. All rights reserved.
    18.5 -# Redistribution and use in source and binary forms, with or without
    18.6 -# modification, are permitted provided that the following conditions are
    18.7 -# met:
    18.8 -#
    18.9 -#     * Redistributions of source code must retain the above copyright
   18.10 -#       notice, this list of conditions and the following disclaimer.
   18.11 -#     * Redistributions in binary form must reproduce the above
   18.12 -#       copyright notice, this list of conditions and the following
   18.13 -#       disclaimer in the documentation and/or other materials provided
   18.14 -#       with the distribution.
   18.15 -#     * Neither the name of Google Inc. nor the names of its
   18.16 -#       contributors may be used to endorse or promote products derived
   18.17 -#       from this software without specific prior written permission.
   18.18 -#
   18.19 -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
   18.20 -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
   18.21 -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
   18.22 -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
   18.23 -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   18.24 -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   18.25 -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   18.26 -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   18.27 -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   18.28 -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
   18.29 -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   18.30 -
   18.31 -import platform
   18.32 -import re
   18.33 -import subprocess
   18.34 -import sys
   18.35 -import os
   18.36 -from os.path import join, dirname, abspath
   18.37 -from types import DictType, StringTypes
   18.38 -root_dir = dirname(File('SConstruct').rfile().abspath)
   18.39 -src_dir = join(root_dir, 'src')
   18.40 -sys.path.insert(0, join(root_dir, 'tools'))
   18.41 -import js2c, utils
   18.42 -
   18.43 -# ARM_TARGET_LIB is the path to the dynamic library to use on the target
   18.44 -# machine if cross-compiling to an arm machine. You will also need to set
   18.45 -# the additional cross-compiling environment variables to the cross compiler.
   18.46 -ARM_TARGET_LIB = os.environ.get('ARM_TARGET_LIB')
   18.47 -if ARM_TARGET_LIB:
   18.48 -  ARM_LINK_FLAGS = ['-Wl,-rpath=' + ARM_TARGET_LIB + '/lib:' +
   18.49 -                     ARM_TARGET_LIB + '/usr/lib',
   18.50 -                    '-Wl,--dynamic-linker=' + ARM_TARGET_LIB +
   18.51 -                    '/lib/ld-linux.so.3']
   18.52 -else:
   18.53 -  ARM_LINK_FLAGS = []
   18.54 -
   18.55 -GCC_EXTRA_CCFLAGS = []
   18.56 -GCC_DTOA_EXTRA_CCFLAGS = []
   18.57 -
   18.58 -LIBRARY_FLAGS = {
   18.59 -  'all': {
   18.60 -    'CPPPATH': [src_dir],
   18.61 -    'regexp:interpreted': {
   18.62 -      'CPPDEFINES': ['V8_INTERPRETED_REGEXP']
   18.63 -    },
   18.64 -    'mode:debug': {
   18.65 -      'CPPDEFINES': ['V8_ENABLE_CHECKS', 'OBJECT_PRINT', 'VERIFY_HEAP']
   18.66 -    },
   18.67 -    'objectprint:on': {
   18.68 -      'CPPDEFINES':   ['OBJECT_PRINT'],
   18.69 -    },
   18.70 -    'debuggersupport:on': {
   18.71 -      'CPPDEFINES':   ['ENABLE_DEBUGGER_SUPPORT'],
   18.72 -    },
   18.73 -    'inspector:on': {
   18.74 -      'CPPDEFINES':   ['INSPECTOR'],
   18.75 -    },
   18.76 -    'fasttls:off': {
   18.77 -      'CPPDEFINES':   ['V8_NO_FAST_TLS'],
   18.78 -    },
   18.79 -    'liveobjectlist:on': {
   18.80 -      'CPPDEFINES':   ['ENABLE_DEBUGGER_SUPPORT', 'INSPECTOR',
   18.81 -                       'LIVE_OBJECT_LIST', 'OBJECT_PRINT'],
   18.82 -    }
   18.83 -  },
   18.84 -  'gcc': {
   18.85 -    'all': {
   18.86 -      'CCFLAGS':      ['$DIALECTFLAGS', '$WARNINGFLAGS', '-march=armv6'],
   18.87 -      'CXXFLAGS':     ['-fno-rtti', '-fno-exceptions', '-march=armv6'],
   18.88 -    },
   18.89 -    'visibility:hidden': {
   18.90 -      # Use visibility=default to disable this.
   18.91 -      'CXXFLAGS':     ['-fvisibility=hidden']
   18.92 -    },
   18.93 -    'strictaliasing:off': {
   18.94 -      'CCFLAGS':      ['-fno-strict-aliasing']
   18.95 -    },
   18.96 -    'mode:debug': {
   18.97 -      'CCFLAGS':      ['-g', '-O0'],
   18.98 -      'CPPDEFINES':   ['ENABLE_DISASSEMBLER', 'DEBUG'],
   18.99 -    },
  18.100 -    'mode:release': {
  18.101 -      'CCFLAGS':      ['-O3', '-fomit-frame-pointer', '-fdata-sections',
  18.102 -                       '-ffunction-sections'],
  18.103 -    },
  18.104 -    'os:linux': {
  18.105 -      'CCFLAGS':      ['-ansi'] + GCC_EXTRA_CCFLAGS,
  18.106 -      'library:shared': {
  18.107 -        'CPPDEFINES': ['V8_SHARED', 'BUILDING_V8_SHARED'],
  18.108 -        'LIBS': ['pthread']
  18.109 -      }
  18.110 -    },
  18.111 -    'os:macos': {
  18.112 -      'CCFLAGS':      ['-ansi', '-mmacosx-version-min=10.4'],
  18.113 -      'library:shared': {
  18.114 -        'CPPDEFINES': ['V8_SHARED', 'BUILDING_V8_SHARED'],
  18.115 -      }
  18.116 -    },
  18.117 -    'os:freebsd': {
  18.118 -      'CPPPATH' : [src_dir, '/usr/local/include'],
  18.119 -      'LIBPATH' : ['/usr/local/lib'],
  18.120 -      'CCFLAGS':      ['-ansi'],
  18.121 -      'LIBS': ['execinfo']
  18.122 -    },
  18.123 -    'os:openbsd': {
  18.124 -      'CPPPATH' : [src_dir, '/usr/local/include'],
  18.125 -      'LIBPATH' : ['/usr/local/lib'],
  18.126 -      'CCFLAGS':      ['-ansi'],
  18.127 -    },
  18.128 -    'os:solaris': {
  18.129 -      # On Solaris, to get isinf, INFINITY, fpclassify and other macros one
  18.130 -      # needs to define __C99FEATURES__.
  18.131 -      'CPPDEFINES': ['__C99FEATURES__'],
  18.132 -      'CPPPATH' : [src_dir, '/usr/local/include'],
  18.133 -      'LIBPATH' : ['/usr/local/lib'],
  18.134 -      'CCFLAGS':      ['-ansi'],
  18.135 -    },
  18.136 -    'os:netbsd': {
  18.137 -      'CPPPATH' : [src_dir, '/usr/pkg/include'],
  18.138 -      'LIBPATH' : ['/usr/pkg/lib'],
  18.139 -    },
  18.140 -    'os:win32': {
  18.141 -      'CCFLAGS':      ['-DWIN32'],
  18.142 -      'CXXFLAGS':     ['-DWIN32'],
  18.143 -    },
  18.144 -    'arch:ia32': {
  18.145 -      'CPPDEFINES':   ['V8_TARGET_ARCH_IA32'],
  18.146 -      'CCFLAGS':      ['-m32'],
  18.147 -      'LINKFLAGS':    ['-m32']
  18.148 -    },
  18.149 -    'arch:arm': {
  18.150 -      'CPPDEFINES':   ['V8_TARGET_ARCH_ARM'],
  18.151 -      'unalignedaccesses:on' : {
  18.152 -        'CPPDEFINES' : ['CAN_USE_UNALIGNED_ACCESSES=1']
  18.153 -      },
  18.154 -      'unalignedaccesses:off' : {
  18.155 -        'CPPDEFINES' : ['CAN_USE_UNALIGNED_ACCESSES=0']
  18.156 -      },
  18.157 -      'armeabi:soft' : {
  18.158 -        'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'],
  18.159 -        'simulator:none': {
  18.160 -          'CCFLAGS':     ['-mfloat-abi=soft'],
  18.161 -        }
  18.162 -      },
  18.163 -      'armeabi:softfp' : {
  18.164 -        'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'],
  18.165 -        'vfp3:on': {
  18.166 -          'CPPDEFINES' : ['CAN_USE_VFP_INSTRUCTIONS']
  18.167 -        },
  18.168 -        'simulator:none': {
  18.169 -          'CCFLAGS':     ['-mfloat-abi=softfp'],
  18.170 -        }
  18.171 -      },
  18.172 -      'armeabi:hard' : {
  18.173 -        'CPPDEFINES' : ['USE_EABI_HARDFLOAT=1'],
  18.174 -        'vfp3:on': {
  18.175 -          'CPPDEFINES' : ['CAN_USE_VFP_INSTRUCTIONS']
  18.176 -        },
  18.177 -        'simulator:none': {
  18.178 -          'CCFLAGS':     ['-mfloat-abi=hard'],
  18.179 -        }
  18.180 -      }
  18.181 -    },
  18.182 -    'simulator:arm': {
  18.183 -      'CCFLAGS':      ['-m32'],
  18.184 -      'LINKFLAGS':    ['-m32'],
  18.185 -    },
  18.186 -    'arch:mips': {
  18.187 -      'CPPDEFINES':   ['V8_TARGET_ARCH_MIPS'],
  18.188 -      'mips_arch_variant:mips32r2': {
  18.189 -        'CPPDEFINES':    ['_MIPS_ARCH_MIPS32R2']
  18.190 -      },
  18.191 -      'mips_arch_variant:loongson': {
  18.192 -        'CPPDEFINES':    ['_MIPS_ARCH_LOONGSON']
  18.193 -      },
  18.194 -      'simulator:none': {
  18.195 -        'CCFLAGS':      ['-EL'],
  18.196 -        'LINKFLAGS':    ['-EL'],
  18.197 -        'mips_arch_variant:mips32r2': {
  18.198 -          'CCFLAGS':      ['-mips32r2', '-Wa,-mips32r2']
  18.199 -        },
  18.200 -        'mips_arch_variant:mips32r1': {
  18.201 -          'CCFLAGS':      ['-mips32', '-Wa,-mips32']
  18.202 -        },
  18.203 -        'mips_arch_variant:loongson': {
  18.204 -          'CCFLAGS':      ['-march=mips3', '-Wa,-march=mips3']
  18.205 -        },
  18.206 -        'library:static': {
  18.207 -          'LINKFLAGS':    ['-static', '-static-libgcc']
  18.208 -        },
  18.209 -        'mipsabi:softfloat': {
  18.210 -          'CCFLAGS':      ['-msoft-float'],
  18.211 -          'LINKFLAGS':    ['-msoft-float']
  18.212 -        },
  18.213 -        'mipsabi:hardfloat': {
  18.214 -          'CCFLAGS':      ['-mhard-float'],
  18.215 -          'LINKFLAGS':    ['-mhard-float']
  18.216 -        }
  18.217 -      }
  18.218 -    },
  18.219 -    'simulator:mips': {
  18.220 -      'CCFLAGS':      ['-m32'],
  18.221 -      'LINKFLAGS':    ['-m32'],
  18.222 -      'mipsabi:softfloat': {
  18.223 -        'CPPDEFINES':    ['__mips_soft_float=1'],
  18.224 -        'fpu:on': {
  18.225 -          'CPPDEFINES' : ['CAN_USE_FPU_INSTRUCTIONS']
  18.226 -        }
  18.227 -      },
  18.228 -      'mipsabi:hardfloat': {
  18.229 -        'CPPDEFINES':    ['__mips_hard_float=1', 'CAN_USE_FPU_INSTRUCTIONS'],
  18.230 -      }
  18.231 -    },
  18.232 -    'arch:x64': {
  18.233 -      'CPPDEFINES':   ['V8_TARGET_ARCH_X64'],
  18.234 -      'CCFLAGS':      ['-m64'],
  18.235 -      'LINKFLAGS':    ['-m64'],
  18.236 -    },
  18.237 -    'gdbjit:on': {
  18.238 -      'CPPDEFINES':   ['ENABLE_GDB_JIT_INTERFACE']
  18.239 -    },
  18.240 -    'compress_startup_data:bz2': {
  18.241 -      'CPPDEFINES':   ['COMPRESS_STARTUP_DATA_BZ2']
  18.242 -    }
  18.243 -  },
  18.244 -  'msvc': {
  18.245 -    'all': {
  18.246 -      'CCFLAGS':      ['$DIALECTFLAGS', '$WARNINGFLAGS'],
  18.247 -      'CXXFLAGS':     ['/GR-', '/Gy'],
  18.248 -      'CPPDEFINES':   ['WIN32'],
  18.249 -      'LINKFLAGS':    ['/INCREMENTAL:NO', '/NXCOMPAT', '/IGNORE:4221'],
  18.250 -      'CCPDBFLAGS':   ['/Zi']
  18.251 -    },
  18.252 -    'verbose:off': {
  18.253 -      'DIALECTFLAGS': ['/nologo'],
  18.254 -      'ARFLAGS':      ['/NOLOGO']
  18.255 -    },
  18.256 -    'arch:ia32': {
  18.257 -      'CPPDEFINES':   ['V8_TARGET_ARCH_IA32', '_USE_32BIT_TIME_T'],
  18.258 -      'LINKFLAGS':    ['/MACHINE:X86'],
  18.259 -      'ARFLAGS':      ['/MACHINE:X86']
  18.260 -    },
  18.261 -    'arch:x64': {
  18.262 -      'CPPDEFINES':   ['V8_TARGET_ARCH_X64'],
  18.263 -      'LINKFLAGS':    ['/MACHINE:X64'],
  18.264 -      'ARFLAGS':      ['/MACHINE:X64']
  18.265 -    },
  18.266 -    'mode:debug': {
  18.267 -      'CCFLAGS':      ['/Od', '/Gm'],
  18.268 -      'CPPDEFINES':   ['_DEBUG', 'ENABLE_DISASSEMBLER', 'DEBUG'],
  18.269 -      'LINKFLAGS':    ['/DEBUG'],
  18.270 -      'msvcrt:static': {
  18.271 -        'CCFLAGS': ['/MTd']
  18.272 -      },
  18.273 -      'msvcrt:shared': {
  18.274 -        'CCFLAGS': ['/MDd']
  18.275 -      }
  18.276 -    },
  18.277 -    'mode:release': {
  18.278 -      'CCFLAGS':      ['/O2'],
  18.279 -      'LINKFLAGS':    ['/OPT:REF', '/OPT:ICF'],
  18.280 -      'msvcrt:static': {
  18.281 -        'CCFLAGS': ['/MT']
  18.282 -      },
  18.283 -      'msvcrt:shared': {
  18.284 -        'CCFLAGS': ['/MD']
  18.285 -      },
  18.286 -      'msvcltcg:on': {
  18.287 -        'CCFLAGS':      ['/GL'],
  18.288 -        'ARFLAGS':      ['/LTCG'],
  18.289 -        'pgo:off': {
  18.290 -          'LINKFLAGS':    ['/LTCG'],
  18.291 -        },
  18.292 -        'pgo:instrument': {
  18.293 -          'LINKFLAGS':    ['/LTCG:PGI']
  18.294 -        },
  18.295 -        'pgo:optimize': {
  18.296 -          'LINKFLAGS':    ['/LTCG:PGO']
  18.297 -        }
  18.298 -      }
  18.299 -    }
  18.300 -  }
  18.301 -}
  18.302 -
  18.303 -
  18.304 -V8_EXTRA_FLAGS = {
  18.305 -  'gcc': {
  18.306 -    'all': {
  18.307 -      'WARNINGFLAGS': ['-Wall',
  18.308 -                       '-Werror',
  18.309 -                       '-W',
  18.310 -                       '-Wno-unused-parameter',
  18.311 -                       '-Woverloaded-virtual',
  18.312 -                       '-Wnon-virtual-dtor']
  18.313 -    },
  18.314 -    'os:win32': {
  18.315 -      'WARNINGFLAGS': ['-pedantic',
  18.316 -                       '-Wno-long-long',
  18.317 -                       '-Wno-pedantic-ms-format'],
  18.318 -      'library:shared': {
  18.319 -        'LIBS': ['winmm', 'ws2_32']
  18.320 -      }
  18.321 -    },
  18.322 -    'os:linux': {
  18.323 -      'WARNINGFLAGS': ['-pedantic'],
  18.324 -      'library:shared': {
  18.325 -        'soname:on': {
  18.326 -          'LINKFLAGS': ['-Wl,-soname,${SONAME}']
  18.327 -        }
  18.328 -      }
  18.329 -    },
  18.330 -    'os:macos': {
  18.331 -      'WARNINGFLAGS': ['-pedantic']
  18.332 -    },
  18.333 -    'arch:arm': {
  18.334 -      # This is to silence warnings about ABI changes that some versions of the
  18.335 -      # CodeSourcery G++ tool chain produce for each occurrence of varargs.
  18.336 -      'WARNINGFLAGS': ['-Wno-abi']
  18.337 -    },
  18.338 -    'disassembler:on': {
  18.339 -      'CPPDEFINES':   ['ENABLE_DISASSEMBLER']
  18.340 -    }
  18.341 -  },
  18.342 -  'msvc': {
  18.343 -    'all': {
  18.344 -      'WARNINGFLAGS': ['/W3', '/WX', '/wd4351', '/wd4355', '/wd4800']
  18.345 -    },
  18.346 -    'library:shared': {
  18.347 -      'CPPDEFINES': ['BUILDING_V8_SHARED'],
  18.348 -      'LIBS': ['winmm', 'ws2_32']
  18.349 -    },
  18.350 -    'arch:arm': {
  18.351 -      'CPPDEFINES':   ['V8_TARGET_ARCH_ARM'],
  18.352 -      # /wd4996 is to silence the warning about sscanf
  18.353 -      # used by the arm simulator.
  18.354 -      'WARNINGFLAGS': ['/wd4996']
  18.355 -    },
  18.356 -    'arch:mips': {
  18.357 -      'CPPDEFINES':   ['V8_TARGET_ARCH_MIPS'],
  18.358 -      'mips_arch_variant:mips32r2': {
  18.359 -        'CPPDEFINES':    ['_MIPS_ARCH_MIPS32R2']
  18.360 -      },
  18.361 -    },
  18.362 -    'disassembler:on': {
  18.363 -      'CPPDEFINES':   ['ENABLE_DISASSEMBLER']
  18.364 -    }
  18.365 -  }
  18.366 -}
  18.367 -
  18.368 -
  18.369 -MKSNAPSHOT_EXTRA_FLAGS = {
  18.370 -  'gcc': {
  18.371 -    'os:linux': {
  18.372 -      'LIBS': ['pthread'],
  18.373 -    },
  18.374 -    'os:macos': {
  18.375 -      'LIBS': ['pthread'],
  18.376 -    },
  18.377 -    'os:freebsd': {
  18.378 -      'LIBS': ['execinfo', 'pthread']
  18.379 -    },
  18.380 -    'os:solaris': {
  18.381 -      'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'],
  18.382 -      'LINKFLAGS': ['-mt']
  18.383 -    },
  18.384 -    'os:openbsd': {
  18.385 -      'LIBS': ['execinfo', 'pthread']
  18.386 -    },
  18.387 -    'os:win32': {
  18.388 -      'LIBS': ['winmm', 'ws2_32'],
  18.389 -    },
  18.390 -    'os:netbsd': {
  18.391 -      'LIBS': ['execinfo', 'pthread']
  18.392 -    },
  18.393 -    'compress_startup_data:bz2': {
  18.394 -      'os:linux': {
  18.395 -        'LIBS': ['bz2']
  18.396 -      }
  18.397 -    },
  18.398 -  },
  18.399 -  'msvc': {
  18.400 -    'all': {
  18.401 -      'CPPDEFINES': ['_HAS_EXCEPTIONS=0'],
  18.402 -      'LIBS': ['winmm', 'ws2_32']
  18.403 -    }
  18.404 -  }
  18.405 -}
  18.406 -
  18.407 -
  18.408 -DTOA_EXTRA_FLAGS = {
  18.409 -  'gcc': {
  18.410 -    'all': {
  18.411 -      'WARNINGFLAGS': ['-Werror', '-Wno-uninitialized'],
  18.412 -      'CCFLAGS': GCC_DTOA_EXTRA_CCFLAGS
  18.413 -    }
  18.414 -  },
  18.415 -  'msvc': {
  18.416 -    'all': {
  18.417 -      'WARNINGFLAGS': ['/WX', '/wd4018', '/wd4244']
  18.418 -    }
  18.419 -  }
  18.420 -}
  18.421 -
  18.422 -
  18.423 -CCTEST_EXTRA_FLAGS = {
  18.424 -  'all': {
  18.425 -    'CPPPATH': [src_dir],
  18.426 -    'library:shared': {
  18.427 -      'CPPDEFINES': ['USING_V8_SHARED']
  18.428 -    },
  18.429 -  },
  18.430 -  'gcc': {
  18.431 -    'all': {
  18.432 -      'LIBPATH':      [abspath('.')],
  18.433 -      'CCFLAGS':      ['$DIALECTFLAGS', '$WARNINGFLAGS'],
  18.434 -      'CXXFLAGS':     ['-fno-rtti', '-fno-exceptions'],
  18.435 -      'LINKFLAGS':    ['$CCFLAGS'],
  18.436 -    },
  18.437 -    'os:linux': {
  18.438 -      'LIBS':         ['pthread'],
  18.439 -      'CCFLAGS':      ['-Wno-unused-but-set-variable'],
  18.440 -    },
  18.441 -    'os:macos': {
  18.442 -      'LIBS':         ['pthread'],
  18.443 -    },
  18.444 -    'os:freebsd': {
  18.445 -      'LIBS':         ['execinfo', 'pthread']
  18.446 -    },
  18.447 -    'os:solaris': {
  18.448 -      'LIBS':         ['m', 'pthread', 'socket', 'nsl', 'rt'],
  18.449 -      'LINKFLAGS':    ['-mt']
  18.450 -    },
  18.451 -    'os:openbsd': {
  18.452 -      'LIBS':         ['execinfo', 'pthread']
  18.453 -    },
  18.454 -    'os:win32': {
  18.455 -      'LIBS': ['winmm', 'ws2_32']
  18.456 -    },
  18.457 -    'os:netbsd': {
  18.458 -      'LIBS':         ['execinfo', 'pthread']
  18.459 -    },
  18.460 -    'arch:arm': {
  18.461 -      'LINKFLAGS':   ARM_LINK_FLAGS
  18.462 -    },
  18.463 -  },
  18.464 -  'msvc': {
  18.465 -    'all': {
  18.466 -      'CPPDEFINES': ['_HAS_EXCEPTIONS=0'],
  18.467 -      'LIBS': ['winmm', 'ws2_32']
  18.468 -    },
  18.469 -    'arch:ia32': {
  18.470 -      'CPPDEFINES': ['V8_TARGET_ARCH_IA32']
  18.471 -    },
  18.472 -    'arch:x64': {
  18.473 -      'CPPDEFINES':   ['V8_TARGET_ARCH_X64'],
  18.474 -      'LINKFLAGS': ['/STACK:2097152']
  18.475 -    },
  18.476 -  }
  18.477 -}
  18.478 -
  18.479 -
  18.480 -SAMPLE_FLAGS = {
  18.481 -  'all': {
  18.482 -    'CPPPATH': [join(root_dir, 'include')],
  18.483 -    'library:shared': {
  18.484 -      'CPPDEFINES': ['USING_V8_SHARED']
  18.485 -    },
  18.486 -  },
  18.487 -  'gcc': {
  18.488 -    'all': {
  18.489 -      'LIBPATH':      ['.'],
  18.490 -      'CCFLAGS':      ['$DIALECTFLAGS', '$WARNINGFLAGS'],
  18.491 -      'CXXFLAGS':     ['-fno-rtti', '-fno-exceptions'],
  18.492 -      'LINKFLAGS':    ['$CCFLAGS'],
  18.493 -    },
  18.494 -    'os:linux': {
  18.495 -      'LIBS':         ['pthread'],
  18.496 -    },
  18.497 -    'os:macos': {
  18.498 -      'LIBS':         ['pthread'],
  18.499 -    },
  18.500 -    'os:freebsd': {
  18.501 -      'LIBPATH' :     ['/usr/local/lib'],
  18.502 -      'LIBS':         ['execinfo', 'pthread']
  18.503 -    },
  18.504 -    'os:solaris': {
  18.505 -      # On Solaris, to get isinf, INFINITY, fpclassify and other macros one
  18.506 -      # needs to define __C99FEATURES__.
  18.507 -      'CPPDEFINES': ['__C99FEATURES__'],
  18.508 -      'LIBPATH' :     ['/usr/local/lib'],
  18.509 -      'LIBS':         ['m', 'pthread', 'socket', 'nsl', 'rt'],
  18.510 -      'LINKFLAGS':    ['-mt']
  18.511 -    },
  18.512 -    'os:openbsd': {
  18.513 -      'LIBPATH' :     ['/usr/local/lib'],
  18.514 -      'LIBS':         ['execinfo', 'pthread']
  18.515 -    },
  18.516 -    'os:win32': {
  18.517 -      'LIBS':         ['winmm', 'ws2_32']
  18.518 -    },
  18.519 -    'os:netbsd': {
  18.520 -      'LIBPATH' :     ['/usr/pkg/lib'],
  18.521 -      'LIBS':         ['execinfo', 'pthread']
  18.522 -    },
  18.523 -    'arch:arm': {
  18.524 -      'LINKFLAGS':   ARM_LINK_FLAGS,
  18.525 -      'armeabi:soft' : {
  18.526 -        'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'],
  18.527 -        'simulator:none': {
  18.528 -          'CCFLAGS':     ['-mfloat-abi=soft'],
  18.529 -        }
  18.530 -      },
  18.531 -      'armeabi:softfp' : {
  18.532 -        'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'],
  18.533 -        'simulator:none': {
  18.534 -          'CCFLAGS':     ['-mfloat-abi=softfp'],
  18.535 -        }
  18.536 -      },
  18.537 -      'armeabi:hard' : {
  18.538 -        'CPPDEFINES' : ['USE_EABI_HARDFLOAT=1'],
  18.539 -        'vfp3:on': {
  18.540 -          'CPPDEFINES' : ['CAN_USE_VFP_INSTRUCTIONS']
  18.541 -        },
  18.542 -        'simulator:none': {
  18.543 -          'CCFLAGS':     ['-mfloat-abi=hard'],
  18.544 -        }
  18.545 -      }
  18.546 -    },
  18.547 -    'arch:ia32': {
  18.548 -      'CCFLAGS':      ['-m32'],
  18.549 -      'LINKFLAGS':    ['-m32']
  18.550 -    },
  18.551 -    'arch:x64': {
  18.552 -      'CCFLAGS':      ['-m64'],
  18.553 -      'LINKFLAGS':    ['-m64']
  18.554 -    },
  18.555 -    'arch:mips': {
  18.556 -      'CPPDEFINES':   ['V8_TARGET_ARCH_MIPS'],
  18.557 -      'mips_arch_variant:mips32r2': {
  18.558 -        'CPPDEFINES':    ['_MIPS_ARCH_MIPS32R2']
  18.559 -      },
  18.560 -      'mips_arch_variant:loongson': {
  18.561 -        'CPPDEFINES':    ['_MIPS_ARCH_LOONGSON']
  18.562 -      },
  18.563 -      'simulator:none': {
  18.564 -        'CCFLAGS':      ['-EL'],
  18.565 -        'LINKFLAGS':    ['-EL'],
  18.566 -        'mips_arch_variant:mips32r2': {
  18.567 -          'CCFLAGS':      ['-mips32r2', '-Wa,-mips32r2']
  18.568 -        },
  18.569 -        'mips_arch_variant:mips32r1': {
  18.570 -          'CCFLAGS':      ['-mips32', '-Wa,-mips32']
  18.571 -        },
  18.572 -        'mips_arch_variant:loongson': {
  18.573 -          'CCFLAGS':      ['-march=mips3', '-Wa,-march=mips3']
  18.574 -        },
  18.575 -        'library:static': {
  18.576 -          'LINKFLAGS':    ['-static', '-static-libgcc']
  18.577 -        },
  18.578 -        'mipsabi:softfloat': {
  18.579 -          'CCFLAGS':      ['-msoft-float'],
  18.580 -          'LINKFLAGS':    ['-msoft-float']
  18.581 -        },
  18.582 -        'mipsabi:hardfloat': {
  18.583 -          'CCFLAGS':      ['-mhard-float'],
  18.584 -          'LINKFLAGS':    ['-mhard-float'],
  18.585 -          'fpu:on': {
  18.586 -            'CPPDEFINES' : ['CAN_USE_FPU_INSTRUCTIONS']
  18.587 -          }
  18.588 -        }
  18.589 -      }
  18.590 -    },
  18.591 -    'simulator:arm': {
  18.592 -      'CCFLAGS':      ['-m32'],
  18.593 -      'LINKFLAGS':    ['-m32']
  18.594 -    },
  18.595 -    'simulator:mips': {
  18.596 -      'CCFLAGS':      ['-m32'],
  18.597 -      'LINKFLAGS':    ['-m32']
  18.598 -    },
  18.599 -    'mode:release': {
  18.600 -      'CCFLAGS':      ['-O2']
  18.601 -    },
  18.602 -    'mode:debug': {
  18.603 -      'CCFLAGS':      ['-g', '-O0'],
  18.604 -      'CPPDEFINES':   ['DEBUG']
  18.605 -    },
  18.606 -    'compress_startup_data:bz2': {
  18.607 -      'CPPDEFINES':   ['COMPRESS_STARTUP_DATA_BZ2'],
  18.608 -      'os:linux': {
  18.609 -        'LIBS':       ['bz2']
  18.610 -      }
  18.611 -    },
  18.612 -  },
  18.613 -  'msvc': {
  18.614 -    'all': {
  18.615 -      'LIBS': ['winmm', 'ws2_32']
  18.616 -    },
  18.617 -    'verbose:off': {
  18.618 -      'CCFLAGS': ['/nologo'],
  18.619 -      'LINKFLAGS': ['/NOLOGO']
  18.620 -    },
  18.621 -    'verbose:on': {
  18.622 -      'LINKFLAGS': ['/VERBOSE']
  18.623 -    },
  18.624 -    'prof:on': {
  18.625 -      'LINKFLAGS': ['/MAP']
  18.626 -    },
  18.627 -    'mode:release': {
  18.628 -      'CCFLAGS':   ['/O2'],
  18.629 -      'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'],
  18.630 -      'msvcrt:static': {
  18.631 -        'CCFLAGS': ['/MT']
  18.632 -      },
  18.633 -      'msvcrt:shared': {
  18.634 -        'CCFLAGS': ['/MD']
  18.635 -      },
  18.636 -      'msvcltcg:on': {
  18.637 -        'CCFLAGS':      ['/GL'],
  18.638 -        'pgo:off': {
  18.639 -          'LINKFLAGS':    ['/LTCG'],
  18.640 -        },
  18.641 -      },
  18.642 -      'pgo:instrument': {
  18.643 -        'LINKFLAGS':    ['/LTCG:PGI']
  18.644 -      },
  18.645 -      'pgo:optimize': {
  18.646 -        'LINKFLAGS':    ['/LTCG:PGO']
  18.647 -      }
  18.648 -    },
  18.649 -    'arch:ia32': {
  18.650 -      'CPPDEFINES': ['V8_TARGET_ARCH_IA32', 'WIN32'],
  18.651 -      'LINKFLAGS': ['/MACHINE:X86']
  18.652 -    },
  18.653 -    'arch:x64': {
  18.654 -      'CPPDEFINES': ['V8_TARGET_ARCH_X64', 'WIN32'],
  18.655 -      'LINKFLAGS': ['/MACHINE:X64', '/STACK:2097152']
  18.656 -    },
  18.657 -    'mode:debug': {
  18.658 -      'CCFLAGS':    ['/Od'],
  18.659 -      'LINKFLAGS':  ['/DEBUG'],
  18.660 -      'CPPDEFINES': ['DEBUG'],
  18.661 -      'msvcrt:static': {
  18.662 -        'CCFLAGS':  ['/MTd']
  18.663 -      },
  18.664 -      'msvcrt:shared': {
  18.665 -        'CCFLAGS':  ['/MDd']
  18.666 -      }
  18.667 -    }
  18.668 -  }
  18.669 -}
  18.670 -
  18.671 -
  18.672 -PREPARSER_FLAGS = {
  18.673 -  'all': {
  18.674 -    'CPPPATH': [join(root_dir, 'include'), src_dir],
  18.675 -    'library:shared': {
  18.676 -      'CPPDEFINES': ['USING_V8_SHARED']
  18.677 -    },
  18.678 -  },
  18.679 -  'gcc': {
  18.680 -    'all': {
  18.681 -      'LIBPATH':      ['.'],
  18.682 -      'CCFLAGS':      ['$DIALECTFLAGS', '$WARNINGFLAGS'],
  18.683 -      'CXXFLAGS':     ['-fno-rtti', '-fno-exceptions'],
  18.684 -      'LINKFLAGS':    ['$CCFLAGS'],
  18.685 -    },
  18.686 -    'os:win32': {
  18.687 -      'LIBS':         ['winmm', 'ws2_32']
  18.688 -    },
  18.689 -    'arch:arm': {
  18.690 -      'LINKFLAGS':   ARM_LINK_FLAGS,
  18.691 -      'armeabi:soft' : {
  18.692 -        'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'],
  18.693 -        'simulator:none': {
  18.694 -          'CCFLAGS':     ['-mfloat-abi=soft'],
  18.695 -        }
  18.696 -      },
  18.697 -      'armeabi:softfp' : {
  18.698 -        'simulator:none': {
  18.699 -          'CCFLAGS':     ['-mfloat-abi=softfp'],
  18.700 -        }
  18.701 -      },
  18.702 -      'armeabi:hard' : {
  18.703 -        'simulator:none': {
  18.704 -          'CCFLAGS':     ['-mfloat-abi=hard'],
  18.705 -        }
  18.706 -      }
  18.707 -    },
  18.708 -    'arch:ia32': {
  18.709 -      'CCFLAGS':      ['-m32'],
  18.710 -      'LINKFLAGS':    ['-m32']
  18.711 -    },
  18.712 -    'arch:x64': {
  18.713 -      'CCFLAGS':      ['-m64'],
  18.714 -      'LINKFLAGS':    ['-m64']
  18.715 -    },
  18.716 -    'arch:mips': {
  18.717 -      'CPPDEFINES':   ['V8_TARGET_ARCH_MIPS'],
  18.718 -      'mips_arch_variant:mips32r2': {
  18.719 -        'CPPDEFINES':    ['_MIPS_ARCH_MIPS32R2']
  18.720 -      },
  18.721 -      'mips_arch_variant:loongson': {
  18.722 -        'CPPDEFINES':    ['_MIPS_ARCH_LOONGSON']
  18.723 -      },
  18.724 -      'simulator:none': {
  18.725 -        'CCFLAGS':      ['-EL'],
  18.726 -        'LINKFLAGS':    ['-EL'],
  18.727 -        'mips_arch_variant:mips32r2': {
  18.728 -          'CCFLAGS':      ['-mips32r2', '-Wa,-mips32r2']
  18.729 -        },
  18.730 -        'mips_arch_variant:mips32r1': {
  18.731 -          'CCFLAGS':      ['-mips32', '-Wa,-mips32']
  18.732 -        },
  18.733 -        'mips_arch_variant:loongson': {
  18.734 -          'CCFLAGS':      ['-march=mips3', '-Wa,-march=mips3']
  18.735 -        },
  18.736 -        'library:static': {
  18.737 -          'LINKFLAGS':    ['-static', '-static-libgcc']
  18.738 -        },
  18.739 -        'mipsabi:softfloat': {
  18.740 -          'CCFLAGS':      ['-msoft-float'],
  18.741 -          'LINKFLAGS':    ['-msoft-float']
  18.742 -        },
  18.743 -        'mipsabi:hardfloat': {
  18.744 -          'CCFLAGS':      ['-mhard-float'],
  18.745 -          'LINKFLAGS':    ['-mhard-float']
  18.746 -        }
  18.747 -      }
  18.748 -    },
  18.749 -    'simulator:arm': {
  18.750 -      'CCFLAGS':      ['-m32'],
  18.751 -      'LINKFLAGS':    ['-m32']
  18.752 -    },
  18.753 -    'simulator:mips': {
  18.754 -      'CCFLAGS':      ['-m32'],
  18.755 -      'LINKFLAGS':    ['-m32'],
  18.756 -      'mipsabi:softfloat': {
  18.757 -        'CPPDEFINES':    ['__mips_soft_float=1'],
  18.758 -      },
  18.759 -      'mipsabi:hardfloat': {
  18.760 -        'CPPDEFINES':    ['__mips_hard_float=1'],
  18.761 -      }
  18.762 -    },
  18.763 -    'mode:release': {
  18.764 -      'CCFLAGS':      ['-O2']
  18.765 -    },
  18.766 -    'mode:debug': {
  18.767 -      'CCFLAGS':      ['-g', '-O0'],
  18.768 -      'CPPDEFINES':   ['DEBUG']
  18.769 -    },
  18.770 -    'os:freebsd': {
  18.771 -      'LIBPATH' : ['/usr/local/lib'],
  18.772 -    },
  18.773 -  },
  18.774 -  'msvc': {
  18.775 -    'all': {
  18.776 -      'LIBS': ['winmm', 'ws2_32']
  18.777 -    },
  18.778 -    'verbose:off': {
  18.779 -      'CCFLAGS': ['/nologo'],
  18.780 -      'LINKFLAGS': ['/NOLOGO']
  18.781 -    },
  18.782 -    'verbose:on': {
  18.783 -      'LINKFLAGS': ['/VERBOSE']
  18.784 -    },
  18.785 -    'prof:on': {
  18.786 -      'LINKFLAGS': ['/MAP']
  18.787 -    },
  18.788 -    'mode:release': {
  18.789 -      'CCFLAGS':   ['/O2'],
  18.790 -      'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'],
  18.791 -      'msvcrt:static': {
  18.792 -        'CCFLAGS': ['/MT']
  18.793 -      },
  18.794 -      'msvcrt:shared': {
  18.795 -        'CCFLAGS': ['/MD']
  18.796 -      },
  18.797 -      'msvcltcg:on': {
  18.798 -        'CCFLAGS':      ['/GL'],
  18.799 -        'pgo:off': {
  18.800 -          'LINKFLAGS':    ['/LTCG'],
  18.801 -        },
  18.802 -      },
  18.803 -      'pgo:instrument': {
  18.804 -        'LINKFLAGS':    ['/LTCG:PGI']
  18.805 -      },
  18.806 -      'pgo:optimize': {
  18.807 -        'LINKFLAGS':    ['/LTCG:PGO']
  18.808 -      }
  18.809 -    },
  18.810 -    'arch:ia32': {
  18.811 -      'CPPDEFINES': ['V8_TARGET_ARCH_IA32', 'WIN32'],
  18.812 -      'LINKFLAGS': ['/MACHINE:X86']
  18.813 -    },
  18.814 -    'arch:x64': {
  18.815 -      'CPPDEFINES': ['V8_TARGET_ARCH_X64', 'WIN32'],
  18.816 -      'LINKFLAGS': ['/MACHINE:X64', '/STACK:2097152']
  18.817 -    },
  18.818 -    'mode:debug': {
  18.819 -      'CCFLAGS':    ['/Od'],
  18.820 -      'LINKFLAGS':  ['/DEBUG'],
  18.821 -      'CPPDEFINES': ['DEBUG'],
  18.822 -      'msvcrt:static': {
  18.823 -        'CCFLAGS':  ['/MTd']
  18.824 -      },
  18.825 -      'msvcrt:shared': {
  18.826 -        'CCFLAGS':  ['/MDd']
  18.827 -      }
  18.828 -    }
  18.829 -  }
  18.830 -}
  18.831 -
  18.832 -
  18.833 -D8_FLAGS = {
  18.834 -  'all': {
  18.835 -    'library:shared': {
  18.836 -      'CPPDEFINES': ['V8_SHARED'],
  18.837 -      'LIBS': ['v8'],
  18.838 -      'LIBPATH': ['.']
  18.839 -    },
  18.840 -  },
  18.841 -  'gcc': {
  18.842 -    'all': {
  18.843 -      'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'],
  18.844 -      'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'],
  18.845 -      'LINKFLAGS': ['$CCFLAGS'],
  18.846 -    },
  18.847 -    'console:readline': {
  18.848 -      'LIBS': ['readline']
  18.849 -    },
  18.850 -    'os:linux': {
  18.851 -      'LIBS': ['pthread'],
  18.852 -    },
  18.853 -    'os:macos': {
  18.854 -      'LIBS': ['pthread'],
  18.855 -    },
  18.856 -    'os:freebsd': {
  18.857 -      'LIBS': ['pthread'],
  18.858 -    },
  18.859 -    'os:solaris': {
  18.860 -      'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'],
  18.861 -      'LINKFLAGS': ['-mt']
  18.862 -    },
  18.863 -    'os:openbsd': {
  18.864 -      'LIBS': ['pthread'],
  18.865 -    },
  18.866 -    'os:win32': {
  18.867 -      'LIBS': ['winmm', 'ws2_32'],
  18.868 -    },
  18.869 -    'os:netbsd': {
  18.870 -      'LIBS': ['pthread'],
  18.871 -    },
  18.872 -    'arch:arm': {
  18.873 -      'LINKFLAGS':   ARM_LINK_FLAGS
  18.874 -    },
  18.875 -    'compress_startup_data:bz2': {
  18.876 -      'CPPDEFINES':   ['COMPRESS_STARTUP_DATA_BZ2'],
  18.877 -      'os:linux': {
  18.878 -        'LIBS': ['bz2']
  18.879 -      }
  18.880 -    }
  18.881 -  },
  18.882 -  'msvc': {
  18.883 -    'all': {
  18.884 -      'LIBS': ['winmm', 'ws2_32']
  18.885 -    },
  18.886 -    'verbose:off': {
  18.887 -      'CCFLAGS': ['/nologo'],
  18.888 -      'LINKFLAGS': ['/NOLOGO']
  18.889 -    },
  18.890 -    'verbose:on': {
  18.891 -      'LINKFLAGS': ['/VERBOSE']
  18.892 -    },
  18.893 -    'prof:on': {
  18.894 -      'LINKFLAGS': ['/MAP']
  18.895 -    },
  18.896 -    'mode:release': {
  18.897 -      'CCFLAGS':   ['/O2'],
  18.898 -      'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'],
  18.899 -      'msvcrt:static': {
  18.900 -        'CCFLAGS': ['/MT']
  18.901 -      },
  18.902 -      'msvcrt:shared': {
  18.903 -        'CCFLAGS': ['/MD']
  18.904 -      },
  18.905 -      'msvcltcg:on': {
  18.906 -        'CCFLAGS':      ['/GL'],
  18.907 -        'pgo:off': {
  18.908 -          'LINKFLAGS':    ['/LTCG'],
  18.909 -        },
  18.910 -      },
  18.911 -      'pgo:instrument': {
  18.912 -        'LINKFLAGS':    ['/LTCG:PGI']
  18.913 -      },
  18.914 -      'pgo:optimize': {
  18.915 -        'LINKFLAGS':    ['/LTCG:PGO']
  18.916 -      }
  18.917 -    },
  18.918 -    'arch:ia32': {
  18.919 -      'CPPDEFINES': ['V8_TARGET_ARCH_IA32', 'WIN32'],
  18.920 -      'LINKFLAGS': ['/MACHINE:X86']
  18.921 -    },
  18.922 -    'arch:x64': {
  18.923 -      'CPPDEFINES': ['V8_TARGET_ARCH_X64', 'WIN32'],
  18.924 -      'LINKFLAGS': ['/MACHINE:X64', '/STACK:2097152']
  18.925 -    },
  18.926 -    'mode:debug': {
  18.927 -      'CCFLAGS':    ['/Od'],
  18.928 -      'LINKFLAGS':  ['/DEBUG'],
  18.929 -      'CPPDEFINES': ['DEBUG'],
  18.930 -      'msvcrt:static': {
  18.931 -        'CCFLAGS':  ['/MTd']
  18.932 -      },
  18.933 -      'msvcrt:shared': {
  18.934 -        'CCFLAGS':  ['/MDd']
  18.935 -      }
  18.936 -    }
  18.937 -  }
  18.938 -}
  18.939 -
  18.940 -
  18.941 -SUFFIXES = {
  18.942 -  'release': '',
  18.943 -  'debug': '_g'
  18.944 -}
  18.945 -
  18.946 -
  18.947 -def Abort(message):
  18.948 -  print message
  18.949 -  sys.exit(1)
  18.950 -
  18.951 -
  18.952 -def GuessOS(env):
  18.953 -  return utils.GuessOS()
  18.954 -
  18.955 -
  18.956 -def GuessArch(env):
  18.957 -  return utils.GuessArchitecture()
  18.958 -
  18.959 -
  18.960 -def GuessToolchain(env):
  18.961 -  tools = env['TOOLS']
  18.962 -  if 'gcc' in tools:
  18.963 -    return 'gcc'
  18.964 -  elif 'msvc' in tools:
  18.965 -    return 'msvc'
  18.966 -  else:
  18.967 -    return None
  18.968 -
  18.969 -
  18.970 -def GuessVisibility(env):
  18.971 -  os = env['os']
  18.972 -  toolchain = env['toolchain'];
  18.973 -  if (os == 'win32' or os == 'cygwin') and toolchain == 'gcc':
  18.974 -    # MinGW / Cygwin can't do it.
  18.975 -    return 'default'
  18.976 -  elif os == 'solaris':
  18.977 -    return 'default'
  18.978 -  else:
  18.979 -    return 'hidden'
  18.980 -
  18.981 -
  18.982 -def GuessStrictAliasing(env):
  18.983 -  # There seems to be a problem with gcc 4.5.x.
  18.984 -  # See http://code.google.com/p/v8/issues/detail?id=884
  18.985 -  # It can be worked around by disabling strict aliasing.
  18.986 -  toolchain = env['toolchain'];
  18.987 -  if toolchain == 'gcc':
  18.988 -    env = Environment(tools=['gcc'])
  18.989 -    # The gcc version should be available in env['CCVERSION'],
  18.990 -    # but when scons detects msvc this value is not set.
  18.991 -    version = subprocess.Popen([env['CC'], '-dumpversion'],
  18.992 -        stdout=subprocess.PIPE).communicate()[0]
  18.993 -    if version.find('4.5') == 0:
  18.994 -      return 'off'
  18.995 -  return 'default'
  18.996 -
  18.997 -
  18.998 -PLATFORM_OPTIONS = {
  18.999 -  'arch': {
 18.1000 -    'values': ['arm', 'ia32', 'x64', 'mips'],
 18.1001 -    'guess': GuessArch,
 18.1002 -    'help': 'the architecture to build for'
 18.1003 -  },
 18.1004 -  'os': {
 18.1005 -    'values': ['freebsd', 'linux', 'macos', 'win32', 'openbsd', 'solaris', 'cygwin', 'netbsd'],
 18.1006 -    'guess': GuessOS,
 18.1007 -    'help': 'the os to build for'
 18.1008 -  },
 18.1009 -  'toolchain': {
 18.1010 -    'values': ['gcc', 'msvc'],
 18.1011 -    'guess': GuessToolchain,
 18.1012 -    'help': 'the toolchain to use'
 18.1013 -  }
 18.1014 -}
 18.1015 -
 18.1016 -SIMPLE_OPTIONS = {
 18.1017 -  'regexp': {
 18.1018 -    'values': ['native', 'interpreted'],
 18.1019 -    'default': 'native',
 18.1020 -    'help': 'Whether to use native or interpreted regexp implementation'
 18.1021 -  },
 18.1022 -  'snapshot': {
 18.1023 -    'values': ['on', 'off', 'nobuild'],
 18.1024 -    'default': 'off',
 18.1025 -    'help': 'build using snapshots for faster start-up'
 18.1026 -  },
 18.1027 -  'prof': {
 18.1028 -    'values': ['on', 'off'],
 18.1029 -    'default': 'off',
 18.1030 -    'help': 'enable profiling of build target'
 18.1031 -  },
 18.1032 -  'gdbjit': {
 18.1033 -    'values': ['on', 'off'],
 18.1034 -    'default': 'off',
 18.1035 -    'help': 'enable GDB JIT interface'
 18.1036 -  },
 18.1037 -  'library': {
 18.1038 -    'values': ['static', 'shared'],
 18.1039 -    'default': 'static',
 18.1040 -    'help': 'the type of library to produce'
 18.1041 -  },
 18.1042 -  'objectprint': {
 18.1043 -    'values': ['on', 'off'],
 18.1044 -    'default': 'off',
 18.1045 -    'help': 'enable object printing'
 18.1046 -  },
 18.1047 -  'profilingsupport': {
 18.1048 -    'values': ['on', 'off'],
 18.1049 -    'default': 'on',
 18.1050 -    'help': 'enable profiling of JavaScript code'
 18.1051 -  },
 18.1052 -  'debuggersupport': {
 18.1053 -    'values': ['on', 'off'],
 18.1054 -    'default': 'on',
 18.1055 -    'help': 'enable debugging of JavaScript code'
 18.1056 -  },
 18.1057 -  'inspector': {
 18.1058 -    'values': ['on', 'off'],
 18.1059 -    'default': 'off',
 18.1060 -    'help': 'enable inspector features'
 18.1061 -  },
 18.1062 -  'liveobjectlist': {
 18.1063 -    'values': ['on', 'off'],
 18.1064 -    'default': 'off',
 18.1065 -    'help': 'enable live object list features in the debugger'
 18.1066 -  },
 18.1067 -  'soname': {
 18.1068 -    'values': ['on', 'off'],
 18.1069 -    'default': 'off',
 18.1070 -    'help': 'turn on setting soname for Linux shared library'
 18.1071 -  },
 18.1072 -  'msvcrt': {
 18.1073 -    'values': ['static', 'shared'],
 18.1074 -    'default': 'static',
 18.1075 -    'help': 'the type of Microsoft Visual C++ runtime library to use'
 18.1076 -  },
 18.1077 -  'msvcltcg': {
 18.1078 -    'values': ['on', 'off'],
 18.1079 -    'default': 'on',
 18.1080 -    'help': 'use Microsoft Visual C++ link-time code generation'
 18.1081 -  },
 18.1082 -  'simulator': {
 18.1083 -    'values': ['arm', 'mips', 'none'],
 18.1084 -    'default': 'none',
 18.1085 -    'help': 'build with simulator'
 18.1086 -  },
 18.1087 -  'unalignedaccesses': {
 18.1088 -    'values': ['default', 'on', 'off'],
 18.1089 -    'default': 'default',
 18.1090 -    'help': 'set whether the ARM target supports unaligned accesses'
 18.1091 -  },
 18.1092 -  'disassembler': {
 18.1093 -    'values': ['on', 'off'],
 18.1094 -    'default': 'off',
 18.1095 -    'help': 'enable the disassembler to inspect generated code'
 18.1096 -  },
 18.1097 -  'fasttls': {
 18.1098 -    'values': ['on', 'off'],
 18.1099 -    'default': 'on',
 18.1100 -    'help': 'enable fast thread local storage support '
 18.1101 -            '(if available on the current architecture/platform)'
 18.1102 -  },
 18.1103 -  'sourcesignatures': {
 18.1104 -    'values': ['MD5', 'timestamp'],
 18.1105 -    'default': 'MD5',
 18.1106 -    'help': 'set how the build system detects file changes'
 18.1107 -  },
 18.1108 -  'console': {
 18.1109 -    'values': ['dumb', 'readline'],
 18.1110 -    'default': 'dumb',
 18.1111 -    'help': 'the console to use for the d8 shell'
 18.1112 -  },
 18.1113 -  'verbose': {
 18.1114 -    'values': ['on', 'off'],
 18.1115 -    'default': 'off',
 18.1116 -    'help': 'more output from compiler and linker'
 18.1117 -  },
 18.1118 -  'visibility': {
 18.1119 -    'values': ['default', 'hidden'],
 18.1120 -    'guess': GuessVisibility,
 18.1121 -    'help': 'shared library symbol visibility'
 18.1122 -  },
 18.1123 -  'strictaliasing': {
 18.1124 -    'values': ['default', 'off'],
 18.1125 -    'guess': GuessStrictAliasing,
 18.1126 -    'help': 'assume strict aliasing while optimizing'
 18.1127 -  },
 18.1128 -  'pgo': {
 18.1129 -    'values': ['off', 'instrument', 'optimize'],
 18.1130 -    'default': 'off',
 18.1131 -    'help': 'select profile guided optimization variant',
 18.1132 -  },
 18.1133 -  'armeabi': {
 18.1134 -    'values': ['hard', 'softfp', 'soft'],
 18.1135 -    'default': 'softfp',
 18.1136 -    'help': 'generate calling conventiont according to selected ARM EABI variant'
 18.1137 -  },
 18.1138 -  'mipsabi': {
 18.1139 -    'values': ['hardfloat', 'softfloat', 'none'],
 18.1140 -    'default': 'hardfloat',
 18.1141 -    'help': 'generate calling conventiont according to selected mips ABI'
 18.1142 -  },
 18.1143 -  'mips_arch_variant': {
 18.1144 -    'values': ['mips32r2', 'mips32r1', 'loongson'],
 18.1145 -    'default': 'mips32r2',
 18.1146 -    'help': 'mips variant'
 18.1147 -  },
 18.1148 -  'compress_startup_data': {
 18.1149 -    'values': ['off', 'bz2'],
 18.1150 -    'default': 'off',
 18.1151 -    'help': 'compress startup data (snapshot) [Linux only]'
 18.1152 -  },
 18.1153 -  'vfp3': {
 18.1154 -    'values': ['on', 'off'],
 18.1155 -    'default': 'on',
 18.1156 -    'help': 'use vfp3 instructions when building the snapshot [Arm only]'
 18.1157 -  },
 18.1158 -  'fpu': {
 18.1159 -    'values': ['on', 'off'],
 18.1160 -    'default': 'on',
 18.1161 -    'help': 'use fpu instructions when building the snapshot [MIPS only]'
 18.1162 -  },
 18.1163 -  'I_know_I_should_build_with_GYP': {
 18.1164 -    'values': ['yes', 'no'],
 18.1165 -    'default': 'no',
 18.1166 -    'help': 'grace period: temporarily override SCons deprecation'
 18.1167 -  }
 18.1168 -
 18.1169 -}
 18.1170 -
 18.1171 -ALL_OPTIONS = dict(PLATFORM_OPTIONS, **SIMPLE_OPTIONS)
 18.1172 -
 18.1173 -
 18.1174 -def AddOptions(options, result):
 18.1175 -  guess_env = Environment(options=result)
 18.1176 -  for (name, option) in options.iteritems():
 18.1177 -    if 'guess' in option:
 18.1178 -      # Option has a guess function
 18.1179 -      guess = option.get('guess')
 18.1180 -      default = guess(guess_env)
 18.1181 -    else:
 18.1182 -      # Option has a fixed default
 18.1183 -      default = option.get('default')
 18.1184 -    help = '%s (%s)' % (option.get('help'), ", ".join(option['values']))
 18.1185 -    result.Add(name, help, default)
 18.1186 -
 18.1187 -
 18.1188 -def GetOptions():
 18.1189 -  result = Options()
 18.1190 -  result.Add('mode', 'compilation mode (debug, release)', 'release')
 18.1191 -  result.Add('sample', 'build sample (shell, process, lineprocessor)', '')
 18.1192 -  result.Add('cache', 'directory to use for scons build cache', '')
 18.1193 -  result.Add('env', 'override environment settings (NAME0:value0,NAME1:value1,...)', '')
 18.1194 -  result.Add('importenv', 'import environment settings (NAME0,NAME1,...)', '')
 18.1195 -  AddOptions(PLATFORM_OPTIONS, result)
 18.1196 -  AddOptions(SIMPLE_OPTIONS, result)
 18.1197 -  return result
 18.1198 -
 18.1199 -
 18.1200 -def GetTools(opts):
 18.1201 -  env = Environment(options=opts)
 18.1202 -  os = env['os']
 18.1203 -  toolchain = env['toolchain']
 18.1204 -  if os == 'win32' and toolchain == 'gcc':
 18.1205 -    return ['mingw']
 18.1206 -  elif os == 'win32' and toolchain == 'msvc':
 18.1207 -    return ['msvc', 'mslink', 'mslib', 'msvs']
 18.1208 -  else:
 18.1209 -    return ['default']
 18.1210 -
 18.1211 -
 18.1212 -def GetVersionComponents():
 18.1213 -  MAJOR_VERSION_PATTERN = re.compile(r"#define\s+MAJOR_VERSION\s+(.*)")
 18.1214 -  MINOR_VERSION_PATTERN = re.compile(r"#define\s+MINOR_VERSION\s+(.*)")
 18.1215 -  BUILD_NUMBER_PATTERN = re.compile(r"#define\s+BUILD_NUMBER\s+(.*)")
 18.1216 -  PATCH_LEVEL_PATTERN = re.compile(r"#define\s+PATCH_LEVEL\s+(.*)")
 18.1217 -
 18.1218 -  patterns = [MAJOR_VERSION_PATTERN,
 18.1219 -              MINOR_VERSION_PATTERN,
 18.1220 -              BUILD_NUMBER_PATTERN,
 18.1221 -              PATCH_LEVEL_PATTERN]
 18.1222 -
 18.1223 -  source = open(join(root_dir, 'src', 'version.cc')).read()
 18.1224 -  version_components = []
 18.1225 -  for pattern in patterns:
 18.1226 -    match = pattern.search(source)
 18.1227 -    if match:
 18.1228 -      version_components.append(match.group(1).strip())
 18.1229 -    else:
 18.1230 -      version_components.append('0')
 18.1231 -
 18.1232 -  return version_components
 18.1233 -
 18.1234 -
 18.1235 -def GetVersion():
 18.1236 -  version_components = GetVersionComponents()
 18.1237 -
 18.1238 -  if version_components[len(version_components) - 1] == '0':
 18.1239 -    version_components.pop()
 18.1240 -  return '.'.join(version_components)
 18.1241 -
 18.1242 -
 18.1243 -def GetSpecificSONAME():
 18.1244 -  SONAME_PATTERN = re.compile(r"#define\s+SONAME\s+\"(.*)\"")
 18.1245 -
 18.1246 -  source = open(join(root_dir, 'src', 'version.cc')).read()
 18.1247 -  match = SONAME_PATTERN.search(source)
 18.1248 -
 18.1249 -  if match:
 18.1250 -    return match.group(1).strip()
 18.1251 -  else:
 18.1252 -    return ''
 18.1253 -
 18.1254 -
 18.1255 -def SplitList(str):
 18.1256 -  return [ s for s in str.split(",") if len(s) > 0 ]
 18.1257 -
 18.1258 -
 18.1259 -def IsLegal(env, option, values):
 18.1260 -  str = env[option]
 18.1261 -  for s in SplitList(str):
 18.1262 -    if not s in values:
 18.1263 -      Abort("Illegal value for option %s '%s'." % (option, s))
 18.1264 -      return False
 18.1265 -  return True
 18.1266 -
 18.1267 -
 18.1268 -def WarnAboutDeprecation():
 18.1269 -  print """
 18.1270 -    #####################################################################
 18.1271 -    #                                                                   #
 18.1272 -    #  LAST WARNING: Building V8 with SCons is deprecated.              #
 18.1273 -    #                                                                   #
 18.1274 -    #  This only works because you have overridden the kill switch.     #
 18.1275 -    #                                                                   #
 18.1276 -    #              MIGRATE TO THE GYP-BASED BUILD NOW!                  #
 18.1277 -    #                                                                   #
 18.1278 -    #  Instructions: http://code.google.com/p/v8/wiki/BuildingWithGYP.  #
 18.1279 -    #                                                                   #
 18.1280 -    #####################################################################
 18.1281 -  """
 18.1282 -
 18.1283 -
 18.1284 -def VerifyOptions(env):
 18.1285 -  if env['I_know_I_should_build_with_GYP'] != 'yes':
 18.1286 -    Abort("Building V8 with SCons is no longer supported. Please use GYP "
 18.1287 -          "instead; you can find instructions are at "
 18.1288 -          "http://code.google.com/p/v8/wiki/BuildingWithGYP.\n\n"
 18.1289 -          "Quitting.\n\n"
 18.1290 -          "For a limited grace period, you can specify "
 18.1291 -          "\"I_know_I_should_build_with_GYP=yes\" to override.")
 18.1292 -  else:
 18.1293 -    WarnAboutDeprecation()
 18.1294 -    import atexit
 18.1295 -    atexit.register(WarnAboutDeprecation)
 18.1296 -
 18.1297 -  if not IsLegal(env, 'mode', ['debug', 'release']):
 18.1298 -    return False
 18.1299 -  if not IsLegal(env, 'sample', ["shell", "process", "lineprocessor"]):
 18.1300 -    return False
 18.1301 -  if not IsLegal(env, 'regexp', ["native", "interpreted"]):
 18.1302 -    return False
 18.1303 -  if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on':
 18.1304 -    Abort("Profiling on windows only supported for static library.")
 18.1305 -  if env['gdbjit'] == 'on' and ((env['os'] != 'linux' and env['os'] != 'macos') or (env['arch'] != 'ia32' and env['arch'] != 'x64' and env['arch'] != 'arm')):
 18.1306 -    Abort("GDBJIT interface is supported only for Intel-compatible (ia32 or x64) Linux/OSX target.")
 18.1307 -  if env['os'] == 'win32' and env['soname'] == 'on':
 18.1308 -    Abort("Shared Object soname not applicable for Windows.")
 18.1309 -  if env['soname'] == 'on' and env['library'] == 'static':
 18.1310 -    Abort("Shared Object soname not applicable for static library.")
 18.1311 -  if env['os'] != 'win32' and env['pgo'] != 'off':
 18.1312 -    Abort("Profile guided optimization only supported on Windows.")
 18.1313 -  if env['cache'] and not os.path.isdir(env['cache']):
 18.1314 -    Abort("The specified cache directory does not exist.")
 18.1315 -  if not (env['arch'] == 'arm' or env['simulator'] == 'arm') and ('unalignedaccesses' in ARGUMENTS):
 18.1316 -    print env['arch']
 18.1317 -    print env['simulator']
 18.1318 -    Abort("Option unalignedaccesses only supported for the ARM architecture.")
 18.1319 -  if env['os'] != 'linux' and env['compress_startup_data'] != 'off':
 18.1320 -    Abort("Startup data compression is only available on Linux")
 18.1321 -  for (name, option) in ALL_OPTIONS.iteritems():
 18.1322 -    if (not name in env):
 18.1323 -      message = ("A value for option %s must be specified (%s)." %
 18.1324 -          (name, ", ".join(option['values'])))
 18.1325 -      Abort(message)
 18.1326 -    if not env[name] in option['values']:
 18.1327 -      message = ("Unknown %s value '%s'.  Possible values are (%s)." %
 18.1328 -          (name, env[name], ", ".join(option['values'])))
 18.1329 -      Abort(message)
 18.1330 -
 18.1331 -
 18.1332 -class BuildContext(object):
 18.1333 -
 18.1334 -  def __init__(self, options, env_overrides, samples):
 18.1335 -    self.library_targets = []
 18.1336 -    self.mksnapshot_targets = []
 18.1337 -    self.cctest_targets = []
 18.1338 -    self.sample_targets = []
 18.1339 -    self.d8_targets = []
 18.1340 -    self.options = options
 18.1341 -    self.env_overrides = env_overrides
 18.1342 -    self.samples = samples
 18.1343 -    self.preparser_targets = []
 18.1344 -    self.use_snapshot = (options['snapshot'] != 'off')
 18.1345 -    self.build_snapshot = (options['snapshot'] == 'on')
 18.1346 -    self.flags = None
 18.1347 -
 18.1348 -  def AddRelevantFlags(self, initial, flags):
 18.1349 -    result = initial.copy()
 18.1350 -    toolchain = self.options['toolchain']
 18.1351 -    if toolchain in flags:
 18.1352 -      self.AppendFlags(result, flags[toolchain].get('all'))
 18.1353 -      for option in sorted(self.options.keys()):
 18.1354 -        value = self.options[option]
 18.1355 -        self.AppendFlags(result, flags[toolchain].get(option + ':' + value))
 18.1356 -    self.AppendFlags(result, flags.get('all'))
 18.1357 -    return result
 18.1358 -
 18.1359 -  def AddRelevantSubFlags(self, options, flags):
 18.1360 -    self.AppendFlags(options, flags.get('all'))
 18.1361 -    for option in sorted(self.options.keys()):
 18.1362 -      value = self.options[option]
 18.1363 -      self.AppendFlags(options, flags.get(option + ':' + value))
 18.1364 -
 18.1365 -  def GetRelevantSources(self, source):
 18.1366 -    result = []
 18.1367 -    result += source.get('all', [])
 18.1368 -    for (name, value) in self.options.iteritems():
 18.1369 -      source_value = source.get(name + ':' + value, [])
 18.1370 -      if type(source_value) == dict:
 18.1371 -        result += self.GetRelevantSources(source_value)
 18.1372 -      else:
 18.1373 -        result += source_value
 18.1374 -    return sorted(result)
 18.1375 -
 18.1376 -  def AppendFlags(self, options, added):
 18.1377 -    if not added:
 18.1378 -      return
 18.1379 -    for (key, value) in added.iteritems():
 18.1380 -      if key.find(':') != -1:
 18.1381 -        self.AddRelevantSubFlags(options, { key: value })
 18.1382 -      else:
 18.1383 -        if not key in options:
 18.1384 -          options[key] = value
 18.1385 -        else:
 18.1386 -          prefix = options[key]
 18.1387 -          if isinstance(prefix, StringTypes): prefix = prefix.split()
 18.1388 -          options[key] = prefix + value
 18.1389 -
 18.1390 -  def ConfigureObject(self, env, input, **kw):
 18.1391 -    if (kw.has_key('CPPPATH') and env.has_key('CPPPATH')):
 18.1392 -      kw['CPPPATH'] += env['CPPPATH']
 18.1393 -    if self.options['library'] == 'static':
 18.1394 -      return env.StaticObject(input, **kw)
 18.1395 -    else:
 18.1396 -      return env.SharedObject(input, **kw)
 18.1397 -
 18.1398 -  def ApplyEnvOverrides(self, env):
 18.1399 -    if not self.env_overrides:
 18.1400 -      return
 18.1401 -    if type(env['ENV']) == DictType:
 18.1402 -      env['ENV'].update(**self.env_overrides)
 18.1403 -    else:
 18.1404 -      env['ENV'] = self.env_overrides
 18.1405 -
 18.1406 -
 18.1407 -def PostprocessOptions(options, os):
 18.1408 -  # Adjust architecture if the simulator option has been set
 18.1409 -  if (options['simulator'] != 'none') and (options['arch'] != options['simulator']):
 18.1410 -    if 'arch' in ARGUMENTS:
 18.1411 -      # Print a warning if arch has explicitly been set
 18.1412 -      print "Warning: forcing architecture to match simulator (%s)" % options['simulator']
 18.1413 -    options['arch'] = options['simulator']
 18.1414 -  if (options['prof'] != 'off') and (options['profilingsupport'] == 'off'):
 18.1415 -    # Print a warning if profiling is enabled without profiling support
 18.1416 -    print "Warning: forcing profilingsupport on when prof is on"
 18.1417 -    options['profilingsupport'] = 'on'
 18.1418 -  if os == 'win32' and options['pgo'] != 'off' and options['msvcltcg'] == 'off':
 18.1419 -    if 'msvcltcg' in ARGUMENTS:
 18.1420 -      print "Warning: forcing msvcltcg on as it is required for pgo (%s)" % options['pgo']
 18.1421 -    options['msvcltcg'] = 'on'
 18.1422 -  if (options['mipsabi'] != 'none') and (options['arch'] != 'mips') and (options['simulator'] != 'mips'):
 18.1423 -    options['mipsabi'] = 'none'
 18.1424 -  if options['liveobjectlist'] == 'on':
 18.1425 -    if (options['debuggersupport'] != 'on') or (options['mode'] == 'release'):
 18.1426 -      # Print a warning that liveobjectlist will implicitly enable the debugger
 18.1427 -      print "Warning: forcing debuggersupport on for liveobjectlist"
 18.1428 -    options['debuggersupport'] = 'on'
 18.1429 -    options['inspector'] = 'on'
 18.1430 -    options['objectprint'] = 'on'
 18.1431 -
 18.1432 -
 18.1433 -def ParseEnvOverrides(arg, imports):
 18.1434 -  # The environment overrides are in the format NAME0:value0,NAME1:value1,...
 18.1435 -  # The environment imports are in the format NAME0,NAME1,...
 18.1436 -  overrides = {}
 18.1437 -  for var in imports.split(','):
 18.1438 -    if var in os.environ:
 18.1439 -      overrides[var] = os.environ[var]
 18.1440 -  for override in arg.split(','):
 18.1441 -    pos = override.find(':')
 18.1442 -    if pos == -1:
 18.1443 -      continue
 18.1444 -    overrides[override[:pos].strip()] = override[pos+1:].strip()
 18.1445 -  return overrides
 18.1446 -
 18.1447 -
 18.1448 -def BuildSpecific(env, mode, env_overrides, tools):
 18.1449 -  options = {'mode': mode}
 18.1450 -  for option in ALL_OPTIONS:
 18.1451 -    options[option] = env[option]
 18.1452 -  PostprocessOptions(options, env['os'])
 18.1453 -
 18.1454 -  context = BuildContext(options, env_overrides, samples=SplitList(env['sample']))
 18.1455 -
 18.1456 -  # Remove variables which can't be imported from the user's external
 18.1457 -  # environment into a construction environment.
 18.1458 -  user_environ = os.environ.copy()
 18.1459 -  try:
 18.1460 -    del user_environ['ENV']
 18.1461 -  except KeyError:
 18.1462 -    pass
 18.1463 -
 18.1464 -  library_flags = context.AddRelevantFlags(user_environ, LIBRARY_FLAGS)
 18.1465 -  v8_flags = context.AddRelevantFlags(library_flags, V8_EXTRA_FLAGS)
 18.1466 -  mksnapshot_flags = context.AddRelevantFlags(library_flags, MKSNAPSHOT_EXTRA_FLAGS)
 18.1467 -  dtoa_flags = context.AddRelevantFlags(library_flags, DTOA_EXTRA_FLAGS)
 18.1468 -  cctest_flags = context.AddRelevantFlags(v8_flags, CCTEST_EXTRA_FLAGS)
 18.1469 -  sample_flags = context.AddRelevantFlags(user_environ, SAMPLE_FLAGS)
 18.1470 -  preparser_flags = context.AddRelevantFlags(user_environ, PREPARSER_FLAGS)
 18.1471 -  d8_flags = context.AddRelevantFlags(library_flags, D8_FLAGS)
 18.1472 -
 18.1473 -  context.flags = {
 18.1474 -    'v8': v8_flags,
 18.1475 -    'mksnapshot': mksnapshot_flags,
 18.1476 -    'dtoa': dtoa_flags,
 18.1477 -    'cctest': cctest_flags,
 18.1478 -    'sample': sample_flags,
 18.1479 -    'd8': d8_flags,
 18.1480 -    'preparser': preparser_flags
 18.1481 -  }
 18.1482 -
 18.1483 -  # Generate library base name.
 18.1484 -  target_id = mode
 18.1485 -  suffix = SUFFIXES[target_id]
 18.1486 -  library_name = 'v8' + suffix
 18.1487 -  preparser_library_name = 'v8preparser' + suffix
 18.1488 -  version = GetVersion()
 18.1489 -  if context.options['soname'] == 'on':
 18.1490 -    # When building shared object with SONAME version the library name.
 18.1491 -    library_name += '-' + version
 18.1492 -
 18.1493 -  # Generate library SONAME if required by the build.
 18.1494 -  if context.options['soname'] == 'on':
 18.1495 -    soname = GetSpecificSONAME()
 18.1496 -    if soname == '':
 18.1497 -      soname = 'lib' + library_name + '.so'
 18.1498 -    env['SONAME'] = soname
 18.1499 -
 18.1500 -  # Build the object files by invoking SCons recursively.
 18.1501 -  d8_env = Environment(tools=tools)
 18.1502 -  d8_env.Replace(**context.flags['d8'])
 18.1503 -  (object_files, shell_files, mksnapshot, preparser_files) = env.SConscript(
 18.1504 -    join('src', 'SConscript'),
 18.1505 -    build_dir=join('obj', target_id),
 18.1506 -    exports='context tools d8_env',
 18.1507 -    duplicate=False
 18.1508 -  )
 18.1509 -
 18.1510 -  context.mksnapshot_targets.append(mksnapshot)
 18.1511 -
 18.1512 -  # Link the object files into a library.
 18.1513 -  env.Replace(**context.flags['v8'])
 18.1514 -
 18.1515 -  context.ApplyEnvOverrides(env)
 18.1516 -  if context.options['library'] == 'static':
 18.1517 -    library = env.StaticLibrary(library_name, object_files)
 18.1518 -    preparser_library = env.StaticLibrary(preparser_library_name,
 18.1519 -                                          preparser_files)
 18.1520 -  else:
 18.1521 -    # There seems to be a glitch in the way scons decides where to put
 18.1522 -    # PDB files when compiling using MSVC so we specify it manually.
 18.1523 -    # This should not affect any other platforms.
 18.1524 -    pdb_name = library_name + '.dll.pdb'
 18.1525 -    library = env.SharedLibrary(library_name, object_files, PDB=pdb_name)
 18.1526 -    preparser_pdb_name = preparser_library_name + '.dll.pdb';
 18.1527 -    preparser_soname = 'lib' + preparser_library_name + '.so';
 18.1528 -    preparser_library = env.SharedLibrary(preparser_library_name,
 18.1529 -                                          preparser_files,
 18.1530 -                                          PDB=preparser_pdb_name,
 18.1531 -                                          SONAME=preparser_soname)
 18.1532 -  context.library_targets.append(library)
 18.1533 -  context.library_targets.append(preparser_library)
 18.1534 -
 18.1535 -  context.ApplyEnvOverrides(d8_env)
 18.1536 -  if context.options['library'] == 'static':
 18.1537 -    shell = d8_env.Program('d8' + suffix, object_files + shell_files)
 18.1538 -  else:
 18.1539 -    shell = d8_env.Program('d8' + suffix, shell_files)
 18.1540 -    d8_env.Depends(shell, library)
 18.1541 -  context.d8_targets.append(shell)
 18.1542 -
 18.1543 -  for sample in context.samples:
 18.1544 -    sample_env = Environment(tools=tools)
 18.1545 -    sample_env.Replace(**context.flags['sample'])
 18.1546 -    sample_env.Prepend(LIBS=[library_name])
 18.1547 -    context.ApplyEnvOverrides(sample_env)
 18.1548 -    sample_object = sample_env.SConscript(
 18.1549 -      join('samples', 'SConscript'),
 18.1550 -      build_dir=join('obj', 'sample', sample, target_id),
 18.1551 -      exports='sample context tools',
 18.1552 -      duplicate=False
 18.1553 -    )
 18.1554 -    sample_name = sample + suffix
 18.1555 -    sample_program = sample_env.Program(sample_name, sample_object)
 18.1556 -    sample_env.Depends(sample_program, library)
 18.1557 -    context.sample_targets.append(sample_program)
 18.1558 -
 18.1559 -  cctest_env = env.Copy()
 18.1560 -  cctest_env.Prepend(LIBS=[library_name])
 18.1561 -  cctest_program = cctest_env.SConscript(
 18.1562 -    join('test', 'cctest', 'SConscript'),
 18.1563 -    build_dir=join('obj', 'test', target_id),
 18.1564 -    exports='context object_files tools',
 18.1565 -    duplicate=False
 18.1566 -  )
 18.1567 -  context.cctest_targets.append(cctest_program)
 18.1568 -
 18.1569 -  preparser_env = env.Copy()
 18.1570 -  preparser_env.Replace(**context.flags['preparser'])
 18.1571 -  preparser_env.Prepend(LIBS=[preparser_library_name])
 18.1572 -  context.ApplyEnvOverrides(preparser_env)
 18.1573 -  preparser_object = preparser_env.SConscript(
 18.1574 -    join('preparser', 'SConscript'),
 18.1575 -    build_dir=join('obj', 'preparser', target_id),
 18.1576 -    exports='context tools',
 18.1577 -    duplicate=False
 18.1578 -  )
 18.1579 -  preparser_name = join('obj', 'preparser', target_id, 'preparser')
 18.1580 -  preparser_program = preparser_env.Program(preparser_name, preparser_object);
 18.1581 -  preparser_env.Depends(preparser_program, preparser_library)
 18.1582 -  context.preparser_targets.append(preparser_program)
 18.1583 -
 18.1584 -  return context
 18.1585 -
 18.1586 -
 18.1587 -def Build():
 18.1588 -  opts = GetOptions()
 18.1589 -  tools = GetTools(opts)
 18.1590 -  env = Environment(options=opts, tools=tools)
 18.1591 -
 18.1592 -  Help(opts.GenerateHelpText(env))
 18.1593 -  VerifyOptions(env)
 18.1594 -  env_overrides = ParseEnvOverrides(env['env'], env['importenv'])
 18.1595 -
 18.1596 -  SourceSignatures(env['sourcesignatures'])
 18.1597 -
 18.1598 -  libraries = []
 18.1599 -  mksnapshots = []
 18.1600 -  cctests = []
 18.1601 -  samples = []
 18.1602 -  preparsers = []
 18.1603 -  d8s = []
 18.1604 -  modes = SplitList(env['mode'])
 18.1605 -  for mode in modes:
 18.1606 -    context = BuildSpecific(env.Copy(), mode, env_overrides, tools)
 18.1607 -    libraries += context.library_targets
 18.1608 -    mksnapshots += context.mksnapshot_targets
 18.1609 -    cctests += context.cctest_targets
 18.1610 -    samples += context.sample_targets
 18.1611 -    preparsers += context.preparser_targets
 18.1612 -    d8s += context.d8_targets
 18.1613 -
 18.1614 -  env.Alias('library', libraries)
 18.1615 -  env.Alias('mksnapshot', mksnapshots)
 18.1616 -  env.Alias('cctests', cctests)
 18.1617 -  env.Alias('sample', samples)
 18.1618 -  env.Alias('d8', d8s)
 18.1619 -  env.Alias('preparser', preparsers)
 18.1620 -
 18.1621 -  if env['sample']:
 18.1622 -    env.Default('sample')
 18.1623 -  else:
 18.1624 -    env.Default('library')
 18.1625 -
 18.1626 -  if env['cache']:
 18.1627 -    CacheDir(env['cache'])
 18.1628 -
 18.1629 -# We disable deprecation warnings because we need to be able to use
 18.1630 -# env.Copy without getting warnings for compatibility with older
 18.1631 -# version of scons.  Also, there's a bug in some revisions that
 18.1632 -# doesn't allow this flag to be set, so we swallow any exceptions.
 18.1633 -# Lovely.
 18.1634 -try:
 18.1635 -  SetOption('warn', 'no-deprecated')
 18.1636 -except:
 18.1637 -  pass
 18.1638 -
 18.1639 -Build()
    19.1 --- a/node/stuff/SConstruct.patch	Sun May 06 04:24:54 2018 +0300
    19.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.3 @@ -1,13 +0,0 @@
    19.4 ---- deps/v8/SConstruct
    19.5 -+++ deps/v8/SConstruct
    19.6 -@@ -80,8 +80,8 @@
    19.7 -   },
    19.8 -   'gcc': {
    19.9 -     'all': {
   19.10 --      'CCFLAGS':      ['$DIALECTFLAGS', '$WARNINGFLAGS'],
   19.11 --      'CXXFLAGS':     ['-fno-rtti', '-fno-exceptions'],
   19.12 -+      'CCFLAGS':      ['$DIALECTFLAGS', '$WARNINGFLAGS', '-march=armv6'],
   19.13 -+      'CXXFLAGS':     ['-fno-rtti', '-fno-exceptions', '-march=armv6'],
   19.14 -     },
   19.15 -     'visibility:hidden': {
   19.16 -       # Use visibility=default to disable this.
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/npapi-sdk/receipt	Wed May 09 16:46:19 2018 +0300
    20.3 @@ -0,0 +1,22 @@
    20.4 +# SliTaz package receipt v2.
    20.5 +
    20.6 +PACKAGE="npapi-sdk"
    20.7 +VERSION="0.27.2"
    20.8 +CATEGORY="development"
    20.9 +SHORT_DESC="Netscape Plugin Application Programming Interface headers by Mozilla"
   20.10 +MAINTAINER="al.bobylev@gmail.com"
   20.11 +LICENSE="MPL"
   20.12 +WEB_SITE="https://bitbucket.org/mgorny/npapi-sdk/"
   20.13 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/npapi-sdk.html"
   20.14 +
   20.15 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
   20.16 +WGET_URL="https://bitbucket.org/mgorny/npapi-sdk/downloads/$TARBALL"
   20.17 +
   20.18 +compile_rules() {
   20.19 +	./configure &&
   20.20 +	make install
   20.21 +}
   20.22 +
   20.23 +genpkg_rules() {
   20.24 +	copy @dev
   20.25 +}
    21.1 --- a/npth/receipt	Sun May 06 04:24:54 2018 +0300
    21.2 +++ b/npth/receipt	Wed May 09 16:46:19 2018 +0300
    21.3 @@ -7,6 +7,7 @@
    21.4  MAINTAINER="al.bobylev@gmail.com"
    21.5  LICENSE="GPL2 LGPL3"
    21.6  WEB_SITE="https://www.gnupg.org/related_software/npth/"
    21.7 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/npth.html"
    21.8  
    21.9  TARBALL="$PACKAGE-$VERSION.tar.bz2"
   21.10  WGET_URL="https://www.gnupg.org/ftp/gcrypt/npth/$TARBALL"
    22.1 --- a/nspr/receipt	Sun May 06 04:24:54 2018 +0300
    22.2 +++ b/nspr/receipt	Wed May 09 16:46:19 2018 +0300
    22.3 @@ -30,7 +30,8 @@
    22.4  		--with-pthreads \
    22.5  		$ARCH_ARGS \
    22.6  		$CONFIGURE_ARGS &&
    22.7 -	make && make install
    22.8 +	make &&
    22.9 +	make install
   22.10  }
   22.11  
   22.12  genpkg_rules() {
    23.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.2 +++ b/obex-data-server/receipt	Wed May 09 16:46:19 2018 +0300
    23.3 @@ -0,0 +1,27 @@
    23.4 +# SliTaz package receipt v2.
    23.5 +
    23.6 +PACKAGE="obex-data-server"
    23.7 +VERSION="0.4.6"
    23.8 +CATEGORY="system-tools"
    23.9 +SHORT_DESC="D-Bus service providing OBEX functionality"
   23.10 +MAINTAINER="al.bobylev@gmail.com"
   23.11 +LICENSE="GPL2"
   23.12 +WEB_SITE="http://tadas.dailyda.com/"
   23.13 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/obex-data-server.html"
   23.14 +
   23.15 +TARBALL="$PACKAGE-$VERSION.tar.gz"
   23.16 +WGET_URL="http://tadas.dailyda.com/software/$TARBALL"
   23.17 +
   23.18 +BUILD_DEPENDS="glib-dev dbus-glib-dev gdk-pixbuf-dev libusb-compat-dev \
   23.19 +libusb-dev bluez-dev openobex-dev"
   23.20 +
   23.21 +compile_rules() {
   23.22 +	./configure $CONFIGURE_ARGS &&
   23.23 +	make &&
   23.24 +	make install
   23.25 +}
   23.26 +
   23.27 +genpkg_rules() {
   23.28 +	copy @std
   23.29 +	DEPENDS="bluez dbus-glib gdk-pixbuf glib libusb-compat openobex"
   23.30 +}
    24.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.2 +++ b/obex-data-server/stuff/patches/obex-data-server-0.4.6-build-fixes-1.patch	Wed May 09 16:46:19 2018 +0300
    24.3 @@ -0,0 +1,56 @@
    24.4 +Submitted By:            Armin K. <krejzi at email dot com>
    24.5 +Date:                    2012-07-06
    24.6 +Initial Package Version: 0.4.6
    24.7 +Upstream Status:         Unknown
    24.8 +Origin:                  Self
    24.9 +Description:             Some build fixes.
   24.10 +
   24.11 +--- obex-data-server.orig/src/ods-obex.c	2011-02-10 10:14:42.000000000 +0100
   24.12 ++++ obex-data-server/src/ods-obex.c	2012-07-06 20:10:09.208712553 +0200
   24.13 +@@ -412,7 +412,7 @@
   24.14 + 		goto err;
   24.15 + 	}
   24.16 + 
   24.17 +-	interfaces_num = OBEX_FindInterfaces(obex_context->obex_handle, &obex_intf);
   24.18 ++	interfaces_num = OBEX_EnumerateInterfaces(obex_context->obex_handle);
   24.19 + 	if (intf_num >= interfaces_num) {
   24.20 + 		g_set_error (error, ODS_ERROR, ODS_ERROR_FAILED, "Invalid interface number");
   24.21 + 		goto err;
   24.22 +@@ -1928,7 +1928,7 @@
   24.23 + 	gchar	*uname;
   24.24 + 	gsize	uname_len;
   24.25 + 
   24.26 +-	if (action != OBEX_ACTION_SETPERM)
   24.27 ++	if (action != 0x03)
   24.28 + 		g_assert (src && dst);
   24.29 + 
   24.30 + 	object = OBEX_ObjectNew (obex_context->obex_handle, OBEX_CMD_ACTION);
   24.31 +@@ -1974,7 +1974,7 @@
   24.32 + 	                      OBEX_HDR_ACTION_ID, hv, 1, 0);
   24.33 + 
   24.34 + 	/* permissions header */
   24.35 +-	if (action == OBEX_ACTION_SETPERM) {
   24.36 ++	if (action == 0x03) {
   24.37 + 		hv.bq4 = perms;
   24.38 + 		ret = OBEX_ObjectAddHeader (obex_context->obex_handle, object,
   24.39 + 		                            OBEX_HDR_PERMISSIONS, hv, 4, 0);
   24.40 +--- obex-data-server.orig/src/ods-session.c	2011-02-10 09:57:31.000000000 +0100
   24.41 ++++ obex-data-server/src/ods-session.c	2012-07-06 20:10:09.208712553 +0200
   24.42 +@@ -1761,7 +1761,7 @@
   24.43 +                          DBusGMethodInvocation *context)
   24.44 + {
   24.45 + 	return ods_session_remote_action (session, remote_source,
   24.46 +-	                                  remote_destination, OBEX_ACTION_COPY,
   24.47 ++	                                  remote_destination, 0x00,
   24.48 + 	                                  context);
   24.49 + }
   24.50 + 
   24.51 +@@ -1772,7 +1772,7 @@
   24.52 +                          DBusGMethodInvocation *context)
   24.53 + {
   24.54 + 	return ods_session_remote_action (session, remote_source,
   24.55 +-	                                  remote_destination, OBEX_ACTION_MOVE,
   24.56 ++	                                  remote_destination, 0x01,
   24.57 + 	                                  context);
   24.58 + }
   24.59 + 
    25.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    25.2 +++ b/obex-data-server/stuff/patches/series	Wed May 09 16:46:19 2018 +0300
    25.3 @@ -0,0 +1,2 @@
    25.4 +# from BLFS
    25.5 +obex-data-server-0.4.6-build-fixes-1.patch
    26.1 --- a/opencv/receipt	Sun May 06 04:24:54 2018 +0300
    26.2 +++ b/opencv/receipt	Wed May 09 16:46:19 2018 +0300
    26.3 @@ -1,36 +1,77 @@
    26.4  # SliTaz package receipt v2.
    26.5  
    26.6  PACKAGE="opencv"
    26.7 -VERSION="3.3.0"
    26.8 +VERSION="3.4.1"
    26.9  CATEGORY="development"
   26.10  SHORT_DESC="Open source computer vision library"
   26.11  MAINTAINER="pascal.bellard@slitaz.org"
   26.12  LICENSE="BSD"
   26.13  WEB_SITE="http://opencv.org/"
   26.14 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/opencv.html"
   26.15  
   26.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
   26.17 -WGET_URL="https://github.com/Itseez/opencv/archive/$VERSION.tar.gz"
   26.18 +WGET_URL="https://github.com/opencv/opencv/archive/$VERSION.tar.gz"
   26.19 +WGET_URL2="https://raw.githubusercontent.com/opencv/opencv_3rdparty/\
   26.20 +dfe3162c237af211e98b8960018b564bc209261d/ippicv/\
   26.21 +ippicv_2017u3_lnx_intel64_general_20170822.tgz"
   26.22 +WGET_URL3="https://github.com/opencv/opencv_contrib/archive/$VERSION/\
   26.23 +opencv_contrib-$VERSION.tar.gz"
   26.24  
   26.25 -BUILD_DEPENDS="cmake gtk+-dev ffmpeg-dev libjpeg-turbo-dev tiff-dev \
   26.26 -libpng16-dev"
   26.27 +BUILD_DEPENDS="cmake python-dev python-numpy zlib-dev \
   26.28 +libjpeg-turbo-dev tiff-dev libpng16-dev libwebp-dev jasper-dev openexr-dev \
   26.29 +ilmbase-dev gtk+-dev glib-dev gstreamer1-dev gst1-plugins-base-dev \
   26.30 +libgphoto2-dev shared-mime-info xine-lib-dev protobuf-dev " # lapack-dev
   26.31  SPLIT="opencv opencv-dev"
   26.32  
   26.33  compile_rules() {
   26.34 -	fix math
   26.35 +	ipp_file=$SRC/$(basename $WGET_URL2)
   26.36 +	if [ ! -e "$ipp_file" ]; then
   26.37 +		wget -O $ipp_file $WGET_URL2
   26.38 +	fi
   26.39 +	ipp_hash=$(md5sum $ipp_file | cut -d" " -f1)
   26.40 +	ipp_dir=.cache/ippicv
   26.41 +	mkdir -p $ipp_dir
   26.42 +	cp $ipp_file $ipp_dir/$ipp_hash-$(basename $ipp_file)
   26.43 +
   26.44 +	if [ ! -e "$SRC/$(basename $WGET_URL3)" ]; then
   26.45 +		wget -P $SRC $WGET_URL3
   26.46 +	fi
   26.47 +	tar -xf $SRC/$(basename $WGET_URL3)
   26.48 +
   26.49 +
   26.50  	mkdir build
   26.51  	cd    build
   26.52 +
   26.53  	cmake \
   26.54  		-DCMAKE_INSTALL_PREFIX=/usr \
   26.55 +		-DCMAKE_BUILD_TYPE=Release \
   26.56 +		-DENABLE_CXX11=ON \
   26.57 +		-DBUILD_PERF_TESTS=OFF \
   26.58 +		-DWITH_XINE=ON \
   26.59 +		-DBUILD_TESTS=OFF \
   26.60 +		-DENABLE_PRECOMPILED_HEADERS=OFF \
   26.61 +		-DCMAKE_SKIP_RPATH=ON \
   26.62 +		-DBUILD_WITH_DEBUG_INFO=OFF \
   26.63 +		-Wno-dev \
   26.64 +		\
   26.65  		.. &&
   26.66  	make &&
   26.67 -	make DESTDIR=$DESTDIR install
   26.68 +	make install || return 1
   26.69 +
   26.70 +	case $ARCH in
   26.71 +		x86_64) a='intel64';;
   26.72 +		*)      a='ia32';;
   26.73 +	esac
   26.74 +	cp -v 3rdparty/ippicv/ippicv_lnx/lib/$a/libippicv.a $install/usr/lib
   26.75  }
   26.76  
   26.77  genpkg_rules() {
   26.78  	case $PACKAGE in
   26.79  		opencv)
   26.80  			copy @std
   26.81 -			DEPENDS="gtk+ ffmpeg jpeg tiff libpng16"
   26.82 +			DEPENDS="cairo gdk-pixbuf glib gst1-plugins-base gstreamer1 gtk+ \
   26.83 +			jasper libgphoto2 libjpeg-turbo libpng16 libwebp openexr tiff \
   26.84 +			xine-lib zlib"
   26.85  			;;
   26.86  		opencv-dev)
   26.87  			copy @dev
    27.1 --- a/slitaz-tools-boxes/receipt	Sun May 06 04:24:54 2018 +0300
    27.2 +++ b/slitaz-tools-boxes/receipt	Wed May 09 16:46:19 2018 +0300
    27.3 @@ -1,7 +1,7 @@
    27.4  # SliTaz package receipt.
    27.5  
    27.6  PACKAGE="slitaz-tools-boxes"
    27.7 -VERSION="1024"
    27.8 +VERSION="1028"
    27.9  CATEGORY="system-tools"
   27.10  SHORT_DESC="All SliTaz GTK/Yad boxes to command line tools."
   27.11  MAINTAINER="pankso@slitaz.org"
    28.1 --- a/slitaz-tools/receipt	Sun May 06 04:24:54 2018 +0300
    28.2 +++ b/slitaz-tools/receipt	Wed May 09 16:46:19 2018 +0300
    28.3 @@ -1,7 +1,7 @@
    28.4  # SliTaz package receipt.
    28.5  
    28.6  PACKAGE="slitaz-tools"
    28.7 -VERSION="1024"
    28.8 +VERSION="1028"
    28.9  CATEGORY="system-tools"
   28.10  SHORT_DESC="SliTaz tools provide installer and utils usable on terminal."
   28.11  MAINTAINER="pankso@slitaz.org"
    29.1 --- a/spacefm-gtk2/receipt	Sun May 06 04:24:54 2018 +0300
    29.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    29.3 @@ -1,31 +0,0 @@
    29.4 -# SliTaz package receipt v2.
    29.5 -
    29.6 -PACKAGE="spacefm-gtk2"
    29.7 -VERSION="1.0.5"
    29.8 -CATEGORY="system-tools"
    29.9 -SHORT_DESC="Multi-panel tabbed file and desktop manager"
   29.10 -MAINTAINER="al.bobylev@gmail.com"
   29.11 -LICENSE="GPL3"
   29.12 -WEB_SITE="http://ignorantguru.github.io/spacefm/"
   29.13 -
   29.14 -TARBALL="spacefm-$VERSION.tar.gz"
   29.15 -WGET_URL="https://github.com/IgnorantGuru/spacefm/archive/$VERSION.tar.gz"
   29.16 -
   29.17 -BUILD_DEPENDS="intltool gtk+-dev eudev-dev"
   29.18 -
   29.19 -compile_rules() {
   29.20 -	./configure \
   29.21 -		--disable-video-thumbnails \
   29.22 -		--with-preferable-sudo=/usr/bin/subox \
   29.23 -		$CONFIGURE_ARGS &&
   29.24 -	fix libtool &&
   29.25 -	make &&
   29.26 -	make MKDIRPROG='mkdir -p' install || return 1
   29.27 -
   29.28 -	rm -rf $install/usr/share/mime/
   29.29 -}
   29.30 -
   29.31 -genpkg_rules() {
   29.32 -	copy @std
   29.33 -	DEPENDS="cairo eudev gdk-pixbuf glib gtk+ pango xorg-libX11   bash"
   29.34 -}
    30.1 --- a/spacefm/receipt	Sun May 06 04:24:54 2018 +0300
    30.2 +++ b/spacefm/receipt	Wed May 09 16:46:19 2018 +0300
    30.3 @@ -1,44 +1,65 @@
    30.4  # SliTaz package receipt v2.
    30.5  
    30.6  PACKAGE="spacefm"
    30.7 -VERSION="0.9.4"
    30.8 -CATEGORY="system-tools"
    30.9 -SHORT_DESC="Light, fast and easy to use file manager"
   30.10 -MAINTAINER="pankso@slitaz.org"
   30.11 +VERSION="1.0.6"
   30.12 +CATEGORY="meta"
   30.13 +SHORT_DESC="Multi-panel tabbed file and desktop manager"
   30.14 +MAINTAINER="al.bobylev@gmail.com"
   30.15  LICENSE="GPL3"
   30.16  WEB_SITE="http://ignorantguru.github.io/spacefm/"
   30.17  
   30.18 -TARBALL="$PACKAGE-$VERSION.tar.xz"
   30.19 -WGET_URL="$SF_MIRROR/$PACKAGE/files/$TARBALL"
   30.20 +TARBALL="$PACKAGE-$VERSION.tar.gz"
   30.21 +WGET_URL="https://github.com/IgnorantGuru/spacefm/archive/$VERSION.tar.gz"
   30.22  
   30.23 -BUILD_DEPENDS="gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \
   30.24 -xorg-libxcb-dev xorg-xcb-util-dev expat-dev gdk-pixbuf-dev intltool eudev-dev \
   30.25 -coreutils-file-special"
   30.26 +BUILD_DEPENDS="intltool gtk+-dev gtk+3-dev startup-notification-dev eudev-dev \
   30.27 +ffmpegthumbnailer-dev"
   30.28 +SPLIT="spacefm spacefm-gtk2:gtk2 spacefm-gtk3:gtk3"
   30.29  
   30.30  compile_rules() {
   30.31 -	patch -Np1 -i $stuff/prefdlg.ui.diff
   30.32 -	patch -Np1 -i $stuff/settings.h.diff
   30.33 -	patch -Np1 -i $stuff/vfs-file-task.c.diff
   30.34 +	case $SET in
   30.35 +		'')   rm -r $src; mkdir $install; return 0;;
   30.36 +		gtk2) SET_ARGS='--with-gtk2';;
   30.37 +		gtk3) SET_ARGS='--with-gtk3';;
   30.38 +	esac
   30.39  
   30.40  	./configure \
   30.41 -		--with-preferable-sudo="/usr/bin/subox" \
   30.42 -		--disable-pixmaps \
   30.43 +		--with-preferable-sudo=/usr/bin/subox \
   30.44 +		$SET_ARGS \
   30.45  		$CONFIGURE_ARGS &&
   30.46  	fix libtool &&
   30.47  	make &&
   30.48 -	make install || return 1
   30.49 +	make MKDIRPROG='mkdir -p' install || return 1
   30.50  
   30.51 -	install -Dm644 $stuff/spacefm.conf                  $install/etc/spacefm/spacefm.conf
   30.52 -	install -Dm644 $stuff/xdg/autostart/spacefm.desktop $install/etc/autostart/spacefm.desktop
   30.53 -	install -Dm644 $stuff/xdg/spacefm/session           $install/etc/xdg/spacefm/session
   30.54 +	install -Dm644 $stuff/spacefm-desktop-pref.desktop \
   30.55 +		$install/usr/share/applications/spacefm-desktop-pref.desktop
   30.56 +	install -Dm644 $stuff/xdg/autostart/spacefm.desktop \
   30.57 +		$install/etc/xdg/autostart/spacefm.desktop
   30.58 +	install -Dm644 $stuff/xdg/spacefm/session \
   30.59 +		$install/etc/xdg/spacefm/session
   30.60  
   30.61 -	# /bin/bash --> /bin/sh
   30.62 -	sed -i 's|/bin/bash|/bin/sh|g' $install/usr/bin/spacefm-auth
   30.63 +	# useless file, it adds nothing useful to Freedesktop's shared-mime-info
   30.64 +	rm -r $install/usr/share/mime/
   30.65  }
   30.66  
   30.67  genpkg_rules() {
   30.68 -	copy @std @ico
   30.69 -	DEPENDS="glibc-base glib util-linux-uuid xorg-libxcb xorg-xcb-util expat \
   30.70 -	gtk+ startup-notification dbus dbus-glib gdk-pixbuf eudev bash udevil"
   30.71 -	TAGS="file-manager"
   30.72 +	case $PACKAGE in
   30.73 +		spacefm)
   30.74 +			CAT="meta|empty meta-package"
   30.75 +			DEPENDS="spacefm-gtk2"
   30.76 +			;;
   30.77 +		spacefm-gtk2)
   30.78 +			copy @std @ico
   30.79 +			CAT="system-tools|with GTK+2 interface"
   30.80 +			DEPENDS="cairo eudev ffmpegthumbnailer gdk-pixbuf glib gtk+ pango \
   30.81 +			startup-notification xorg-libX11   bash"
   30.82 +			TAGS="file-manager"
   30.83 +			;;
   30.84 +		spacefm-gtk3)
   30.85 +			copy @std @ico
   30.86 +			CAT="system-tools|with GTK+3 interface"
   30.87 +			DEPENDS="cairo eudev ffmpegthumbnailer gdk-pixbuf glib gtk+3 pango \
   30.88 +			startup-notification xorg-libX11   bash"
   30.89 +			TAGS="file-manager"
   30.90 +			;;
   30.91 +	esac
   30.92  }
    31.1 --- a/spacefm/stuff/applications/spacefm-desktop-pref.desktop	Sun May 06 04:24:54 2018 +0300
    31.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    31.3 @@ -1,10 +0,0 @@
    31.4 -[Desktop Entry]
    31.5 -Type=Application
    31.6 -Name=SpaceFM Desktop configuration
    31.7 -Name[fr]=Configuration du bureau SpaceFM
    31.8 -Name[pt]=Configuração do Desktop SpaceFM
    31.9 -Name[pt_BR]=Configuração do Desktop SpaceFM
   31.10 -Name[ru]=Параметры рабочего стола SpaceFM
   31.11 -Exec=spacefm --desktop-pref
   31.12 -Icon=preferences-desktop-wallpaper
   31.13 -Categories=Settings;DesktopSettings;
    32.1 --- a/spacefm/stuff/autostart/spacefm.desktop	Sun May 06 04:24:54 2018 +0300
    32.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    32.3 @@ -1,9 +0,0 @@
    32.4 -[Desktop Entry]
    32.5 -Type=Application
    32.6 -Name=SpaceFM Desktop Manager
    32.7 -Name[fr]=Gestionnaire de bureau SpaceFM
    32.8 -Name[pt]=Gerenciador de Desktop SpaceFM
    32.9 -Name[pt_BR]=Gerenciador de Desktop SpaceFM
   32.10 -Name[ru]=Менеджер рабочего стола SpaceFM
   32.11 -Exec=spacefm --desktop
   32.12 -NotShowIn=XFCE;Razor;
    33.1 --- a/spacefm/stuff/prefdlg.ui.diff	Sun May 06 04:24:54 2018 +0300
    33.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    33.3 @@ -1,12 +0,0 @@
    33.4 ---- spacefm-0.8.4.orig/data/ui/prefdlg.ui
    33.5 -+++ spacefm-0.8.4/data/ui/prefdlg.ui
    33.6 -@@ -153,6 +153,9 @@
    33.7 -         <col id="0">/usr/bin/ktsuss</col>
    33.8 -       </row>
    33.9 -       <row>
   33.10 -+        <col id="0">/usr/bin/tazbox</col>
   33.11 -+      </row>      
   33.12 -+      <row>
   33.13 -         <col id="0">/usr/bin/gksu</col>
   33.14 -       </row>
   33.15 -       <row>
    34.1 --- a/spacefm/stuff/settings.h.diff	Sun May 06 04:24:54 2018 +0300
    34.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    34.3 @@ -1,10 +0,0 @@
    34.4 ---- spacefm-0.8.4.orig/src/settings.h
    34.5 -+++ spacefm-0.8.4/src/settings.h
    34.6 -@@ -274,6 +274,7 @@
    34.7 - static const char* gsu_commands[] = // order and contents must match prefdlg.ui
    34.8 - {
    34.9 -     "/usr/bin/ktsuss",
   34.10 -+    "/usr/bin/tazbox",
   34.11 -     "/usr/bin/gksu",
   34.12 -     "/usr/bin/gksudo",
   34.13 -     "/usr/bin/gnomesu",
    35.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    35.2 +++ b/spacefm/stuff/spacefm-desktop-pref.desktop	Wed May 09 16:46:19 2018 +0300
    35.3 @@ -0,0 +1,10 @@
    35.4 +[Desktop Entry]
    35.5 +Type=Application
    35.6 +Name=SpaceFM Desktop configuration
    35.7 +Name[fr]=Configuration du bureau SpaceFM
    35.8 +Name[pt]=Configuração do Desktop SpaceFM
    35.9 +Name[pt_BR]=Configuração do Desktop SpaceFM
   35.10 +Name[ru]=Параметры рабочего стола SpaceFM
   35.11 +Exec=spacefm --desktop-pref
   35.12 +Icon=preferences-desktop-wallpaper
   35.13 +Categories=Settings;DesktopSettings;
    36.1 --- a/spacefm/stuff/spacefm.conf	Sun May 06 04:24:54 2018 +0300
    36.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    36.3 @@ -1,6 +0,0 @@
    36.4 -# spacefm.conf: SliTaz GNU/Linux SpaceFM configuration file.
    36.5 -
    36.6 -# tmp_dir should be a root-protected user-writable dir like /tmp
    36.7 -# tmp_dir must NOT contain spaces or special chars - keep it simple
    36.8 -tmp_dir=/tmp
    36.9 -
    37.1 --- a/spacefm/stuff/vfs-file-task.c.diff	Sun May 06 04:24:54 2018 +0300
    37.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    37.3 @@ -1,15 +0,0 @@
    37.4 ---- spacefm-0.8.4.orig/src/vfs/vfs-file-task.c
    37.5 -+++ spacefm-0.8.4/src/vfs/vfs-file-task.c
    37.6 -@@ -1725,6 +1725,12 @@
    37.7 -             argv[a++] = g_strdup( "SpaceFM Command" );
    37.8 -             single_arg = TRUE;
    37.9 -         }
   37.10 -+        else if ( !strcmp( use_su, "/usr/bin/tazbox" ) )
   37.11 -+        {
   37.12 -+            // tazbox
   37.13 -+            argv[a++] = g_strdup( "su" );
   37.14 -+            single_arg = TRUE;
   37.15 -+        }
   37.16 -         else if ( strstr( use_su, "kdesu" ) )
   37.17 -         {
   37.18 -             // kdesu kdesudo
    38.1 --- a/tiff/receipt	Sun May 06 04:24:54 2018 +0300
    38.2 +++ b/tiff/receipt	Wed May 09 16:46:19 2018 +0300
    38.3 @@ -1,26 +1,37 @@
    38.4  # SliTaz package receipt v2.
    38.5  
    38.6  PACKAGE="tiff"
    38.7 -VERSION="4.0.7"
    38.8 +VERSION="4.0.9"
    38.9  CATEGORY="graphics"
   38.10  SHORT_DESC="TIFF images"
   38.11  MAINTAINER="pankso@slitaz.org"
   38.12  LICENSE="MIT"
   38.13  WEB_SITE="http://www.libtiff.org/"
   38.14 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libtiff.html"
   38.15  
   38.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
   38.17  WGET_URL="http://download.osgeo.org/libtiff/$TARBALL"
   38.18  
   38.19 -BUILD_DEPENDS="libjpeg-turbo-dev zlib-dev"
   38.20 -SPLIT="tiff-apps tiff-dev"
   38.21 +BUILD_DEPENDS="cmake ninja zlib-dev libjpeg-turbo-dev xz-dev \
   38.22 +mesa-dev glu-dev freeglut-dev"
   38.23 +SPLIT="tiff tiff-apps tiff-dev tiff-gl:gl tiff-gl-apps:gl tiff-gl-dev:gl"
   38.24  
   38.25  compile_rules() {
   38.26 -	./configure \
   38.27 -		--disable-static \
   38.28 -		$CONFIGURE_ARGS &&
   38.29 -	fix libtool &&
   38.30 -	make &&
   38.31 -	make install
   38.32 +	case $SET in
   38.33 +		# no options for it
   38.34 +		'') sed -i 's|HAVE_OPENGL TRUE|HAVE_OPENGL FALSE|' CMakeLists.txt;;
   38.35 +	esac
   38.36 +
   38.37 +	mkdir -p libtiff-build
   38.38 +	cd       libtiff-build
   38.39 +
   38.40 +	cmake \
   38.41 +		-DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-$VERSION \
   38.42 +		-DCMAKE_INSTALL_PREFIX=/usr \
   38.43 +		-G Ninja \
   38.44 +		.. &&
   38.45 +	ninja &&
   38.46 +	ninja install
   38.47  }
   38.48  
   38.49  genpkg_rules() {
   38.50 @@ -28,16 +39,34 @@
   38.51  		tiff)
   38.52  			copy *.so*
   38.53  			CAT="graphics|libraries"
   38.54 -			DEPENDS="jpeg-turbo zlib"
   38.55 +			DEPENDS="libjpeg-turbo liblzma zlib"
   38.56  			;;
   38.57  		tiff-apps)
   38.58  			copy bin/
   38.59  			CAT="graphics|CLI applications"
   38.60 -			DEPENDS="libjpeg-turbo zlib tiff"
   38.61 +			DEPENDS="tiff"
   38.62  			;;
   38.63 -		*-dev)
   38.64 +		tiff-dev)
   38.65  			copy @dev
   38.66 -			DEPENDS="tiff tiff-apps libjpeg-turbo-dev zlib-dev"
   38.67 +			DEPENDS="tiff tiff-apps"
   38.68 +			;;
   38.69 +
   38.70 +		tiff-gl)
   38.71 +			copy *.so*
   38.72 +			CAT="graphics|libraries"
   38.73 +			DEPENDS="libjpeg-turbo liblzma zlib"
   38.74 +			PROVIDE="tiff:mesa"
   38.75 +			;;
   38.76 +		tiff-gl-apps)
   38.77 +			copy bin/
   38.78 +			CAT="graphics|CLI applications"
   38.79 +			DEPENDS="freeglut mesa tiff"
   38.80 +			PROVIDE="tiff-apps:mesa"
   38.81 +			;;
   38.82 +		tiff-gl-dev)
   38.83 +			copy @dev
   38.84 +			DEPENDS="tiff-gl tiff-gl-apps"
   38.85 +			PROVIDE="tiff-dev:mesa"
   38.86  			;;
   38.87  	esac
   38.88  }