git: f8e5b5e2ce8d - main - shells/bash-static: Exclude PORTS_READLINE and NLS options with STATIC
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Mar 2025 15:21:47 UTC
The branch main has been updated by ehaupt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f8e5b5e2ce8de02f9c621b32609c5c77ed5b8ee7
commit f8e5b5e2ce8de02f9c621b32609c5c77ed5b8ee7
Author: Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2025-03-01 10:33:45 +0000
Commit: Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2025-03-02 15:21:39 +0000
shells/bash-static: Exclude PORTS_READLINE and NLS options with STATIC
Summary:
When building the static version of bash, runtime dependencies on
gettext-runtime and readline should not be present as the binary is
statically linked. This change excludes the PORTS_READLINE and NLS
options in the slave port to avoid unnecessary dependencies.
Differential Revision: https://reviews.freebsd.org/D49191
---
shells/bash-static/Makefile | 1 +
shells/bash/Makefile | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/shells/bash-static/Makefile b/shells/bash-static/Makefile
index e3a84b074e66..9d1431acd481 100644
--- a/shells/bash-static/Makefile
+++ b/shells/bash-static/Makefile
@@ -1,6 +1,7 @@
MASTERDIR= ${.CURDIR}/../../shells/bash
OPTIONS_SLAVE= STATIC
+OPTIONS_EXCLUDE=PORTS_READLINE NLS
PKGNAMESUFFIX= -static
diff --git a/shells/bash/Makefile b/shells/bash/Makefile
index 47b5059ded6c..d13604421216 100644
--- a/shells/bash/Makefile
+++ b/shells/bash/Makefile
@@ -1,6 +1,7 @@
PORTNAME= bash
PATCHLEVEL= 37
PORTVERSION= 5.2.${PATCHLEVEL:S/^0//g}
+PORTREVISION= 1
CATEGORIES= shells
MASTER_SITES= GNU
DISTNAME= ${PORTNAME}-${PORTVERSION:R}
@@ -54,6 +55,9 @@ PORTS_READLINE_BUILD_DEPENDS= readline>=8.2:devel/readline
PORTS_READLINE_USES= readline
PORTS_READLINE_CONFIGURE_WITH= installed-readline
+STATIC_PREVENTS= PORTS_READLINE NLS
+STATIC_PREVENTS_MSG= "STATIC and PORTS_READLINE/NLS options are mutually exclusive"
+
.if empty(PKGNAMESUFFIX)
CONFLICTS+= bash-static bash52-static
.else