From e3398cb584588554c4f3627e1c9056f3b26844b8a831af1adcd85cedd46cfa58 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 26 Sep 2009 08:35:52 +0000 Subject: [PATCH 1/4] Accepting request 20556 from home:elvigia:branches:graphics Copy from home:elvigia:branches:graphics/sane-backends via accept of submit request 20556 revision 2. Request was accepted with message: reviewed, accepted OBS-URL: https://build.opensuse.org/request/show/20556 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=8 --- sane-backends.changes | 6 ++++++ sane-backends.spec | 13 ++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/sane-backends.changes b/sane-backends.changes index aa3c210..e12921f 100644 --- a/sane-backends.changes +++ b/sane-backends.changes @@ -7,6 +7,12 @@ Fri Sep 18 12:53:45 CEST 2009 - jsmeix@suse.de which matches to the sacnner models which are supported by our currently provided HPLIP version. +------------------------------------------------------------------- +Thu Sep 17 01:24:39 CEST 2009 - crrodriguez@suse.de + +- use find_lang macro +- run ldconfig correctly + ------------------------------------------------------------------- Thu Aug 13 14:25:00 CEST 2009 - jsmeix@suse.de diff --git a/sane-backends.spec b/sane-backends.spec index 8e7dd88..6289edf 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -596,16 +596,12 @@ install -m644 %{SOURCE101} %{buildroot}%{_sysconfdir}/xinetd.d/ # OpenSLP registration stuff: install -d -m755 %{buildroot}%{_sysconfdir}/slp.reg.d install -m644 %{SOURCE102} %{buildroot}%{_sysconfdir}/slp.reg.d +%find_lang sane-backends +%post -p /sbin/ldconfig -%post -/sbin/ldconfig -# exit successfully in any case: -exit 0 +%postun -p /sbin/ldconfig -%postun -/sbin/ldconfig - -%files +%files -f sane-backends.lang %defattr(-,root,root) %dir %{_sysconfdir}/sane.d %config(noreplace) %{_sysconfdir}/sane.d/*.conf @@ -625,7 +621,6 @@ exit 0 %{_bindir}/sane-find-scanner %{_bindir}/gamma4scanimage %{_bindir}/umax_pp -%{_datadir}/locale/*/LC_MESSAGES/sane-backends.mo %{_datadir}/sane/ %{_libdir}/libsane* %{_libdir}/sane/ From feb1919389489d4d3da03eea574cd1d6445ef7111487523a6c286d9a177b52c2 Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Wed, 30 Sep 2009 14:16:55 +0000 Subject: [PATCH 2/4] Accepting request 21421 from home:jsmeix:branches:graphics Copy from home:jsmeix:branches:graphics/sane-backends via accept of submit request 21421 revision 2. OBS-URL: https://build.opensuse.org/request/show/21421 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=9 --- fix-hp3900_sane-string-option-sizes.diff | 36 ++++++++++++++++++++++++ fix-lexmark_low-memory-leak.patch | 11 ++++++++ sane-backends.changes | 10 +++++++ sane-backends.spec | 15 ++++++++-- 4 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 fix-hp3900_sane-string-option-sizes.diff create mode 100644 fix-lexmark_low-memory-leak.patch diff --git a/fix-hp3900_sane-string-option-sizes.diff b/fix-hp3900_sane-string-option-sizes.diff new file mode 100644 index 0000000..fea7fc4 --- /dev/null +++ b/fix-hp3900_sane-string-option-sizes.diff @@ -0,0 +1,36 @@ +--- a/backend/hp3900_sane.c ++++ b/backend/hp3900_sane.c +@@ -1189,6 +1189,7 @@ options_init (TScanner * scanner) + scanner->rng_vertical.quant = 1; + + /* allocate option lists */ ++ bknd_info (scanner); + bknd_colormodes (scanner, RTS_Debug->dev_model); + bknd_depths (scanner, RTS_Debug->dev_model); + bknd_models (scanner); +@@ -1562,6 +1563,7 @@ options_init (TScanner * scanner) + pDesc->constraint_type = SANE_CONSTRAINT_NONE; + pDesc->cap = SANE_CAP_ADVANCED | SANE_CAP_SOFT_DETECT; + pVal->s = strdup (SANE_I18N ("Unknown")); ++ pDesc->size = strlen(pVal->s) + 1; + break; + + case opt_chipid: +@@ -1981,7 +1983,8 @@ option_get (TScanner * scanner, SANE_Int optid, void *result) + case opt_scantype: + case opt_model: + case opt_chipname: +- strcpy (result, scanner->aValues[optid].s); ++ strncpy (result, scanner->aValues[optid].s, scanner->aOptions[optid].size); ++ ((char*)result)[scanner->aOptions[optid].size-1] = '\0'; + break; + + /* scanner buttons */ +@@ -2113,6 +2116,7 @@ option_set (TScanner * scanner, SANE_Int optid, void *value, SANE_Int * pInfo) + Load_Config (device); + + /* update options according to selected device */ ++ bknd_info (scanner); + bknd_colormodes (scanner, model); + bknd_depths (scanner, model); + bknd_resolutions (scanner, model); diff --git a/fix-lexmark_low-memory-leak.patch b/fix-lexmark_low-memory-leak.patch new file mode 100644 index 0000000..494bb4c --- /dev/null +++ b/fix-lexmark_low-memory-leak.patch @@ -0,0 +1,11 @@ +--- backend/lexmark_low.c.orig 2009-02-26 17:11:17.000000000 +0100 ++++ backend/lexmark_low.c 2009-09-30 12:38:02.000000000 +0200 +@@ -2560,6 +2560,8 @@ sanei_lexmark_low_find_start_line (Lexma + } + } /* end for buffer */ + ++ free (buffer); ++ + DBG (2, "sanei_lexmark_low_find_start_line: end.\n"); + return whiteLineCount; + } diff --git a/sane-backends.changes b/sane-backends.changes index e12921f..0cad38e 100644 --- a/sane-backends.changes +++ b/sane-backends.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Sep 30 12:59:12 CEST 2009 - jsmeix@suse.de + +- fix-lexmark_low-memory-leak.patch adds a missing call to free + in sanei_lexmark_low_find_start_line in backend/lexmark_low.c + (see Novell/Suse Bugzilla bnc#542341). +- fix-hp3900_sane-string-option-sizes.diff fixes option sizes + because otherwise the frontend (e.g. xsane) may crash + (see Novell/Suse Bugzilla bnc#535752). + ------------------------------------------------------------------- Fri Sep 18 12:53:45 CEST 2009 - jsmeix@suse.de diff --git a/sane-backends.spec b/sane-backends.spec index 6289edf..7c2dbd0 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -56,14 +56,13 @@ Source110: models.dat # Source200 and Source201 generate the 56-sane-backends-autoconfig.rules file # for automated scanner driver activation via udev ("scanner autoconfiguration"). # Source200 is a copy of /usr/lib/YaST2/bin/create_scanner_database -# to avoid yast2-scanner in BuildRequires which would drag almost the whole YaST: +# to avoid yast2-scanner in BuildRequires which would drag in almost the whole YaST: Source200: create_scanner_database # Source201 actually generates the 56-sane-backends-autoconfig.rules file # by reading scanner.database which was created before by create_scanner_database # to extract the needed info from which create_sane-backends-autoconfig.rules # generates the 56-sane-backends-autoconfig.rules file: Source201: create_sane-backends-autoconfig.rules -# based upon the data which is # Patch1 does locale rename: no -> nb: # Patch1 is obsolete since sane-backends-1.0.19 because it uses 'nb'. # Patch2 fixes too small arrays in backend/niash.c: @@ -92,6 +91,14 @@ Patch10: fix-mustek_pp_ccd300.c.patch # Patch11 adds missing call to closedir to sane-desc.c # see https://bugzilla.novell.com/show_bug.cgi?id=530313 Patch11: sane-desc_closedir.patch +# Patch12 adds a missing call to free in backend/lexmark_low.c +# in the sanei_lexmark_low_find_start_line function +# see https://bugzilla.novell.com/show_bug.cgi?id=542341 +Patch12: fix-lexmark_low-memory-leak.patch +# Patch13 fixes option sizes in backend/hp3900_sane.c +# because otherwise the frontend (e.g. xsane) may crash +# see https://bugzilla.novell.com/show_bug.cgi?id=535752 +Patch13: fix-hp3900_sane-string-option-sizes.diff # Patch100... is SUSE specific stuff: # Patch100 lets the "canon" backend do scanner auto-recognition: Patch100: canon-backend-autoprobing.patch @@ -303,6 +310,10 @@ Authors: %patch10 # Patch11 adds missing call to closedir to sane-desc.c: %patch11 +# Patch12 adds a missing call to free in backend/lexmark_low.c: +%patch12 +# Patch13 fixes option sizes in backend/hp3900_sane.c +%patch13 -p1 # Patch100... is SUSE specific stuff: # Patch100 lets the "canon" backend do scanner auto-recognition: %patch100 From 179ba5c121ec7d1401bfa924a1942a206ddef6f0bb8e53b4917c31be0a668a35 Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Fri, 2 Oct 2009 23:05:16 +0000 Subject: [PATCH 3/4] checked in OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=10 --- fix-hp3900_sane-string-option-sizes.diff | 36 ------------------------ fix-lexmark_low-memory-leak.patch | 11 -------- sane-backends.changes | 16 ----------- sane-backends.spec | 28 ++++++++---------- 4 files changed, 11 insertions(+), 80 deletions(-) delete mode 100644 fix-hp3900_sane-string-option-sizes.diff delete mode 100644 fix-lexmark_low-memory-leak.patch diff --git a/fix-hp3900_sane-string-option-sizes.diff b/fix-hp3900_sane-string-option-sizes.diff deleted file mode 100644 index fea7fc4..0000000 --- a/fix-hp3900_sane-string-option-sizes.diff +++ /dev/null @@ -1,36 +0,0 @@ ---- a/backend/hp3900_sane.c -+++ b/backend/hp3900_sane.c -@@ -1189,6 +1189,7 @@ options_init (TScanner * scanner) - scanner->rng_vertical.quant = 1; - - /* allocate option lists */ -+ bknd_info (scanner); - bknd_colormodes (scanner, RTS_Debug->dev_model); - bknd_depths (scanner, RTS_Debug->dev_model); - bknd_models (scanner); -@@ -1562,6 +1563,7 @@ options_init (TScanner * scanner) - pDesc->constraint_type = SANE_CONSTRAINT_NONE; - pDesc->cap = SANE_CAP_ADVANCED | SANE_CAP_SOFT_DETECT; - pVal->s = strdup (SANE_I18N ("Unknown")); -+ pDesc->size = strlen(pVal->s) + 1; - break; - - case opt_chipid: -@@ -1981,7 +1983,8 @@ option_get (TScanner * scanner, SANE_Int optid, void *result) - case opt_scantype: - case opt_model: - case opt_chipname: -- strcpy (result, scanner->aValues[optid].s); -+ strncpy (result, scanner->aValues[optid].s, scanner->aOptions[optid].size); -+ ((char*)result)[scanner->aOptions[optid].size-1] = '\0'; - break; - - /* scanner buttons */ -@@ -2113,6 +2116,7 @@ option_set (TScanner * scanner, SANE_Int optid, void *value, SANE_Int * pInfo) - Load_Config (device); - - /* update options according to selected device */ -+ bknd_info (scanner); - bknd_colormodes (scanner, model); - bknd_depths (scanner, model); - bknd_resolutions (scanner, model); diff --git a/fix-lexmark_low-memory-leak.patch b/fix-lexmark_low-memory-leak.patch deleted file mode 100644 index 494bb4c..0000000 --- a/fix-lexmark_low-memory-leak.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- backend/lexmark_low.c.orig 2009-02-26 17:11:17.000000000 +0100 -+++ backend/lexmark_low.c 2009-09-30 12:38:02.000000000 +0200 -@@ -2560,6 +2560,8 @@ sanei_lexmark_low_find_start_line (Lexma - } - } /* end for buffer */ - -+ free (buffer); -+ - DBG (2, "sanei_lexmark_low_find_start_line: end.\n"); - return whiteLineCount; - } diff --git a/sane-backends.changes b/sane-backends.changes index 0cad38e..aa3c210 100644 --- a/sane-backends.changes +++ b/sane-backends.changes @@ -1,13 +1,3 @@ -------------------------------------------------------------------- -Wed Sep 30 12:59:12 CEST 2009 - jsmeix@suse.de - -- fix-lexmark_low-memory-leak.patch adds a missing call to free - in sanei_lexmark_low_find_start_line in backend/lexmark_low.c - (see Novell/Suse Bugzilla bnc#542341). -- fix-hp3900_sane-string-option-sizes.diff fixes option sizes - because otherwise the frontend (e.g. xsane) may crash - (see Novell/Suse Bugzilla bnc#535752). - ------------------------------------------------------------------- Fri Sep 18 12:53:45 CEST 2009 - jsmeix@suse.de @@ -17,12 +7,6 @@ Fri Sep 18 12:53:45 CEST 2009 - jsmeix@suse.de which matches to the sacnner models which are supported by our currently provided HPLIP version. -------------------------------------------------------------------- -Thu Sep 17 01:24:39 CEST 2009 - crrodriguez@suse.de - -- use find_lang macro -- run ldconfig correctly - ------------------------------------------------------------------- Thu Aug 13 14:25:00 CEST 2009 - jsmeix@suse.de diff --git a/sane-backends.spec b/sane-backends.spec index 7c2dbd0..8e7dd88 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -56,13 +56,14 @@ Source110: models.dat # Source200 and Source201 generate the 56-sane-backends-autoconfig.rules file # for automated scanner driver activation via udev ("scanner autoconfiguration"). # Source200 is a copy of /usr/lib/YaST2/bin/create_scanner_database -# to avoid yast2-scanner in BuildRequires which would drag in almost the whole YaST: +# to avoid yast2-scanner in BuildRequires which would drag almost the whole YaST: Source200: create_scanner_database # Source201 actually generates the 56-sane-backends-autoconfig.rules file # by reading scanner.database which was created before by create_scanner_database # to extract the needed info from which create_sane-backends-autoconfig.rules # generates the 56-sane-backends-autoconfig.rules file: Source201: create_sane-backends-autoconfig.rules +# based upon the data which is # Patch1 does locale rename: no -> nb: # Patch1 is obsolete since sane-backends-1.0.19 because it uses 'nb'. # Patch2 fixes too small arrays in backend/niash.c: @@ -91,14 +92,6 @@ Patch10: fix-mustek_pp_ccd300.c.patch # Patch11 adds missing call to closedir to sane-desc.c # see https://bugzilla.novell.com/show_bug.cgi?id=530313 Patch11: sane-desc_closedir.patch -# Patch12 adds a missing call to free in backend/lexmark_low.c -# in the sanei_lexmark_low_find_start_line function -# see https://bugzilla.novell.com/show_bug.cgi?id=542341 -Patch12: fix-lexmark_low-memory-leak.patch -# Patch13 fixes option sizes in backend/hp3900_sane.c -# because otherwise the frontend (e.g. xsane) may crash -# see https://bugzilla.novell.com/show_bug.cgi?id=535752 -Patch13: fix-hp3900_sane-string-option-sizes.diff # Patch100... is SUSE specific stuff: # Patch100 lets the "canon" backend do scanner auto-recognition: Patch100: canon-backend-autoprobing.patch @@ -310,10 +303,6 @@ Authors: %patch10 # Patch11 adds missing call to closedir to sane-desc.c: %patch11 -# Patch12 adds a missing call to free in backend/lexmark_low.c: -%patch12 -# Patch13 fixes option sizes in backend/hp3900_sane.c -%patch13 -p1 # Patch100... is SUSE specific stuff: # Patch100 lets the "canon" backend do scanner auto-recognition: %patch100 @@ -607,12 +596,16 @@ install -m644 %{SOURCE101} %{buildroot}%{_sysconfdir}/xinetd.d/ # OpenSLP registration stuff: install -d -m755 %{buildroot}%{_sysconfdir}/slp.reg.d install -m644 %{SOURCE102} %{buildroot}%{_sysconfdir}/slp.reg.d -%find_lang sane-backends -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post +/sbin/ldconfig +# exit successfully in any case: +exit 0 -%files -f sane-backends.lang +%postun +/sbin/ldconfig + +%files %defattr(-,root,root) %dir %{_sysconfdir}/sane.d %config(noreplace) %{_sysconfdir}/sane.d/*.conf @@ -632,6 +625,7 @@ install -m644 %{SOURCE102} %{buildroot}%{_sysconfdir}/slp.reg.d %{_bindir}/sane-find-scanner %{_bindir}/gamma4scanimage %{_bindir}/umax_pp +%{_datadir}/locale/*/LC_MESSAGES/sane-backends.mo %{_datadir}/sane/ %{_libdir}/libsane* %{_libdir}/sane/ From 73799e084beddddbce4c9fe7d06e188cecfeceee640f46357db368f9ce4d21d8 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Fri, 2 Oct 2009 23:05:17 +0000 Subject: [PATCH 4/4] Updating link to change in openSUSE:Factory/sane-backends revision 35.0 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=8106d8078f3338312e581a3565270715 --- fix-hp3900_sane-string-option-sizes.diff | 36 ++++++++++++++++++++++++ fix-lexmark_low-memory-leak.patch | 11 ++++++++ sane-backends.changes | 16 +++++++++++ sane-backends.spec | 33 +++++++++++++--------- 4 files changed, 83 insertions(+), 13 deletions(-) create mode 100644 fix-hp3900_sane-string-option-sizes.diff create mode 100644 fix-lexmark_low-memory-leak.patch diff --git a/fix-hp3900_sane-string-option-sizes.diff b/fix-hp3900_sane-string-option-sizes.diff new file mode 100644 index 0000000..fea7fc4 --- /dev/null +++ b/fix-hp3900_sane-string-option-sizes.diff @@ -0,0 +1,36 @@ +--- a/backend/hp3900_sane.c ++++ b/backend/hp3900_sane.c +@@ -1189,6 +1189,7 @@ options_init (TScanner * scanner) + scanner->rng_vertical.quant = 1; + + /* allocate option lists */ ++ bknd_info (scanner); + bknd_colormodes (scanner, RTS_Debug->dev_model); + bknd_depths (scanner, RTS_Debug->dev_model); + bknd_models (scanner); +@@ -1562,6 +1563,7 @@ options_init (TScanner * scanner) + pDesc->constraint_type = SANE_CONSTRAINT_NONE; + pDesc->cap = SANE_CAP_ADVANCED | SANE_CAP_SOFT_DETECT; + pVal->s = strdup (SANE_I18N ("Unknown")); ++ pDesc->size = strlen(pVal->s) + 1; + break; + + case opt_chipid: +@@ -1981,7 +1983,8 @@ option_get (TScanner * scanner, SANE_Int optid, void *result) + case opt_scantype: + case opt_model: + case opt_chipname: +- strcpy (result, scanner->aValues[optid].s); ++ strncpy (result, scanner->aValues[optid].s, scanner->aOptions[optid].size); ++ ((char*)result)[scanner->aOptions[optid].size-1] = '\0'; + break; + + /* scanner buttons */ +@@ -2113,6 +2116,7 @@ option_set (TScanner * scanner, SANE_Int optid, void *value, SANE_Int * pInfo) + Load_Config (device); + + /* update options according to selected device */ ++ bknd_info (scanner); + bknd_colormodes (scanner, model); + bknd_depths (scanner, model); + bknd_resolutions (scanner, model); diff --git a/fix-lexmark_low-memory-leak.patch b/fix-lexmark_low-memory-leak.patch new file mode 100644 index 0000000..494bb4c --- /dev/null +++ b/fix-lexmark_low-memory-leak.patch @@ -0,0 +1,11 @@ +--- backend/lexmark_low.c.orig 2009-02-26 17:11:17.000000000 +0100 ++++ backend/lexmark_low.c 2009-09-30 12:38:02.000000000 +0200 +@@ -2560,6 +2560,8 @@ sanei_lexmark_low_find_start_line (Lexma + } + } /* end for buffer */ + ++ free (buffer); ++ + DBG (2, "sanei_lexmark_low_find_start_line: end.\n"); + return whiteLineCount; + } diff --git a/sane-backends.changes b/sane-backends.changes index aa3c210..0cad38e 100644 --- a/sane-backends.changes +++ b/sane-backends.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Sep 30 12:59:12 CEST 2009 - jsmeix@suse.de + +- fix-lexmark_low-memory-leak.patch adds a missing call to free + in sanei_lexmark_low_find_start_line in backend/lexmark_low.c + (see Novell/Suse Bugzilla bnc#542341). +- fix-hp3900_sane-string-option-sizes.diff fixes option sizes + because otherwise the frontend (e.g. xsane) may crash + (see Novell/Suse Bugzilla bnc#535752). + ------------------------------------------------------------------- Fri Sep 18 12:53:45 CEST 2009 - jsmeix@suse.de @@ -7,6 +17,12 @@ Fri Sep 18 12:53:45 CEST 2009 - jsmeix@suse.de which matches to the sacnner models which are supported by our currently provided HPLIP version. +------------------------------------------------------------------- +Thu Sep 17 01:24:39 CEST 2009 - crrodriguez@suse.de + +- use find_lang macro +- run ldconfig correctly + ------------------------------------------------------------------- Thu Aug 13 14:25:00 CEST 2009 - jsmeix@suse.de diff --git a/sane-backends.spec b/sane-backends.spec index 8e7dd88..2a7ce43 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -20,12 +20,12 @@ Name: sane-backends BuildRequires: libgphoto2-devel libieee1284 libjpeg-devel net-snmp-devel pkg-config texlive-latex -License: GPL v2 only ; GPL v2 or later ; LGPL v2.1 or later ; Public Domain, Freeware +License: GPL v2 only ; GPL v2 or later ; LGPL v2.1 or later ; Public Domain, Freeware Group: Hardware/Scanner AutoReqProv: on Summary: SANE (Scanner Access Now Easy) Scanner Drivers Version: 1.0.20 -Release: 5 +Release: 6 Url: http://www.sane-project.org/ # URL for Source0: http://alioth.debian.org/frs/download.php/2318/sane-backends-1.0.19.tar.gz Source0: sane-backends-%{version}.tar.bz2 @@ -56,14 +56,13 @@ Source110: models.dat # Source200 and Source201 generate the 56-sane-backends-autoconfig.rules file # for automated scanner driver activation via udev ("scanner autoconfiguration"). # Source200 is a copy of /usr/lib/YaST2/bin/create_scanner_database -# to avoid yast2-scanner in BuildRequires which would drag almost the whole YaST: +# to avoid yast2-scanner in BuildRequires which would drag in almost the whole YaST: Source200: create_scanner_database # Source201 actually generates the 56-sane-backends-autoconfig.rules file # by reading scanner.database which was created before by create_scanner_database # to extract the needed info from which create_sane-backends-autoconfig.rules # generates the 56-sane-backends-autoconfig.rules file: Source201: create_sane-backends-autoconfig.rules -# based upon the data which is # Patch1 does locale rename: no -> nb: # Patch1 is obsolete since sane-backends-1.0.19 because it uses 'nb'. # Patch2 fixes too small arrays in backend/niash.c: @@ -92,6 +91,14 @@ Patch10: fix-mustek_pp_ccd300.c.patch # Patch11 adds missing call to closedir to sane-desc.c # see https://bugzilla.novell.com/show_bug.cgi?id=530313 Patch11: sane-desc_closedir.patch +# Patch12 adds a missing call to free in backend/lexmark_low.c +# in the sanei_lexmark_low_find_start_line function +# see https://bugzilla.novell.com/show_bug.cgi?id=542341 +Patch12: fix-lexmark_low-memory-leak.patch +# Patch13 fixes option sizes in backend/hp3900_sane.c +# because otherwise the frontend (e.g. xsane) may crash +# see https://bugzilla.novell.com/show_bug.cgi?id=535752 +Patch13: fix-hp3900_sane-string-option-sizes.diff # Patch100... is SUSE specific stuff: # Patch100 lets the "canon" backend do scanner auto-recognition: Patch100: canon-backend-autoprobing.patch @@ -248,7 +255,7 @@ Authors: Wittawat Yamwong %package autoconfig -License: GPL v2 or later ; LGPL v2.1 or later ; Public Domain, Freeware +License: GPL v2 or later ; LGPL v2.1 or later ; Public Domain, Freeware Group: Hardware/Scanner Summary: USB Scanner Autoconfiguration Requires: sane-backends @@ -303,6 +310,10 @@ Authors: %patch10 # Patch11 adds missing call to closedir to sane-desc.c: %patch11 +# Patch12 adds a missing call to free in backend/lexmark_low.c: +%patch12 +# Patch13 fixes option sizes in backend/hp3900_sane.c +%patch13 -p1 # Patch100... is SUSE specific stuff: # Patch100 lets the "canon" backend do scanner auto-recognition: %patch100 @@ -596,16 +607,13 @@ install -m644 %{SOURCE101} %{buildroot}%{_sysconfdir}/xinetd.d/ # OpenSLP registration stuff: install -d -m755 %{buildroot}%{_sysconfdir}/slp.reg.d install -m644 %{SOURCE102} %{buildroot}%{_sysconfdir}/slp.reg.d +%find_lang sane-backends -%post -/sbin/ldconfig -# exit successfully in any case: -exit 0 +%post -p /sbin/ldconfig -%postun -/sbin/ldconfig +%postun -p /sbin/ldconfig -%files +%files -f sane-backends.lang %defattr(-,root,root) %dir %{_sysconfdir}/sane.d %config(noreplace) %{_sysconfdir}/sane.d/*.conf @@ -625,7 +633,6 @@ exit 0 %{_bindir}/sane-find-scanner %{_bindir}/gamma4scanimage %{_bindir}/umax_pp -%{_datadir}/locale/*/LC_MESSAGES/sane-backends.mo %{_datadir}/sane/ %{_libdir}/libsane* %{_libdir}/sane/