Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package cups for openSUSE:Factory checked in 
at 2024-07-09 20:03:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cups (Old)
 and      /work/SRC/openSUSE:Factory/.cups.new.2080 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cups"

Tue Jul  9 20:03:25 2024 rev:175 rq:1186193 version:2.4.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/cups/cups.changes        2024-07-04 
16:22:55.902759842 +0200
+++ /work/SRC/openSUSE:Factory/.cups.new.2080/cups.changes      2024-07-09 
20:03:54.784514593 +0200
@@ -1,0 +2,9 @@
+Mon Jul  8 13:50:50 UTC 2024 - Johannes Meixner <jsm...@suse.com>
+
+- Replaced avoid_C99_mode_for_loop_initial_declarations.patch
+  which is now the upstream fix
+  
https://github.com/OpenPrinting/cups/commit/a2b8872ea95564e065e3a08e2aa12a15515bc993
+  see https://github.com/OpenPrinting/cups/issues/1000
+  and https://github.com/OpenPrinting/cups/pull/1004
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cups.spec ++++++
--- /var/tmp/diff_new_pack.aSi1qe/_old  2024-07-09 20:03:57.516614690 +0200
+++ /var/tmp/diff_new_pack.aSi1qe/_new  2024-07-09 20:03:57.516614690 +0200
@@ -68,6 +68,14 @@
 Source108:      cups-client.conf
 Source109:      baselibs.conf
 # Patch0...Patch9 is for patches from upstream:
+# Patch1 avoid_C99_mode_for_loop_initial_declarations.patch is
+# 
https://github.com/OpenPrinting/cups/commit/a2b8872ea95564e065e3a08e2aa12a15515bc993
+# to avoid "error: 'for' loop initial declarations are only allowed in C99 
mode"
+# that happens when building for SLE12 at "for (char *start = ..." since
+# 
https://github.com/OpenPrinting/cups/commit/a7eda84da73126e40400e05dd27d57f8c92d5b0d
+# see https://github.com/OpenPrinting/cups/issues/1000
+# and https://github.com/OpenPrinting/cups/pull/1004
+Patch1:         avoid_C99_mode_for_loop_initial_declarations.patch
 # Source10...Source99 is for sources from SUSE which are intended for upstream:
 # Patch10...Patch99 is for patches from SUSE which are intended for upstream:
 # Patch10 cups-2.1.0-choose-uri-template.patch adds 'smb://...' URIs to 
templates/choose-uri.tmpl:
@@ -77,12 +85,6 @@
 # because the files of the CUPS web content are no documentation, see CUPS STR 
#3578
 # and https://bugzilla.suse.com/show_bug.cgi?id=546023#c6 and subsequent 
comments:
 Patch11:        cups-2.1.0-default-webcontent-path.patch
-# Patch12 avoid_C99_mode_for_loop_initial_declarations.patch
-# avoids "error: 'for' loop initial declarations are only allowed in C99 mode"
-# that happens when building for SLE12 at "for (char *start = ..." since
-# 
https://github.com/OpenPrinting/cups/commit/a7eda84da73126e40400e05dd27d57f8c92d5b0d
-# see https://github.com/OpenPrinting/cups/issues/1000
-Patch12:        avoid_C99_mode_for_loop_initial_declarations.patch
 # Patch100...Patch999 is for private patches from SUSE which are not intended 
for upstream:
 # Patch100 cups-pam.diff adds conf/pam.suse regarding support for PAM for SUSE:
 Patch100:       cups-pam.diff
@@ -303,6 +305,14 @@
 %prep
 %setup -q
 # Patch0...Patch9 is for patches from upstream:
+# Patch1 avoid_C99_mode_for_loop_initial_declarations.patch is
+# 
https://github.com/OpenPrinting/cups/commit/a2b8872ea95564e065e3a08e2aa12a15515bc993
+# to avoid "error: 'for' loop initial declarations are only allowed in C99 
mode"
+# that happens when building for SLE12 at "for (char *start = ..." since
+# 
https://github.com/OpenPrinting/cups/commit/a7eda84da73126e40400e05dd27d57f8c92d5b0d
+# see https://github.com/OpenPrinting/cups/issues/1000
+# and https://github.com/OpenPrinting/cups/pull/1004
+%patch -P 1 -b avoid_C99_mode_for_loop_initial_declarations.orig
 # Patch10...Patch99 is for patches from SUSE which are intended for upstream:
 # Patch10 cups-2.1.0-choose-uri-template.patch adds 'smb://...' URIs to 
templates/choose-uri.tmpl:
 %patch -P 10 -b choose-uri-template.orig
@@ -336,12 +346,6 @@
 # Patch112 cups-2.4.2-additional_policies.patch adds the 'allowallforanybody' 
policy to cupsd.conf
 # see SUSE FATE 303515 and https://bugzilla.suse.com/show_bug.cgi?id=936309
 %patch -P 112 -b cups-2.4.2-additional_policies.orig
-# Patch12 avoid_C99_mode_for_loop_initial_declarations.patch
-# avoids "error: 'for' loop initial declarations are only allowed in C99 mode"
-# that happens when building for SLE12 at "for (char *start = ..." since
-# 
https://github.com/OpenPrinting/cups/commit/a7eda84da73126e40400e05dd27d57f8c92d5b0d
-# see https://github.com/OpenPrinting/cups/issues/1000
-%patch -P 12 -b avoid_C99_mode_for_loop_initial_declarations.orig
 
 %build
 # Remove ".SILENT" rule for verbose build output




++++++ avoid_C99_mode_for_loop_initial_declarations.patch ++++++
--- /var/tmp/diff_new_pack.aSi1qe/_old  2024-07-09 20:03:57.556616155 +0200
+++ /var/tmp/diff_new_pack.aSi1qe/_new  2024-07-09 20:03:57.560616302 +0200
@@ -1,29 +1,25 @@
 --- scheduler/client.c.orig    2024-06-18 13:11:05.000000000 +0200
-+++ scheduler/client.c 2024-07-02 14:51:25.359712447 +0200
-@@ -566,6 +566,7 @@ cupsdReadClient(cupsd_client_t *con)       /*
-   struct stat         filestats;      /* File information */
-   mime_type_t         *type;          /* MIME type of file */
-   static unsigned     request_id = 0; /* Request ID for temp files */
-+  char                        *start;         /* Avoid error: 'for' loop 
initial declarations are only allowed in C99 mode */
- 
- 
-   status = HTTP_STATUS_CONTINUE;
-@@ -1145,7 +1146,7 @@ cupsdReadClient(cupsd_client_t *con)     /*
++++ scheduler/client.c 2024-07-08 15:44:58.336923944 +0200
+@@ -1145,8 +1145,8 @@ cupsdReadClient(cupsd_client_t *con)     /*
                  {
                    unsigned int i = 0; // Array index
  
 -                  for (char *start = con->uri + 9; *start && *start != '?' && 
i < sizeof(name);)
-+                  for (*start = con->uri + 9; *start && *start != '?' && i < 
sizeof(name);)
-                     name[i++] = *start++;
+-                    name[i++] = *start++;
++                  for (ptr = con->uri + 9; *ptr && *ptr != '?' && i < 
sizeof(name);)
++                    name[i++] = *ptr++;
  
                    name[i] = '\0';
-@@ -1185,7 +1186,7 @@ cupsdReadClient(cupsd_client_t *con)     /*
+ 
+@@ -1185,8 +1185,8 @@ cupsdReadClient(cupsd_client_t *con)     /*
                  {
                    unsigned int i = 0; // Array index
  
 -                  for (char *start = con->uri + 10; *start && *start != '?' 
&& i < sizeof(name);)
-+                  for (*start = con->uri + 10; *start && *start != '?' && i < 
sizeof(name);)
-                     name[i++] = *start++;
+-                    name[i++] = *start++;
++                  for (ptr = con->uri + 10; *ptr && *ptr != '?' && i < 
sizeof(name);)
++                    name[i++] = *ptr++;
  
                    name[i] = '\0';
+ 
 

Reply via email to