From b0e77f26462117293da9b2f2743f989882562c4f Mon Sep 17 00:00:00 2001 From: Juergen Daubert Date: Mon, 26 Feb 2024 11:10:14 +0100 Subject: [PATCH] libxml2: fixed build if python and python3 are installed --- libxml2/.signature | 4 ++-- libxml2/Pkgfile | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/libxml2/.signature b/libxml2/.signature index d37345058..cf3c2ce4c 100644 --- a/libxml2/.signature +++ b/libxml2/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/opt.pub -RWSE3ohX2g5d/T/s/1D/Zs3x/eY4A26aor+hYID2NBFupzEWIyoM9BCvjU9oE/weDmFnCr3bHOUL6uSrtdUBaDkimGEjRLZOyQI= -SHA256 (Pkgfile) = d1404ce02908ed3e5596cf9ee81011d46e11e7c411b1d225eb3cc099bd0bb3c8 +RWSE3ohX2g5d/ShJBGesQaqXj/okbyCCCS5+RJSVbRYwbCveUOkkHH5yKNbksmurps5tAyiqpAhFSBgQzAtlOkl3h9aTA/8RPwY= +SHA256 (Pkgfile) = f6c2c12767a575663f94a61360d646e23b95ad1c0470dbbf10b4be359f6ca1c3 SHA256 (.footprint) = 10c73f16d3428d4a71c5165d3d8a350fa37f371824d6e7cb429c4fa53510e2f2 SHA256 (libxml2-2.12.5.tar.xz) = a972796696afd38073e0f59c283c3a2f5a560b5268b4babc391b286166526b21 diff --git a/libxml2/Pkgfile b/libxml2/Pkgfile index 6d26149c9..56ea87d54 100644 --- a/libxml2/Pkgfile +++ b/libxml2/Pkgfile @@ -5,18 +5,28 @@ name=libxml2 version=2.12.5 -release=1 +release=2 source=(https://download.gnome.org/sources/libxml2/${version:0:4}/$name-$version.tar.xz) build() { cd $name-$version + export PYTHON=/usr/bin/python3 ./configure \ --prefix=/usr \ --sysconfdir=/etc - make make DESTDIR=$PKG install + if prt-get isinst python + then + export PYTHON=/usr/bin/python + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc + make + make DESTDIR=$PKG install + fi + rm -r $PKG/usr/share/{doc,gtk-doc} }