Task Todo List Remove usage of makepkg subroutines from PKGBUILDs

2020-01-17 - David Runge

The use of makepkg subroutines has been discussed in an old ticket [1].
In 2017 a warning about this was added to namcap and recently the wiki has been been updated to reflect this [2].
A list of packages (with false positives) can be found here [3].

Time for a cleanup!

As a sidenote: If you find, that you are shadowing a test run in check() (e.g. `test || warning "Test is broken"`) please consider *why* you are doing this and whether only a subset of the tests can be run instead (e.g. because parts of the tests are integration tests anyways, that can not be run in makechrootpkg).

EDIT:

After the creation of this TODO, all the functions in this list was made available through libmakepkg and can be considered fine to use inside PKGBUILDs.

[1] https://bugs.archlinux.org/task/43502
[2] https://wiki.archlinux.org/index.php/Arch_package_guidelines#Package_etiquette
[3] https://pkgbuild.vdwaa.nl/?q=(msg%20%7Cmsg2%20%7Cwarning%20%7Cerror%20%7Cplain%20)&i=nope&files=.*%2Ftrunk%2FPKGBUILD&repos=

Link to lists of pkgbase values:

Filter Todo List Packages

Select filter criteria
64 packages displayed out of 64 total packages.
Arch Repository Name Current Version Staging Version Maintainers Status Last Touched By
x86_64 Core bash 5.2.026-2 tpowa, felixonmars, anthraxx, grazzolini Complete anthraxx
x86_64 Extra bind 9.18.24-1 seblu, blakkheim Complete heftig
x86_64 Extra bird 2.14-1 seblu Complete Foxboron
x86_64 Core btrfs-progs 6.7.1-1 tpowa, seblu Complete tpowa
x86_64 Core coreutils 9.4-3 tpowa, seblu Complete Foxboron
x86_64 Core diffutils 3.10-1 seblu Complete Foxboron
any Extra dkms 3.0.12-1 seblu Complete Foxboron
x86_64 Core file 5.45-1 seblu Complete Foxboron
x86_64 Extra firefox 123.0-1 heftig Complete heftig
any Extra geoip-database 20240127-1 foutrelis Complete foutrelis
x86_64 Core glibc 2.39-1 grazzolini, freswa Complete foutrelis
x86_64 Core grep 3.11-1 seblu Complete Foxboron
x86_64 Core gzip 1.13-2 seblu Complete Foxboron
x86_64 Extra ipset 7.20-1 seblu Complete anthraxx
x86_64 Extra jasper 4.2.1-1 anthraxx Complete anthraxx
x86_64 Extra jsoncpp 1.9.5-2 anthraxx Complete anthraxx
x86_64 Multilib lib32-gettext 0.22.4-1 felixonmars Complete Foxboron
x86_64 Multilib lib32-libappindicator-gtk2 12.10.0.r298-1 anthraxx Complete Foxboron
x86_64 Multilib lib32-libappindicator-gtk3 12.10.0.r298-1 anthraxx Complete Foxboron
x86_64 Multilib lib32-libdbusmenu-glib 16.04.0-5 anthraxx Complete Foxboron
x86_64 Multilib lib32-libdbusmenu-gtk2 16.04.0-5 anthraxx Complete Foxboron
x86_64 Multilib lib32-libdbusmenu-gtk3 16.04.0-5 anthraxx Complete Foxboron
x86_64 Multilib lib32-libindicator-gtk2 12.10.1-9 anthraxx Complete Foxboron
x86_64 Multilib lib32-libindicator-gtk3 12.10.1-9 anthraxx Complete Foxboron
x86_64 Multilib lib32-pcre 8.45-3 felixonmars Complete Foxboron
x86_64 Multilib lib32-readline 8.2.007-1 felixonmars, grazzolini Complete Foxboron
x86_64 Core libnftnl 1.2.6-1 seblu Complete Foxboron
x86_64 Core linux 6.7.5.arch1-1 tpowa, heftig, anthraxx, dvzrv Complete heftig
x86_64 Extra linux-hardened 6.7.5.hardened1-1 anthraxx Complete anthraxx
x86_64 Core linux-lts 6.6.17-1 andyrtr Complete heftig
x86_64 Extra linux-zen 6.7.5.zen1-1 heftig, dvzrv Complete heftig
x86_64 Extra lua-lpeg 1.1.0-1 eworm, alerque Complete eworm
x86_64 Core lz4 1:1.9.4-2 seblu Complete Foxboron
x86_64 Extra nftables 1:1.0.9-1 seblu Complete Foxboron
x86_64 Extra numactl 2.0.18-1 dvzrv Complete dvzrv
any Extra ovmf Complete anatolik
x86_64 Core patch 2.7.6-10 seblu Complete Foxboron
x86_64 Core pcre 8.45-4 seblu Complete Foxboron
any Extra perl-io-socket-ssl 2.084-1 felixonmars Complete Foxboron
any Extra perl-xml-twig 3.52-11 felixonmars Complete Foxboron
x86_64 Extra postgresql 16.1-5 anthraxx Complete anthraxx
any Extra python-beaker 1.12.0-3 felixonmars Complete Foxboron
any Extra python-isort alerque Complete alerque
any Extra python-pip 24.0-1 dvzrv Complete Foxboron
x86_64 Extra python-pycurl 7.45.2-3 felixonmars Complete Foxboron
any Extra python-pyelftools 0.30-1 anthraxx Complete anthraxx
any Extra python-pyopenssl 24.0.0-1 Complete Foxboron
x86_64 Extra quagga 1.2.4-8 seblu Complete Foxboron
x86_64 Core readline 8.2.010-1 tpowa, felixonmars, anthraxx, grazzolini Complete Foxboron
x86_64 Extra refind-efi Complete dvzrv
x86_64 Extra rust 1:1.76.0-1 heftig, demize Complete heftig
any Extra scons 4.6.0-1 dvzrv Complete dvzrv
x86_64 Core sed 4.9-3 seblu Complete Foxboron
x86_64 Extra spamassassin 4.0.0-2 bluewind Complete bluewind
x86_64 Extra swig 4.1.1-2 felixonmars Complete Foxboron
x86_64 Core tar 1.35-2 seblu Complete Foxboron
x86_64 Extra ulogd 2.0.8-1 seblu Complete Foxboron
x86_64 Extra valgrind 3.22.0-3 anthraxx, gromit Complete anthraxx
x86_64 Extra vim 9.1.0080-1 anthraxx, Foxboron, blakkheim Complete anthraxx
x86_64 Extra vlc 3.0.20-7 anthraxx, dvzrv Complete anthraxx
x86_64 Multilib wine 9.2-1 felixonmars Complete Foxboron
x86_64 Multilib wine-staging 8.21-1 felixonmars Complete Foxboron
any Core wireless-regdb 2024.01.23-1 tpowa Complete Foxboron
x86_64 Core wpa_supplicant 2:2.10-8 foutrelis, Foxboron Complete Foxboron