<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ab22e2b1a06650553d4f1a31029b40c9d075e9cb">https://github.com/macports/macports-ports/commit/ab22e2b1a06650553d4f1a31029b40c9d075e9cb</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 ab22e2b1a06 libtextstyle: fix build on Tiger
</span>ab22e2b1a06 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit ab22e2b1a06650553d4f1a31029b40c9d075e9cb
</span>Author: Evan Miller <emmiller@gmail.com>
AuthorDate: Wed Dec 1 23:38:57 2021 -0500
<span style='display:block; white-space:pre;color:#404040;'> libtextstyle: fix build on Tiger
</span>---
devel/gettext/Portfile | 2 +
.../gettext/files/patch-libtextstyle-libproc.diff | 148 +++++++++++++++++++++
2 files changed, 150 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/gettext/Portfile b/devel/gettext/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f70b29cfa9a..7533840eb81 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/gettext/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/gettext/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -90,6 +90,8 @@ subport libtextstyle {
</span>
depends_lib-append port:libiconv \
port:ncurses
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-libtextstyle-libproc.diff
</span> }
subport ${name}-runtime {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/gettext/files/patch-libtextstyle-libproc.diff b/devel/gettext/files/patch-libtextstyle-libproc.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..80f78613524
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/gettext/files/patch-libtextstyle-libproc.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,148 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/get_ppid_of.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/get_ppid_of.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -33,7 +33,19 @@
</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;'>+ #if defined __APPLE__ && defined __MACH__ /* Mac OS X */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# include <libproc.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++/* Get MAC_OS_X_VERSION_MIN_REQUIRED, MAC_OS_X_VERSION_MAX_ALLOWED.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ The version at runtime satisfies
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ MAC_OS_X_VERSION_MIN_REQUIRED <= version <= MAC_OS_X_VERSION_MAX_ALLOWED. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <AvailabilityMacros.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <libproc.h>
</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;'>++/* Mac OS X versions < 10.5 don't have this function. Therefore declare it as
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ weak, in order to avoid a runtime error when the binaries are run on these
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ older versions. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern int proc_pidinfo (int, int, uint64_t, void *, int) WEAK_IMPORT_ATTRIBUTE;
</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;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined _AIX /* AIX */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -226,24 +238,40 @@ get_ppid_of (pid_t pid)
</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;'>+ #if defined __APPLE__ && defined __MACH__ /* Mac OS X */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ /* Mac OS X >= 10.7 has PROC_PIDT_SHORTBSDINFO. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if defined PROC_PIDT_SHORTBSDINFO
</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;'>++ if (proc_pidinfo != NULL) /* at runtime Mac OS X >= 10.5 ? */
</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;'>++ struct proc_bsdshortinfo info;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# if defined PROC_PIDT_SHORTBSDINFO
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- struct proc_bsdshortinfo info;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (proc_pidinfo (pid, PROC_PIDT_SHORTBSDINFO, 0, &info, sizeof (info))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ == sizeof (info))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return info.pbsi_ppid;
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (proc_pidinfo (pid, PROC_PIDT_SHORTBSDINFO, 0, &info, sizeof (info))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- == sizeof (info))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return info.pbsi_ppid;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if MAC_OS_X_VERSION_MIN_REQUIRED < 1070
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ /* For older versions, use PROC_PIDTBSDINFO instead. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Note: The second part of 'struct proc_bsdinfo' differs in size between
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 32-bit and 64-bit environments, and the kernel of Mac OS X 10.5 knows
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ only about the 32-bit 'struct proc_bsdinfo'. Fortunately all the info
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ we need is in the first part, which is the same in 32-bit and 64-bit. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- struct proc_bsdinfo info;
</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;'>++ if (proc_pidinfo != NULL) /* at runtime Mac OS X >= 10.5 ? */
</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;'>++ struct proc_bsdinfo info;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (proc_pidinfo (pid, PROC_PIDTBSDINFO, 0, &info, 128) == 128)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return info.pbi_ppid;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (proc_pidinfo (pid, PROC_PIDTBSDINFO, 0, &info, 128) == 128)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return info.pbi_ppid;
</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;'>+
</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;'>+ #if defined _AIX /* AIX */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/get_progname_of.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/get_progname_of.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -41,7 +41,19 @@
</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;'>+ #if defined __APPLE__ && defined __MACH__ /* Mac OS X */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# include <libproc.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++/* Get MAC_OS_X_VERSION_MIN_REQUIRED, MAC_OS_X_VERSION_MAX_ALLOWED.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ The version at runtime satisfies
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ MAC_OS_X_VERSION_MIN_REQUIRED <= version <= MAC_OS_X_VERSION_MAX_ALLOWED. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <AvailabilityMacros.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <libproc.h>
</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;'>++/* Mac OS X versions < 10.5 don't have this function. Therefore declare it as
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ weak, in order to avoid a runtime error when the binaries are run on these
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ older versions. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++extern int proc_pidinfo (int, int, uint64_t, void *, int) WEAK_IMPORT_ATTRIBUTE;
</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;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined _AIX /* AIX */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -266,24 +278,40 @@ get_progname_of (pid_t pid)
</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;'>+ #if defined __APPLE__ && defined __MACH__ /* Mac OS X */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ /* Mac OS X >= 10.7 has PROC_PIDT_SHORTBSDINFO. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if defined PROC_PIDT_SHORTBSDINFO
</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;'>++ if (proc_pidinfo != NULL) /* at runtime Mac OS X >= 10.5 ? */
</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;'>++ struct proc_bsdshortinfo info;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# if defined PROC_PIDT_SHORTBSDINFO
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- struct proc_bsdshortinfo info;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (proc_pidinfo (pid, PROC_PIDT_SHORTBSDINFO, 0, &info, sizeof (info))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ == sizeof (info))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return strdup (info.pbsi_comm);
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (proc_pidinfo (pid, PROC_PIDT_SHORTBSDINFO, 0, &info, sizeof (info))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- == sizeof (info))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return strdup (info.pbsi_comm);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if MAC_OS_X_VERSION_MIN_REQUIRED < 1070
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ /* For older versions, use PROC_PIDTBSDINFO instead. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Note: The second part of 'struct proc_bsdinfo' differs in size between
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 32-bit and 64-bit environments, and the kernel of Mac OS X 10.5 knows
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ only about the 32-bit 'struct proc_bsdinfo'. Fortunately all the info
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ we need is in the first part, which is the same in 32-bit and 64-bit. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- struct proc_bsdinfo info;
</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;'>++ if (proc_pidinfo != NULL) /* at runtime Mac OS X >= 10.5 ? */
</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;'>++ struct proc_bsdinfo info;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (proc_pidinfo (pid, PROC_PIDTBSDINFO, 0, &info, 128) == 128)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return strdup (info.pbi_comm);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (proc_pidinfo (pid, PROC_PIDTBSDINFO, 0, &info, 128) == 128)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return strdup (info.pbi_comm);
</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;'>+
</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;'>+ #if defined _AIX /* AIX */
</span></pre><pre style='margin:0'>
</pre>