Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package discount2 for openSUSE:Factory checked in at 2024-08-25 12:10:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/discount2 (Old) and /work/SRC/openSUSE:Factory/.discount2.new.2698 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "discount2" Sun Aug 25 12:10:35 2024 rev:2 rq:1195826 version:2.2.7d Changes: -------- --- /work/SRC/openSUSE:Factory/discount2/discount2.changes 2024-03-20 21:20:15.299072609 +0100 +++ /work/SRC/openSUSE:Factory/.discount2.new.2698/discount2.changes 2024-08-25 12:10:53.381259429 +0200 @@ -1,0 +2,6 @@ +Thu May 2 13:08:49 UTC 2024 - Atri Bhattacharya <badshah...@gmail.com> + +- Add discount2-pointer-type-mismatch.patch to fix pointer type + mismatch (gh#Orc/discount#283). + +------------------------------------------------------------------- New: ---- discount2-pointer-type-mismatch.patch BETA DEBUG BEGIN: New: - Add discount2-pointer-type-mismatch.patch to fix pointer type mismatch (gh#Orc/discount#283). BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ discount2.spec ++++++ --- /var/tmp/diff_new_pack.7EzF0P/_old 2024-08-25 12:10:53.841278519 +0200 +++ /var/tmp/diff_new_pack.7EzF0P/_new 2024-08-25 12:10:53.845278684 +0200 @@ -1,5 +1,5 @@ # -# spec file for package markdown2 +# spec file for package discount2 # # Copyright (c) 2024 SUSE LLC # @@ -26,6 +26,8 @@ Source: https://github.com/Orc/discount/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz # PATCH-FEATURE-OPENSUSE discount2-disable_ldconfig.patch badshah...@gmail.com -- Disable ldconfig from make install, post(un) scriptlets are the right place do this Patch0: discount2-disable_ldconfig.patch +# PATCH-FIX-UPSTREAM discount2-pointer-type-mismatch.patch badshah...@gmail.com -- Fix function definitions involving pointer parameters to make them GCC 14 compatible +Patch1: discount2-pointer-type-mismatch.patch BuildRequires: gcc %description ++++++ discount2-pointer-type-mismatch.patch ++++++ --- main.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) Index: discount-2.2.7d/main.c =================================================================== --- discount-2.2.7d.orig/main.c +++ discount-2.2.7d/main.c @@ -100,14 +100,15 @@ free_it(char *object, void *ctx) } char * -external_codefmt(char *src, int len, char *lang) +external_codefmt(const char *src, const int len, void *lang) { int extra = 0; int i, x; char *res; + char *ec_lang = (char *)lang; - if ( lang == 0 ) - lang = "generic_code"; + if ( ec_lang == 0 ) + ec_lang = "generic_code"; for ( i=0; i < len; i++) { if ( src[i] == '&' ) @@ -117,11 +118,11 @@ external_codefmt(char *src, int len, cha } /* 80 characters for the format wrappers */ - if ( (res = malloc(len+extra+80+strlen(lang))) ==0 ) + if ( (res = malloc(len+extra+80+strlen(ec_lang))) ==0 ) /* out of memory? drat! */ return 0; - sprintf(res, "<pre><code class=\"%s\">\n", lang); + sprintf(res, "<pre><code class=\"%s\">\n", ec_lang); x = strlen(res); for ( i=0; i < len; i++ ) { switch (src[i]) {