From d6dec14d551824ec93347abf5c9d67c4777718ff Mon Sep 17 00:00:00 2001 From: kj_sh604 Date: Tue, 5 May 2026 21:35:45 -0400 Subject: refactor: remove redundant PKGBUILDs --- python2-libxml2/.SRCINFO | 24 --------- python2-libxml2/.gitignore | 5 -- python2-libxml2/PKGBUILD | 117 ------------------------------------------- python2-libxml2/no-fuzz.diff | 24 --------- 4 files changed, 170 deletions(-) delete mode 100644 python2-libxml2/.SRCINFO delete mode 100644 python2-libxml2/.gitignore delete mode 100644 python2-libxml2/PKGBUILD delete mode 100644 python2-libxml2/no-fuzz.diff (limited to 'python2-libxml2') diff --git a/python2-libxml2/.SRCINFO b/python2-libxml2/.SRCINFO deleted file mode 100644 index 9f9d628..0000000 --- a/python2-libxml2/.SRCINFO +++ /dev/null @@ -1,24 +0,0 @@ -pkgbase = python2-libxml2 - pkgdesc = Python 2 bindings for the XML parsing library v2 - pkgver = 2.9.14 - pkgrel = 1 - url = https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home - arch = x86_64 - arch = aarch64 - arch = i686 - arch = armv7h - license = MIT - makedepends = git - depends = glibc - depends = libxml2-legacy - depends = python2 - provides = python2-libxml2 - conflicts = python2-libxml2 - source = python2-libxml2::git+https://gitlab.gnome.org/GNOME/libxml2.git#commit=7846b0a677f8d3ce72486125fa281e92ac9970e8 - source = no-fuzz.diff - source = https://www.w3.org/XML/Test/xmlts20130923.tar.gz - sha256sums = 1a3880e1aeb825134f2dd61c5393a5a4529a8ba861dd1ba8e43bbb42f0f9102f - sha256sums = 3fc010d8c42b93e6d6f1fca6b598a561e9d2c8780ff3ca0c76a31efabaea404f - sha256sums = 9b61db9f5dbffa545f4b8d78422167083a8568c59bd1129f94138f936cf6fc1f - -pkgname = python2-libxml2 diff --git a/python2-libxml2/.gitignore b/python2-libxml2/.gitignore deleted file mode 100644 index 48f9191..0000000 --- a/python2-libxml2/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -pkg/ -src/ -*.tar.* -*.pkg.* -python2*/ diff --git a/python2-libxml2/PKGBUILD b/python2-libxml2/PKGBUILD deleted file mode 100644 index b4aa32a..0000000 --- a/python2-libxml2/PKGBUILD +++ /dev/null @@ -1,117 +0,0 @@ -_modulename="libxml2" -_pyruntime=python2 -pkgname="${_pyruntime}-${_modulename}" -pkgver=2.9.14 -pkgrel=1 -pkgdesc='Python 2 bindings for the XML parsing library v2' -_url="https://gitlab.gnome.org/GNOME/${_modulename}" -url="${_url}/-/wikis/home" -arch=(x86_64 aarch64 i686 armv7h) -license=(MIT) -depends=( - glibc - libxml2-legacy - "${_pyruntime}" -) -makedepends=( - git -) -provides=( - "${pkgname}" -) -conflicts=( - "${pkgname}" -) -_commit=7846b0a677f8d3ce72486125fa281e92ac9970e8 # tags/v2.9.14^0 -_w3_tests="https://www.w3.org/XML/Test/xmlts20130923.tar.gz" -source=( - "${pkgname}::git+${_url}.git#commit=$_commit" - no-fuzz.diff # Do not run fuzzing tests - "${_w3_tests}" -) -sha256sums=('1a3880e1aeb825134f2dd61c5393a5a4529a8ba861dd1ba8e43bbb42f0f9102f' - '3fc010d8c42b93e6d6f1fca6b598a561e9d2c8780ff3ca0c76a31efabaea404f' - '9b61db9f5dbffa545f4b8d78422167083a8568c59bd1129f94138f936cf6fc1f') - -pkgver() { - cd "${pkgname}" - git describe --tags \ - | sed 's/-rc/rc/;s/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' -} - -prepare() { - local _msg="Use xmlconf from conformance test suite" - mkdir -p build - ln -s xmlconf build/xmlconf || echo "${_msg}" - - cd "${pkgname}" - - # Take patches from https://src.fedoraproject.org/rpms/libxml2/tree/master - local src - for src in "${source[@]}"; do - src="${src%%::*}" - src="${src##*/}" - [[ "${src}" = *.diff ]] || continue - echo "Applying patch ${src}..." - git apply -3 "../${src}" - done - - autoreconf -fiv -} - -build() ( - local _configure="../${pkgname}/configure" - local _configure_opts=( - --prefix=/usr - --with-threads - --with-history - --with-python="/usr/bin/${_pyruntime}" - --with-icu - ) - local _cflags=( - "-I/usr/include/${_modulename}-2.9" - ) - local _ldflags=( - "-L/usr/lib/${_modulename}-2.9" - ) - - cd build - - CFLAGS="${_cflags[*]}" \ - LDFLAGS="${_ldflags[*]}" \ - "../${pkgname}/configure" "${_configure_opts[@]}" - - sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool - - CFLAGS="${_cflags[*]}" \ - LDFLAGS="${_ldflags[*]}" \ - make - - find doc -type f -exec chmod 0644 {} + -) - -package() { - make DESTDIR="${pkgdir}" -C build install - "${_pyruntime}" -m compileall \ - -d /usr/lib "${pkgdir}/usr/lib" - "${_pyruntime}" -O \ - -m compileall \ - -d /usr/lib "${pkgdir}/usr/lib" - - install -Dm 644 build/COPYING \ - -t "${pkgdir}/usr/share/licenses/${pkgname}" - - rm -rf "${pkgdir}/usr/bin/" - rm -rf "${pkgdir}/usr/bin/" - rm -rf "${pkgdir}/usr/include/${_modulename}/libxml" - rm -rf "${pkgdir}/usr/lib/cmake" - rm -rf "${pkgdir}/usr/lib/${_modulename}"* - rm -rf "${pkgdir}/usr/lib/pkgconfig" - rm -rf "${pkgdir}/usr/lib/xml2Conf.sh" - rm -rf "${pkgdir}/usr/share/aclocal" - rm -rf "${pkgdir}/usr/share/doc/${_modulename}" - rm -rf "${pkgdir}/usr/share/doc/${_modulename}-${_pyruntime}-${pkgver}" - rm -rf "${pkgdir}/usr/share/gtk-doc/html/${_modulename}" - rm -rf "${pkgdir}/usr/share/man/man1" - rm -rf "${pkgdir}/usr/share/man/man3" -} diff --git a/python2-libxml2/no-fuzz.diff b/python2-libxml2/no-fuzz.diff deleted file mode 100644 index 67ab6cc..0000000 --- a/python2-libxml2/no-fuzz.diff +++ /dev/null @@ -1,24 +0,0 @@ -diff --git i/Makefile.am w/Makefile.am -index 7917b595..f0f4b695 100644 ---- i/Makefile.am -+++ w/Makefile.am -@@ -2,9 +2,9 @@ - - ACLOCAL_AMFLAGS = -I m4 - --SUBDIRS = include . doc example fuzz xstc $(PYTHON_SUBDIR) -+SUBDIRS = include . doc example xstc $(PYTHON_SUBDIR) - --DIST_SUBDIRS = include . doc example fuzz python xstc -+DIST_SUBDIRS = include . doc example python xstc - - AM_CPPFLAGS = -I$(top_builddir)/include -I$(srcdir)/include - -@@ -210,7 +210,6 @@ runtests: runtest$(EXEEXT) testrecurse$(EXEEXT) testapi$(EXEEXT) \ - $(CHECKER) ./runxmlconf$(EXEEXT) - @(if [ "$(PYTHON_SUBDIR)" != "" ] ; then cd python ; \ - $(MAKE) tests ; fi) -- @cd fuzz; $(MAKE) tests - - check: all runtests - -- cgit v1.2.3