pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/xapian-omega Avoid conflicting with system bs...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d15a858139eb
branches:  trunk
changeset: 330989:d15a858139eb
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sun Mar 10 13:21:05 2019 +0000

description:
Avoid conflicting with system bswap32(). Use SUBST_VARS to mollify pkglint.

diffstat:

 textproc/xapian-omega/Makefile               |   4 +-
 textproc/xapian-omega/distinfo               |   3 +-
 textproc/xapian-omega/patches/patch-values.h |  33 ++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+), 3 deletions(-)

diffs (69 lines):

diff -r 35196710513f -r d15a858139eb textproc/xapian-omega/Makefile
--- a/textproc/xapian-omega/Makefile    Sun Mar 10 12:41:20 2019 +0000
+++ b/textproc/xapian-omega/Makefile    Sun Mar 10 13:21:05 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2018/08/26 13:26:12 schmonz Exp $
+# $NetBSD: Makefile,v 1.40 2019/03/10 13:21:05 schmonz Exp $
 
 .include "../../textproc/xapian/Makefile.common"
 
@@ -17,7 +17,7 @@
 SUBST_CLASSES+=                files
 SUBST_STAGE.files=     do-configure
 SUBST_FILES.files=     omega.conf
-SUBST_SED.files=       -e "s|@VARBASE@|${VARBASE}|g"
+SUBST_VARS.files=      VARBASE
 SUBST_MESSAGE.files=   Fixing configuration files.
 
 OWN_DIRS+=             ${VARBASE}/log/${PKGBASE}
diff -r 35196710513f -r d15a858139eb textproc/xapian-omega/distinfo
--- a/textproc/xapian-omega/distinfo    Sun Mar 10 12:41:20 2019 +0000
+++ b/textproc/xapian-omega/distinfo    Sun Mar 10 13:21:05 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.28 2019/03/04 01:38:10 schmonz Exp $
+$NetBSD: distinfo,v 1.29 2019/03/10 13:21:05 schmonz Exp $
 
 SHA1 (xapian-omega-1.4.11.tar.xz) = c85d6bbd53b92143d24ee80757bd38bda31ee926
 RMD160 (xapian-omega-1.4.11.tar.xz) = 9952b6b5c3825bba6abead3c82c54f436ec292a4
@@ -6,3 +6,4 @@
 Size (xapian-omega-1.4.11.tar.xz) = 533596 bytes
 SHA1 (patch-Makefile.in) = eea809d9403820e86478d939a2dad4c67358ebf5
 SHA1 (patch-omega.conf) = f1e941dac326de7005cad0a5a4a2848e401855c4
+SHA1 (patch-values.h) = b3758856f5a34c47e4247d8076fbbdc1e65305e2
diff -r 35196710513f -r d15a858139eb textproc/xapian-omega/patches/patch-values.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/xapian-omega/patches/patch-values.h      Sun Mar 10 13:21:05 2019 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-values.h,v 1.1 2019/03/10 13:21:05 schmonz Exp $
+
+Avoid conflicting with system bswap32().
+
+--- values.h.orig      2019-03-02 01:45:31.000000000 +0000
++++ values.h
+@@ -38,7 +38,7 @@ enum value_slot {
+ };
+ 
+ #ifndef WORDS_BIGENDIAN
+-inline std::uint32_t bswap32(std::uint32_t v) {
++inline std::uint32_t xapian_bswap32(std::uint32_t v) {
+ # if HAVE_DECL___BUILTIN_BSWAP32
+     return __builtin_bswap32(v);
+ # elif HAVE_DECL__BYTESWAP_ULONG
+@@ -55,7 +55,7 @@ inline std::uint32_t binary_string_to_in
+     std::uint32_t v;
+     std::memcpy(&v, s.data(), 4);
+ #ifndef WORDS_BIGENDIAN
+-    v = bswap32(v);
++    v = xapian_bswap32(v);
+ #endif
+     return v;
+ }
+@@ -63,7 +63,7 @@ inline std::uint32_t binary_string_to_in
+ inline std::string int_to_binary_string(std::uint32_t v)
+ {
+ #ifndef WORDS_BIGENDIAN
+-    v = bswap32(v);
++    v = xapian_bswap32(v);
+ #endif
+     return std::string(reinterpret_cast<const char*>(&v), 4);
+ }



Home | Main Index | Thread Index | Old Index