[meta] delete unneeded patch files
A number of package directories contain patches that are no longer referenced or used. We should do some housekeeping.
This is an approximation but should be pretty close to what needs to be deleted:
$ cd /path/to/packages
$ find . -type f -name "*.patch" \
| sed -e 's@/@ @g' \
| while read _ repo package patch; do
(grep $patch $repo/$package/APKBUILD >/dev/null || echo $repo/$package/$patch);
done | sort
experimental/firefox-esr/5-e6b5aa19e999.patch
experimental/firefox-esr/fix-stack-overflow.patch
experimental/firefox-esr/python3.patch
experimental/firefox/fix-bug-1261392.patch
legacy/heimdal/CVE-2017-17439.patch
legacy/kalarmcal/build-with-kf5-kholidays.patch
legacy/libvpx/libm-pc.patch
legacy/openjdk7/icedtea-jdk-no-lib-nsl-uclibc.patch
legacy/telegram/rlottie.patch
system/autoconf/autoconf-2.69-fix-perl-regex.patch
system/binutils/memory.patch
system/bzip2/CVE-2016-3189.patch
system/coreutils/no-doc.patch
system/coreutils/printf-musl.patch
system/coreutils/seq-write-error.patch
system/coreutils/sort-debug-locale.patch
system/gcc/401-libsanitizer-linux.patch
system/gcc/402-libsanitizer-utmp.patch
system/git/0001-gc-use-s-type-character-for-fscanf.patch
system/gmp/gmp-4.1.4-noexecstack.patch
system/libffi/gnu-linux-define.patch
system/libffi/powerpc-fixes.patch
system/tzdata/0001-posixtz-fix-up-lseek.patch
system/vim/no-default-mouse.patch
user/blinken/test.patch
user/digikam/digikam6.patch
user/evince/CVE-2019-11459.patch
user/firefox-esr/fix-bug-1261392.patch
user/fts/00-static-and-shared-libs.patch
user/gcompat/no-utmp.patch
user/glib-networking/proxy-test.patch
user/gtk+2.0/automake.patch
user/gtk+3.0/releng-what-releng.patch
user/gucharmap/unicode-12.1.patch
user/irssi/fix-ridiculous-egregious-conformance-error.patch
user/kfilemetadata/test-mimetype.patch
user/khelpcenter/es-doc-fix.patch
user/ki18n/libintl.patch
user/kscreenlocker/optional-wayland.patch
user/libical/automake.patch
user/libice/CVE-2017-2626.patch
user/liborcus/sepples-is-a-sin.patch
user/libraw1394/fix-types.patch
user/libtasn1/CVE-2017-10790.patch
user/libvncserver/LibVNCServer-0.9.10-system_minilzo.patch
user/libxcb/0001-tests-Support-Check-0.13.0-API.patch
user/llvm14/scc-insertion.patch
user/mozjs/python3.patch
user/orage/libical-3.patch
user/php7/allow-build-recode-and-imap-together.patch
user/polkit/fix-parallel-make.patch
user/prosody/luasec-0.6-fix.patch
user/prosody/mallinfo.patch
user/prosody/prosodyctl.patch
user/qt5-qtdeclarative/broken-bgra-be.patch
user/qt5-qtwebkit/new-bison.patch
user/quassel/unterminated-mIRC-codes.patch
user/ruby-diff-lcs/gemspec.patch
user/thunderbird/fix-bug-1261392.patch
user/upower/daemon-fix-get_critical_action.patch
user/upower/lib-add-propererror-and-cancellable-handling-to-UpClient.patch
user/valgrind/uclibc.patch
With a few more sanity checks (e.g. source the APKBUILD
and parse source=
and sha512sums=
) instead of using grep
, this could be added to the scripts/
directory as part of a broader housekeeping/maintenance toolkit.