فهرست منبع

fix building against GC 7.2.x

Ralf S. Engelschall 16 سال پیش
والد
کامیت
6e687b2b43
2فایلهای تغییر یافته به همراه18 افزوده شده و 5 حذف شده
  1. 14 1
      w3m/w3m.patch
  2. 4 4
      w3m/w3m.spec

+ 14 - 1
w3m/w3m.patch

@@ -1,6 +1,6 @@
 Index: Makefile.in
 --- Makefile.in.orig	2007-05-29 14:01:04 +0200
-+++ Makefile.in	2007-06-02 13:11:37 +0200
++++ Makefile.in	2009-12-24 22:39:59 +0100
 @@ -119,7 +119,7 @@
  
  DEFUNS=$(top_srcdir)/main.c $(top_srcdir)/menu.c
@@ -28,3 +28,16 @@ Index: Makefile.in
  	-rm -f functable.tab
  
  mktable$(EXT): mktable.o dummy.o $(ALIB)
+Index: main.c
+--- main.c.orig	2007-05-31 03:19:50 +0200
++++ main.c	2009-12-25 10:21:26 +0100
+@@ -842,7 +842,8 @@
+     mySignal(SIGPIPE, SigPipe);
+ #endif
+ 
+-    orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
++    orig_GC_warn_proc = GC_get_warn_proc();
++    GC_set_warn_proc(wrap_GC_warn_proc);
+     err_msg = Strnew();
+     if (load_argc == 0) {
+ 	/* no URL specified */

+ 4 - 4
w3m/w3m.spec

@@ -32,7 +32,7 @@ Class:        BASE
 Group:        Web
 License:      BSD
 Version:      0.5.2
-Release:      20080101
+Release:      20091225
 
 #   list of sources
 Source0:      http://switch.dl.sourceforge.net/sourceforge/w3m/w3m-%{version}.tar.gz
@@ -43,8 +43,8 @@ Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
 BuildPreReq:  OpenPKG, openpkg >= 20040130, make
 PreReq:       OpenPKG, openpkg >= 20040130
-BuildPreReq:  ncurses, openssl, zlib, gc
-PreReq:       ncurses, openssl, zlib, gc
+BuildPreReq:  ncurses, openssl, zlib, gc >= 7.2
+PreReq:       ncurses, openssl, zlib, gc >= 7.2
 AutoReq:      no
 AutoReqProv:  no
 
@@ -107,7 +107,7 @@ AutoReqProv:  no
         --disable-unicode \
         --disable-m17n \
         --disable-nls
-    %{l_make} %{l_mflags -O}
+    %{l_make} %{l_mflags}
 
 %install
     rm -rf $RPM_BUILD_ROOT