pkgsrc-Changes archive

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

CVS commit: pkgsrc/audio/libvisual



Module Name:    pkgsrc
Committed By:   maya
Date:           Wed Oct 23 00:13:40 UTC 2019

Modified Files:
        pkgsrc/audio/libvisual: distinfo
Added Files:
        pkgsrc/audio/libvisual/patches: patch-libvisual_lv__os.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/audio/libvisual/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/audio/libvisual/patches/patch-libvisual_lv__os.c

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

Modified files:

Index: pkgsrc/audio/libvisual/distinfo
diff -u pkgsrc/audio/libvisual/distinfo:1.14 pkgsrc/audio/libvisual/distinfo:1.15
--- pkgsrc/audio/libvisual/distinfo:1.14        Tue Nov  3 01:12:39 2015
+++ pkgsrc/audio/libvisual/distinfo     Wed Oct 23 00:13:40 2019
@@ -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-ac) = ad124820a2a20550bf8518
 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

Added files:

Index: pkgsrc/audio/libvisual/patches/patch-libvisual_lv__os.c
diff -u /dev/null pkgsrc/audio/libvisual/patches/patch-libvisual_lv__os.c:1.1
--- /dev/null   Wed Oct 23 00:13:40 2019
+++ pkgsrc/audio/libvisual/patches/patch-libvisual_lv__os.c     Wed Oct 23 00:13:40 2019
@@ -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