pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/gnustep-objc



Module Name:    pkgsrc
Committed By:   tm
Date:           Wed Jan 26 15:57:54 UTC 2022

Modified Files:
        pkgsrc/devel/gnustep-objc: distinfo
Added Files:
        pkgsrc/devel/gnustep-objc/patches: patch-objc_runtime.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/devel/gnustep-objc/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/gnustep-objc/patches/patch-objc_runtime.h

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

Modified files:

Index: pkgsrc/devel/gnustep-objc/distinfo
diff -u pkgsrc/devel/gnustep-objc/distinfo:1.16 pkgsrc/devel/gnustep-objc/distinfo:1.17
--- pkgsrc/devel/gnustep-objc/distinfo:1.16     Tue Oct 26 10:14:44 2021
+++ pkgsrc/devel/gnustep-objc/distinfo  Wed Jan 26 15:57:54 2022
@@ -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

Added files:

Index: pkgsrc/devel/gnustep-objc/patches/patch-objc_runtime.h
diff -u /dev/null pkgsrc/devel/gnustep-objc/patches/patch-objc_runtime.h:1.1
--- /dev/null   Wed Jan 26 15:57:54 2022
+++ pkgsrc/devel/gnustep-objc/patches/patch-objc_runtime.h      Wed Jan 26 15:57:54 2022
@@ -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