<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fd0b4c82f50698b21054caf383a72ac7693e9591">https://github.com/macports/macports-ports/commit/fd0b4c82f50698b21054caf383a72ac7693e9591</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 fd0b4c82f50 nut: patch libtool bug, use add_users
</span>fd0b4c82f50 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fd0b4c82f50698b21054caf383a72ac7693e9591
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Tue Dec 6 11:41:23 2022 +1100
<span style='display:block; white-space:pre;color:#404040;'> nut: patch libtool bug, use add_users
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/61598
</span>---
sysutils/nut/Portfile | 20 +++++++++++++-------
sysutils/nut/files/dynamic_lookup-11.patch | 25 +++++++++++++++++++++++++
2 files changed, 38 insertions(+), 7 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/nut/Portfile b/sysutils/nut/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f78e87eee15..d8112cdbd74 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/nut/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/nut/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,7 +9,6 @@ legacysupport.newest_darwin_requires_legacy 10
</span> name nut
version 2.7.4
categories sysutils
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> maintainers nomaintainer
# The files in scripts/perl and scripts/python are under other licenses
# but we don't use them in this port.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,8 +35,11 @@ depends_lib port:libtool \
</span> port:tcp_wrappers \
port:nss
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles dynamic_lookup-11.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> set userName _nut
set groupName _nut
<span style='display:block; white-space:pre;background:#e0ffe0;'>+add_users ${userName} group=${groupName}
</span> set stateDir ${prefix}/var/db/ups
destroot.keepdirs ${destroot}${stateDir}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -52,16 +54,20 @@ configure.args --with-serial=no \
</span> --with-statepath=${stateDir} \
--with-pidpath=${prefix}/var/run \
--with-hotplug-dir=${prefix}/etc/nut/hotplug \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-udev-dir=${prefix}/etc/nut/udev \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-udev-dir=${prefix}/etc/nut/udev
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[getuid] == 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span> --with-user=${userName} \
--with-group=${groupName}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
pre-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- addgroup ${groupName}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set gid [existsgroup ${groupName}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- adduser ${userName} gid=${gid}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -d -m 0770 -g ${groupName} -o ${userName} ${destroot}${stateDir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[getuid] == 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set userargs [list -g ${groupName} -o ${userName}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set userargs [list]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 0770 {*}${userargs} ${destroot}${stateDir}
</span> }
## variant snmp {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/nut/files/dynamic_lookup-11.patch b/sysutils/nut/files/dynamic_lookup-11.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c4332c9353a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/nut/files/dynamic_lookup-11.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,25 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Use correct flags to allow undefined symbols on macOS 11+.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=9e8c882517082fe5755f2524d23efb02f1522490
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig 2016-03-09 19:51:12.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2022-12-06 11:28:17.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -15098,16 +15098,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ darwin1.*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- darwin*) # darwin 5.x on
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # if running on 10.5 or later, the deployment target defaults
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # to the OS version, if on x86, and 10.4, the deployment
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # target defaults to 10.4. Don't you love it?
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 10.[012]*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ darwin*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ case $MACOSX_DEPLOYMENT_TARGET,$host in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ 10.[012],*|,*powerpc*-darwin[5-8]*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 10.*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ *)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ esac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ;;
</span></pre><pre style='margin:0'>
</pre>