pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bosh: Update to release 2019-03-11
Module Name: pkgsrc-wip
Committed By: Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By: micha
Date: Mon Mar 11 18:28:32 2019 +0100
Changeset: 7d01ff565b57892ad8c65c036b986f7914825109
Added Files:
bosh/COMMIT_MSG
bosh/DESCR
bosh/Makefile
bosh/PLIST
bosh/TODO
bosh/distinfo
Log Message:
bosh: Update to release 2019-03-11
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7d01ff565b57892ad8c65c036b986f7914825109
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
bosh/COMMIT_MSG | 168 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
bosh/DESCR | 11 ++++
bosh/Makefile | 59 ++++++++++++++++++++
bosh/PLIST | 3 +
bosh/TODO | 2 +
bosh/distinfo | 6 ++
6 files changed, 249 insertions(+)
diffs:
diff --git a/bosh/COMMIT_MSG b/bosh/COMMIT_MSG
new file mode 100644
index 0000000000..b23552fe16
--- /dev/null
+++ b/bosh/COMMIT_MSG
@@ -0,0 +1,168 @@
+Changelog
+=========
+
+Release 2019-02-18:
+- libgetopt: The undocumented variable "_sp" from SVr4 has been renamed
+ to "opt_sp" and (on platforms that support "#pragma weak") there
+ is a weak reference _sp to that new variable, giving backwards
+ compatibility.
+
+ The reason for doing this is to make sure that people on Illumos
+ or Oracle Solaris, who still have an outdated version of getopt()
+ in their local libc, do not try to link the Bourne Shell only
+ against their old getopt(). If they did this, they would not get
+ the documented enhanced getopt() features from the Bourne Shell.
+
+- Bourne Shell: The shell now uses "opt_sp" as the name for the
+ undocumented additional getopt() interface from AT&T. This has
+ been done to avoid being able to link the Bourne Shell on
+ Illumos or Oracle Solaris without using our libgetopt. If this
+ was done, we could not support UNIX/MULTICS style long options
+ and we could not support -help/--help, since the latter is
+ implemented via long options that are not an alias to short
+ options.
+
+- Bourne Shell: added a new timestamp to the Bourne Shell version.
+
+
+Release 2018-11-21:
+- Bourne Shell: make it exit the whole shell with set -e after a command
+ substitution failed on the right side of a variable assignment
+ that has no command. This is required by POSIX.
+
+- Bourne Shell: added a unit tests for the above case.
+
+- Bourne Shell: New version date set to 2018-12-08 the this change.
+
+Release 2019-01-22:
+- bsh / Bourne Shell / star: the function hop_dirs() no longer checks
+ for p2 != NULL before calling *p2 = '/' as p2 has
+ been granted to be != NULL from a break with
+ strchr(p, '/') == NULL
+
+ Thanks to Pavel Raiskup for poiting to a related
+ Coverity message.
+
+- Bourne Shell: Added a missing /* FALLTHROUGH */ comment..
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+- Bourne Shell: added a range check for $OPTIND to tge getopts(1)
+ implementation
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+- Bourne Shell: Removed a nonsense variable in expand() that caused
+ Coverity not to understand that a directory was correctly
+ closed()
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+- Bourne Shell: Added a paranoia comparison to make Coverity quiet.
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+- Bourne Shell: avoid to call catpath() with a NULL pointer for path
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+- Bourne Shell: check the write() return code in io.c
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+- Bourne Shell: Added a paranopia check for "test -o" to make Coperity
+ quiet.
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+- Bourne Shell: Added (void) before fcntl() in hope to make Coverity
+ quiet.
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+- Bourne Shell: Removed dead code from readwc()
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+- Bourne Shell: Cstyle changes to xec.c
+
+- Bourne Shell: "builtin -d ..." did access free()d memory.
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+- Bourne Shell: expand.c: added a check for fd == -1 to avoid calling
+ openat() with that fd.
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+-Bourne Shell: func.c: added a check for fd == -1 to avoid calling
+ read()/close() with that fd.
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+- Bourne Shell: jobs.c: enlarged a buffer to be of same size as
+ numbuf[] to avoid a potential buffer overflow.
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+- Bourne Shell: print.c::prt_cntl() had a very old (AT&T) bug with
+ printing byte sequences that get an error with mbtowc() and it
+ did not print byte sequences correctly that refer to legal but
+ "nonprintable" multi byte characters.
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+- Bourne Shell: xec.c: the reserved word "time" could cause to
+ access uninitialized memory if the string in $TIMEFORMAT
+ contains the format %J
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+- Bourne Shell: xec.c: added a paranoia check on whether
+ findnam("funcname") returns NULL even though the existence of
+ a function with that name already has been verified via the
+ hash service.
+
+ Thanks to Pavel Raiskup for poiting to a related Coverity
+ message.
+
+Release 2019-02-18:
+- Bourne Shell: Another vfork() problem has been fixed. "trap cmd EXIT"
+ has incorrectly called "cmd" after a non-existing command was.
+ called by the shell. This was a result of the shared data from
+ vfork().
+
+ Thanks to Martijn Dekker for reporting.
+
+- Bourne Shell: A unit test case for the above bug has been added.
+
+- Bourne Shell: __growstak() now always uses realloc() on modern
+ platforms. This may speed up things up to 15%.
+
+ Thanks to Jan Engelhardt for reporting.
+
+Release 2019-03-11:
+- libgetopt/Bourne Shell: added an #ifndef __CYGWIN__ in order to avoid
+ overwriting non-standard definitions by standard
+ definitions on Cygwin for the global getopt()
+ variables.
+
+ Thanks to Heiko Ei[eszett]feldt for proposing this
+ fix.
+
+- Bourne Shell: better comment in bltin.c
diff --git a/bosh/DESCR b/bosh/DESCR
new file mode 100644
index 0000000000..1adeadd262
--- /dev/null
+++ b/bosh/DESCR
@@ -0,0 +1,11 @@
+The Schily Bourne Shell
+
+The Schily Bourne Shell was derived from the Bourne Shell sources from
+OpenSolaris.
+
+The Schily Bourne Shell is actively maintained and enhanced on a regular base.
+It can be compiled into three variants:
+- The non-POSIX SVr4/OpenSolaris variant (obosh)
+- The minimal POSIX compliant variant (pbosh)
+- The POSIX compliant extended variant (bosh)
+This package contains the third variant.
diff --git a/bosh/Makefile b/bosh/Makefile
new file mode 100644
index 0000000000..3d2f9cbf6b
--- /dev/null
+++ b/bosh/Makefile
@@ -0,0 +1,59 @@
+# $NetBSD$
+
+DISTNAME= schily-2019-03-11
+PKGNAME= bosh-20190311
+CATEGORIES= shells
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=schilytools/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://schilytools.sourceforge.net/bosh.html
+COMMENT= The Schily Bourne Shell
+LICENSE= cddl-1.0
+
+MAKE_JOBS_SAFE= no
+
+USE_TOOLS+= tbl
+TOOL_DEPENDS+= smake-[0-9]*:../../devel/smake
+SMAKE= MAKEFLAGS= smake
+MAKE_FLAGS+= DESTDIR=${DESTDIR} INS_BASE=${PREFIX} DEFMANBASE=. MANDIR=${PKGMANDIR}
+# Honor CPPFLAGS, CFLAGS and LDFLAGS
+MAKE_FLAGS+= CPPOPTX=${CPPFLAGS:Q} COPTX=${CFLAGS:Q} LDOPTX=${LDFLAGS:Q}
+
+PKG_SHELL= bin/bosh
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+
+.include "../../mk/bsd.prefs.mk"
+
+# Shared platform specific code for schilytools (provided by smake package)
+#.include "../../devel/smake/Makefile.common"
+.include "../../wip/smake/Makefile.common"
+
+do-configure:
+ cd ${WRKSRC}/inc && ${SMAKE} ${MAKE_FLAGS}
+
+do-build:
+ cd ${WRKSRC} && for library in \
+ libschily libxtermcap libfind libgetopt libshedit; \
+ do \
+ cd ${WRKSRC}/$${library} && ${SMAKE} ${MAKE_FLAGS}; \
+ done
+ cd ${WRKSRC}/sh && ${SMAKE} ${MAKE_FLAGS}
+
+# Process tables in manpage
+post-build:
+ cd ${WRKSRC} && ${TBL} sh/sh.1 >sh/sh.1.tmp; \
+ ${MV} -f sh/sh.1.tmp sh/bosh.1
+
+do-test:
+ cd ${WRKSRC}/sh && \
+ cd tests; ${SMAKE} ${MAKE_FLAGS} tests
+
+do-install:
+ cd ${WRKSRC}/sh && \
+ ${INSTALL_PROGRAM} ${WRKSRC}/sh/OBJ/*/sh \
+ ${DESTDIR}${PREFIX}/bin/bosh; \
+ ${INSTALL_MAN} ${WRKSRC}/sh/bosh.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/bosh/PLIST b/bosh/PLIST
new file mode 100644
index 0000000000..4ab85d076c
--- /dev/null
+++ b/bosh/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/bosh
+man/man1/bosh.1
diff --git a/bosh/TODO b/bosh/TODO
new file mode 100644
index 0000000000..85274a7d36
--- /dev/null
+++ b/bosh/TODO
@@ -0,0 +1,2 @@
+[ ] Makefile: After import switch back to:
+ .include "../../devel/smake/Makefile.common"
diff --git a/bosh/distinfo b/bosh/distinfo
new file mode 100644
index 0000000000..87c5f79cd9
--- /dev/null
+++ b/bosh/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (schily-2019-03-11.tar.bz2) = e3441506ec8bfaed1e55e09208d7054c728c8f57
+RMD160 (schily-2019-03-11.tar.bz2) = 49a4d8dc73ab1c1a66db655470c37d29c77d24f1
+SHA512 (schily-2019-03-11.tar.bz2) = 04f289c08b2cd6c1954600796798642ac6228dd61fbb37abeff400cbb3a30eeb481c8b6e51fa77dc506329947a4dd04021fe553516286055d586a31834e4cd98
+Size (schily-2019-03-11.tar.bz2) = 4289082 bytes
Home |
Main Index |
Thread Index |
Old Index