pkgsrc-Users archive

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

audio/flac build broken on NetBSD 7.0_STABLE



   It seems NetBSD 7 doesn't have CLOCK_PROCESS_CPUTIME_ID. The following
allows it to bukd for me.

					Gary Duzan


Index: distinfo
===================================================================
RCS file: /usr/netbsd-cvs/pkgsrc/audio/flac/distinfo,v
retrieving revision 1.26
diff -b -u -p -r1.26 distinfo
--- distinfo	5 Jan 2017 09:16:41 -0000	1.26
+++ distinfo	6 Jan 2017 18:00:17 -0000
@@ -5,4 +5,5 @@ RMD160 (flac/flac-1.3.2.tar.xz) = fd25a0
 SHA512 (flac/flac-1.3.2.tar.xz) = 63910e8ebbe508316d446ffc9eb6d02efbd5f47d29d2ea7864da9371843c8e671854db6e89ba043fe08aef1845b8ece70db80f1cce853f591ca30d56ef7c3a15
 Size (flac/flac-1.3.2.tar.xz) = 776192 bytes
 SHA1 (patch-configure) = 74e3e944f70ba6d1bf9d94fab1d9174a3dab04bb
+SHA1 (patch-microbench_util.c) = 0a3417671421d5930b85d37aeac30de1c4d38c8c
 SHA1 (patch-strip_non_asm_libtool_args.sh) = f90f09fbf6a0fa938693a9d52316d3a4105129e5
Index: patches/patch-microbench_util.c
===================================================================
RCS file: patches/patch-microbench_util.c
diff -N patches/patch-microbench_util.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-microbench_util.c	6 Jan 2017 18:00:17 -0000
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- microbench/util.c.orig	2017-01-06 13:31:00.000000000 +0000
++++ microbench/util.c
+@@ -95,7 +95,7 @@ benchmark_function (void (*testfunc) (vo
+ 	return counter_diff (&start, &end) / count ;
+ } /* benchmark_function */
+ 
+-#elif defined HAVE_CLOCK_GETTIME
++#elif defined HAVE_CLOCK_GETTIME && defined CLOCK_PROCESS_CPUTIME_ID
+ 
+ #include <time.h>
+ #include <sys/time.h>


Home | Main Index | Thread Index | Old Index