[arch-commits] Commit in cups-filters/trunk (PKGBUILD fix_segfault.diff)
Andreas Radke
andyrtr at archlinux.org
Sat Aug 25 17:58:53 UTC 2018
Date: Saturday, August 25, 2018 @ 17:58:52
Author: andyrtr
Revision: 333011
upgpkg: cups-filters 1.21.0-2
fix segfault - FS#59775
Added:
cups-filters/trunk/fix_segfault.diff
Modified:
cups-filters/trunk/PKGBUILD
-------------------+
PKGBUILD | 14 +++++++++++---
fix_segfault.diff | 28 ++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-25 17:44:19 UTC (rev 333010)
+++ PKGBUILD 2018-08-25 17:58:52 UTC (rev 333011)
@@ -3,7 +3,7 @@
pkgname=cups-filters
pkgver=1.21.0
-pkgrel=1
+pkgrel=2
pkgdesc="OpenPrinting CUPS Filters"
arch=('x86_64')
url="https://wiki.linuxfoundation.org/openprinting/cups-filters"
@@ -16,9 +16,17 @@
'foomatic-db-nonfree: drivers use Ghostscript to convert PostScript to a printable form directly'
'antiword: needed to convert MS Word documents (requires also docx2txt (AUR)')
backup=(etc/cups/cups-browsed.conf)
-source=(https://www.openprinting.org/download/cups-filters/$pkgname-$pkgver.tar.xz)
-sha256sums=('d1e975eaece2884ffa726f8d57dc249bd220e09cc5bd48ef7a0892987a07493b')
+source=(https://www.openprinting.org/download/cups-filters/$pkgname-$pkgver.tar.xz
+ fix_segfault.diff)
+sha256sums=('d1e975eaece2884ffa726f8d57dc249bd220e09cc5bd48ef7a0892987a07493b'
+ '7de12167759002c863006d6939e995534dbd9cbc6e9de56293c9440518addc59')
+prepare() {
+ cd $pkgname-$pkgver
+ # FS#59775
+ patch -Np1 -i ../fix_segfault.diff
+}
+
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr \
Added: fix_segfault.diff
===================================================================
--- fix_segfault.diff (rev 0)
+++ fix_segfault.diff 2018-08-25 17:58:52 UTC (rev 333011)
@@ -0,0 +1,28 @@
+diff --git a/filter/foomatic-rip/options.c b/filter/foomatic-rip/options.c
+index 14eddc75..0f46855a 100644
+--- a/filter/foomatic-rip/options.c
++++ b/filter/foomatic-rip/options.c
+@@ -1031,12 +1031,10 @@ int option_set_value(option_t *opt, int optionset, const char *value)
+ /* TODO only set the changed option, not all of them */
+ choice = option_find_choice(fromopt,
+ option_get_value(fromopt, optionset));
+-
+ composite_set_values(fromopt, optionset, choice->command);
+- }
+- else {
++ free(newvalue);
++ } else
+ val->value = newvalue;
+- }
+
+ if (option_is_composite(opt)) {
+ /* set dependent values */
+@@ -1044,7 +1042,6 @@ int option_set_value(option_t *opt, int optionset, const char *value)
+ if (choice && !isempty(choice->command))
+ composite_set_values(opt, optionset, choice->command);
+ }
+- free(newvalue);
+ return 1;
+ }
+
+
More information about the arch-commits
mailing list