<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/3a44daacbc5f67cc1b95835810f04e3868a5a973">https://github.com/macports/macports-ports/commit/3a44daacbc5f67cc1b95835810f04e3868a5a973</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 3a44daacbc5 libdv: Fix implicit declaration of function
</span>3a44daacbc5 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 3a44daacbc5f67cc1b95835810f04e3868a5a973
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Fri Nov 20 20:13:24 2020 -0600
<span style='display:block; white-space:pre;color:#404040;'> libdv: Fix implicit declaration of function
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Don't try to use sched_setscheduler on macOS where it doesn't exist.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/61580
</span>---
multimedia/libdv/Portfile | 11 +++---
multimedia/libdv/files/libdv-1.0.0-darwin.patch | 50 +++++++++++++++++++++++++
2 files changed, 56 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/libdv/Portfile b/multimedia/libdv/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 121c06f82d1..05d4dd0893e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/multimedia/libdv/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/libdv/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span>
name libdv
version 1.0.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories multimedia
license LGPL-2.1+
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -17,17 +18,17 @@ long_description The Quasar DV codec (libdv) is a software codec for DV video
</span> video: IEC 61834 and SMPTE 314M.
homepage http://libdv.sourceforge.net
<span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites sourceforge
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites sourceforge:project/${name}/${name}/${version}
</span>
checksums rmd160 a8d3ae083340cec411d5294db7197ea72c8b3c4f \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 a305734033a9c25541a59e8dd1c254409953269ea7c710c39e540bd8853389ba
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 a305734033a9c25541a59e8dd1c254409953269ea7c710c39e540bd8853389ba \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 574565
</span>
depends_lib port:popt
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --mandir=${prefix}/share/man --disable-gtktest --disable-gtk --disable-sdltest
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles libdv-1.0.0-darwin.patch
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.ldflags-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "-flat_namespace -undefined suppress"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args --mandir=${prefix}/share/man --disable-gtktest --disable-gtk --disable-sdltest
</span>
platform darwin i386 {
configure.args-append --disable-asm
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/libdv/files/libdv-1.0.0-darwin.patch b/multimedia/libdv/files/libdv-1.0.0-darwin.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..39948186241
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/libdv/files/libdv-1.0.0-darwin.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,50 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Darwin lacks sched_setscheduler.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://sourceforge.net/p/libdv/patches/43/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.ac.orig 2006-08-06 16:38:30.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure.ac 2020-11-20 19:39:37.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -242,7 +242,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dnl Checks for library functions.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_FUNC_MMAP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-AC_CHECK_FUNCS(gettimeofday)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++AC_CHECK_FUNCS(gettimeofday sched_get_priority_max sched_setscheduler)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_SUBST(ac_aux_dir)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_SUBST(RPM_RELEASE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig 2006-09-25 15:11:47.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2020-11-20 19:39:37.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -22537,7 +22537,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rm -f conftest.mmap
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-for ac_func in gettimeofday
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++for ac_func in gettimeofday sched_get_priority_max sched_setscheduler
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ { echo "$as_me:$LINENO: checking for $ac_func" >&5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- config.h.in.orig 2006-09-25 15:11:46.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ config.h.in 2020-11-20 19:39:37.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -24,6 +24,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Define to 1 if you have the `gettimeofday' function. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef HAVE_GETTIMEOFDAY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++/* Define to 1 if you have the `sched_get_priority_max' function. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#undef HAVE_SCHED_GET_PRIORITY_MAX
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++/* Define to 1 if you have the `sched_setscheduler' function. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#undef HAVE_SCHED_SETSCHEDULER
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Define as 1 if you have gtk */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef HAVE_GTK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- encodedv/dvconnect.c.orig 2004-05-30 21:05:23.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ encodedv/dvconnect.c 2020-11-20 19:39:37.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -857,7 +857,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int rt_raisepri (int pri)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef _SC_PRIORITY_SCHEDULING
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(_SC_PRIORITY_SCHEDULING) && defined(HAVE_SCHED_GET_PRIORITY_MAX) && defined(HAVE_SCHED_SETSCHEDULER)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct sched_param scp;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /*
</span></pre><pre style='margin:0'>
</pre>