wok-current annotate libxml2/receipt @ rev 25697

Up apache (CVE-2023-38709, CVE-2024-24795, CVE-2024-27316), up libarchive, qemu, add amdgpu/touchpad support and clean modules.list, up website for repology
author Stanislas Leduc <shann@slitaz.org>
date Tue Apr 16 17:00:21 2024 +0000 (2 months ago)
parents 3ad63c8fc2f9
children
rev   line source
pankso@24 1 # SliTaz package receipt.
pankso@24 2
pankso@24 3 PACKAGE="libxml2"
shann@25634 4 VERSION="2.9.14"
pankso@211 5 CATEGORY="system-tools"
Hans-G?nter@21352 6 SHORT_DESC="XML C parser and toolkit."
pankso@24 7 MAINTAINER="pankso@slitaz.org"
pascal@15268 8 LICENSE="MIT"
Hans-G?nter@21352 9 WEB_SITE="http://xmlsoft.org/"
Hans-G?nter@21352 10
shann@25634 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
shann@25634 12 WGET_URL="$GNOME_MIRROR/libxml2/${VERSION%.*}/$TARBALL"
pankso@13368 13
pascal@2475 14 DEPENDS="zlib"
Hans-G?nter@21352 15 BUILD_DEPENDS="autoconf automake libtool python-dev zlib-dev"
Hans-G?nter@21352 16
Hans-G?nter@21352 17 HOST_ARCH="i486 arm"
pankso@12817 18
pankso@13368 19 # When cross compiling Python is installed in chroot and is used
pankso@13368 20 # by cross tools, cook dont need to install it in /usr/cross/arm
pankso@15944 21 # Building with LZMA support is buggy and build fails
pankso@13368 22 case "$ARCH" in
pankso@15944 23 arm)
pankso@15944 24 BUILD_DEPENDS=""
pankso@15944 25 ARCH_ARGS="--without-lzma" ;;
pankso@13368 26 esac
pankso@13368 27
pascal@24614 28 # What is the latest version available today?
pascal@24074 29 current_version()
pascal@24074 30 {
pascal@24614 31 wget -O - "https://gitlab.gnome.org/GNOME/libxml2/-/tags/?sort=updated_desc" 2>/dev/null | \
pascal@24614 32 sed '/item-title/!d;s|.*">v*||;s|<.*||;q'
pascal@24074 33 }
pascal@24074 34
pankso@24 35 # Rules to configure and make the package.
pankso@24 36 #
pankso@24 37 # Note: libxml2 can be build using option --with-minimum
pankso@4828 38 # and binaries are splited into libxml2-tools
pankso@24 39 compile_rules()
pankso@24 40 {
shann@25659 41 # CVE-2024-25062
shann@25659 42 patch -p1 < $stuff/CVE-2024-25062.patch
shann@25659 43
Hans-G?nter@23124 44 autoreconf -fi &&
Hans-G?nter@21352 45 ./configure \
Hans-G?nter@21352 46 --prefix=/usr \
Hans-G?nter@21352 47 --infodir=/usr/share/info \
Hans-G?nter@21352 48 --mandir=/usr/share/man \
Hans-G?nter@21352 49 --with-html-dir=/usr/share/doc \
Hans-G?nter@21352 50 --with-threads \
Hans-G?nter@21352 51 --with-history \
pankso@15944 52 $CONFIGURE_ARGS $ARCH_ARGS &&
Hans-G?nter@24852 53 make &&
Hans-G?nter@24852 54 make install DESTDIR=$DESTDIR
pankso@24 55 }
pankso@24 56
pankso@24 57 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@24 58 genpkg_rules()
pankso@24 59 {
pankso@24 60 mkdir -p $fs/usr/lib
Hans-G?nter@23124 61 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@24 62 }