Jelajahi Sumber

fix header order as C++ standard now allows and gcc33 assumes that templates are compiled before instantiated for a specific type.

Michael van Elst 22 tahun lalu
induk
melakukan
0a08781c3e
2 mengubah file dengan 21 tambahan dan 1 penghapusan
  1. 18 0
      unrar/unrar.patch
  2. 3 1
      unrar/unrar.spec

+ 18 - 0
unrar/unrar.patch

@@ -0,0 +1,18 @@
+--- rar.hpp.dist	Thu Jun 12 14:16:15 2003
++++ rar.hpp	Thu Jun 12 14:15:31 2003
+@@ -16,6 +16,7 @@
+ #include "int64.hpp"
+ #include "unicode.hpp"
+ #include "errhnd.hpp"
++#include "global.hpp"
+ #include "array.hpp"
+ #include "timefn.hpp"
+ #include "headers.hpp"
+@@ -71,7 +72,6 @@
+ #include "smallfn.hpp"
+ #include "ulinks.hpp"
+ 
+-#include "global.hpp"
+ 
+ 
+ #endif

+ 3 - 1
unrar/unrar.spec

@@ -33,10 +33,11 @@ Distribution: OpenPKG [PLUS]
 Group:        Archiver
 License:      freely distributable
 Version:      3.2.2
-Release:      20030519
+Release:      20030612
 
 #   list of sources
 Source0:      http://files10.rarlab.com/rar/unrarsrc-%{version}.tar.gz
+Patch0:       unrar.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -53,6 +54,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q -n unrar
+    %patch -p0
 
 %build
     cxxflags="-O2"