<pre style='margin:0'>
Rainer Müller (raimue) pushed a commit to branch stellarium_0.15.0
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2c08d2ecf4c32cd932043bfe4e27a05f246cc26b">https://github.com/macports/macports-ports/commit/2c08d2ecf4c32cd932043bfe4e27a05f246cc26b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 2c08d2ecf4c32cd932043bfe4e27a05f246cc26b
</span>Author: David B. Evans <devans@macports.org>
AuthorDate: Sat Nov 5 18:51:12 2016 -0700
<span style='display:block; white-space:pre;color:#404040;'> gstreamer1: patch to fix build on 10.5 and earlier.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes https://trac.macports.org/ticket/52822
</span>---
gnome/gstreamer1/Portfile | 2 +
.../patch-gstreamer1-darwin-numcpufix-sysctl.diff | 69 ++++++++++++++++++++++
2 files changed, 71 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gstreamer1/Portfile b/gnome/gstreamer1/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a289165..6beb5c6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gnome/gstreamer1/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gstreamer1/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,6 +43,8 @@ gobject_introspection yes
</span>
conflicts_build check
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-gstreamer1-darwin-numcpufix-sysctl.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # global_symbol_pipe gets set to "" on Leopard
use_autoreconf yes
autoreconf.args -fvi
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gstreamer1/files/patch-gstreamer1-darwin-numcpufix-sysctl.diff b/gnome/gstreamer1/files/patch-gstreamer1-darwin-numcpufix-sysctl.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..71a1170
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gstreamer1/files/patch-gstreamer1-darwin-numcpufix-sysctl.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,69 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- plugins/tracers/gstrusage.c.orig 2016-11-05 11:23:32.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ plugins/tracers/gstrusage.c 2016-11-05 11:25:40.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -39,6 +39,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/resource.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifndef __MAC_OS_X_VERSION_MIN_REQUIRED
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <Availability.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <AvailabilityMacros.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <sys/types.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <sys/sysctl.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GST_DEBUG_CATEGORY_STATIC (gst_rusage_debug);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define GST_CAT_DEFAULT gst_rusage_debug
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -274,6 +290,32 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gobject_class->finalize = gst_rusage_tracer_finalize;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifndef __MAC_OS_X_VERSION_MIN_REQUIRED
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <Availability.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <AvailabilityMacros.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ int nm[2];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ size_t len = 4;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ uint32_t count;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ nm[0] = CTL_HW; nm[1] = HW_AVAILCPU;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ sysctl(nm, 2, &count, &len, NULL, 0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (count < 1) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ nm[1] = HW_NCPU;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ sysctl(nm, 2, &count, &len, NULL, 0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (count < 1) { count = 1; }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ num_cpus = (glong)count;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ((num_cpus = sysconf (_SC_NPROCESSORS_ONLN)) == -1) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GST_WARNING ("failed to get number of cpus online");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ((num_cpus = sysconf (_SC_NPROCESSORS_CONF)) == -1) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -281,6 +323,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ num_cpus = 1;
</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;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GST_DEBUG ("rusage: num_cpus=%ld", num_cpus);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* announce trace formats */
</span></pre><pre style='margin:0'>
</pre>