From f08522e87799cdb13f022a124426a45b5eadec69 Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Thu, 5 Nov 2020 11:30:53 +0000 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/system-config-printer.git#a43581a02ba0a1a6166e5dd7f56bc766a64a18df --- .gitignore | 1 + 0001-isAlive-is-removed-use-is_alive.patch | 48 ------- ...onfigure-printer-Add-checks-for-NULL.patch | 71 --------- sources | 2 +- system-config-printer-1.5.7.tar.xz.sig | Bin 287 -> 0 bytes ...m-config-printer-getchildren-removed.patch | 135 ------------------ system-config-printer.spec | 23 +-- 7 files changed, 14 insertions(+), 266 deletions(-) delete mode 100644 0001-isAlive-is-removed-use-is_alive.patch delete mode 100644 0001-udev-configure-printer-Add-checks-for-NULL.patch delete mode 100644 system-config-printer-1.5.7.tar.xz.sig delete mode 100644 system-config-printer-getchildren-removed.patch diff --git a/.gitignore b/.gitignore index 339df20..2421bea 100644 --- a/.gitignore +++ b/.gitignore @@ -260,3 +260,4 @@ pycups-1.9.51.tar.bz2 /system-config-printer-1.5.9.tar.gz /system-config-printer-1.5.11.tar.gz /system-config-printer-1.5.12.tar.gz +/system-config-printer-1.5.13.tar.xz diff --git a/0001-isAlive-is-removed-use-is_alive.patch b/0001-isAlive-is-removed-use-is_alive.patch deleted file mode 100644 index e313b2f..0000000 --- a/0001-isAlive-is-removed-use-is_alive.patch +++ /dev/null @@ -1,48 +0,0 @@ -From cf7a74217558b19aff7c21a724878bcc15dc4e38 Mon Sep 17 00:00:00 2001 -From: Zdenek Dohnal -Date: Mon, 5 Oct 2020 09:26:40 +0200 -Subject: [PATCH] isAlive() is removed, use is_alive() - ---- - asyncipp.py | 2 +- - timedops.py | 4 ++-- - 2 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/asyncipp.py b/asyncipp.py -index 5bc160e0..61cd7213 100644 ---- a/asyncipp.py -+++ b/asyncipp.py -@@ -269,7 +269,7 @@ class IPPConnection: - for binding in self.bindings: - delattr (self, binding) - -- if self.thread.isAlive (): -+ if self.thread.is_alive (): - debugprint ("Stopping worker thread") - self.thread.stop () - GLib.timeout_add_seconds (1, self._reap_thread) -diff --git a/timedops.py b/timedops.py -index 8a8741c8..111d575f 100644 ---- a/timedops.py -+++ b/timedops.py -@@ -157,7 +157,7 @@ class OperationThread(threading.Thread): - self.exception = e - - def collect_result (self): -- if self.isAlive (): -+ if self.is_alive (): - # We've been canceled. - raise OperationCanceled() - -@@ -212,7 +212,7 @@ class TimedOperation(Timed): - return self.thread.collect_result () - - def _check_thread (self): -- if self.thread.isAlive (): -+ if self.thread.is_alive (): - # Thread still running. - return True - --- -2.26.2 - diff --git a/0001-udev-configure-printer-Add-checks-for-NULL.patch b/0001-udev-configure-printer-Add-checks-for-NULL.patch deleted file mode 100644 index a62e1ae..0000000 --- a/0001-udev-configure-printer-Add-checks-for-NULL.patch +++ /dev/null @@ -1,71 +0,0 @@ -diff --git a/NEWS b/NEWS -index f4b774e..0b53aa8 100644 ---- a/NEWS -+++ b/NEWS -@@ -1,5 +1,6 @@ - 1.5.13 changes - -------------- -+- add checks for NULL in udev-configure-printer (Fedora #1761097) - - 1.5.12 changes - -------------- -diff --git a/udev/udev-configure-printer.c b/udev/udev-configure-printer.c -index 83092fc..8f6ce3d 100644 ---- a/udev/udev-configure-printer.c -+++ b/udev/udev-configure-printer.c -@@ -1285,7 +1285,8 @@ normalize_device_uri(const char *str_orig) - { - int i, j; - int havespace = 0; -- char *str; -+ char *str = NULL; -+ char *cropped_str = NULL; - - if (str_orig == NULL) - return NULL; -@@ -1333,7 +1334,11 @@ normalize_device_uri(const char *str_orig) - (strstr(str, "packard ") == str) || - (strstr(str, "apollo ") == str) || - (strstr(str, "usb ") == str)) -- str = strchr(str, ' ') + 1; -+ { -+ cropped_str = strdup(strchr(str, ' ') + 1); -+ free(str); -+ str = cropped_str; -+ } - - return str; - } -@@ -1411,7 +1416,7 @@ for_each_matching_queue (struct device_uris *device_uris, - const char *printer_state_message = NULL; - int state = 0; - size_t i, l; -- char *this_device_uri_n, *device_uri_n; -+ char *this_device_uri_n = NULL, *device_uri_n = NULL; - const char *ps1, *ps2, *pi1, *pi2; - - while (attr && ippGetGroupTag (attr) != IPP_TAG_PRINTER) -@@ -1507,13 +1512,21 @@ for_each_matching_queue (struct device_uris *device_uris, - break; - } - } -+ if (device_uri_n != NULL) -+ { -+ free(device_uri_n); -+ device_uri_n = NULL; -+ } - } - - firstqueue = 0; - - skip: -- free(device_uri_n); -- free(this_device_uri_n); -+ if (this_device_uri_n != NULL) -+ { -+ free(this_device_uri_n); -+ this_device_uri_n = NULL; -+ } - if (!attr) - break; - } diff --git a/sources b/sources index dfa6da2..abe1acf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (system-config-printer-1.5.12.tar.gz) = da7cbf913d3c33fb89c8e1b9a6a12b9ec133831bd89b2f28c771c4ecde697df0be975a45e92f30b2cd4562aafcf87f5d36a01c94d63c7c7107b72b0aecce3756 +SHA512 (system-config-printer-1.5.13.tar.xz) = f4fbc1b20b35aa5b33bafdffc8a7490cc3c55e0b33bd9e925f1d3e01532c0a7bb87f80a04dd6da6fc492edd9fea74bacb0ce16ff64ceac622722fe1f9a77a6b7 diff --git a/system-config-printer-1.5.7.tar.xz.sig b/system-config-printer-1.5.7.tar.xz.sig deleted file mode 100644 index 6e8d9e280fe5bb2c0b75c1afb4abd71483505628..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 287 zcmV+)0pR|L0UQJX0SEvF1p-w-$GZRu2@to!4F{Bw>SJd@2mfrIrKm}`mv+sZ0iT_Ju9j0wb$srB;muVE^1!3#T%h;jJGmds6e7}0?S-> l{= 1.2 BuildRequires: desktop-file-utils >= 0.2.92 @@ -87,11 +89,7 @@ The udev rules and helper programs for automatically configuring USB printers. %prep -%setup -q -# all backported from upstream -%patch01 -p1 -b .udev-configure-segfault -%patch02 -p1 -b .getchildren-removed -%patch03 -p1 -b .isAlive-removed +%autosetup -S git %build %configure --with-udev-rules @@ -217,6 +215,9 @@ touch %buildroot%{_localstatedir}/run/udev-configure-printer/usb-uris exit 0 %changelog +* Thu Nov 05 2020 Zdenek Dohnal - 1.5.13-1 +- 1.15.13 + * Mon Oct 05 2020 Zdenek Dohnal - 1.5.12-9 - 1884866 - s-c-p: isAlive() is removed, use is_alive()