Re: Re : Gtk lib patch



On 05/31/2003, E. ALLAUD wrote:
[ snip ]
> Perhaps you should try the source rpm and patch it (I think there is 
> a way to specify patches in the spec file, but I'm totally ignorant 
> in this so it could just be a hallucination ;-).
> Bye
> Manu

Good thought!  I'm trying this:

1. Install the source rpm.

2. Grab the *fixed* patch from 
http://bugzilla.gnome.org/show_bug.cgi?id=111286, and copy it as 
treeview.patch to /usr/src/redhat/SOURCES/

3. Edit /usr/src/redhat/SPECS/gtk2.spec in 2 places to refer to 
treeview.patch:

--- SPECS/gtk2.spec-orig        2003-02-25 01:30:34.000000000 -0500
+++ SPECS/gtk2.spec     2003-05-31 11:48:05.000000000 -0400
@@ -25,6 +25,7 @@
  # Hook up Xft to XSETTINGS
  Patch4: gtk+-xftprefs.patch
  Patch5: gtk+-2.2.1-scrollfix.patch
+Patch6: treeview.patch
    BuildPrereq: atk-devel >= %{atk_version}
  BuildPrereq: pango-devel >= %{pango_version}
@@ -79,6 +80,7 @@
  %patch3 -p1 -b .themename
  %patch4 -p1 -b .xftprefs
  %patch5 -p1 -b .scrollfix
+%patch6 -p0 -b .treeview
    for i in config.guess config.sub ; do
         test -f %{_datadir}/libtool/$i && cp %{_datadir}/libtool/$i .

4. rpmbuild -bi /usr/src/redhat/SPECS/gtk2.spec

Is `-bi' the correct option to rpmbuild?

Peter



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]