pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/qt4-libs qt4-libs: fix build on netbsd-current, wh...
details: https://anonhg.NetBSD.org/pkgsrc/rev/819309475dba
branches: trunk
changeset: 403561:819309475dba
user: maya <maya%pkgsrc.org@localhost>
date: Mon Oct 28 19:37:41 2019 +0000
description:
qt4-libs: fix build on netbsd-current, where the prototype of iconv
is no longer unusual. This mostly consists of making our local patches
only apply for older netbsd.
diffstat:
x11/qt4-libs/distinfo | 6 +++---
x11/qt4-libs/patches/patch-ao | 14 ++++++++------
x11/qt4-libs/patches/patch-ap | 18 ++++++++++++++----
3 files changed, 25 insertions(+), 13 deletions(-)
diffs (106 lines):
diff -r ca229c0fbaaf -r 819309475dba x11/qt4-libs/distinfo
--- a/x11/qt4-libs/distinfo Mon Oct 28 19:03:44 2019 +0000
+++ b/x11/qt4-libs/distinfo Mon Oct 28 19:37:41 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.115 2019/07/03 10:04:23 markd Exp $
+$NetBSD: distinfo,v 1.116 2019/10/28 19:37:41 maya Exp $
SHA1 (qt-everywhere-opensource-src-4.8.7.tar.gz) = 76aef40335c0701e5be7bb3a9101df5d22fe3666
RMD160 (qt-everywhere-opensource-src-4.8.7.tar.gz) = afb5e5a99388e6429faca59cb5000054feffd166
@@ -18,8 +18,8 @@
SHA1 (patch-al) = a215436a2df433e050fa48a7cc8238b5ef13b64d
SHA1 (patch-am) = 018a5982834737ca8ceb6460dc696b6e3a70ec54
SHA1 (patch-an) = 8aa6ceffb9acab4771d22b3184a1360227a81409
-SHA1 (patch-ao) = a63839ae22e0bf13ff40f5377df2bc36ca052d91
-SHA1 (patch-ap) = 86a2f5cce47607c8c453c63c6213d5efb48c8569
+SHA1 (patch-ao) = 981b506bdf5d9d21940880308318d6ac3f59742d
+SHA1 (patch-ap) = f18e8d0c70bfc31a91d1b8660513ece38646b79c
SHA1 (patch-aq) = 7533741c81086cd1992d3e96a47c28d9ade27cbc
SHA1 (patch-ar) = ba839210b42532b1797604722442841e43acbae1
SHA1 (patch-as) = b0962c535fc2e8da08bb78b9ebcb5cd678565058
diff -r ca229c0fbaaf -r 819309475dba x11/qt4-libs/patches/patch-ao
--- a/x11/qt4-libs/patches/patch-ao Mon Oct 28 19:03:44 2019 +0000
+++ b/x11/qt4-libs/patches/patch-ao Mon Oct 28 19:37:41 2019 +0000
@@ -1,4 +1,6 @@
-$NetBSD: patch-ao,v 1.10 2012/04/09 09:12:49 adam Exp $
+$NetBSD: patch-ao,v 1.11 2019/10/28 19:37:41 maya Exp $
+
+Fix build on netbsd, which has an unusual prototype for iconv
--- src/corelib/codecs/qiconvcodec.cpp.orig 2012-03-14 14:01:18.000000000 +0000
+++ src/corelib/codecs/qiconvcodec.cpp
@@ -7,7 +9,7 @@
#include <dlfcn.h>
+// for __DragonFly_version
-+#if defined(__DragonFly__)
++#if defined(__DragonFly__) || defined(__NetBSD__)
+#include <sys/param.h>
+#endif
+
@@ -33,7 +35,7 @@
size_t inBytesLeft = len;
// best case assumption, each byte is converted into one UTF-16 character, plus 2 bytes for the BOM
-#ifdef GNU_LIBICONV
-+#if defined(GNU_LIBICONV) || defined(__NetBSD__)
++#if defined(GNU_LIBICONV) || (defined(__NetBSD__) && __NetBSD_Version__ < 999001700)
// GNU doesn't disagree with POSIX :/
const char *inBytes = chars;
#else
@@ -42,7 +44,7 @@
size_t inBytesLeft = sizeof bom;
-#if defined(GNU_LIBICONV)
-+#if defined(GNU_LIBICONV) || defined(__NetBSD__)
++#if defined(GNU_LIBICONV) || (defined(__NetBSD__) && __NetBSD_Version__ < 999001700)
const char **inBytesPtr = const_cast<const char **>(&inBytes);
#else
char **inBytesPtr = &inBytes;
@@ -51,7 +53,7 @@
size_t inBytesLeft;
-#if defined(GNU_LIBICONV)
-+#if defined(GNU_LIBICONV) || defined(__NetBSD__)
++#if defined(GNU_LIBICONV) || (defined(__NetBSD__) && __NetBSD_Version__ < 999001700)
const char **inBytesPtr = const_cast<const char **>(&inBytes);
#else
char **inBytesPtr = &inBytes;
@@ -59,7 +61,7 @@
#endif
const char *codeset = empty_codeset;
cd = iconv_open(to ? to : codeset, from ? from : codeset);
-+#elif defined(__NetBSD)
++#elif defined(__NetBSD__) && __NetBSD_Version__ < 999001700
+ const char *codeset = 0;
#else
char *codeset = 0;
diff -r ca229c0fbaaf -r 819309475dba x11/qt4-libs/patches/patch-ap
--- a/x11/qt4-libs/patches/patch-ap Mon Oct 28 19:03:44 2019 +0000
+++ b/x11/qt4-libs/patches/patch-ap Mon Oct 28 19:37:41 2019 +0000
@@ -1,12 +1,22 @@
-$NetBSD: patch-ap,v 1.2 2009/10/11 09:14:52 adam Exp $
+$NetBSD: patch-ap,v 1.3 2019/10/28 19:37:41 maya Exp $
+
+Support NetBSD iconv variant (pre-9.99.17 and newer)
---- config.tests/unix/iconv/iconv.cpp.orig 2009-09-29 13:01:31.000000000 +0200
+--- config.tests/unix/iconv/iconv.cpp.orig 2015-05-07 14:14:42.000000000 +0000
+++ config.tests/unix/iconv/iconv.cpp
-@@ -48,7 +48,11 @@ int main(int, char **)
+ #if defined(__sgi)
+ #error "iconv not supported on IRIX"
+ #else
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#endif
+ #include <iconv.h>
+
+ int main(int, char **)
{
iconv_t x = iconv_open("", "");
-+#if defined(__NetBSD__)
++#if defined(__NetBSD__) && __NetBSD_Version__ < 999001700
+ const char *inp;
+#else
char *inp;
Home |
Main Index |
Thread Index |
Old Index