Changes between Initial Version and Version 1 of Linux-qt3-gcc47


Ignore:
Timestamp:
Jan 25, 2013 3:58:55 AM (7 years ago)
Author:
demeler
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Linux-qt3-gcc47

    v1 v1  
     1To build qt3-3.3.8b under Linux with gcc compiler versions > 4.6 two files need to be patched:
     2{{{
     3diff -Naur qt3.orig/qt3-gcc46-includes.diff qt3/qt3-gcc46-includes.diff
     4--- qt3.orig/qt3-gcc46-includes.diff    1970-01-01 08:00:00.000000000 +0800
     5+++ qt3/qt3-gcc46-includes.diff 2012-05-07 12:23:13.783892875 +0800
     6@@ -0,0 +1,20 @@
     7+--- src/tools/qvaluelist.h     2008-01-15 19:09:13.000000000 +0000
     8++++ src/tools/qvaluelist.h     2011-01-27 10:29:39.559757983 +0000
     9+@@ -50,6 +50,7 @@
     10+ #ifndef QT_NO_STL
     11+ #include <iterator>
     12+ #include <list>
     13++#include <cstddef>
     14+ #endif
     15+
     16+ //#define QT_CHECK_VALUELIST_RANGE
     17+--- src/tools/qmap.h   2008-01-15 19:09:13.000000000 +0000
     18++++ src/tools/qmap.h   2011-01-27 10:30:12.087757984 +0000
     19+@@ -52,6 +52,7 @@
     20+ #ifndef QT_NO_STL
     21+ #include <iterator>
     22+ #include <map>
     23++#include <cstddef>
     24+ #endif
     25+
     26+ //#define QT_CHECK_MAP_RANGE
     27diff -Naur qt3.orig/qt3.SlackBuild qt3/qt3.SlackBuild
     28--- qt3.orig/qt3.SlackBuild     2011-12-12 02:46:39.000000000 +0800
     29+++ qt3/qt3.SlackBuild  2012-05-07 12:39:25.034857436 +0800
     30@@ -88,6 +88,9 @@
     31 # Build with libpng 1.4:
     32 patch -lp0 < $CWD/qt3-libpng14.diff
     33
     34+# Fix missing #include for ptrdiff_t, needed with GCC >= 4.6
     35+patch -lp0 < $CWD/qt3-gcc46-includes.diff
     36+
     37 # Make sure ownerships and permissions are sane:
     38 chown -R root:root .
     39 find . \
     40}}}