Browse Source

Remove TERMUX_TAR and TERMUX_TOUCH

These can be removed now that OS X is not supported directly (OS X
users can still use Docker to build though).

Fixes #936.
android-5
Fredrik Fornwall 8 years ago
parent
commit
2f122eed3e
  1. 16
      build-package.sh
  2. 4
      disabled-packages/openjdk-9-jre-headless/build.sh
  3. 2
      disabled-packages/swi-prolog/build.sh
  4. 2
      disabled-packages/unnethack/build.sh
  5. 2
      packages/emacs/build.sh
  6. 2
      packages/gnugo/build.sh
  7. 2
      packages/gnushogi/build.sh
  8. 2
      packages/ht/build.sh
  9. 2
      packages/libsasl/build.sh
  10. 2
      packages/mutt/build.sh
  11. 2
      packages/ncdc/build.sh
  12. 2
      packages/pforth/build.sh
  13. 4
      packages/python/build.sh
  14. 2
      packages/python2/build.sh
  15. 2
      packages/sed/build.sh
  16. 2
      packages/zile/build.sh

16
build-package.sh

@ -223,8 +223,6 @@ termux_step_setup_variables() {
# that everyone gets an updated toolchain:
TERMUX_STANDALONE_TOOLCHAIN+="-v17"
export TERMUX_TAR="tar"
export TERMUX_TOUCH="touch"
export prefix=${TERMUX_PREFIX}
export PREFIX=${TERMUX_PREFIX}
export PKG_CONFIG_LIBDIR=$TERMUX_PREFIX/lib/pkgconfig
@ -408,7 +406,7 @@ termux_step_extract_package() {
if [ "${file##*.}" = zip ]; then
unzip -q "$file"
else
$TERMUX_TAR xf "$file"
tar xf "$file"
fi
mv $folder "$TERMUX_PKG_SRCDIR"
}
@ -823,12 +821,12 @@ termux_step_extract_into_massagedir() {
# Build diff tar with what has changed during the build:
cd $TERMUX_PREFIX
$TERMUX_TAR -N "$TERMUX_BUILD_TS_FILE" -czf "$TARBALL_ORIG" .
tar -N "$TERMUX_BUILD_TS_FILE" -czf "$TARBALL_ORIG" .
# Extract tar in order to massage it
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX"
cd "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX"
$TERMUX_TAR xf "$TARBALL_ORIG"
tar xf "$TARBALL_ORIG"
rm "$TARBALL_ORIG"
}
@ -938,7 +936,7 @@ termux_step_massage() {
cd "$SUB_PKG_DIR/massage"
local SUB_PKG_INSTALLSIZE
SUB_PKG_INSTALLSIZE=$(du -sk . | cut -f 1)
$TERMUX_TAR -cJf "$SUB_PKG_PACKAGE_DIR/data.tar.xz" .
tar -cJf "$SUB_PKG_PACKAGE_DIR/data.tar.xz" .
mkdir -p DEBIAN
cd DEBIAN
@ -953,7 +951,7 @@ termux_step_massage() {
HERE
test ! -z "$TERMUX_SUBPKG_DEPENDS" && echo "Depends: $TERMUX_SUBPKG_DEPENDS" >> control
test ! -z "$TERMUX_SUBPKG_CONFLICTS" && echo "Conflicts: $TERMUX_SUBPKG_CONFLICTS" >> control
$TERMUX_TAR -cJf "$SUB_PKG_PACKAGE_DIR/control.tar.xz" .
tar -cJf "$SUB_PKG_PACKAGE_DIR/control.tar.xz" .
for f in $TERMUX_SUBPKG_CONFFILES; do echo "$TERMUX_PREFIX/$f" >> conffiles; done
@ -992,7 +990,7 @@ termux_step_create_datatar() {
if [ -z "${TERMUX_PKG_METAPACKAGE+x}" ] && [ "$(find . -type f)" = "" ]; then
termux_error_exit "No files in package"
fi
$TERMUX_TAR -cJf "$TERMUX_PKG_PACKAGEDIR/data.tar.xz" .
tar -cJf "$TERMUX_PKG_PACKAGEDIR/data.tar.xz" .
}
termux_step_create_debscripts() {
@ -1032,7 +1030,7 @@ termux_step_create_debfile() {
termux_step_create_debscripts
# Create control.tar.xz
$TERMUX_TAR -cJf "$TERMUX_PKG_PACKAGEDIR/control.tar.xz" .
tar -cJf "$TERMUX_PKG_PACKAGEDIR/control.tar.xz" .
test ! -f "$TERMUX_COMMON_CACHEDIR/debian-binary" && echo "2.0" > "$TERMUX_COMMON_CACHEDIR/debian-binary"
TERMUX_PKG_DEBFILE=$TERMUX_DEBDIR/${TERMUX_PKG_NAME}_${TERMUX_PKG_FULLVERSION}_${TERMUX_ARCH}.deb

4
disabled-packages/openjdk-9-jre-headless/build.sh

@ -65,7 +65,7 @@ termux_step_post_extract_package () {
local url=${_url_src}/$repo/archive/$change.tar.bz2
termux_download $url $file $sum
$TERMUX_TAR xf $file -C $TERMUX_PKG_SRCDIR
tar xf $file -C $TERMUX_PKG_SRCDIR
mv $TERMUX_PKG_SRCDIR/$repo-$change $TERMUX_PKG_SRCDIR/$repo
done
@ -73,7 +73,7 @@ termux_step_post_extract_package () {
file=$TERMUX_PKG_CACHEDIR/cups-$_cups_ver-source.tar.gz
url="https://github.com/apple/cups/releases/download/v$_cups_ver/`basename $file`"
termux_download $url $file ${sha256sums[8]}
$TERMUX_TAR xf $file -C $TERMUX_PKG_SRCDIR
tar xf $file -C $TERMUX_PKG_SRCDIR
}
# override this step to since openjdk provides its own customized guess scripts

2
disabled-packages/swi-prolog/build.sh

@ -25,7 +25,7 @@ termux_step_host_build () {
termux_step_post_configure () {
cp $TERMUX_PKG_HOSTBUILD_DIR/src/defatom src/
$TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/src/defatom
touch -d "next hour" $TERMUX_PKG_BUILDDIR/src/defatom
#cp $TERMUX_PKG_HOSTBUILD_DIR/{defatom,swipl} $TERMUX_PKG_BUILDDIR/src/
#bdir=/home/fornwall/termux/swi-prolog/src/src

2
disabled-packages/unnethack/build.sh

@ -47,7 +47,7 @@ termux_step_post_configure () {
cp $TERMUX_PKG_TMPDIR/host-build/util/dgn_comp $TERMUX_PKG_BUILDDIR/util/dgn_comp
cp $TERMUX_PKG_TMPDIR/host-build/util/dlb $TERMUX_PKG_BUILDDIR/util/dlb
# Update timestamp so the binary does not get rebuilt
$TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/util/makedefs $TERMUX_PKG_BUILDDIR/util/lev_comp $TERMUX_PKG_BUILDDIR/util/dgn_comp $TERMUX_PKG_BUILDDIR/util/dlb
touch -d "next hour" $TERMUX_PKG_BUILDDIR/util/makedefs $TERMUX_PKG_BUILDDIR/util/lev_comp $TERMUX_PKG_BUILDDIR/util/dgn_comp $TERMUX_PKG_BUILDDIR/util/dlb
}
termux_step_post_make_install () {

2
packages/emacs/build.sh

@ -54,7 +54,7 @@ termux_step_post_configure () {
cp $TERMUX_PKG_HOSTBUILD_DIR/src/bootstrap-emacs $TERMUX_PKG_BUILDDIR/src/bootstrap-emacs
cp $TERMUX_PKG_HOSTBUILD_DIR/lib-src/make-docfile $TERMUX_PKG_BUILDDIR/lib-src/make-docfile
# Update timestamps so that the binaries does not get rebuilt:
$TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/src/bootstrap-emacs $TERMUX_PKG_BUILDDIR/lib-src/make-docfile
touch -d "next hour" $TERMUX_PKG_BUILDDIR/src/bootstrap-emacs $TERMUX_PKG_BUILDDIR/lib-src/make-docfile
}
termux_step_post_make_install () {

2
packages/gnugo/build.sh

@ -18,5 +18,5 @@ termux_step_post_configure () {
cp $TERMUX_PKG_HOSTBUILD_DIR/patterns/joseki $TERMUX_PKG_BUILDDIR/patterns/joseki
cp $TERMUX_PKG_HOSTBUILD_DIR/patterns/mkmcpat $TERMUX_PKG_BUILDDIR/patterns/mkmcpat
cp $TERMUX_PKG_HOSTBUILD_DIR/patterns/mkpat $TERMUX_PKG_BUILDDIR/patterns/mkpat
$TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/patterns/*
touch -d "next hour" $TERMUX_PKG_BUILDDIR/patterns/*
}

2
packages/gnushogi/build.sh

@ -15,5 +15,5 @@ termux_step_pre_configure() {
termux_step_post_configure () {
cp $TERMUX_PKG_HOSTBUILD_DIR/gnushogi/pat2inc $TERMUX_PKG_BUILDDIR/gnushogi/pat2inc
# Update timestamps so that the binaries does not get rebuilt:
$TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/gnushogi/pat2inc
touch -d "next hour" $TERMUX_PKG_BUILDDIR/gnushogi/pat2inc
}

2
packages/ht/build.sh

@ -9,5 +9,5 @@ termux_step_post_configure () {
mkdir -p $TERMUX_PKG_BUILDDIR/tools/
g++ -Os $TERMUX_PKG_SRCDIR/tools/bin2c.c -o $TERMUX_PKG_BUILDDIR/tools/bin2c
# Update timestamps so that the binary does not get rebuilt:
$TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/tools/bin2c
touch -d "next hour" $TERMUX_PKG_BUILDDIR/tools/bin2c
}

2
packages/libsasl/build.sh

@ -16,5 +16,5 @@ TERMUX_PKG_RM_AFTER_INSTALL="bin/pluginviewer"
termux_step_post_configure () {
# Build wants to run makemd5 at build time:
gcc $TERMUX_PKG_SRCDIR/include/makemd5.c -o $TERMUX_PKG_BUILDDIR/include/makemd5
$TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/include/makemd5
touch -d "next hour" $TERMUX_PKG_BUILDDIR/include/makemd5
}

2
packages/mutt/build.sh

@ -18,7 +18,7 @@ termux_step_post_configure () {
# Build wants to run mutt_md5 and makedoc:
gcc -DHAVE_STDINT_H -DMD5UTIL $TERMUX_PKG_SRCDIR/md5.c -o $TERMUX_PKG_BUILDDIR/mutt_md5
gcc -DHAVE_STRERROR $TERMUX_PKG_SRCDIR/doc/makedoc.c -o $TERMUX_PKG_BUILDDIR/doc/makedoc
$TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/mutt_md5 $TERMUX_PKG_BUILDDIR/doc/makedoc
touch -d "next hour" $TERMUX_PKG_BUILDDIR/mutt_md5 $TERMUX_PKG_BUILDDIR/doc/makedoc
}
termux_step_post_make_install () {

2
packages/ncdc/build.sh

@ -10,5 +10,5 @@ termux_step_post_configure () {
# Cross compiling steps documented in ncdc README
gcc $TERMUX_PKG_SRCDIR/deps/makeheaders.c -o makeheaders
gcc -I. $TERMUX_PKG_SRCDIR/doc/gendoc.c -o gendoc
$TERMUX_TOUCH -d "next hour" makeheaders gendoc
touch -d "next hour" makeheaders gendoc
}

2
packages/pforth/build.sh

@ -17,7 +17,7 @@ termux_step_host_build () {
termux_step_pre_configure () {
for file in pfdicdat.h pforth; do
cp $TERMUX_PKG_HOSTBUILD_DIR/build/unix/$file $TERMUX_PKG_SRCDIR/build/unix/$file
$TERMUX_TOUCH -d "next hour" $TERMUX_PKG_SRCDIR/build/unix/$file
touch -d "next hour" $TERMUX_PKG_SRCDIR/build/unix/$file
done
export TERMUX_PKG_BUILDDIR=$TERMUX_PKG_SRCDIR/build/unix

4
packages/python/build.sh

@ -59,8 +59,8 @@ termux_step_pre_configure() {
termux_step_post_configure () {
cp $TERMUX_PKG_HOSTBUILD_DIR/Parser/pgen $TERMUX_PKG_BUILDDIR/Parser/pgen
cp $TERMUX_PKG_HOSTBUILD_DIR/Programs/_freeze_importlib $TERMUX_PKG_BUILDDIR/Programs/_freeze_importlib
$TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/Parser/pgen
$TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/Programs/_freeze_importlib
touch -d "next hour" $TERMUX_PKG_BUILDDIR/Parser/pgen
touch -d "next hour" $TERMUX_PKG_BUILDDIR/Programs/_freeze_importlib
}
termux_step_post_make_install () {

2
packages/python2/build.sh

@ -42,7 +42,7 @@ termux_step_host_build () {
termux_step_post_configure () {
cp $TERMUX_PKG_HOSTBUILD_DIR/Parser/pgen $TERMUX_PKG_BUILDDIR/Parser/pgen
$TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/Parser/pgen
touch -d "next hour" $TERMUX_PKG_BUILDDIR/Parser/pgen
}
termux_step_pre_configure() {

2
packages/sed/build.sh

@ -6,5 +6,5 @@ TERMUX_PKG_SHA256=cbd6ebc5aaf080ed60d0162d7f6aeae58211a1ee9ba9bb25623daa6cd94268
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_post_configure () {
$TERMUX_TOUCH -d "next hour" $TERMUX_PKG_SRCDIR/doc/sed.1
touch -d "next hour" $TERMUX_PKG_SRCDIR/doc/sed.1
}

2
packages/zile/build.sh

@ -11,5 +11,5 @@ termux_step_post_configure() {
# zile uses help2man to build the zile.1 man page, which would require
# a host build. To avoid that just copy a pre-built man page.
cp $TERMUX_PKG_BUILDER_DIR/zile.1 $TERMUX_PKG_BUILDDIR/doc/zile.1
$TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/doc/zile.1*
touch -d "next hour" $TERMUX_PKG_BUILDDIR/doc/zile.1*
}

Loading…
Cancel
Save