pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libowfat Fix macOS build with the 13.0 SDK, whic...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/572fa4e1b425
branches:  trunk
changeset: 387634:572fa4e1b425
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Nov 03 00:00:08 2022 +0000

description:
Fix macOS build with the 13.0 SDK, which has its own definition of
__deprecated__.

diffstat:

 devel/libowfat/distinfo                            |   5 +++--
 devel/libowfat/patches/patch-scan_scan__httpdate.c |  17 +++++++++++++++++
 devel/libowfat/patches/patch-scan_scan__iso8601.c  |  19 +++++++++++++++----
 3 files changed, 35 insertions(+), 6 deletions(-)

diffs (69 lines):

diff -r d4f5c9d64611 -r 572fa4e1b425 devel/libowfat/distinfo
--- a/devel/libowfat/distinfo   Wed Nov 02 22:54:39 2022 +0000
+++ b/devel/libowfat/distinfo   Thu Nov 03 00:00:08 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2022/01/23 13:30:32 schmonz Exp $
+$NetBSD: distinfo,v 1.13 2022/11/03 00:00:08 schmonz Exp $
 
 BLAKE2s (libowfat-0.32.tar.xz) = ea6f4e18d21d62e21293e1cd50a08482474e02e310f43c3e2bc758b544226eca
 SHA512 (libowfat-0.32.tar.xz) = c762a1aa27dfb30e2f6da67d1ad16da03d301b2e3cce33c83b69103183a6689a494c8cf8d7d4e26ad5b22130e4e0560d5f3ef6f44b14d706f10e2300ce11ff3b
@@ -8,7 +8,8 @@
 SHA1 (patch-io_iom__init.c) = 0a8a3ea1809c0661b5692b819b0f616eeb38a1d0
 SHA1 (patch-io_iom__wait.c) = c9d00bc6a42f901c9552f779de7fadeb75e713bc
 SHA1 (patch-mmap_mmap__readat.c) = 1c7ef7996491496fe943aa5f47213e3fcd46269e
-SHA1 (patch-scan_scan__iso8601.c) = 761d9941e8310d2c56020cee51261d0378530b56
+SHA1 (patch-scan_scan__httpdate.c) = e6e4ddfc82796ac57cc2962d387b96534f8c445b
+SHA1 (patch-scan_scan__iso8601.c) = 97690d6dd13f60548a29b3b175dfa1aaf6d0c48e
 SHA1 (patch-socket_socket__quickack.c) = 85271060a9c0026c264a1aea3006b3d444ddcb8b
 SHA1 (patch-tai_tai__now__libowfat.3) = cd51600b7c0da29ccca3c649039f8fe07f7276c9
 SHA1 (patch-tai_tai__pack__libowfat.3) = 8dd463a76d289773827793538373a7a029617a0a
diff -r d4f5c9d64611 -r 572fa4e1b425 devel/libowfat/patches/patch-scan_scan__httpdate.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libowfat/patches/patch-scan_scan__httpdate.c        Thu Nov 03 00:00:08 2022 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-scan_scan__httpdate.c,v 1.1 2022/11/03 00:00:08 schmonz Exp $
+
+Fix macOS build with the 13.0 SDK, which has its own definition of
+__deprecated__.
+
+--- scan/scan_httpdate.c.orig  2016-04-27 14:07:50
++++ scan/scan_httpdate.c
+@@ -4,6 +4,9 @@
+ #include "byte.h"
+ #include "case.h"
+ #include <time.h>
++#ifdef __APPLE__
++#undef __deprecated__
++#endif
+ #include <stdlib.h>
+ 
+ #ifdef sgi
diff -r d4f5c9d64611 -r 572fa4e1b425 devel/libowfat/patches/patch-scan_scan__iso8601.c
--- a/devel/libowfat/patches/patch-scan_scan__iso8601.c Wed Nov 02 22:54:39 2022 +0000
+++ b/devel/libowfat/patches/patch-scan_scan__iso8601.c Thu Nov 03 00:00:08 2022 +0000
@@ -1,10 +1,21 @@
-$NetBSD: patch-scan_scan__iso8601.c,v 1.1 2020/06/26 19:21:52 schmonz Exp $
+$NetBSD: patch-scan_scan__iso8601.c,v 1.2 2022/11/03 00:00:08 schmonz Exp $
 
-Fix Illumos build.
+Fix Illumos build. Then fix macOS build with the 13.0 SDK, which has its
+own definition of __deprecated__.
 
---- scan/scan_iso8601.c.orig   2016-04-27 14:07:50.000000000 +0000
+--- scan/scan_iso8601.c.orig   2016-04-27 14:07:50
 +++ scan/scan_iso8601.c
-@@ -44,7 +44,7 @@ size_t scan_iso8601(const char* in,struc
+@@ -4,6 +4,9 @@
+ #include "byte.h"
+ #include "case.h"
+ #include <time.h>
++#ifdef __APPLE__
++#undef __deprecated__
++#endif
+ #include <stdlib.h>
+ 
+ #ifdef sgi
+@@ -44,7 +47,7 @@ size_t scan_iso8601(const char* in,struct timespec* t)
      }
    }
  



Home | Main Index | Thread Index | Old Index