<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/562ff02a6f2f9cd4bdb66f19ca4e55825a7e57ad">https://github.com/macports/macports-ports/commit/562ff02a6f2f9cd4bdb66f19ca4e55825a7e57ad</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 562ff02a6f2 util-linux: Fix 32-bit universal builds
</span>562ff02a6f2 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 562ff02a6f2f9cd4bdb66f19ca4e55825a7e57ad
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Sun May 19 00:45:18 2024 -0700
<span style='display:block; white-space:pre;color:#404040;'> util-linux: Fix 32-bit universal builds
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The previous fix for 32-bit builds only took build_arch into account,
</span><span style='display:block; white-space:pre;color:#404040;'> which didn't fix, e.g., universal builds on x86_64. This version
</span><span style='display:block; white-space:pre;color:#404040;'> looks at all target architectures.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Since this only affects previously broken builds, no revbump is
</span><span style='display:block; white-space:pre;color:#404040;'> necessary.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> TESTED:
</span><span style='display:block; white-space:pre;color:#404040;'> Tested on 10.4-10.5 ppc, 10.5-10.6 ppc (i386 Rosetta), 10.4-10.6 i386,
</span><span style='display:block; white-space:pre;color:#404040;'> 10.4-12.x x86_64, and 11.x-14.x arm64.
</span><span style='display:block; white-space:pre;color:#404040;'> Builds on all tested platforms except 10.4 ppc +universal (due to
</span><span style='display:block; white-space:pre;color:#404040;'> broken dependency).
</span><span style='display:block; white-space:pre;color:#404040;'> Passes token "port test" in all buildable cases.
</span>---
devel/util-linux/Portfile | 25 ++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/util-linux/Portfile b/devel/util-linux/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 16e9e4e2077..b555d3d5600 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/util-linux/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/util-linux/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -80,11 +80,26 @@ configure.args --disable-agetty \
</span> --without-audit \
--without-python
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${configure.build_arch} in [list arm i386 ppc]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # For some reason, upstream decided to break the build well in advance.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # configure: error: could not enable timestamps after mid-January 2038.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --disable-year2038
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# The build procedure now includes checking related to the Y2038 problem, which
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# fails on 32-bit builds (due to the 32-bit time_t). This check can be disabled
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# with the --disable-year2038 configure option. Although it's probably OK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# to set this option unconditionally, for maximum safety we only set it when
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# needed, i.e. when there's a 32-bit target. This needs to take into account
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# all target archs in universal builds.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[variant_isset universal]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set target_archs ${configure.universal_archs}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set target_archs ${configure.build_arch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set have_32bit no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach arch ${target_archs} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${arch} in [list arm i386 ppc]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set have_32bit yes
</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;'>+if {${have_32bit}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --disable-year2038
</span> }
configure.checks.implicit_function_declaration.whitelist-append strchr
</pre><pre style='margin:0'>
</pre>