pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/shells/ksh93



Module Name:    pkgsrc
Committed By:   vins
Date:           Tue Jul 30 15:17:08 UTC 2024

Modified Files:
        pkgsrc/shells/ksh93: Makefile PLIST distinfo
Added Files:
        pkgsrc/shells/ksh93/patches: patch-bin_package
Removed Files:
        pkgsrc/shells/ksh93/patches: patch-src_cmd_INIT_package.sh

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/shells/ksh93/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/shells/ksh93/PLIST
cvs rdiff -u -r1.9 -r1.10 pkgsrc/shells/ksh93/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/shells/ksh93/patches/patch-bin_package
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/shells/ksh93/patches/patch-src_cmd_INIT_package.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/shells/ksh93/Makefile
diff -u pkgsrc/shells/ksh93/Makefile:1.12 pkgsrc/shells/ksh93/Makefile:1.13
--- pkgsrc/shells/ksh93/Makefile:1.12   Sun Jan 14 15:23:52 2024
+++ pkgsrc/shells/ksh93/Makefile        Tue Jul 30 15:17:08 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.12 2024/01/14 15:23:52 vins Exp $
+# $NetBSD: Makefile,v 1.13 2024/07/30 15:17:08 vins Exp $
 
-DISTNAME=      ksh93-1.0.8
+DISTNAME=      ksh93-1.0.9
 CATEGORIES=    shells
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=ksh93/}
 GITHUB_PROJECT=        ksh
@@ -18,6 +18,7 @@ USE_CC_FEATURES=      c11
 CFLAGS.SunOS+= -D__EXTENSIONS__
 
 FORTIFY_SUPPORTED=     no
+MKPIE_SUPPORTED=       no
 
 MAKE_FLAGS+=           SHELL=${SH:Q} CC=${CC:Q} \
                        CCFLAGS=${CFLAGS:M*:Q}

Index: pkgsrc/shells/ksh93/PLIST
diff -u pkgsrc/shells/ksh93/PLIST:1.2 pkgsrc/shells/ksh93/PLIST:1.3
--- pkgsrc/shells/ksh93/PLIST:1.2       Mon Sep 18 14:11:41 2023
+++ pkgsrc/shells/ksh93/PLIST   Tue Jul 30 15:17:08 2024
@@ -1,6 +1,122 @@
-@comment $NetBSD: PLIST,v 1.2 2023/09/18 14:11:41 vins Exp $
+@comment $NetBSD: PLIST,v 1.3 2024/07/30 15:17:08 vins Exp $
 bin/ksh93
 bin/shcomp
+include/ast/align.h
+include/ast/aso.h
+include/ast/ast.h
+include/ast/ast_api.h
+include/ast/ast_botch.h
+include/ast/ast_ccode.h
+include/ast/ast_common.h
+include/ast/ast_dir.h
+include/ast/ast_dirent.h
+include/ast/ast_fcntl.h
+include/ast/ast_float.h
+include/ast/ast_fs.h
+include/ast/ast_getopt.h
+include/ast/ast_iconv.h
+include/ast/ast_lib.h
+include/ast/ast_limits.h
+include/ast/ast_map.h
+include/ast/ast_mmap.h
+include/ast/ast_mode.h
+include/ast/ast_ndbm.h
+include/ast/ast_nl_types.h
+include/ast/ast_param.h
+include/ast/ast_sizeof.h
+include/ast/ast_standards.h
+include/ast/ast_std.h
+include/ast/ast_stdio.h
+include/ast/ast_sys.h
+include/ast/ast_time.h
+include/ast/ast_tty.h
+include/ast/ast_wait.h
+include/ast/ast_wchar.h
+include/ast/ast_wctype.h
+include/ast/ast_windows.h
+include/ast/bytesex.h
+include/ast/ccode.h
+include/ast/cdt.h
+include/ast/cmd.h
+include/ast/cmdarg.h
+include/ast/cmdext.h
+include/ast/cmdlist.h
+include/ast/debug.h
+include/ast/dirent.h
+include/ast/dlldefs.h
+include/ast/dt.h
+include/ast/endian.h
+include/ast/error.h
+include/ast/find.h
+include/ast/fnmatch.h
+include/ast/fnv.h
+include/ast/fts.h
+include/ast/ftw.h
+include/ast/ftwalk.h
+include/ast/getopt.h
+include/ast/glob.h
+include/ast/hash.h
+include/ast/hashkey.h
+include/ast/hashpart.h
+include/ast/history.h
+include/ast/iconv.h
+include/ast/ip6.h
+include/ast/lc.h
+include/ast/ls.h
+include/ast/magic.h
+include/ast/magicid.h
+include/ast/mc.h
+include/ast/mime.h
+include/ast/mnt.h
+include/ast/modecanon.h
+include/ast/modex.h
+include/ast/namval.h
+include/ast/nl_types.h
+include/ast/nval.h
+include/ast/option.h
+include/ast/proc.h
+include/ast/re_comp.h
+include/ast/recfmt.h
+include/ast/regex.h
+include/ast/regexp.h
+include/ast/releaseflags.h
+include/ast/sfdisc.h
+include/ast/sfio.h
+include/ast/sfio_s.h
+include/ast/sfio_t.h
+include/ast/shcmd.h
+include/ast/shell.h
+include/ast/sig.h
+include/ast/stak.h
+include/ast/stdio.h
+include/ast/stk.h
+include/ast/sum.h
+include/ast/swap.h
+include/ast/tar.h
+include/ast/times.h
+include/ast/tm.h
+include/ast/tmx.h
+include/ast/tok.h
+include/ast/tv.h
+include/ast/usage.h
+include/ast/vdb.h
+include/ast/vmalloc.h
+include/ast/wait.h
+include/ast/wchar.h
+include/ast/wctype.h
+include/ast/wordexp.h
+lib/libast.so
+lib/libast.so.6
+lib/libast.so.6.0
+lib/libcmd.so
+lib/libcmd.so.2
+lib/libcmd.so.2.0
+lib/libdll.so
+lib/libdll.so.2
+lib/libdll.so.2.0
+lib/libshell.so
+lib/libshell.so.2
+lib/libshell.so.2.0
 libexec/ksh93/autocd
 libexec/ksh93/cd
 libexec/ksh93/dirs
@@ -10,3 +126,58 @@ libexec/ksh93/popd
 libexec/ksh93/pushd
 man/man1/ksh93.1
 man/man1/shcomp.1
+man/man3/LIBAST.3ast
+man/man3/aso.3ast
+man/man3/ast.3ast
+man/man3/cdt.3ast
+man/man3/chr.3ast
+man/man3/compat.3ast
+man/man3/error.3ast
+man/man3/find.3ast
+man/man3/fmt.3ast
+man/man3/fmtls.3ast
+man/man3/ftwalk.3ast
+man/man3/getcwd.3ast
+man/man3/hash.3ast
+man/man3/iblocks.3ast
+man/man3/int.3ast
+man/man3/ip6.3ast
+man/man3/magic.3ast
+man/man3/mem.3ast
+man/man3/mime.3ast
+man/man3/modecanon.3ast
+man/man3/nval.3ast
+man/man3/optget.3ast
+man/man3/path.3ast
+man/man3/proc.3ast
+man/man3/re.3ast
+man/man3/regex.3ast
+man/man3/setenviron.3ast
+man/man3/sfio.3ast
+man/man3/shell.3ast
+man/man3/sig.3ast
+man/man3/spawnveg.3ast
+man/man3/stk.3ast
+man/man3/strcopy.3ast
+man/man3/strdup.3ast
+man/man3/strelapsed.3ast
+man/man3/strerror.3ast
+man/man3/stresc.3ast
+man/man3/streval.3ast
+man/man3/strgid.3ast
+man/man3/strmatch.3ast
+man/man3/stropt.3ast
+man/man3/strperm.3ast
+man/man3/strsignal.3ast
+man/man3/strsort.3ast
+man/man3/strtape.3ast
+man/man3/strton.3ast
+man/man3/struid.3ast
+man/man3/swap.3ast
+man/man3/tab.3ast
+man/man3/tm.3ast
+man/man3/tmx.3ast
+man/man3/tok.3ast
+man/man3/touch.3ast
+man/man3/tv.3ast
+man/man3/vmalloc.3ast

Index: pkgsrc/shells/ksh93/distinfo
diff -u pkgsrc/shells/ksh93/distinfo:1.9 pkgsrc/shells/ksh93/distinfo:1.10
--- pkgsrc/shells/ksh93/distinfo:1.9    Sun Jan 14 15:23:52 2024
+++ pkgsrc/shells/ksh93/distinfo        Tue Jul 30 15:17:08 2024
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.9 2024/01/14 15:23:52 vins Exp $
+$NetBSD: distinfo,v 1.10 2024/07/30 15:17:08 vins Exp $
 
-BLAKE2s (ksh93-1.0.8.tar.gz) = e8afbe9a03efac58a0a3a8ab52121d1664baceb628b8d64f2e2ca5447ce1112e
-SHA512 (ksh93-1.0.8.tar.gz) = 4284ab98f6055877c0715a8b224eb5a75dc7fa022f38c9ee30d50786e997f70b507ee452fc8bbdfa67649a26e0fdfc8051f7e54ff9f6a0f96e44498757080548
-Size (ksh93-1.0.8.tar.gz) = 2114262 bytes
-SHA1 (patch-src_cmd_INIT_package.sh) = bdc8fc6d3e50259576842df781cfe81f42acc1e8
+BLAKE2s (ksh93-1.0.9.tar.gz) = 8d00bc64add78397dcbf68eb920fbc4920c80ae33fa2ad8be0c708760e897c34
+SHA512 (ksh93-1.0.9.tar.gz) = 747a9b624ee898c84cf37958add17eee6ee8fcb6112701430f0d12d2913b3af22554a98a9836dee6bbbe62adbdb3cbc1d3fb7f2c654f2ce799805d9b1f407683
+Size (ksh93-1.0.9.tar.gz) = 2084378 bytes
+SHA1 (patch-bin_package) = d536c6b4787ef01b456bcf8436a77ec25b98c3a2
 SHA1 (patch-src_lib_libast_features_syscall) = 3da58a2876db9171378574fcf772978db2cd57e0

Added files:

Index: pkgsrc/shells/ksh93/patches/patch-bin_package
diff -u /dev/null pkgsrc/shells/ksh93/patches/patch-bin_package:1.1
--- /dev/null   Tue Jul 30 15:17:08 2024
+++ pkgsrc/shells/ksh93/patches/patch-bin_package       Tue Jul 30 15:17:08 2024
@@ -0,0 +1,29 @@
+$NetBSD: patch-bin_package,v 1.1 2024/07/30 15:17:08 vins Exp $
+
+install target fixes, for pkgsrc compatibility.
+
+--- bin/package.orig   2024-07-02 02:41:19.000000000 +0000
++++ bin/package
+@@ -2666,8 +2666,8 @@ 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:-/usr}/man
+       man1dir=$mandir/man1
+       man3dir=$mandir/man3
+       libdir=$dd/lib
+@@ -2686,9 +2686,10 @@ 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
++              ksh)    trace cp "$PACKAGEROOT/src/cmd/ksh93/sh.1" "$man1dir/ksh93.1" || exit
+                       trace mkdir -p "$fundir" || exit
+                       (set +o noglob; trace cp "$PACKAGEROOT"/src/cmd/ksh93/fun/* "$fundir/") || exit
++                      trace mv "$bindir/ksh" "$bindir/ksh93" || 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.



Home | Main Index | Thread Index | Old Index