head 1.4; access; symbols pkgsrc-2026Q1:1.4.0.4 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.4.0.2 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.2.0.8 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.6 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.4 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.2 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.1.0.2 pkgsrc-2024Q3-base:1.1; locks; strict; comment @# @; 1.4 date 2025.11.04.18.21.47; author vins; state Exp; branches; next 1.3; commitid XNR32YB7l3hHughG; 1.3 date 2025.11.03.21.47.14; author vins; state Exp; branches; next 1.2; commitid HpeiKRGOlSu8F9hG; 1.2 date 2024.11.04.17.01.47; author nia; state Exp; branches; next 1.1; commitid Tfn6O18nCCtJMlwF; 1.1 date 2024.07.30.15.17.08; author vins; state Exp; branches; next ; commitid QdGOha8iM7iUjSjF; desc @@ 1.4 log @shells/ksh93: use simpler system-wide configuration @ text @$NetBSD: patch-bin_package,v 1.3 2025/11/03 21:47:14 vins Exp $ install target fixes, for pkgsrc compatibility. --- bin/package.orig 2024-08-01 22:54:10.000000000 +0000 +++ bin/package @@@@ -356,7 +356,7 @@@@ verbose=0 AUTHORIZE= DEBUG= -unset FIGNORE BINDIR DLLDIR ETCDIR FUNDIR INCLUDEDIR LIBDIR LOCALEDIR MANDIR SHAREDIR 2>/dev/null || true +unset FIGNORE BINDIR DLLDIR ETCDIR FUNDIR INCLUDEDIR LIBDIR LOCALEDIR SHAREDIR 2>/dev/null || true while : do case $# in @@@@ -2607,12 +2607,13 @@@@ do_install() # dir [ command ... ] done # set install directories bindir=$dd/bin - fundir=${dd:-/usr}/share/fun - mandir=${dd:-/usr}/share/man + fundir=${dd:-/usr}/libexec/ksh93 + mandir=${dd}/${MANDIR} man1dir=$mandir/man1 man3dir=$mandir/man3 libdir=$dd/lib includedir=$dd/include + egdir=${dd}/share/examples/ksh93 # and off we go trace mkdir -p "$bindir" "$man1dir" || exit for f @@@@ -2627,9 +2628,12 @@@@ do_install() # dir [ command ... ] fi # install manual pages and autoloadable functions case $f in - ksh) trace cp "$PACKAGEROOT/src/cmd/ksh93/sh.1" "$man1dir/ksh.1" || exit - trace mkdir -p "$fundir" || exit + ksh) trace cp "$PACKAGEROOT/src/cmd/ksh93/sh.1" "$man1dir/ksh93.1" || exit + trace mkdir -p "$fundir" "$egdir" || exit (set +o noglob; trace cp "$PACKAGEROOT"/src/cmd/ksh93/fun/* "$fundir/") || exit + trace mv "$bindir/ksh" "$bindir/ksh93" || exit + trace cp "$PACKAGEROOT/src/cmd/ksh93/kshrc" "$egdir/kshrc" || exit + ;; *) # AT&T --man, etc. is a glorified error message: writes to stderr and exits with status 2 :-/ # So we cannot reliably check for success; must check the result, too. @ 1.3 log @shells/ksh93: include system-wide configuration file @ text @d1 1 a1 1 $NetBSD: patch-bin_package,v 1.2 2024/11/04 17:01:47 nia Exp $ d42 1 a42 1 + trace cp "$PACKAGEROOT/src/cmd/ksh93/kshrc.sh" "$egdir/kshrc" || exit @ 1.2 log @ksh93: Honour PKGMANDIR @ text @d1 1 a1 1 $NetBSD: patch-bin_package,v 1.1 2024/07/30 15:17:08 vins Exp $ d16 1 a16 1 @@@@ -2607,8 +2607,8 @@@@ do_install() # dir [ command ... ] d27 6 a32 1 @@@@ -2627,9 +2627,10 @@@@ do_install() # dir [ command ... ] d37 1 d39 1 a39 1 trace mkdir -p "$fundir" || exit d42 2 @ 1.1 log @shells/ksh93: update to v1.0.9 Many PLIST changes since the main binary is now linked dinamically. # upstream changes * Android/Termux is now a supported platform. Build dependencies: binutils, clang, getconf. Runtime dependencies (optional): ncurses-utils, getconf. * Reintroduced support for building a dynamically linked ksh(1)/shcomp(1), with libast, libdll, libcmd, and libshell available to other programs as dynamic libraries. bin/package install /your/basepath will install development headers. The dynamically linked version is built in a dyn subdirectory; there are no changes to the statically linked version. Dynamic linking is currently tested and supported on Linux, Android, macOS, all the BSDs, illumos, Solaris, QNX, and Haiku. * On systems where the external printf(1) utility supports deprecated pre-POSIX syntax for formatters starting with -, ksh now adapts its built-in printf to match, for compatibility with system scripts. However, ksh's built-in printf options such as -v or --man are not affected. * Fixed a regression in the printf built-in, introduced in 93u+m/1.0.5, where each instance of \0 or %Z in the format operand caused a string argument to be incorrectly skipped. * Fixed a regression, introduced in 93u+m/1.0.5, in ordinal specifiers in printf %T date specifications. For example, printf '%(%F)T\n' '4th tuesday in march 2016' wrongly printed '2016-04-09' and now again correctly prints '2016-03-22'. * Fixed a regression of return within traps, reintroduced in 93u+m/1.0.8 after being fixed in 93u+m/1.0.0. The regression caused a return or exit with no arguments to assume the before-trap exit status instead of that of the last-run command. This broke the shipped autocd function. * Fixed a longstanding bug in shell arithmetic: the representation of negative integers with a base other than 10 was incorrectly treated as unsigned long. For example, typeset -i16 n=-12; echo $n now correctly outputs -16#c and no longer ouputs 16#fffffffffffffff4. Fixed a bug, introduced in ksh93q+ 2005-05-22, that stopped an append assignment from working together with a declaration command. For example,typeset var+=value or export var+=value now again work as expected. Fixed a longstanding bug where the default terminal width for typeset -L, -R, or -Z, if not given, was miscalculated for multibyte or control characters. Fixed: expansions of name references in loops were incorrectly treated as invariant so they yielded the wrong values. * If a .get or .getn discipline function is set for a variable, it is no longer incorrectly triggered when performing an arithmetic assignment on that variable; only the .set discipline is now triggered (as documented). * Many other bug fixes (see the NEWS file). @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- bin/package.orig 2024-07-02 02:41:19.000000000 +0000 d7 10 a16 1 @@@@ -2666,8 +2666,8 @@@@ do_install() # dir [ command ... ] d23 1 a23 1 + mandir=${dd:-/usr}/man d27 1 a27 1 @@@@ -2686,9 +2686,10 @@@@ do_install() # dir [ command ... ] @