aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2025-11-27 18:07:15 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2025-11-27 18:07:15 +0000
commitb3e53f9fff11e2e6289f5c69ad08f5acd727abd6 (patch)
tree0119e4f82dfe43702069010851ec7f9ab19ad1b7
parent4e22cd3bf0b4112e541bc585a6be57662cb0b52b (diff)
git-arc: Don't require devel/arcanist
Instead of invoking just “arc”, which requires devel/arcanist, which conflicts with archivers/arc, invoke the underlying script installed by devel/arcanist-lib. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D53942
-rw-r--r--tools/tools/git/git-arc.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/tools/git/git-arc.sh b/tools/tools/git/git-arc.sh
index fa618cdcbc22..f33a73334799 100644
--- a/tools/tools/git/git-arc.sh
+++ b/tools/tools/git/git-arc.sh
@@ -172,6 +172,20 @@ get_bool_config()
}
#
+# Invoke the actual arc command. This allows us to only rely on the
+# devel/arcanist-lib port, which installs the actual script, rather than
+# the devel/arcanist-port, which installs a symlink in ${LOCALBASE}/bin
+# but conflicts with the archivers/arc port.
+#
+: ${LOCALBASE:=$(sysctl -n user.localbase)}
+: ${LOCALBASE:=/usr/local}
+: ${ARC_CMD:=${LOCALBASE}/lib/php/arcanist/bin/arc}
+arc()
+{
+ ${ARC_CMD} "$@"
+}
+
+#
# Filter the output of call-conduit to remove the warnings that are generated
# for some installations where openssl module is mysteriously installed twice so
# a warning is generated. It's likely a local config error, but we should work