lowdown: Fix build on OSX 10.7

Fixes: https://trac.macports.org/ticket/73714
This commit is contained in:
commitmaniac
2026-03-23 15:11:00 -04:00
committed by Vadym-Valdis Yudaiev
parent 05f1d99f5c
commit d26a58b76e
2 changed files with 32 additions and 1 deletions
+5 -1
View File
@@ -14,7 +14,7 @@ legacysupport.newest_darwin_requires_legacy 15
name lowdown
categories textproc
version 3.0.1
revision 0
revision 1
license BSD
description simple markdown translator
@@ -35,6 +35,10 @@ checksums rmd160 433b221d28fd092139131f02465803f257cd100f \
depends_build-append \
port:bmake
patch.pre_args-replace \
-p0 -p1
patchfiles 0001-configure-Use-portable-invocation-of-mktemp.patch
configure.universal_args
configure.pre_args PREFIX=${prefix}
configure.args MANDIR=${prefix}/share/man
@@ -0,0 +1,27 @@
From 37823c474f10262438e55c931dd232e94a5c390a Mon Sep 17 00:00:00 2001
From: commitmaniac <201806046+commitmaniac@users.noreply.github.com>
Date: Mon, 23 Mar 2026 14:53:00 -0400
Subject: [PATCH] configure: Use portable invocation of mktemp
See: https://github.com/d99kris/heapusage/issues/19
From: https://github.com/kristapsdz/oconfigure/pull/28
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index e73c2dd..f1428e0 100755
--- a/configure
+++ b/configure
@@ -98,7 +98,7 @@ done
# exit. This simplifies the script from needing to tidy up everything
# directly.
-TMPROOT=$(mktemp -d) || exit 1
+TMPROOT=$(mktemp -d -t tmproot.XXXXXX) || exit 1
# shellcheck disable=SC2064
trap "rm -rf \"$TMPROOT\"" EXIT
--
2.53.0