pkgsrc-Changes archive

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

CVS commit: pkgsrc/inputmethod/fcitx5



Module Name:    pkgsrc
Committed By:   tnn
Date:           Sun Mar 27 12:45:04 UTC 2022

Modified Files:
        pkgsrc/inputmethod/fcitx5: distinfo
Added Files:
        pkgsrc/inputmethod/fcitx5/patches:
            patch-src_lib_fcitx-utils_endian__p.h
            patch-src_lib_fcitx-utils_library.cpp

Log Message:
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?


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/inputmethod/fcitx5/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/inputmethod/fcitx5/patches/patch-src_lib_fcitx-utils_endian__p.h \
    pkgsrc/inputmethod/fcitx5/patches/patch-src_lib_fcitx-utils_library.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/inputmethod/fcitx5/distinfo
diff -u pkgsrc/inputmethod/fcitx5/distinfo:1.5 pkgsrc/inputmethod/fcitx5/distinfo:1.6
--- pkgsrc/inputmethod/fcitx5/distinfo:1.5      Tue Oct 26 10:49:31 2021
+++ pkgsrc/inputmethod/fcitx5/distinfo  Sun Mar 27 12:45:04 2022
@@ -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 @@ BLAKE2s (fcitx5-5.0.5.tar.xz) = c4265cf8
 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

Added files:

Index: pkgsrc/inputmethod/fcitx5/patches/patch-src_lib_fcitx-utils_endian__p.h
diff -u /dev/null pkgsrc/inputmethod/fcitx5/patches/patch-src_lib_fcitx-utils_endian__p.h:1.1
--- /dev/null   Sun Mar 27 12:45:04 2022
+++ pkgsrc/inputmethod/fcitx5/patches/patch-src_lib_fcitx-utils_endian__p.h     Sun Mar 27 12:45:04 2022
@@ -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__)
+ 
Index: pkgsrc/inputmethod/fcitx5/patches/patch-src_lib_fcitx-utils_library.cpp
diff -u /dev/null pkgsrc/inputmethod/fcitx5/patches/patch-src_lib_fcitx-utils_library.cpp:1.1
--- /dev/null   Sun Mar 27 12:45:04 2022
+++ pkgsrc/inputmethod/fcitx5/patches/patch-src_lib_fcitx-utils_library.cpp     Sun Mar 27 12:45:04 2022
@@ -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