[liblangtag] 01/01: apply patch to remove LT_POINTER_TO_INT usage and makes lt-config.h not arch-dep (closes: #837755)
Rene Engelhard
rene at moszumanska.debian.org
Wed Sep 21 06:24:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
rene pushed a commit to branch master
in repository liblangtag.
commit c98af144f433184f44d546dc3121d2a26aa8c868
Author: Rene Engelhard <rene at rene-engelhard.de>
Date: Wed Sep 21 08:18:40 2016 +0200
apply patch to remove LT_POINTER_TO_INT usage and makes lt-config.h not arch-dep (closes: #837755)
---
debian/patches/LT_POINTER_TO_INT.diff | 51 +++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 52 insertions(+)
diff --git a/debian/patches/LT_POINTER_TO_INT.diff b/debian/patches/LT_POINTER_TO_INT.diff
new file mode 100644
index 0000000..eb0d97d
--- /dev/null
+++ b/debian/patches/LT_POINTER_TO_INT.diff
@@ -0,0 +1,51 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -424,15 +424,6 @@
+ #include <liblangtag/lt-macros.h>
+ ____EOS
+
+-if test -z "$unknown_sizeof_void_p"; then
+- cat >> $outfile<<____EOS
+-
+-#define LT_POINTER_TO_INT(p) ((int) ${ptoi_cast} (p))
+-____EOS
+- else
+- echo "#error SIZEOF_VOID_P unknown"
+- fi
+-
+ cat >> $outfile<<____EOS
+
+ #endif /* __LT_CONFIG_H__ */
+@@ -456,21 +447,6 @@
+ lt_inline="\$lt_inline
+ #define LT_HAVE__INLINE__ 1"
+ fi
+-
+- case $ac_cv_sizeof_void_p in
+- $ac_cv_sizeof_int)
+- ptoi_cast=''
+- ;;
+- $ac_cv_sizeof_long)
+- ptoi_cast='(long)'
+- ;;
+- $ac_cv_sizeof_long_long)
+- ptoi_cast='(long long)'
+- ;;
+- *)
+- unknown_sizeof_void_p=yes
+- ;;
+- esac
+ ])
+
+ AC_CONFIG_FILES([
+--- a/liblangtag/lt-tag.c
++++ b/liblangtag/lt-tag.c
+@@ -197,7 +197,7 @@
+ _lt_tag_variant_compare(const lt_pointer_t a,
+ const lt_pointer_t b)
+ {
+- return LT_POINTER_TO_INT (a) - LT_POINTER_TO_INT (b);
++ return a != b;
+ }
+
+ #define DEFUNC_TAG_FREE(__func__) \
diff --git a/debian/patches/series b/debian/patches/series
index 80125ef..d32d83f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
no_encoding.diff
pthread.diff
+LT_POINTER_TO_INT.diff
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openoffice/liblangtag.git
More information about the Pkg-openoffice-commits
mailing list