Source: libkqueue
Severity: normal
Tags: patch
User: debian-powe...@lists.debian.org
Usertags: ppc64el

Dear Maintainer,

The package libkqueue fails to build from source on ppc64el, because the 
specification
to use unsigned long in knote.c file only covers x86_64.

Do you think it can be considered to use the more generic preprocessor macro 
LP64 instead?

Attached is a patch with the modification to do so.

Thanks!


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 3.13-1-powerpc64le (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru libkqueue-2.0.3/debian/changelog libkqueue-2.0.3/debian/changelog
--- libkqueue-2.0.3/debian/changelog    2014-03-10 00:46:17.000000000 +0000
+++ libkqueue-2.0.3/debian/changelog    2014-09-02 17:01:02.000000000 +0000
@@ -1,3 +1,10 @@
+libkqueue (2.0.3-1ppc64el1) UNRELEASED; urgency=medium
+
+  * Replacing preprocessor macro X86_64 to LP64 in knote.c, since
+    it is used to treat pointer rather than processor specifics.
+
+ -- Fernando Seiti Furusat <ferse...@br.ibm.com>  Tue, 02 Sep 2014 16:59:51 +0000
+
 libkqueue (2.0.3-1) unstable; urgency=low

   * New upstream release (closes: #741009)
diff -Nru libkqueue-2.0.3/debian/patches/replace-64bit-knote.patch libkqueue-2.0.3/debian/patches/replace-64bit-knote.patch
--- libkqueue-2.0.3/debian/patches/replace-64bit-knote.patch    1970-01-01 00:00:00.000000000 +0000
+++ libkqueue-2.0.3/debian/patches/replace-64bit-knote.patch    2014-09-02 17:01:54.000000000 +0000
@@ -0,0 +1,13 @@
+Index: libkqueue-2.0.3/src/common/knote.c
+===================================================================
+--- libkqueue-2.0.3.orig/src/common/knote.c
++++ libkqueue-2.0.3/src/common/knote.c
+@@ -120,7 +120,7 @@ knote_lookup(struct filter *filt, uintpt
+     ent = RB_FIND(knt, &filt->kf_knote, &query);
+     pthread_rwlock_unlock(&filt->kf_knote_mtx);
+
+-#ifdef __x86_64__
++#ifdef __LP64__
+     dbg_printf("id=%lu ent=%p", ident, ent);
+ #else
+     dbg_printf("id=%u ent=%p", ident, ent);
diff -Nru libkqueue-2.0.3/debian/patches/series libkqueue-2.0.3/debian/patches/series
--- libkqueue-2.0.3/debian/patches/series       1970-01-01 00:00:00.000000000 +0000
+++ libkqueue-2.0.3/debian/patches/series       2014-09-02 17:01:18.000000000 +0000
@@ -0,0 +1 @@
+replace-64bit-knote.patch

Reply via email to