[SCM] qtchooser packaging branch, master, updated. debian/26-1-4-ge1484db

Pino Toscano pino at alioth.debian.org
Mon Apr 1 19:52:27 UTC 2013


Gitweb-URL: http://git.debian.org/?p=pkg-kde/qt/qtchooser.git;a=commitdiff;h=e1484db

The following commit has been merged in the master branch:
commit e1484dbfe905509aa63b56650055010f72e190c6
Author: Pino Toscano <pino at debian.org>
Date:   Mon Apr 1 21:52:16 2013 +0200

    fix build on Hurd
---
 debian/changelog                 |    3 +++
 debian/patches/fix-PATH_MAX.diff |   21 +++++++++++++++++++++
 debian/patches/series            |    1 +
 3 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 988c223..a0b855f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,9 @@ qtchooser (26-2) UNRELEASED; urgency=low
   * Fix missing BSD-3-clause license missing in debian/copyright. Thanks
     Ansgar Burchardt for noticing it!
 
+  [ Pino Toscano ]
+  * Fix build on Hurd (patch fix-PATH_MAX.diff).
+
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Mon, 01 Apr 2013 12:07:10 -0300
 
 qtchooser (26-1) experimental; urgency=low
diff --git a/debian/patches/fix-PATH_MAX.diff b/debian/patches/fix-PATH_MAX.diff
new file mode 100644
index 0000000..f3d185f
--- /dev/null
+++ b/debian/patches/fix-PATH_MAX.diff
@@ -0,0 +1,21 @@
+Author: Pino Toscano <toscano.pino at tiscali.it>
+Description: Fix build when PATH_MAX is not defined.
+ PATH_MAX is not mandatory in POSIX, and GNU/Hurd does not provide it.
+ As a temporary solution, define it as 4096 if not defined already; a better
+ solution could be using getline as provided in POSIX.1-2008.
+Forwarded: no
+Last-Update: 2013-04-01
+
+--- a/src/qtchooser/main.cpp
++++ b/src/qtchooser/main.cpp
+@@ -74,6 +74,10 @@
+ #  define EXE_SUFFIX ""
+ #endif
+ 
++#ifndef PATH_MAX
++#  define PATH_MAX 4096
++#endif
++
+ using namespace std;
+ 
+ static const char myName[] = "qtchooser" EXE_SUFFIX;
diff --git a/debian/patches/series b/debian/patches/series
index 456ac0b..fb2aac7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 create-a-system-default-path.patch
 enable-tests.patch
+fix-PATH_MAX.diff

-- 
qtchooser packaging



More information about the pkg-kde-commits mailing list