From 1f1177e0696af3d6f953361771eca3ec644dfb42 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 23 Sep 2023 21:04:07 -0400 Subject: [PATCH] coccigrep: rebuild for Python 3.12 --- srcpkgs/coccigrep/patches/python3.12.patch | 11 +++++++++++ srcpkgs/coccigrep/template | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/coccigrep/patches/python3.12.patch diff --git a/srcpkgs/coccigrep/patches/python3.12.patch b/srcpkgs/coccigrep/patches/python3.12.patch new file mode 100644 index 00000000000..75f662f5a94 --- /dev/null +++ b/srcpkgs/coccigrep/patches/python3.12.patch @@ -0,0 +1,11 @@ +--- ./src/coccigrep.py.orig 2023-09-29 14:43:43.818620944 -0400 ++++ ./src/coccigrep.py 2023-09-29 14:44:02.016730018 -0400 +@@ -15,7 +15,7 @@ + # 02110-1301, USA. + + try: +- from configparser import SafeConfigParser ++ from configparser import ConfigParser as SafeConfigParser + except Exception: + from ConfigParser import SafeConfigParser + from os import unlink, path, listdir, getcwd diff --git a/srcpkgs/coccigrep/template b/srcpkgs/coccigrep/template index a0b1b75045d..b651a489c68 100644 --- a/srcpkgs/coccigrep/template +++ b/srcpkgs/coccigrep/template @@ -1,7 +1,7 @@ # Template file for 'coccigrep' pkgname=coccigrep version=1.20 -revision=4 +revision=5 build_style=python3-module hostmakedepends="python3-setuptools" depends="coccinelle python3-Pygments"