[SCM] Qt 4 packaging branch, experimental-snapshots, updated. debian/4.7.0-rc1-1-11-ge0c8eae

Pino Toscano pino-guest at alioth.debian.org
Wed Oct 6 11:04:10 UTC 2010


The following commit has been merged in the experimental-snapshots branch:
commit e0c8eaeafe5651f11fc773e23c035b135e44c5a3
Author: Pino Toscano <pino at kde.org>
Date:   Wed Oct 6 13:03:25 2010 +0200

    Rework and replace 50_kfreebsd_build_fix.diff with 22_use___GLIBC__.diff and 50_kfreebsd_Q_OS.diff.
---
 debian/changelog                          |   10 +++++-
 debian/patches/22_use___GLIBC__.diff      |   35 ++++++++++++++++++
 debian/patches/50_kfreebsd_Q_OS.diff      |   15 ++++++++
 debian/patches/50_kfreebsd_build_fix.diff |   57 -----------------------------
 4 files changed, 59 insertions(+), 58 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index dcdbd2d..590fa0a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 qt4-x11 (4:4.7.1-1) UNRELEASED; urgency=low
 
   * New upstream release.
+
+  [ Fathi Boudra ]
   * Remove patches:
     - 0001_webkit_self_injection_into_qt_configuration.patch - stolen upstream
     - 0002_fix_qstatictext_with_opengl1_engine.patch - stolen upstream
@@ -10,7 +12,13 @@ qt4-x11 (4:4.7.1-1) UNRELEASED; urgency=low
   * Update installed files.
   * Update symbols files.
 
- -- Fathi Boudra <fabo at debian.org>  Wed, 08 Sep 2010 14:10:23 +0300
+  [ Pino Toscano ]
+  * Rework and replace patch 50_kfreebsd_build_fix.diff with two new patches:
+    - 22_use___GLIBC__.diff: use __GLIBC__ instead of Q_OS_LINUX for GLIBC
+      functions
+    - 50_kfreebsd_Q_OS.diff: define Q_OS_FREEBSD_KERNEL for kFreeBSD
+
+ -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Wed, 06 Oct 2010 13:03:12 +0200
 
 qt4-x11 (4:4.7.0~rc1-1) experimental; urgency=low
 
diff --git a/debian/patches/22_use___GLIBC__.diff b/debian/patches/22_use___GLIBC__.diff
new file mode 100644
index 0000000..d6f1f06
--- /dev/null
+++ b/debian/patches/22_use___GLIBC__.diff
@@ -0,0 +1,35 @@
+Author: Pino Toscano <pino at kde.org>
+Description: Use GLIBC functions on any GLIBC architecture.
+ Make use of __GLIBC__ instead of Q_OS_LINUX for functions available globally
+ in GNU libc, not just on Linux.
+Last-Update: 2010-10-02
+
+--- a/src/corelib/tools/qlocale.cpp
++++ b/src/corelib/tools/qlocale.cpp
+@@ -77,7 +77,7 @@ QT_END_NAMESPACE
+ #include <qdebug.h>
+ #include <time.h>
+ 
+-#if defined(Q_OS_LINUX) && !defined(__UCLIBC__)
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
+ #    include <fenv.h>
+ #endif
+ 
+@@ -6637,7 +6637,7 @@ Q_CORE_EXPORT char *qdtoa ( double d, in
+     _control87(MCW_EM, MCW_EM);
+ #endif
+ 
+-#if defined(Q_OS_LINUX) && !defined(__UCLIBC__)
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
+     fenv_t envp;
+     feholdexcept(&envp);
+ #endif
+@@ -6653,7 +6653,7 @@ Q_CORE_EXPORT char *qdtoa ( double d, in
+ #endif //_M_X64
+ #endif //Q_OS_WIN
+ 
+-#if defined(Q_OS_LINUX) && !defined(__UCLIBC__)
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
+     fesetenv(&envp);
+ #endif
+ 
diff --git a/debian/patches/50_kfreebsd_Q_OS.diff b/debian/patches/50_kfreebsd_Q_OS.diff
new file mode 100644
index 0000000..9fe7d7a
--- /dev/null
+++ b/debian/patches/50_kfreebsd_Q_OS.diff
@@ -0,0 +1,15 @@
+Author: Pino Toscano <pino at kde.org>
+Description: Fixes FTBFS on GNU/kFreeBSD by creating new Q_OS_FREEBSD_KERNEL.
+Last-Update: 2010-10-06
+
+--- a/src/corelib/global/qglobal.h
++++ b/src/corelib/global/qglobal.h
+@@ -221,6 +221,8 @@
+ #elif defined(__FreeBSD__) || defined(__DragonFly__)
+ #  define Q_OS_FREEBSD
+ #  define Q_OS_BSD4
++#elif defined(__FreeBSD_kernel__)
++#  define Q_OS_FREEBSD_KERNEL
+ #elif defined(__NetBSD__)
+ #  define Q_OS_NETBSD
+ #  define Q_OS_BSD4
diff --git a/debian/patches/50_kfreebsd_build_fix.diff b/debian/patches/50_kfreebsd_build_fix.diff
deleted file mode 100644
index e029e07..0000000
--- a/debian/patches/50_kfreebsd_build_fix.diff
+++ /dev/null
@@ -1,57 +0,0 @@
-author: Petr Salinger <Petr.Salinger at seznam.cz>
-
-Fixes FTBFS on GNU/kFreeBSD by creating new Q_OS_GLIBC.
-
---- a/src/corelib/global/qglobal.h
-+++ b/src/corelib/global/qglobal.h
-@@ -218,6 +218,12 @@ namespace QT_NAMESPACE {}
- #  define Q_OS_RELIANT
- #elif defined(__linux__) || defined(__linux)
- #  define Q_OS_LINUX
-+#  define Q_OS_GLIBC
-+#elif defined(__GNU_HURD__) || defined(__GNU__)
-+#  define Q_OS_HURD
-+#  define Q_OS_GLIBC
-+#elif defined(__GLIBC__)
-+#  define Q_OS_GLIBC
- #elif defined(__FreeBSD__) || defined(__DragonFly__)
- #  define Q_OS_FREEBSD
- #  define Q_OS_BSD4
-@@ -238,8 +244,6 @@ namespace QT_NAMESPACE {}
- #  define Q_OS_AIX
- #elif defined(__Lynx__)
- #  define Q_OS_LYNX
--#elif defined(__GNU__)
--#  define Q_OS_HURD
- #elif defined(__DGUX__)
- #  define Q_OS_DGUX
- #elif defined(__QNXNTO__)
---- a/src/corelib/tools/qlocale.cpp
-+++ b/src/corelib/tools/qlocale.cpp
-@@ -77,7 +77,7 @@ QT_END_NAMESPACE
- #include <qdebug.h>
- #include <time.h>
- 
--#if defined(Q_OS_LINUX) && !defined(__UCLIBC__)
-+#if defined(Q_OS_GLIBC) && !defined(__UCLIBC__)
- #    include <fenv.h>
- #endif
- 
-@@ -6637,7 +6637,7 @@ Q_CORE_EXPORT char *qdtoa ( double d, in
-     _control87(MCW_EM, MCW_EM);
- #endif
- 
--#if defined(Q_OS_LINUX) && !defined(__UCLIBC__)
-+#if defined(Q_OS_GLIBC) && !defined(__UCLIBC__)
-     fenv_t envp;
-     feholdexcept(&envp);
- #endif
-@@ -6653,7 +6653,7 @@ Q_CORE_EXPORT char *qdtoa ( double d, in
- #endif //_M_X64
- #endif //Q_OS_WIN
- 
--#if defined(Q_OS_LINUX) && !defined(__UCLIBC__)
-+#if defined(Q_OS_GLIBC) && !defined(__UCLIBC__)
-     fesetenv(&envp);
- #endif
- 

-- 
Qt 4 packaging



More information about the pkg-kde-commits mailing list