pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/libvisual libvisual: comment out HAVE_SCHED on m...
details: https://anonhg.NetBSD.org/pkgsrc/rev/99c62d1fd76d
branches: trunk
changeset: 342640:99c62d1fd76d
user: maya <maya%pkgsrc.org@localhost>
date: Wed Oct 23 00:13:40 2019 +0000
description:
libvisual: comment out HAVE_SCHED on macos. it is missing the optional
sched_setscheduler needed by this package.
XXX would be nicer to have done this via an upstream-friendly
config test.
Omitting PKGREVISION bump since it's a compile fix.
>From Clement Bouvier in PR pkg/54416.
diffstat:
audio/libvisual/distinfo | 3 ++-
audio/libvisual/patches/patch-libvisual_lv__os.c | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletions(-)
diffs (42 lines):
diff -r ab005d26cc94 -r 99c62d1fd76d audio/libvisual/distinfo
--- a/audio/libvisual/distinfo Tue Oct 22 22:21:39 2019 +0000
+++ b/audio/libvisual/distinfo Wed Oct 23 00:13:40 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2015/11/03 01:12:39 agc Exp $
+$NetBSD: distinfo,v 1.15 2019/10/23 00:13:40 maya Exp $
SHA1 (libvisual-0.4.0.tar.gz) = bd21d621f1d54134c26138e19eaae46c5aeaec00
RMD160 (libvisual-0.4.0.tar.gz) = df4fda944e84417def2817f248f587dea5b2d8f1
@@ -9,4 +9,5 @@
SHA1 (patch-ad) = e7b2493cf5880cea7497a1d8d6fb1ce4f856ba6d
SHA1 (patch-ae) = 72affdd9a1302a16efe5f4ecaafbc37061e4db0c
SHA1 (patch-libvisual_lv__defines.h) = 9b14140411ae426226318a0ccdbe64d905b7710c
+SHA1 (patch-libvisual_lv__os.c) = 9bc88cf74bab4a4fb2b47ba122e0a5512149b9f2
SHA1 (patch-libvisual_lv__types.h) = 3f2baa4861b50d3359cd9cdfa75898dfc6b5895d
diff -r ab005d26cc94 -r 99c62d1fd76d audio/libvisual/patches/patch-libvisual_lv__os.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/libvisual/patches/patch-libvisual_lv__os.c Wed Oct 23 00:13:40 2019 +0000
@@ -0,0 +1,23 @@
+A
+$NetBSD: patch-libvisual_lv__os.c,v 1.1 2019/10/23 00:13:40 maya Exp $
+macos ox has header sched.h but does not provide the realtime function:
+
+int sched_setscheduler(pid_t, int, const struct sched_param *);
+(optional according to open group).
+
+so it is necessary to force real time defined functions in the package are not supported on apple system.
+
+(PR pkg/54416)
+
+--- libvisual/lv_os.c.orig 2006-01-26 15:13:37.000000000 +0000
++++ libvisual/lv_os.c
+@@ -31,7 +31,9 @@
+ #ifdef HAVE_SCHED_H
+ # include <sched.h>
+ # include <sys/types.h>
++#ifndef __APPLE__
+ # define HAVE_SCHED 1
++#endif
+ #elif defined HAVE_SYS_SCHED_H
+ # include <sys/sched.h>
+ # include <sys/types.h>
Home |
Main Index |
Thread Index |
Old Index