Skip to content

Commit

Permalink
- Bump libarchive from 3.6.1 to 3.6.2
Browse files Browse the repository at this point in the history
- Bump libxml2 from 2.9.14 to 2.10.3
- Bump XZ from 5.2.5 to 5.4.0
  • Loading branch information
James A Sutherland committed Dec 23, 2022
1 parent dff1c3d commit 6704d94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions native/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export PATH="$PREFIX/bin:$PREFIX/x86_64-linux-musl/bin:$PATH"
curl -sL https://github.com/richfelker/musl-cross-make/archive/refs/heads/master.zip > musl-git.zip
unzip musl-git.zip
rm musl-git.zip
curl -sL https://github.com/libarchive/libarchive/releases/download/v3.6.1/libarchive-3.6.1.tar.xz | tar xJf -
curl -sL https://github.com/libarchive/libarchive/releases/download/v3.6.2/libarchive-3.6.2.tar.xz | tar xJf -
curl -sL https://github.com/lz4/lz4/archive/refs/tags/v1.9.4.tar.gz | tar xzf -
curl -sL https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz | tar xzf -
curl -sL http://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz | tar xzf -
curl -sL https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.9.14/libxml2-v2.9.14.tar.bz2 | tar xjf -
curl -sL https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.10.3/libxml2-v2.10.3.tar.bz2 | tar xjf -
curl -sL https://www.sourceware.org/pub/bzip2/bzip2-latest.tar.gz | tar xzf -
curl -sL https://zlib.net/zlib-1.2.13.tar.xz | tar xJf -
curl -sL https://tukaani.org/xz/xz-5.2.5.tar.xz | tar xJf -
curl -sL https://tukaani.org/xz/xz-5.4.0.tar.xz | tar xJf -

cd musl-cross-make-master
cat > config.mak <<EOC
Expand All @@ -46,12 +46,12 @@ cd ../zlib-1.2.13
./configure --static --prefix=$PREFIX
make -sj$NCPU install

cd ../xz-5.2.5
cd ../xz-5.4.0
./configure --cache-file=$CONFIGCACHE --with-pic --disable-shared --prefix=$PREFIX
make -sj$NCPU install

cd ../libxml2-v2.9.14
./autogen.sh --cache-file=$CONFIGCACHE --enable-silent-rules --disable-shared --enable-static --prefix=$PREFIX --without-python --with-zlib=$PREFIX/../zlib-1.2.13 --with-lzma=$PREFIX/../xz-5.2.5
./autogen.sh --cache-file=$CONFIGCACHE --enable-silent-rules --disable-shared --enable-static --prefix=$PREFIX --without-python --with-zlib=$PREFIX/../zlib-1.2.13 --with-lzma=$PREFIX/../xz-5.4.0
make -sj$NCPU install

cd ../libarchive-*
Expand Down
10 changes: 5 additions & 5 deletions native/build-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ export CPPFLAGS="-I$PREFIX/include"
export LDFLAGS="-L$PREFIX/lib -liconv"
export CFLAGS="-fPIC -O2 -D_FILE_OFFSET_BITS=64 -arch arm64 -arch x86_64"

curl -sL https://github.com/libarchive/libarchive/releases/download/v3.6.1/libarchive-3.6.1.tar.xz | tar xJf -
curl -sL https://github.com/libarchive/libarchive/releases/download/v3.6.2/libarchive-3.6.2.tar.xz | tar xJf -
curl -sL https://github.com/lz4/lz4/archive/refs/tags/v1.9.4.tar.gz | tar xzf -
curl -sL https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz | tar xzf -
curl -sL http://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz | tar xzf -
curl -sL https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.9.14/libxml2-v2.9.14.tar.bz2 | tar xjf -
curl -sL https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.10.3/libxml2-v2.10.3.tar.bz2 | tar xjf -
curl -sL https://www.sourceware.org/pub/bzip2/bzip2-latest.tar.gz | tar xzf -
curl -sL https://zlib.net/zlib-1.2.13.tar.xz | tar xJf -
curl -sL https://tukaani.org/xz/xz-5.2.5.tar.xz | tar xJf -
curl -sL https://tukaani.org/xz/xz-5.4.0.tar.xz | tar xJf -

make -j$NCPU -sC lz4-1.9.4 install PREFIX=$PREFIX CFLAGS="$CFLAGS"
make -j$NCPU -sC bzip2-1.0.8 install PREFIX=$PREFIX CFLAGS="$CFLAGS"
Expand All @@ -30,11 +30,11 @@ make -sj$NCPU install
cd ../zlib-1.2.13
./configure --static --prefix=$PREFIX
make -sj$NCPU install
cd ../xz-5.2.5
cd ../xz-5.4.0
./configure --cache-file=$CONFIGCACHE --with-pic --disable-shared --prefix=$PREFIX
make -sj$NCPU install
cd ../libxml2-v2.9.14
./autogen.sh --enable-silent-rules --disable-shared --enable-static --prefix=$PREFIX --without-python --with-zlib=$PREFIX/../zlib-1.2.13 --with-lzma=$PREFIX/../xz-5.2.5
./autogen.sh --enable-silent-rules --disable-shared --enable-static --prefix=$PREFIX --without-python --with-zlib=$PREFIX/../zlib-1.2.13 --with-lzma=$PREFIX/../xz-5.4.0
make -sj$NCPU install

make -j$NCPU -sC ../zstd-1.5.2 install
Expand Down

0 comments on commit 6704d94

Please sign in to comment.