pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/inputmethod/fcitx5 fcitx5: fix build on SunOS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/696945ed3e04
branches:  trunk
changeset: 375809:696945ed3e04
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Mar 27 12:45:04 2022 +0000

description:
fcitx5: fix build on SunOS

XXX it still fails in Joyent's bulk builds due to missing libuuid but
I could not reproduce on SmartOS?

diffstat:

 inputmethod/fcitx5/distinfo                                      |   4 +-
 inputmethod/fcitx5/patches/patch-src_lib_fcitx-utils_endian__p.h |  15 ++++++
 inputmethod/fcitx5/patches/patch-src_lib_fcitx-utils_library.cpp |  24 ++++++++++
 3 files changed, 42 insertions(+), 1 deletions(-)

diffs (65 lines):

diff -r 6a1e41f90732 -r 696945ed3e04 inputmethod/fcitx5/distinfo
--- a/inputmethod/fcitx5/distinfo       Sun Mar 27 12:04:05 2022 +0000
+++ b/inputmethod/fcitx5/distinfo       Sun Mar 27 12:45:04 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 10:49:31 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/03/27 12:45:04 tnn Exp $
 
 BLAKE2s (en_dict-20121020.tar.gz) = 9945545f2402d0eb35bd46701e51f191da0b740854d0c8da11d7670aa1ad014f
 SHA512 (en_dict-20121020.tar.gz) = 8418bd02492bfd786c0fab93be4400ef027ec8e9fac02220cc1f653f5eb67f54573a6a84a15baba19bb34ab892745c87df16499d6304ea75009131e2ab3b97f2
@@ -7,6 +7,8 @@
 SHA512 (fcitx5-5.0.5.tar.xz) = 3bc1a51119c9ee0c62a7112b520f88bdc6afe10b6a7d61c97d4b7b69556716a15815b9523eb9aa566918217ad299285116a60a60978cd8297225e6f4b856785a
 Size (fcitx5-5.0.5.tar.xz) = 1294560 bytes
 SHA1 (patch-src_frontend_ibusfrontend_ibusfrontend.cpp) = 06d009f2d3977f5f72ca727a41e6aeb15aa257a2
+SHA1 (patch-src_lib_fcitx-utils_endian__p.h) = dfc1ec5fdfacc589b2b0755066e8d3bc22419eb4
+SHA1 (patch-src_lib_fcitx-utils_library.cpp) = 89f5a45336823057fcaedb0b3dac5b546e15c537
 SHA1 (patch-src_lib_fcitx-utils_misc.cpp) = 3f7b13bea6fba8d59935465b3ede3732b1571c26
 SHA1 (patch-src_modules_spell_dict_CMakeLists.txt) = 3bbb67be4209af3d0cc50687c1f1be2ab8757c66
 SHA1 (patch-test_testdbus.cpp) = e20ca569ec6e79a7565471ebccd5fa54de645462
diff -r 6a1e41f90732 -r 696945ed3e04 inputmethod/fcitx5/patches/patch-src_lib_fcitx-utils_endian__p.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/fcitx5/patches/patch-src_lib_fcitx-utils_endian__p.h  Sun Mar 27 12:45:04 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_lib_fcitx-utils_endian__p.h,v 1.1 2022/03/27 12:45:04 tnn Exp $
+
+Fix build on SunOS
+
+--- src/lib/fcitx-utils/endian_p.h.orig        2020-12-19 01:28:15.422710700 +0000
++++ src/lib/fcitx-utils/endian_p.h
+@@ -7,7 +7,7 @@
+ #ifndef _FCITX_UTILS_ENDIAN_P_H_
+ #define _FCITX_UTILS_ENDIAN_P_H_
+ 
+-#if defined(__linux__) || defined(__GLIBC__)
++#if defined(__linux__) || defined(__GLIBC__) || defined(__sun)
+ #include <endian.h>
+ #elif defined(__APPLE__)
+ 
diff -r 6a1e41f90732 -r 696945ed3e04 inputmethod/fcitx5/patches/patch-src_lib_fcitx-utils_library.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/fcitx5/patches/patch-src_lib_fcitx-utils_library.cpp  Sun Mar 27 12:45:04 2022 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_lib_fcitx-utils_library.cpp,v 1.1 2022/03/27 12:45:04 tnn Exp $
+
+Fix build on SunOS
+
+--- src/lib/fcitx-utils/library.cpp.orig       2020-08-06 00:46:06.006403400 +0000
++++ src/lib/fcitx-utils/library.cpp
+@@ -64,7 +64,7 @@ bool Library::load(Flags<fcitx::LibraryL
+         flag |= RTLD_GLOBAL;
+     }
+ 
+-#ifdef HAS_DLMOPEN
++#if defined(HAS_DLMOPEN) && defined(LM_ID_NEWLM)
+     if (hint & LibraryLoadHint::NewNameSpace) {
+         // allow dlopen self
+         d->handle_ = dlmopen(
+@@ -173,7 +173,7 @@ std::string Library::error() {
+ }
+ 
+ bool Library::isNewNamespaceSupported() {
+-#ifdef HAS_DLMOPEN
++#if defined(HAS_DLMOPEN) && defined(LM_ID_NEWLM)
+     return true;
+ #else
+     return false;



Home | Main Index | Thread Index | Old Index