On Tue Jan 9, 2024 at 17:30 +0000, Maxwell G wrote:
Hi everyone,
RPM has deprecated the `%patchN` syntax in favor of `%patch -PN` where `N` is the patch number. See the RPM documentation for more information [1]. In current RPM versions, this syntax only emits a deprecation warning, but support for this syntax has been removed completely on the rpm master branch [2]. Around 100 packages maintained by the go-sig still use this syntax.
Later this week/early next week, I will run this script [3] over the affected go-sig packages [4] to update them to the modern patch syntax. For example, the script will change:
%patch0 -p1 -> %patch -P0 -p1 %patch0005 -p2 -> %patch -P0005 -p2
If anyone has any objections or would like to exclude a package, please let me know.
---Maxwell
[1] https://rpm-software-management.github.io/rpm/manual/spec.html#patch-1 [2] https://github.com/rpm-software-management/rpm/commit/afd352481bacea521ce5ba... [3] https://git.sr.ht/~gotmax23/fedora-scripts/tree/main/item/new_patch_syntax.s... [4] https://git.sr.ht/~gotmax23/fedora-scripts/tree/main/item/go-sig/new_patch_s...
This has been completed. Have a good weekend!