From 2ef1ed88c4cdc45c7406deb0245df6c6ade51578 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sat, 5 Apr 2025 01:01:53 +0200 Subject: [PATCH] shells/bashc: Remove port Technical debt --- .portsignore | 1 + shells/Makefile | 1 - shells/bashc/Makefile | 102 ------------- shells/bashc/distinfo | 3 - shells/bashc/files/patch-Makefile.in | 13 -- shells/bashc/files/patch-config-top.h | 11 -- shells/bashc/files/patch-doc_bash.1 | 32 ---- shells/bashc/files/patch-doc_bashref.texi | 28 ---- .../bashc/files/patch-lib_readline_display.c | 13 -- shells/bashc/files/pkg-message.in | 15 -- shells/bashc/pkg-descr | 3 - shells/bashc/pkg-plist | 141 ------------------ 12 files changed, 1 insertion(+), 362 deletions(-) delete mode 100644 shells/bashc/Makefile delete mode 100644 shells/bashc/distinfo delete mode 100644 shells/bashc/files/patch-Makefile.in delete mode 100644 shells/bashc/files/patch-config-top.h delete mode 100644 shells/bashc/files/patch-doc_bash.1 delete mode 100644 shells/bashc/files/patch-doc_bashref.texi delete mode 100644 shells/bashc/files/patch-lib_readline_display.c delete mode 100644 shells/bashc/files/pkg-message.in delete mode 100644 shells/bashc/pkg-descr delete mode 100644 shells/bashc/pkg-plist diff --git a/.portsignore b/.portsignore index d95ccb191aa7..e2e15e912ded 100644 --- a/.portsignore +++ b/.portsignore @@ -2239,6 +2239,7 @@ shells/44bsd-csh shells/anongitssh shells/antibody shells/ast-ksh +shells/bashc shells/powershell sysutils/abgx360 sysutils/baloo-widgets diff --git a/shells/Makefile b/shells/Makefile index ccb87d6b2de5..488beed86fb0 100644 --- a/shells/Makefile +++ b/shells/Makefile @@ -6,7 +6,6 @@ SUBDIR += bash-completion-freebsd SUBDIR += bash-completion-zfs SUBDIR += bash-static - SUBDIR += bashc SUBDIR += bicon SUBDIR += bosh SUBDIR += carapace diff --git a/shells/bashc/Makefile b/shells/bashc/Makefile deleted file mode 100644 index 0bb01e0f93db..000000000000 --- a/shells/bashc/Makefile +++ /dev/null @@ -1,102 +0,0 @@ -PORTNAME= bashc -PORTVERSION= 5.1.8 -PORTREVISION= 1 -CATEGORIES= shells - -MAINTAINER= obscenum999@gmail.com -COMMENT= GNU Bourne Again shell extended with two-panel file manager -WWW= https://github.com/sergev/bash-commander - -LICENSE= GPLv3 -LICENSE_FILE= ${WRKSRC}/COPYING - -USES= bison gmake iconv localbase makeinfo pathfix -GNU_CONFIGURE= yes -GNU_CONFIGURE_MANPREFIX=${PREFIX}/share -OPTIONS_SUB= yes - -USE_GITHUB= yes -GH_ACCOUNT= sergev -GH_PROJECT= bash-commander -GH_TAGNAME= 240d2831b191f2ad686301751bf43251ae7259f3 - -OPTIONS_DEFINE= DOCS FDESCFS HELP NLS STATIC SYSBASHRC SYSLOG -FDESCFS_DESC= Enable use of /dev/fd -HELP_DESC= Enable builtin help -SYSBASHRC_DESC= Enable system-wide rc files - -OPTIONS_DEFAULT= HELP - -FDESCFS_CONFIGURE_ENV_OFF= bash_cv_dev_fd=absent - -HELP_CONFIGURE_ENABLE= help-builtin -NLS_CONFIGURE_ENABLE= nls -NLS_USES= gettext - -INFO= bash - -PORTDOCS= CHANGES COMPAT FAQ INTRO NEWS POSIX RBASH README bash.html \ - bashref.html -DOCSDIR= ${PREFIX}/share/doc/bash -SUB_FILES= pkg-message - -CONFIGURE_ARGS+= --disable-rpath \ - --enable-disabled-builtins \ - --with-libiconv-prefix=${ICONV_PREFIX} \ - --without-bash-malloc - -CONFLICTS+= bash bash-static - -.include - -.if ${PORT_OPTIONS:MSTATIC} || defined(NO_DYNAMICROOT) || (defined(NOSHARED) && ${NOSHARED:tl} != "no") -CONFIGURE_ARGS+= --enable-static-link -LLD_UNSAFE= yes -.else -CONFIGURE_ARGS+= --disable-static-link -# Bash symbols must be exported in order to link runtime plugins, i.e., -# "enable -f". (Plugins are not supported for bash-static.) -LDFLAGS+= -Wl,-export-dynamic -.endif -STANDARD_PATH= /sbin:/bin:/usr/sbin:/usr/bin -CPPFLAGS+= -DDEFAULT_PATH_VALUE='\"${STANDARD_PATH}:${LOCALBASE}/sbin:${LOCALBASE}/bin\"' \ - -DSTANDARD_UTILS_PATH='\"${STANDARD_PATH}\"' - -post-patch: -# Ensure y.tab.c is regenerated - ${TOUCH} ${WRKSRC}/parse.y - ${RM} ${WRKSRC}/y.tab.c - @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/bash.1 -.if ${PORT_OPTIONS:MSYSLOG} - @${REINPLACE_CMD} \ - -e "s|/\*.*#define SYSLOG_HISTORY .*\*/|#define SYSLOG_HISTORY|g" \ - -e "s|/\*.*#define SYSLOG_SHOPT .*\*/|#define SYSLOG_SHOPT 1|g" \ - ${WRKSRC}/config-top.h -.endif - -post-patch-SYSBASHRC-on: - @${REINPLACE_CMD} \ - -e "s|.*\(#define SYS_BASH.*\)\(/etc/.*\"\).*|\1${PREFIX}\2|" \ - ${WRKSRC}/config-top.h - -post-configure: - @${FIND} ${WRKSRC} -name Makefile -print0 | ${XARGS} -0 \ - ${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|" - -pre-build: - @${ECHO_CMD} $$((${PORTREVISION}-1)) > ${WRKSRC}/.build - -post-install: - ${LN} -sf ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/rbash - ${LN} -sf ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/bash - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/FAQ \ - ${WRKSRC}/doc/INTRO ${STAGEDIR}${DOCSDIR} - for d in ${PORTDOCS:NFAQ:NINTRO:N*html}; do \ - ${INSTALL_DATA} ${WRKSRC}/$${d} ${STAGEDIR}${DOCSDIR}; \ - done - -regress: build - cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} test - -.include diff --git a/shells/bashc/distinfo b/shells/bashc/distinfo deleted file mode 100644 index 31a241212c38..000000000000 --- a/shells/bashc/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -TIMESTAMP = 1642579981 -SHA256 (sergev-bash-commander-5.1.8-240d2831b191f2ad686301751bf43251ae7259f3_GH0.tar.gz) = 970babfd8479398d7206fa9871b4ecbd8e41c8c6942c83dd7ad1b2d1d576e25d -SIZE (sergev-bash-commander-5.1.8-240d2831b191f2ad686301751bf43251ae7259f3_GH0.tar.gz) = 10515370 diff --git a/shells/bashc/files/patch-Makefile.in b/shells/bashc/files/patch-Makefile.in deleted file mode 100644 index 2c0bc50654bf..000000000000 --- a/shells/bashc/files/patch-Makefile.in +++ /dev/null @@ -1,13 +0,0 @@ ---- Makefile.in.orig 2021-02-19 17:35:54 UTC -+++ Makefile.in -@@ -774,8 +774,8 @@ pathnames.h: Makefile $(srcdir)/pathnames.h.in - @${RM} pathnames.tmp - - # comment out for distribution --#$(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4 $(srcdir)/config.h.in --# cd $(srcdir) && autoconf -+$(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4 $(srcdir)/config.h.in -+ cd $(srcdir) && autoconf - - # for chet - reconfig: force diff --git a/shells/bashc/files/patch-config-top.h b/shells/bashc/files/patch-config-top.h deleted file mode 100644 index 659cc69f1bb4..000000000000 --- a/shells/bashc/files/patch-config-top.h +++ /dev/null @@ -1,11 +0,0 @@ ---- config-top.h.orig 2019-08-29 22:16:15 UTC -+++ config-top.h -@@ -78,7 +78,7 @@ - #endif - - /* Default primary and secondary prompt strings. */ --#define PPROMPT "\\s-\\v\\$ " -+#define PPROMPT "[\\u@\\h \\w]\\$ " - #define SPROMPT "> " - - /* Undefine this if you don't want the ksh-compatible behavior of reprinting diff --git a/shells/bashc/files/patch-doc_bash.1 b/shells/bashc/files/patch-doc_bash.1 deleted file mode 100644 index ecfb819a9c8d..000000000000 --- a/shells/bashc/files/patch-doc_bash.1 +++ /dev/null @@ -1,32 +0,0 @@ ---- doc/bash.1.orig 2019-08-29 22:16:15 UTC -+++ doc/bash.1 -@@ -31,9 +31,9 @@ - .\" .ll \\n(LLu - .\" .in \\n()Ru+\\n(INu+\\n()Iu - .\" .ti \\n(INu --.\" .ie !\\n()Iu+\\n()Ru-\w\\*(]Xu-3p \{\\*(]X -+.\" .ie !\\n()Iu+\\n()Ru-\w\\*(]Xu-3p \{\\*(]X - .\" .br\} --.\" .el \\*(]X\h|\\n()Iu+\\n()Ru\c -+.\" .el \\*(]X\h|\\n()Iu+\\n()Ru\c - .\" .}f - .\" .. - .\" -@@ -2444,7 +2444,7 @@ The value of this parameter is expanded (see - .SM - .B PROMPTING - below) and used as the primary prompt string. The default value is --``\fB\es\-\ev\e$ \fP''. -+``\fB\eu\@\eh\e$ \fP''. - .TP - .B PS2 - The value of this parameter is expanded as with -@@ -10880,7 +10880,7 @@ http://tiswww.case.edu/~chet/bash/POSIX -- a descripti - .SH FILES - .PD 0 - .TP --.FN /bin/bash -+.FN /usr/local/bin/bash - The \fBbash\fP executable - .TP - .FN /etc/profile diff --git a/shells/bashc/files/patch-doc_bashref.texi b/shells/bashc/files/patch-doc_bashref.texi deleted file mode 100644 index 5975199958f5..000000000000 --- a/shells/bashc/files/patch-doc_bashref.texi +++ /dev/null @@ -1,28 +0,0 @@ ---- doc/bashref.texi.orig 2019-08-29 22:16:15 UTC -+++ doc/bashref.texi -@@ -1,6 +1,6 @@ - \input texinfo.tex @c -*- texinfo -*- - @c %**start of header --@setfilename bashref.info -+@setfilename bash.info - @settitle Bash Reference Manual - - @include version.texi -@@ -8,7 +8,7 @@ - - @copying - This text is a brief description of the features that are present in --the Bash shell (version @value{VERSION}, @value{UPDATED}). -+the Bash shell (version @value{VERSION}, @value{UPDATED}) - - This is Edition @value{EDITION}, last updated @value{UPDATED}, - of @cite{The GNU Bash Reference Manual}, -@@ -5598,7 +5598,7 @@ A null directory name may appear as two adjacent colon - or trailing colon. - - @item PS1 --The primary prompt string. The default value is @samp{\s-\v\$ }. -+The primary prompt string. The default value is @samp{[\u@@\h \w]\$ }. - @xref{Controlling the Prompt}, for the complete list of escape - sequences that are expanded before @env{PS1} is displayed. - diff --git a/shells/bashc/files/patch-lib_readline_display.c b/shells/bashc/files/patch-lib_readline_display.c deleted file mode 100644 index b69b08410b1a..000000000000 --- a/shells/bashc/files/patch-lib_readline_display.c +++ /dev/null @@ -1,13 +0,0 @@ ---- lib/readline/display.c.orig 2018-10-01 01:37:48 UTC -+++ lib/readline/display.c -@@ -837,7 +837,10 @@ rl_redisplay (void) - the line breaks in the prompt string in expand_prompt, taking invisible - characters into account, and if lpos exceeds the screen width, we copy - the data in the loop below. */ -+ if (local_prompt) - lpos = prompt_physical_chars + modmark; -+ else -+ lpos = 0; - - #if defined (HANDLE_MULTIBYTE) - memset (line_state_invisible->wrapped_line, 0, line_state_invisible->wbsize * sizeof (int)); diff --git a/shells/bashc/files/pkg-message.in b/shells/bashc/files/pkg-message.in deleted file mode 100644 index 535884ce35a2..000000000000 --- a/shells/bashc/files/pkg-message.in +++ /dev/null @@ -1,15 +0,0 @@ -[ -{ type: install - message: <