Hello community,
here is the log from the commit of package hplip
checked in at Fri Feb 16 18:27:51 CET 2007.
--------
--- hplip/hpijs-standalone.changes 2007-02-12 10:10:43.000000000 +0100
+++ hplip/hpijs-standalone.changes 2007-02-16 13:03:50.000000000 +0100
@@ -1,0 +2,6 @@
+Fri Feb 16 13:02:45 CET 2007 - jsmeix@suse.de
+
+- Re-enabled "Supplements: ghostscript_any" because
+ bug #243595 is fixed now.
+
+-------------------------------------------------------------------
--- hplip/hplip.changes 2007-02-05 14:25:16.000000000 +0100
+++ hplip/hplip.changes 2007-02-16 12:29:48.000000000 +0100
@@ -1,0 +2,10 @@
+Fri Feb 16 11:52:28 CET 2007 - jsmeix@suse.de
+
+- Added a fix for fat.c to fix-buffer-overflow.patch
+ to aviod access when array subscript is above array bounds
+ (Suse Bugzilla bug #243047).
+- Remove all byte-compiled Python .pyc (and perhaps .pyo)
+ files which are created at run-time in /usr/share/hplip/
+ via preun script (Suse Bugzilla bug #244451).
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ hpijs-standalone.spec ++++++
--- /var/tmp/diff_new_pack.A30327/_old 2007-02-16 18:24:03.000000000 +0100
+++ /var/tmp/diff_new_pack.A30327/_new 2007-02-16 18:24:03.000000000 +0100
@@ -17,7 +17,7 @@
# x.y.m : x = major release number, y = year (eg: 6 = 2006), m = month (eg: 6a = second release in June)
# Official releases have a 3 digit number and release candidates have a 4 digit number: x.y.m.rc
Version: 1.7.1
-Release: 5
+Release: 7
Group: Hardware/Printing
License: BSD License and BSD-like
URL: http://hpinkjet.sourceforge.net/
@@ -45,8 +45,7 @@
# because when a user (or a printer setup tool) wants to set up a HP printer with the hpijs driver
# it must be 100% sure that all what the hpijs driver needs to run is also installed.
# Therefore the requirement is weakened for this package:
-# Disable until bug #243595 is solved
-# Supplements: ghostscript_any
+Supplements: ghostscript_any
# hplip-hpijs and hplip-hpijs-standalone both contain /usr/bin/hpijs:
Conflicts: hplip-hpijs
# Skip testing devel dependencies required by libtool .la files by the following comment:
@@ -139,7 +138,10 @@
%doc %{_mandir}/man1/hpijs.1.gz
%{_bindir}/hpijs
-%changelog -n hpijs-standalone
+%changelog
+* Fri Feb 16 2007 - jsmeix@suse.de
+- Re-enabled "Supplements: ghostscript_any" because
+ bug #243595 is fixed now.
* Mon Feb 12 2007 - aj@suse.de
- Do not add supplements to temporary workaround bug #243595.
* Mon Feb 05 2007 - jsmeix@suse.de
++++++ hplip.spec ++++++
--- /var/tmp/diff_new_pack.A30327/_old 2007-02-16 18:24:03.000000000 +0100
+++ /var/tmp/diff_new_pack.A30327/_new 2007-02-16 18:24:03.000000000 +0100
@@ -17,7 +17,7 @@
# x.y.m : x = major release number, y = year (eg: 6 = 2006), m = month (eg: 6a = second release in June)
# Official releases have a 3 digit number and release candidates have a 4 digit number: x.y.m.rc
Version: 1.7.1
-Release: 8
+Release: 10
%define hpijsVersion 2.7.1
Group: Hardware/Printing
License: BSD License and BSD-like, GNU General Public License (GPL)
@@ -52,7 +52,7 @@
Patch100: %{name}-init-script.diff
# Install into this non-root directory (required when norootforbuild is used):
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-PreReq: coreutils, /bin/grep, /bin/sed
+PreReq: coreutils, /bin/grep, /bin/sed, /usr/bin/find
Requires: %{name}-hpijs, foomatic-filters, python-xml, python-qt
# Skip testing devel dependencies required by libtool .la files by the following comment:
# skip-check-libtool-deps
@@ -261,6 +261,19 @@
fi
exit 0
+%preun
+# If the package was removed and if it was updated
+# remove all byte-compiled Python .pyc (and perhaps .pyo) files
+# which are created at run-time by Python in /usr/share/hplip/.
+# Use a generic method via "find" so that it works in any case
+# without the need to maintain a long list of individual files.
+# Even if this may accidentally remove "foreign" .pyc/.pyo files
+# which do not originate from matching .py files from this package
+# (e.g. third-party stuff in /usr/share/hplip/), there is no damage
+# because Python could re-create them or work only with .py files.
+find /usr/share/hplip/ -name '*.py[co]' -delete
+exit 0
+
%postun
/sbin/ldconfig
# If the package was removed (but not if it was updated)
@@ -323,7 +336,14 @@
%{_bindir}/hpijs
%{_libdir}/libhpip.*
-%changelog -n hplip
+%changelog
+* Fri Feb 16 2007 - jsmeix@suse.de
+- Added a fix for fat.c to fix-buffer-overflow.patch
+ to aviod access when array subscript is above array bounds
+ (Suse Bugzilla bug #243047).
+- Remove all byte-compiled Python .pyc (and perhaps .pyo)
+ files which are created at run-time in /usr/share/hplip/
+ via preun script (Suse Bugzilla bug #244451).
* Mon Feb 05 2007 - jsmeix@suse.de
- fix-buffer-overflow.patch fixes a too small string buffer
which overflows in line 310 in ljcolor.cpp.
++++++ fix-buffer-overflow.patch ++++++
--- /var/tmp/diff_new_pack.A30327/_old 2007-02-16 18:24:03.000000000 +0100
+++ /var/tmp/diff_new_pack.A30327/_new 2007-02-16 18:24:03.000000000 +0100
@@ -9,3 +9,15 @@
int iRes;
iRes = thePrintContext->EffectiveResolutionY ();
+--- pcard/fat.c.orig 2006-11-14 00:58:36.000000000 +0100
++++ pcard/fat.c 2007-02-16 11:48:34.000000000 +0100
+@@ -347,7 +347,8 @@ int LoadFileInCWD(int filenumber)
+ return FAT_FILE_DELETED;
+
+ /* Read file information from directory and convert to 8.3 format. */
+- for (i=0; pde->Name[i] && (pde->Name[i] != ' ') && (i