pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/gnustep-objc gnustep-objc: Fix build support wit...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a9593ad80f37
branches:  trunk
changeset: 372529:a9593ad80f37
user:      tm <tm%pkgsrc.org@localhost>
date:      Wed Jan 26 15:57:54 2022 +0000

description:
gnustep-objc: Fix build support with gcc >= 10

In gcc>=10 SEL is implemented as an build-in typedef, so an workaround
is required to build with it.

diffstat:

 devel/gnustep-objc/distinfo                     |   3 ++-
 devel/gnustep-objc/patches/patch-objc_runtime.h |  18 ++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 43f35e6e6285 -r a9593ad80f37 devel/gnustep-objc/distinfo
--- a/devel/gnustep-objc/distinfo       Wed Jan 26 15:52:51 2022 +0000
+++ b/devel/gnustep-objc/distinfo       Wed Jan 26 15:57:54 2022 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.16 2021/10/26 10:14:44 nia Exp $
+$NetBSD: distinfo,v 1.17 2022/01/26 15:57:54 tm Exp $
 
 BLAKE2s (libobjc2-1.8.1.tar.gz) = 2a19ab2491baa156f7cef635053080dc4bf3eae356f1156a79edb98ebd3c0434
 SHA512 (libobjc2-1.8.1.tar.gz) = 518f36e96a82a076fc67fe384226bd97310cd10a53c7b0951db9f3658aa534582b245d5cb97956fe91c38338c3fc8f1e569dd8af36f6d12e32bf1460251d02eb
 Size (libobjc2-1.8.1.tar.gz) = 173635 bytes
 SHA1 (patch-GNUmakefile) = 7e6b8f09599c2b568346b392cd5d7654b1c747a4
+SHA1 (patch-objc_runtime.h) = cc8aaeb1352a403abb918aaf5a12d86fdcea383f
 SHA1 (patch-objcxx_eh.cc) = 8804d075cb46380165e40af5f4abd5d8d413b92a
 SHA1 (patch-objcxx_eh.h) = 68a3709ed9d029e6ae4c7a6cc375678ee7c21b1e
diff -r 43f35e6e6285 -r a9593ad80f37 devel/gnustep-objc/patches/patch-objc_runtime.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gnustep-objc/patches/patch-objc_runtime.h   Wed Jan 26 15:57:54 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-objc_runtime.h,v 1.1 2022/01/26 15:57:54 tm Exp $
+
+In gcc>=10 SEL is implemented as an build-in typedef. Because it's
+required to use the typedef by gnustep-objc it's defined to overwrite
+it.
+
+--- objc/runtime.h.orig        2015-08-07 11:33:41.000000000 +0000
++++ objc/runtime.h
+@@ -68,6 +68,9 @@ typedef struct objc_ivar* Ivar;
+ #if !defined(__clang__) && !defined(__OBJC_RUNTIME_INTERNAL__)
+ typedef const struct objc_selector *SEL;
+ #else
++#if __GNUC__ >= 10
++#define SEL none
++#endif
+ typedef struct objc_selector *SEL;
+ #endif
+ 



Home | Main Index | Thread Index | Old Index