[gv] Add patch from Gentoo for Xawd3d 1.6

Orion Poplawski orion at fedoraproject.org
Mon Feb 27 14:55:57 UTC 2012


commit 50e1809a193411bddf36ee8efc48031ba09daefa
Author: Orion Poplawski <orion at cora.nwra.com>
Date:   Mon Feb 27 07:55:54 2012 -0700

    Add patch from Gentoo for Xawd3d 1.6

 gv-Xaw3d-1.6.patch |   15 +++++++++++++++
 gv.spec            |    3 +++
 2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/gv-Xaw3d-1.6.patch b/gv-Xaw3d-1.6.patch
new file mode 100644
index 0000000..76c88b1
--- /dev/null
+++ b/gv-Xaw3d-1.6.patch
@@ -0,0 +1,15 @@
+This piece of code is from libXaw3d-1.6/src/Scrollbar.c (Line 644)
+
+http://bugs.gentoo.org/399753
+
+--- src/Scrollbar.c
++++ src/Scrollbar.c
+@@ -1006,7 +1006,7 @@
+    TOPLOC = newtop;
+    SHOWNLENGTH = newbot-newtop+1;
+ 
+-   (*swclass->threeD_class.shadowdraw) (w, event, region, FALSE);
++   (*swclass->threeD_class.shadowdraw) (w, event, region, sbw->threeD.relief, FALSE);
+ 
+    ENDMESSAGE(Redisplay)
+ }
diff --git a/gv.spec b/gv.spec
index 51193c1..2e43819 100644
--- a/gv.spec
+++ b/gv.spec
@@ -9,6 +9,7 @@ URL: http://www.gnu.org/software/gv/
 Source0: ftp://ftp.gnu.org/gnu/gv/gv-%{version}.tar.gz
 #Source0: ftp://alpha.gnu.org/gnu/gv/gv-%{version}.tar.gz
 Source1: gv.png
+Patch0: gv-Xaw3d-1.6.patch
 BuildRequires: /usr/bin/makeinfo
 BuildRequires: Xaw3d-devel
 %if 0%{?rhel} != 04
@@ -31,6 +32,7 @@ Gv can display PostScript and PDF documents on an X Window System.
 
 %prep
 %setup -q
+%patch0 -p0 -b .Xaw3d
 
 
 %build
@@ -113,6 +115,7 @@ fi
 %changelog
 * Sun Feb 26 2012 Orion Poplawski <orion at cora.nwra.com> - 3.7.3-3
 - Rebuild with Xaw3d 1.6.1
+- Add patch from Gentoo for Xawd3d 1.6
 
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.7.3-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild


More information about the scm-commits mailing list