From 4c153d4d98b133cf0c8af1d813a52262c5e3364c Mon Sep 17 00:00:00 2001 From: dataCobra Date: Sat, 12 Nov 2022 16:15:51 +0100 Subject: [PATCH] profanity: update to 0.13.1. --- srcpkgs/profanity/patches/python-3.11.patch | 21 --------------------- srcpkgs/profanity/template | 6 +++--- 2 files changed, 3 insertions(+), 24 deletions(-) delete mode 100644 srcpkgs/profanity/patches/python-3.11.patch diff --git a/srcpkgs/profanity/patches/python-3.11.patch b/srcpkgs/profanity/patches/python-3.11.patch deleted file mode 100644 index 56e9762ad5dc..000000000000 --- a/srcpkgs/profanity/patches/python-3.11.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/src/plugins/python_api.c b/src/plugins/python_api.c -index 0b91cf70..091b3b4a 100644 ---- a/src/plugins/python_api.c -+++ b/src/plugins/python_api.c -@@ -1619,8 +1619,16 @@ static char* - _python_plugin_name(void) - { - PyThreadState* ts = PyThreadState_Get(); -+#if PY_VERSION_HEX >= 0x030B0000 -+ PyFrameObject* frame = PyThreadState_GetFrame(ts); -+ PyCodeObject* code = PyFrame_GetCode(frame); -+ char* filename = python_str_or_unicode_to_string(code->co_filename); -+ Py_DECREF(code); -+ Py_DECREF(frame); -+#else - PyFrameObject* frame = ts->frame; - char* filename = python_str_or_unicode_to_string(frame->f_code->co_filename); -+#endif - gchar** split = g_strsplit(filename, "/", 0); - free(filename); - char* plugin_name = strdup(split[g_strv_length(split) - 1]); diff --git a/srcpkgs/profanity/template b/srcpkgs/profanity/template index 96b1db6b3f1b..da07a0fe4672 100644 --- a/srcpkgs/profanity/template +++ b/srcpkgs/profanity/template @@ -1,7 +1,7 @@ # Template file for 'profanity' pkgname=profanity -version=0.12.1 -revision=2 +version=0.13.1 +revision=1 build_style=gnu-configure configure_args="$(vopt_enable notify notifications) $(vopt_enable otr) $(vopt_enable pgp) $(vopt_enable python python-plugins) $(vopt_enable plugins) @@ -20,7 +20,7 @@ license="GPL-3.0-or-later" homepage="https://profanity-im.github.io/" changelog="https://raw.githubusercontent.com/profanity-im/profanity/master/CHANGELOG" distfiles="https://github.com/boothj5/profanity/releases/download/${version}/profanity-${version}.tar.gz" -checksum=e344481e7bf3b16baf58a169d321b809c4700becffb70db6f1c39adc3fad306e +checksum=2b5075272e7ec9d9c991542e592b1d474fff88c61c66e7e23096ad306ed2c84a case "$XBPS_TARGET_MACHINE" in arm*)