[SCM] qtbase packaging branch, experimental, updated. debian/5.5.0+dfsg-6-8-g2b9e394

Lisandro Damián Nicanor Pérez lisandro at moszumanska.debian.org
Fri Oct 9 21:43:40 UTC 2015


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

The following commit has been merged in the experimental branch:
commit 2b9e394cc3d1a2058f2ab77740fe162a2430afcf
Author: Lisandro Damián Nicanor Pérez Meyer <perezmeyer at gmail.com>
Date:   Fri Oct 9 18:43:15 2015 -0300

    Remove gnukfreebsd_processNameByPid.diff.
    
    Seems implemented with a different approach.
---
 debian/changelog                                 |  2 +
 debian/patches/gnukfreebsd_processNameByPid.diff | 49 ------------------------
 debian/patches/series                            |  1 -
 3 files changed, 2 insertions(+), 50 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 098734e..b976e8e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,8 @@ qtbase-opensource-src (5.5.1+dfsg-1) UNRELEASED; urgency=medium
   * Refresh pacthes:
     - Fix-compile-error-on-big-endian.patch
     - hurd-forkfd.diff
+  * Remove gnukfreebsd_processNameByPid.diff, seems implemented with a
+    different solution.
 
  -- Sune Vuorela <sune at debian.org>  Tue, 22 Sep 2015 08:28:30 +0200
 
diff --git a/debian/patches/gnukfreebsd_processNameByPid.diff b/debian/patches/gnukfreebsd_processNameByPid.diff
deleted file mode 100644
index 5021958..0000000
--- a/debian/patches/gnukfreebsd_processNameByPid.diff
+++ /dev/null
@@ -1,49 +0,0 @@
-Description: add processNameByPid implementation for GNU/kFreeBSD
-Author: Dmitry Shachnev <mitya57 at debian.org>
-Forwarded: no
-Last-Update: 2015-07-31
-
---- a/src/corelib/io/qlockfile_unix.cpp
-+++ b/src/corelib/io/qlockfile_unix.cpp
-@@ -56,6 +56,13 @@
- #   include <cstdio>
- #elif defined(Q_OS_BSD4) && !defined(Q_OS_IOS)
- #   include <sys/user.h>
-+# ifdef __GLIBC__
-+#   include <sys/cdefs.h>
-+#   include <sys/param.h>
-+#   include <sys/sysctl.h>
-+#   include <cstdlib>
-+#   include <cstring>
-+# endif
- #endif
- 
- QT_BEGIN_NAMESPACE
-@@ -232,9 +239,27 @@
-     }
-     return QFileInfo(QString::fromUtf8(buf)).fileName();
- #elif defined(Q_OS_BSD4) && !defined(Q_OS_IOS)
-+#ifdef __GLIBC__
-+    int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, pid};
-+    size_t len = 0;
-+    if (sysctl(mib, 4, NULL, &len, NULL, 0) < 0)
-+        return QString();
-+    kinfo_proc *proc = static_cast<kinfo_proc *>(malloc(len));
-+#else
-     kinfo_proc *proc = kinfo_getproc(pid);
-+#endif /* __GLIBC__ */
-     if (!proc)
-         return QString();
-+#ifdef __GLIBC__
-+    if (sysctl(mib, 4, proc, &len, NULL, 0) < 0) {
-+        free(proc);
-+        return QString();
-+    }
-+    if (proc->ki_pid != pid) {
-+        free(proc);
-+        return QString();
-+    }
-+#endif /* __GLIBC__ */
-     QString name = QString::fromUtf8(proc->ki_comm);
-     free(proc);
-     return name;
diff --git a/debian/patches/series b/debian/patches/series
index 148b172..aa5f22c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,5 +6,4 @@ gnukfreebsd.diff
 no_htmlinfo_example.diff
 remove_privacy_breachs.diff
 hurd-forkfd.diff
-gnukfreebsd_processNameByPid.diff
 link_fbclient.diff

-- 
qtbase packaging



More information about the pkg-kde-commits mailing list