pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/cups-base print/cups-base: avoid duplicate defin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a482c17258bb
branches:  trunk
changeset: 446326:a482c17258bb
user:      dbj <dbj%pkgsrc.org@localhost>
date:      Sat Feb 06 15:22:58 2021 +0000

description:
print/cups-base: avoid duplicate definitions of clock_gettime with Darwin SDK
building against a newer SDK while setting an earlier -macosx-version-min
value can create a conflicting function definition.  This tweak avoids
that conflict while allowing an older compat definition to exist.

diffstat:

 print/cups-base/distinfo                    |  4 ++--
 print/cups-base/patches/patch-cups_thread.c |  9 +++++----
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (44 lines):

diff -r d2685d13e685 -r a482c17258bb print/cups-base/distinfo
--- a/print/cups-base/distinfo  Sat Feb 06 15:21:49 2021 +0000
+++ b/print/cups-base/distinfo  Sat Feb 06 15:22:58 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.25 2021/01/04 14:32:17 prlw1 Exp $
+$NetBSD: distinfo,v 1.26 2021/02/06 15:22:58 dbj Exp $
 
 SHA1 (cups-2.3.3op1-source.tar.gz) = a4cdab174881d4e6899fbbef637508bed10c5dc9
 RMD160 (cups-2.3.3op1-source.tar.gz) = 6dab18506dfac295c16e4341eb6257f3c01d951e
@@ -19,7 +19,7 @@
 SHA1 (patch-config-scripts_cups-libtool.m4) = d255bda2b740a04167e20be1662e3b9c242ed8f2
 SHA1 (patch-cups-tls.c) = b02bc528b6d551283373f271529d6f1956e1c7df
 SHA1 (patch-cups_http-addrlist.c) = aa2524ee1c11450cfa3a46b1aa34c12417322241
-SHA1 (patch-cups_thread.c) = 7ffb9a5835f345b29ad0cc9e253bb1d7ead9a399
+SHA1 (patch-cups_thread.c) = 453f8bd9e13b7b824cc7add75ea9ef49b8e0c991
 SHA1 (patch-doc-help-man-cups-files.conf.html) = c26754104788eb619e69e49d6d51bf84ab047876
 SHA1 (patch-man-cups-files.conf.man.in) = 51c06d39e20bf8c39c784fec1f32f6c8100cf821
 SHA1 (patch-scheduler-conf.c) = 1e3e116b6a0b5696656afe259ed48f6274ff6b57
diff -r d2685d13e685 -r a482c17258bb print/cups-base/patches/patch-cups_thread.c
--- a/print/cups-base/patches/patch-cups_thread.c       Sat Feb 06 15:21:49 2021 +0000
+++ b/print/cups-base/patches/patch-cups_thread.c       Sat Feb 06 15:22:58 2021 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-cups_thread.c,v 1.2 2020/05/26 08:36:56 triaxx Exp $
+$NetBSD: patch-cups_thread.c,v 1.3 2021/02/06 15:22:58 dbj Exp $
 
 Patch for macOS Sierra and before.
 
---- cups/thread.c.orig 2018-06-05 16:06:54.000000000 +0000
-+++ cups/thread.c
-@@ -14,6 +14,26 @@
+--- cups/thread.c.orig 2020-04-27 11:04:29.000000000 -0700
++++ cups/thread.c      2020-12-05 18:07:53.000000000 -0800
+@@ -14,6 +14,27 @@
  #include "cups-private.h"
  #include "thread-private.h"
  
@@ -14,6 +14,7 @@
 +#define CLOCK_REALTIME 0
 +#define CLOCK_MONOTONIC 0
 +#endif
++#define clock_gettime cups_thread_static_clock_gettime
 +static int
 +clock_gettime(int clk_id, struct timespec *t){
 +    mach_timebase_info_data_t timebase;



Home | Main Index | Thread Index | Old Index