commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2020-09-22 21:02:26 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new.4249 (New) Package is "mksh" Tue Sep 22 21:02:26 2020 rev:21 rq:828388 version:59b Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2019-09-07 11:52:05.806285464 +0200 +++ /work/SRC/openSUSE:Factory/.mksh.new.4249/mksh.changes 2020-09-22 21:04:05.403557151 +0200 @@ -1,0 +2,82 @@ +Thu Aug 20 19:08:45 UTC 2020 - Dirk Mueller + +- update to 59b: + * [tg] Handle other tmux $TERM types, pointed out by multi via IRC + * [tg] Fix typo in FAQ + * [tg] y='a\*b'; [[ $x = $y ]] regression (Martijn Dekker) fix + * [l0kod] Defuse CLIP OS O_MAYEXEC support (cf. LWN) + * [tg] Make set +o output a command to restore the currently set and (new!) cleared options, keep a reset state per session (experimental) + * [tg] Correct documentation and code regarding to argv[0] parsing: first ‘-’ for login shells, then ‘r’ case-insensitively for restricted shell, then “sh”*, again case-insensitively, for BINSH_* modes; add tests + * [tg] On OS/2, allow case-insensitive name for direct builtin call + * [tg] Always skip startup files if direct builtin call + * [tg] Avoid some sometimes-redundant startup codepaths + * [tg] Repair out-of-tree builds (noticed by rsc) + * [tg] Work around a glibc on Hurd issue in testsuite + * [komh] OS/2 filesystem mtime granularity is two seconds (as in FAT) + * [tg] Replace while with goto: Coverity was confused + * [tg] Fix invocation of some builtins when external utility absent + * [komh] Improve automatic executable suffix for test builtin + * [tg] Style code, refactor, clean up, optimise + * [tg] Use cached egid in test builtin + * [tg] Make bind builtin output reentry-safe; safety fixes + * [tg] If basename(argv[0]) after leading dash removal begins with an ‘r’ enable restricted shell flag; reported by pmjdebruijn via IRC + * [tg] Fix code example in manpage for how tab completion escapes + * [tg] Match full extglob pattern RHS of [[ string comparison like ksh93 + * [tg] Implement which with -a in dot.mkshrc + * [tg] Remove global builtin (use typeset -g) + * [tg] alias, command, whence: Print alias names quoted + * [tg] Implement a new quote-region (Esc+Q) editing command + * [tg] Document all built-in aliases (requested by msiism via IRC) and those aliases and functions shipped in dot.mkshrc; completely overhaul builtin and reserved word documentation, for consistency + * [tg] The manual page now features properly spaced em dashes ☻ + * [tg] Document that test x = y doesn’t extglob, only [[ x = y ]] does + * [lintian] hyphen-used-as-minus-sign (on jessie, not later, ‽‽‽) + * [tg] Fix system info gcc dump{machine,version} shell escaping level + * [tg] Document KSH_VERSIONNAME_VENDOR_EXT in Build.sh + * [tg] Be more explicit about the LTO bug exposed by check.t + * [Todd C. Miller] Add -x (file locks) and AIX-specific -r ulimits + * [tg] Handle Midipix as test environment and fix some warnings + * [tg] Fix some Build.sh issues as Mirtoconf is now used by MirCPIO and MagicPoint + * [komh] Improve CRLF to LF conversion + * [komh] Ensure ECHO mode is enabled at startup so read has local echo + * [komh] Let check.pl retain the PERLIO env variable + * [komh] Unbreak nounset-1 test on systems with drive letters + * [komh, tg] Make ulimit-3 test work without |& (that is, incomplete ports, i.e. those with -DMKSH_NOPROSPECTOFWORK) + * [tg] Disable xxx-stat-1 test for now, fails when run as root + * [tg] Drop Build.sh flags -c combine, -c lto + * [Martijn Dekker] Exit 126 on execve(2) failure, not 1 (e.g. E2BIG) + * [tg] Behave set and export/readonly-on-read-only-variables when run with command and command dot, bugreports by Martijn Dekker + * [tg] dot.mkshrc: simplify; enhance (un)setting locale example + * [tg, selk] Catch build errors earlier + * [tg] Add -fno-lto (if GCC is detected) to CFLAGS and LDFLAGS + * [tg] Limit HISTSIZE to 65535, as long pre-announced + * [tg] Unbreak testsuite selftest-tty-absent for lksh + * [tg] Begin work on support for neatcc (needs neatcc to evolve first) + * [tg] Fix possibly not enough aligned access in struct job + * [tg] Support going full setugid by running “set -p” once interactive + * [tg] Document another (arcane, almost nowhere needed) definition + * [tg] Improve code legibility and testsuite reliability and maintenance + * [tg] Speed up trivial += cases (LP#1855167) + * [tg] Some further code and memory optimisation and test coverage + * [tg] Document that += is always string append (LP#1857702) + * [tg] Fix “set -e appears active within eval but isn’t” reported by Martijn Dekker and another bug
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2019-09-07 11:52:04 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new.7948 (New) Package is "mksh" Sat Sep 7 11:52:04 2019 rev:20 rq:728543 version:57 Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2019-04-11 12:16:14.832903535 +0200 +++ /work/SRC/openSUSE:Factory/.mksh.new.7948/mksh.changes 2019-09-07 11:52:05.806285464 +0200 @@ -1,0 +2,7 @@ +Thu Sep 5 14:37:01 UTC 2019 - m...@mirbsd.org + +- Disable LTO, GCC’s is too buggy and generates wrong code + (note LTO was disabled earlier already, but apparently, + it’s now enabled distro-wide which we need to counteract) + +--- Other differences: -- ++ mksh.spec ++ --- /var/tmp/diff_new_pack.drln7W/_old 2019-09-07 11:52:06.314285392 +0200 +++ /var/tmp/diff_new_pack.drln7W/_new 2019-09-07 11:52:06.314285392 +0200 @@ -22,7 +22,7 @@ Name: mksh Version:57 -Release:0 +Release:2 Summary:MirBSD Korn Shell License:MirOS AND ISC Group: System/Shells @@ -73,6 +73,7 @@ ln -s . examples %build +%define _lto_cflags %{nil} # # sys_errlist and sys_siglist *are* deprecated # Be aware of the _SYS_SIGLIST and _SYS_ERRLIST macros as well
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2019-04-11 12:16:10 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new.27019 (New) Package is "mksh" Thu Apr 11 12:16:10 2019 rev:19 rq:692662 version:57 Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2018-07-10 16:15:30.233529467 +0200 +++ /work/SRC/openSUSE:Factory/.mksh.new.27019/mksh.changes 2019-04-11 12:16:14.832903535 +0200 @@ -1,0 +2,66 @@ +Tue Apr 9 16:16:47 UTC 2019 - t.gla...@tarent.de + +- KSH_VERSIONNAME_VENDOR_EXT needs to begin with a space and plus + +--- +Tue Apr 9 16:04:32 UTC 2019 - t.gla...@tarent.de + +- Fix CPPFLAGS double shell escape of space character + +--- +Tue Apr 9 16:02:04 UTC 2019 - t.gla...@tarent.de + +- KSH_VERSIONNAME_VENDOR_EXT needs to begin with a space + +--- +Tue Apr 9 15:57:26 UTC 2019 - t.gla...@tarent.de + +- Ensure the extra CPPFLAGS are actually used, oops… + +--- +Tue Apr 9 15:41:31 UTC 2019 - t.gla...@tarent.de + +- Remove virt-what from build dependencies, it just fails or, + worse, makes the package unresolvable; also from lewellyn +- Ensure KSH_VERSIONNAME_VENDOR_EXT is always set to something, + because the patch deviating from upstream is always applied + +--- +Tue Apr 9 15:21:42 UTC 2019 - t.gla...@tarent.de + +- Update to version R57 (reminded by lewellyn) + R57 rolls up bugfixes, with few hard changes: +[gecko2] Update operating environment reporting for the Macintosh +[Martijn Dekker] make ${foo#'bar'} in here document behave like ksh93 +[Martijn Dekker] quote empty strings for re-entry into shell +[tg, G.raud Meyer] Improve documentation, especially for tty states +[tg] Protect against entering line editing with bad saved tty state +[tg] Fix set -o allexport for arrays (which we apparently do) +[tg] Handle lseek(2) returning -1 as pointed out by Coverity Scan +[tg] Fix left-padding UTF-8 strings +[tg, G.raud Meyer] Fix using the “-m” flag on the command line +[tg] Update to UCD 11.0.0 +[multiplexd] Fix a segfault using ^W during search in Vi mode +[tg] Fix an error message; add a test for controlling tty +[tg] Permit unsetting LINES and COLUMNS, for those who need it +[tg] Fix manpage bug (RedHat BZ#1612173) +[tg] Minor spelling cleanup +[tg] Unbreak high-bit7 (nōn-ASCII) heredoc separators (LP#1779179) +[tg] Allow dumping high-bit7-char-containing strings in DEBUG mode +[tg] Add some testcases for behaviour questions popped up in IRC +[tg] Trick a GCC warning, to make up for it ignoring lint(1) hints +[tg] Add O_MAYEXEC support for CLIP OS +[tg] Make dup-to-self with ksh-style fd≥3 closing work; catern via IRC +[tg] Add compat glue for newer GNU groff mdoc to the manpages +[tg] Trigger EXIT trap after single-command subshells (Debian #910276) +[tg] Document set -eo pipefail caveat (LP#1804504) +[tg] Fix MKSH_EARLY_LOCALE_TRACKING warning +[tg] Document that, when your Unix is broken, GIGO applies (LP#1817959) +[tg] Improve error message for inaccessible executables (LP#1817789) +- Switch from patching check.t, sh.h and Build.sh to using + KSH_VERSIONNAME_VENDOR_EXT and appending to CPPFLAGS beforehand +- Remove qemu/ppc patches that are upstreamed/no longer necessary +- Drop LTO support which was already always disabled +- Handle newer GCC note output during configure stage + +--- Old: mksh-R56c.tgz New: mksh-R57.tgz Other differences: -- ++ mksh.spec ++ --- /var/tmp/diff_new_pack.vfTLfI/_old 2019-04-11 12:16:15.944904096 +0200 +++ /var/tmp/diff_new_pack.vfTLfI/_new 2019-04-11 12:16:15.948904098 +0200 @@ -3,7 +3,7 @@ # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 Guido Berhoerster. -# Copyright (c) 2013, 2014 Thorsten Glaser. +# Copyright (c) 2013, 2014, 2019 Thorsten Glaser. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,7 +21,7 @@ # Please see OBS home:mirabile/mksh for a package for other distributions. Name: mksh -Version:56c +Version:57 Release:0 Summary:MirBSD Korn Shell License:MirOS AND ISC @@ -36,7 +36,6 @@
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2018-07-10 16:15:26 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is "mksh" Tue Jul 10 16:15:26 2018 rev:18 rq:621120 version:56c Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2018-04-19 15:31:45.957447707 +0200 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2018-07-10 16:15:30.233529467 +0200 @@ -4 +4 @@ -- Remoce patch mksh-locale.patch and use upstream compile flags +- Remove patch mksh-locale.patch and use upstream compile flags Other differences: --
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2018-04-19 15:31:39 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is "mksh" Thu Apr 19 15:31:39 2018 rev:17 rq:597698 version:56c Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2017-12-18 08:59:13.971595628 +0100 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2018-04-19 15:31:45.957447707 +0200 @@ -1,0 +2,110 @@ +Tue Apr 17 14:09:45 UTC 2018 - wer...@suse.de + +- Remoce patch mksh-locale.patch and use upstream compile flags + MKSH_EARLY_LOCALE_TRACKING as replacement + +--- +Tue Apr 17 06:24:10 UTC 2018 - wer...@suse.de + +- Update to version R56c + R56c is a bugfix-only release everyone must upgrade to: +[komh] Remove redundant OS/2-specific code, clean up others +[komh, tg] Fix drive-qualified (absolute and relative) DOS-style + path support in realpath functionality, partially other places +[tg] Don’t substitute ${ENV:-~/.mkshrc} result again +[tg] Improve OS/2 $PATH (et al.) handling, drive-relative paths +[tg] Add MKSH_ENVDIR compile-time option for Jehanne and Plan 9 +[tg] Limit nesting when parsing malformed code (Debian #878947) +[tg] Update wcwidth data with bugfixed script (still Unicode 10; + resulting values are identical to glibc git master for extant chars) +[Dr. Werner Fink] Raise some time limits in the testsuite +[Shamar] Add support for the Jehanne operating system +[komh] Set stdin to text mode before executing child processes on OS/2 +[komh] Pass arguments via a resonse file if executing a child fails +[Dr. Werner Fink] Early locale tracking as a compile-time option +[tg] Fix regressions introduced with new fast character classes + + R56b is a bugfix-only release everyone should upgrade to: +[tg] Reference the FAQ webpage +[panpo, Riviera] Fix documentation bug wrt. Esc+Ctrl-L +[tg, Larry Hynes] Fix “0” movement in vi mode +[tg] Replace broken libcs’ offsetof macro with MirBSD’s + + R56 is a bugfix release with some experimental fixes: +[tg, Seb] Do not apply alias name restrictions to hash/tilde tracking +[tg] Restore ‘.’, ‘:’ and ‘[’ in alias names (“[[” is still forbidden) +[tg] Fix accidentally defanged $PATHSEP test +[tg] On ^C (INTR and QUIT edchars), shove edit line into history +[iSKUNK, tg] Begin porting to z/OS using EBCDIC encoding, incomplete +[tg] Redo fast character classes code, adding POSIX and other helpers +[tg] bind parses backslash-escaped ‘^’ (and ‘\’) as escaped +[tg] Building with -DMKSH_ASSUME_UTF8=0 no longer causes a known + failure in the testsuite +[tg] New test.sh option -U to pass a UTF-8 locale to use in the tests +[tg] re_format(7) BSD: [[ $x = *[[:\<:]]foo[[:\>:]]* ]] +[tg, iSKUNK] Use Config in check.pl only if it exists +[tg] New matching code for bracket expressions, full POSIX (8bit) +[komh] Exclude FAT/HPFS/NTFS-unsafe tests on OS/2 (and Cygwin/MSYS) +[tg] Update to Unicode 10.0.0 +[tg, selk] Make readonly idempotent +[tg, multiplexd] When truncating the persistent history, do not change + the underlying file, do all operations on the locked one; do not + stop using the history at all if it has been truncated +[tg, Jörg] Turn off UTF-8 mode upon turning on POSIX mode +[Martijn Dekker, Geoff Clare, many on the Austin list, tg] In POSIX + mode, make the exec builtin force a $PATH search plus execve +[tg] Fix GCC 7, Coverity Scan warnings +[tg, Michal Hlavinka] Track background process PIDs even interactive +[tg] Always expose mksh’s hexdump shell function; speed it up by + working on the input in chunks; use character classes to make it EBCDIC safe +[tg] Revamp dot.mkshrc default editor selection mechanism + + R55 is mostly a feature release with summary bugfixes: +[komh] Fix OS/2 search_access() and UNC path logic +[tg] Undocument printf(1) to avoid user confusion +[Jean Delvare, tg] Fix printf builtin -R option +[tg] Make ${var@x}, unknown x, fail (thanks izabera) +[tg] ${var=x} must evaluate x in scalar context (10x Martijn Dekker) +[tg] Fixup relation between lksh and mksh, reduce delta +[tg] Improve manpage display; add OS/2 $PATH FAQ +[Jean Delvare] Fix bugs in manpage +[tg] Review tilde expansion, removing “odd use of KEEPASN” and + introduce POSIX “declaration utility” concept; wait isn’t one +[tg] Add \builtin utility, declaration utility forwarder +[tg] Make $'\xz' expand to xz, not \0 +[tg] Use fixed string pooling (requires the above change in host mksh) +[tg] POSIX declaration
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2017-12-18 08:59:11 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is "mksh" Mon Dec 18 08:59:11 2017 rev:16 rq:557261 version:54 Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2017-12-01 15:54:33.126063721 +0100 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2017-12-18 08:59:13.971595628 +0100 @@ -1,0 +2,6 @@ +Fri Dec 15 07:59:20 UTC 2017 - wer...@suse.de + +- Add patch mksh-locale.patch to enable the mksh to set internal + lcoale settings like utf support during runtime + +--- New: mksh-locale.patch Other differences: -- ++ mksh.spec ++ --- /var/tmp/diff_new_pack.WK9bz2/_old 2017-12-18 08:59:14.787556239 +0100 +++ /var/tmp/diff_new_pack.WK9bz2/_new 2017-12-18 08:59:14.791556046 +0100 @@ -30,6 +30,8 @@ Source: https://www.mirbsd.org/MirOS/dist/mir/mksh/%{name}-R%{version}.tgz # PATCH-FEATURE-OPENSUSE mksh-vendor-mkshrc.patch g...@opensuse.org -- Add support for a vendor-supplied kshrc which is read by interactive shells before $ENV or $HOME/.mkshrc are processed Patch0: mksh-vendor-mkshrc.patch +# PATCH-FEATURE-OPENSUSE mksh-locale.patch -- Add support for setting locale in running mksh +Patch1: mksh-locale.patch BuildRequires: ed # for %%check BuildRequires: perl @@ -63,6 +65,7 @@ %prep %setup -q -n %{name} %patch0 -p1 -b .p0 +%patch1 -p0 -b .p1 %if 0%{?suse_version} > 0 %if !0%{?is_opensuse} @@ -84,6 +87,11 @@ w EOF %endif +# Some timing issues on qemu ppc* systems +case "$(uname -m)" in +ppc*) sed -ri '/sleep/{s/(sleep)[[:space:]]+2/\1 5/;}' check.t + sed -ri '/regression-65/,/^---/{s/(time-limit:)[[:space:]]+3/\1 5/;}' check.t +esac ed -s mksh.1 <<-'EOF' /insert-your-name-here/s/^\.\\" // s/insert-your-name-here/SUSE/ ++ mksh-locale.patch ++ Add support for setting locale after mksh has started. With this change it is possible to override the locale in the personal ~/.profile or ~/.mkshrc as well as in the system wide /etc/profile. --- main.c |3 +-- sh.h |1 + var.c | 51 +++ var_spec.h |6 ++ 4 files changed, 59 insertions(+), 2 deletions(-) --- main.c +++ main.c 2017-12-15 07:34:47.135915295 + @@ -46,7 +46,6 @@ extern char **environ; #define MKSH_DEFAULT_TMPDIRMKSH_UNIXROOT "/tmp" #endif -static uint8_t isuc(const char *); static int main_init(int, const char *[], Source **, struct block **); void chvt_reinit(void); static void reclaim(void); @@ -155,7 +154,7 @@ static const char *empty_argv[] = { Tmksh, NULL }; -static uint8_t +uint8_t isuc(const char *cx) { char *cp, *x; uint8_t rv = 0; --- sh.h +++ sh.h2017-12-15 07:35:43.938851966 + @@ -2169,6 +2169,7 @@ void set_prompt(int, Source *); int pprompt(const char *, int); /* main.c */ int include(const char *, int, const char **, bool); +uint8_t isuc(const char *); int command(const char *, int); int shell(Source * volatile, volatile bool); /* argument MUST NOT be 0 */ --- var.c +++ var.c 2017-12-15 07:33:49.364996826 + @@ -28,6 +28,13 @@ #include #endif +#if HAVE_LANGINFO_CODESET +#include +#endif +#if HAVE_SETLOCALE_CTYPE +#include +#endif + __RCSID("$MirOS: src/bin/mksh/var.c,v 1.209 2016/11/11 23:31:39 tg Exp $"); /*- @@ -1326,6 +1333,28 @@ setspec(struct tbl *vp) strdupx(tmpdir, s, APERM); } return; +#if HAVE_SETLOCALE_CTYPE + case V_LC_ALL: + case V_LC_CTYPE: + case V_LANG: + { + char *loc; + loc = str_val(global("LC_ALL")); + if (loc == null) + loc = str_val(global("LC_CTYPE")); + if (loc == null) + loc = str_val(global("LANG")); + if (loc == null) + return; + setlocale(LC_CTYPE, loc); +#if HAVE_LANGINFO_CODESET + if (!isuc(loc)) + loc = nl_langinfo(CODESET); +#endif + UTFMODE = isuc(loc); + } + return; +#endif /* common sub-cases */ case V_COLUMNS: case V_LINES: @@ -1444,6 +1473,28 @@ unsetspec(struct tbl *vp) tmpdir = NULL; } break; +#if HAVE_SETLOCALE_CTYPE + case
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2017-12-01 15:54:14 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is "mksh" Fri Dec 1 15:54:14 2017 rev:15 rq:546900 version:54 Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2017-11-14 13:06:12.311240932 +0100 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2017-12-01 15:54:33.126063721 +0100 @@ -1,0 +2,6 @@ +Wed Nov 22 11:44:24 UTC 2017 - wer...@suse.de + +- Do not change Build.sh for not using hard coded list of signals + and errors but the cpp macros for this (requested by upstream) + +--- Other differences: -- ++ mksh.spec ++ --- /var/tmp/diff_new_pack.4gn4nL/_old 2017-12-01 15:54:33.766040692 +0100 +++ /var/tmp/diff_new_pack.4gn4nL/_new 2017-12-01 15:54:33.770040548 +0100 @@ -36,6 +36,7 @@ BuildRequires: screen BuildRequires: sed BuildRequires: update-alternatives +BuildRequires: virt-what %if 0%{?suse_version} >= 1315 # replaces pdksh in openSUSE >= 13.2 and SLES >= 12 Provides: pdksh = %{version} @@ -64,7 +65,7 @@ %patch0 -p1 -b .p0 %if 0%{?suse_version} > 0 -%if %{suse_version} == 1315 +%if !0%{?is_opensuse} ed -s sh.h <<-'EOF' ,s/#define MKSH_VERSION "R\([^"]*\)"/#define MKSH_VERSION "R\1 SLES"/ w @@ -93,27 +94,31 @@ if grep -q _DEFAULT_SOURCE /usr/include/features.h ; then ed -s Build.sh <<-'EOF' /^Linux)/ - /-D_GNU_SOURCE/s/\(add_cppflags\s\)-D_GNU_SOURCE/\1 -D_GNU_SOURCE -D_DEFAULT_SOURCE/ + /-D_GNU_SOURCE/s/\(add_cppflags\s\)-D_GNU_SOURCE/\1-D_GNU_SOURCE -D_DEFAULT_SOURCE/ w EOF fi +ln -s . examples + +%build +echo "Build system: Virt '$(virt-what)' -- '$(uname -a)'" # # sys_errlist and sys_siglist *are* deprecated +# Be aware of the _SYS_SIGLIST and _SYS_ERRLIST macros as well # -ed -s Build.sh <<-'EOF' - /^ac_test strerror/s/\(strerror\).*\( <<\)/\1\2/ - /^ac_test strsignal/s/\(strsignal\).*\( <<\)/\1\2/ - w - EOF -ed -s histrap.c <<-'EOF' - /^#if HAVE_SYS_SIGLIST/s/HAVE_SYS_SIGLIST/0/ - w - EOF - -ln -s . examples +HAVE_SYS_SIGLIST=0 +HAVE_SYS_ERRLIST=0 +HAVE__SYS_SIGLIST=0 +HAVE__SYS_ERRLIST=0 +export HAVE_SYS_SIGLIST HAVE_SYS_ERRLIST HAVE__SYS_SIGLIST HAVE__SYS_ERRLIST -%build +# +# -ftree-loop-linear +#Perform loop nest optimizations. Same as -floop-nest-optimize. +#To use this code transformation, GCC has to be configured with +#--with-isl to enable the Graphite loop transformation infrastructure. +# export CC=gcc if $CC -Werror -ftree-loop-linear -S -o /dev/null -xc /dev/null > /dev/null 2>&1 then @@ -121,6 +126,10 @@ else export CFLAGS='%{optflags} -Wuninitialized -Wall -Wextra -pipe' fi +case "$(uname -m)" in +ppc64) CFLAGS="$CFLAGS -mbig-endian -mcpu=power4" ;; +ppc64le) CFLAGS="$CFLAGS -mtune=power8 -mcpu=power8" ;; +esac export CPPFLAGS='-DMKSH_VENDOR_MKSHRC_PATH=\"/etc/mkshrc\"' export LDFLAGS='-Wl,--as-needed -Wl,-O2' # filter compiler warnings and errors from configuration tests @@ -173,6 +182,8 @@ %endif %check +# should always run in a clean environment as otherwise +# tests might fail due wrong line numbering SCREENDIR=$(mktemp -d ${PWD}/screen.XX) || exit 1 trap 'rm -rf $SCREENDIR' EXIT SCREENRC=${SCREENDIR}/mksh
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2017-11-14 13:06:07 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is "mksh" Tue Nov 14 13:06:07 2017 rev:14 rq:541746 version:54 Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2017-03-04 16:48:50.109063115 +0100 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2017-11-14 13:06:12.311240932 +0100 @@ -1,0 +2,6 @@ +Tue Nov 14 08:36:40 UTC 2017 - wer...@suse.de + +- The AT ksh is still part of openSUSE but on SLES only mksh + should be used (bsc#1067195) + +--- Other differences: -- ++ mksh.spec ++ --- /var/tmp/diff_new_pack.EKpIJb/_old 2017-11-14 13:06:12.971216800 +0100 +++ /var/tmp/diff_new_pack.EKpIJb/_new 2017-11-14 13:06:12.975216653 +0100 @@ -40,7 +40,7 @@ # replaces pdksh in openSUSE >= 13.2 and SLES >= 12 Provides: pdksh = %{version} Obsoletes: pdksh < %{version} -%if 0%{suse_version} == 1315 +%if !0%{?is_opensuse} Provides: ksh = %{version} Obsoletes: ksh < %{version} %endif
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2017-03-04 16:37:06 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is "mksh" Sat Mar 4 16:37:06 2017 rev:13 rq:460024 version:54 Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2015-04-22 01:19:00.0 +0200 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2017-03-04 16:48:50.109063115 +0100 @@ -1,0 +2,183 @@ +Thu Feb 23 10:42:43 UTC 2017 - wer...@suse.de + +- Avoid deprecated API for errors and signals +- Be sure to use a clean history file + +--- +Tue Feb 21 17:02:03 UTC 2017 - wer...@suse.de + +- Make errors ini test suite fatal +- Avoid -flto as this breaks even with gcc 6.3.1 20170202 + +--- +Tue Feb 14 16:37:07 UTC 2017 - wer...@suse.de + +- Use screen to provide a tty for test suite scripts + +--- +Tue Feb 14 16:19:19 UTC 2017 - wer...@suse.de + +- Update to version R54 + R54 is a bugfix release with moderate new features: +[tg] Simplify and improve code and manual page +[tg] Try GCC 5’s new -malign-data=abi +[tg] Allow interrupting builtin cat even on fast devices (LP#1616692) +[tg] Update to Unicode 9.0.0 +[Andreas Buschka] Correct English spelling +[tg] Handle set -e-related error propagation in || and && constructs correctly +[tg] Initialise memory for RNG even when not targeting Valgrind +[tg] Shrink binary size +[Brian Callahan] Improve support for the contemporary pcc compiler +[tg] Fix side effects with lazy evaluation; spotted by ormaaj +[tg] New flags -c (columnise), -l, -N for the print builtin +[Larry Hynes] Fix English, spelling mistakes, typos in the manpage +[tg, ormaah] Return 128+SIGALRM if read -t times out, like GNU bash +[Martijn Dekker] Install both manpages from Build.sh +[Martijn Dekker] Document case changes are ASCII-only +[Ronald G. Minnich, Elbing Miss, Álvaro Jurado, tg] Begin porting to Harvey-OS and APEX (similar to Plan 9 and APE) +[KO Myung-Hun] More infrastructure for the OS/2 (EMX, KLIBC) port + R53a is a snapshot/feature release: +[lintian] Fix spelling +[tg] Unbreak multi-line command history broken by history flush +[tg] Fix redefining POSIX functions that were Korn functions before +[tg, TNF] Fix bounds checks in Vi editing mode +[tg] Handle combining characters at end of string or output correctly +[tg] Fix ${!#} ${!?} ${!-} (POSIX, prompted by izabera) +[tg] Fix shf.c-internal buffer overread on printing digits +[J�rg] Fix a typo in the testsuite +[arekm] Increase default edit line size (unless MKSH_SMALL) +[tg] Improve description of Emacs mode keybindings, especially ^U +[tg, arekm, jilles] Abort read builtin in case of read(2) errors +[tg, izabera, carstenh] Fix most of the ambiguous corner cases related to ${[pfx]var[op[word]]} (${@:-1} still unsupported) +[carstenh] Contribute some more testsuite coverage +[tg] WDS_TPUTS now emits QCHAR newline reentrant-safe +[tg] Fix var=<< implementation (LP#1380389) +[tg, FreeBSD] Make XSI test(1) extensions behave as if they were POSIX +[tg, izabera] Add $(<<>> as ROL and ROR operators with their new ^< and ^> spelling as per this proposal +[tg, slagtc] Clear-to-EOL under tmux to work around its anti-feature +[tg, p120ph37] Remove support for using file descriptors with more than a single digit, in preparation for named file descriptors +[tg] Correct, but simplify (at the potential cost of more tty I/O than strictly necessary, though never redundant and (probably) not more than before when it was miscalculated), line clearing and redrawing +[slagtc, tg] Implement new evaluate-region editing command Esc+Ctrl-E +[tg] Prefer external rename utility over the recovery builtin +[tg] Remove redundant full-line redraws +[tg, Natureshadow] Fix errorlevel of ‘.’ (“dot” special builtin) when the sourced script does not run any commands, for POSIX compliance +[tg] Refactor op tokens and edchars to shave off some more bytes +[tg] Fix some bugs in the
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2015-04-22 01:18:58 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is mksh Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2015-03-03 11:15:31.0 +0100 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2015-04-22 01:19:00.0 +0200 @@ -1,0 +2,45 @@ +Mon Apr 20 21:37:37 UTC 2015 - g...@opensuse.org + +- mention vendor modifications in manpage as requested by upstream + +--- +Mon Apr 20 20:48:03 UTC 2015 - g...@opensuse.org + +- update to version 50f + - [tg] OpenBSD sync: handle integer base out of band like ksh93 +does + - [tg] Protect standard code (predefined aliases, internal code, +aliases and functions in dot.mkshrc) from being overridden by +aliases and, in some cases, shell functions (i.e. permit +overriding but ignore it) + - [tg] Implement GNU bash’s enable for dot.mkshrc using magic +aliases to redirect the builtins to external utilities; this +differs from GNU bash in that enable takes precedence over +functions + - [tg] Move unaliasing an identifier when defining a POSIX-style +function with the same name into lksh, as compatibility kludge + - [tg] Korn shell style functions now have locally scoped shell +options + - [tg] Add a patch marker for vendor patch versioning to mksh.1 + - [tg] SECURITY: make unset HISTFILE actually work + - [tg] Document some more issues with the current history code + - [tg] Remove some unused code + - [tg] RCSID-only sync with OpenBSD, for bogus and irrelevant +changes + - [tg] Also disable field splitting for alias 'local=\typeset' + - [tg] Fix read -n-1 to not be identical to read -N-1 + - [tg] Several fixes and improvements to lksh(1) and mksh(1) +manpages + - [tg] More code (int → size_t), comment and testsuite fixes + - [tg] Make dot.mkshrc more robust (LP#1441853) + - [tg] Fix issues with IFS='\' read, found by edualbus + - [enh, tg] Fix integer overflows related to file descriptor +parsing, found by Pawel Wylecial (LP#1440685); reduce memory +usage for I/O redirs + - [tg] Document in the manpage how to set ±U according to the +current locale settings via LANG/LC_* parameters (cf. Debian +#782225) + - [igli, tg] Some code cleanup and restructuring + - [tg, oksh] Handle number parsing and storing more carefully + +--- Old: mksh-R50e.tgz New: mksh-R50f.tgz Other differences: -- ++ mksh.spec ++ --- /var/tmp/diff_new_pack.2DY6KA/_old 2015-04-22 01:19:01.0 +0200 +++ /var/tmp/diff_new_pack.2DY6KA/_new 2015-04-22 01:19:01.0 +0200 @@ -21,7 +21,7 @@ # Please see OBS home:mirabile/mksh for a package for other distributions. Name: mksh -Version:50e +Version:50f Release:0 Summary:MirBSD Korn Shell License:MirOS and ISC @@ -66,6 +66,11 @@ ,s/@(#)\(MIRBSD\|LEGACY\) KSH R\(.*\)/@(#)\1 KSH R\2 SUSE/ w EOF +ed -s mksh.1 'EOF' +/insert-your-name-here/s/^\.\\ // +s/insert-your-name-here/SUSE/ +w +EOF %endif ln -s . examples ++ mksh-R50e.tgz - mksh-R50f.tgz ++ 1971 lines of diff (skipped)
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2015-03-03 11:15:03 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is mksh Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2014-10-08 22:14:06.0 +0200 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2015-03-03 11:15:31.0 +0100 @@ -1,0 +2,54 @@ +Sun Mar 1 23:45:48 UTC 2015 - g...@opensuse.org + +- update to version 50e + - [tg] Add more tests detailing behaviour difference from GNU +bash + - [tg] Introduce a memory leak for x= fixing use of freed +memory instead, bug tracked as LP#1380389 still live + - [tg] Add x+= parallel to x= + - [tg, ormaaj, jilles] POSIX “command” loses builtin special-ness + - [tg] Fix LP#1381965 and LP#1381993 (more field splitting) + - [jilles] Update location of FreeBSD testsuite for test(1) + - [Martin Natano] Remove dead NULL elements from Emacs +keybindings + - [tg, Stéphane Chazelas, Geoff Clare] Change several testcases +for $*/$@ expansion with/without quotes to expected-fail, with +even more to come ☹ + - [tg] Fix miscalculating required memory for encoding the +double-quoted parts of a here document or here string +delimiter, leading to a buffer overflow; discovered by zacts +from IRC + - [RT] Rename a function conflicting with a MacRelix system +header + - [tg] Use size_t (and ssize_t) consistently, stop using +ptrdiff_t; fixes some arithmetics and S/390 bugs + - [tg] Remove old workarounds for Clang 3.2 scan-build + - [tg] Remove all Clang/Coverity assertions, making room for new +checks + - [tg] Fix NSIG generation on Debian sid gcc-snapshot + - [tg] Make a testcase not fail in a corner case + - [tg] Fix issues detected by GCC’s new sanitisers: data type of +a value to be shifted constantly must be unsigned (what not, in +C…); shebang check array accesses are always unsigned char + - [tg] Be even more explicit wrt. POSIX in the manpage + - [tg] Fix shebang / file magic decoding + - [tg] More int → bool conversion + - [tg] Let Build.sh be run by GNU bash 1.12.1 (Slackware 1.01) + - [Stéphane Chazelas, tg] Fix here string parsing issue + - [tg] Point out more future changes in the manpage + - [tg] Call setgid(2), setegid(2), setuid(2) before seteuid(2) + - [tg] Fix spurious empty line after ENOENT “whence -v”, found by +Ypnose + - [tg] Optimise dot.mkshrc and modernise it a bit + - [tg] Use MAXPATHLEN from sys/param.h for PATH_MAX fallback + - [tg] Some code cleanup and warnings fixes + - [tg] Add options -a argv0 and -c to exec + - [jsg] Prevent use-after-free when hitting multiple errors +unwinding + - [tg] Fix use of $* and $@ in scalar context: within [[ … ]] and +after case (spotted by Stéphane Chazelas) and in here documents +(spotted by tg@); fix here document expansion + - [tg] Unbreak when $@ shares double quotes with others + - [tg] Fix set -x in PS4 expansion infinite loop + +--- Old: mksh-R50d.tgz New: mksh-R50e.tgz Other differences: -- ++ mksh.spec ++ --- /var/tmp/diff_new_pack.J4NIRy/_old 2015-03-03 11:15:31.0 +0100 +++ /var/tmp/diff_new_pack.J4NIRy/_new 2015-03-03 11:15:31.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package mksh # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 Guido Berhoerster. # Copyright (c) 2013, 2014 Thorsten Glaser. # @@ -21,7 +21,7 @@ # Please see OBS home:mirabile/mksh for a package for other distributions. Name: mksh -Version:50d +Version:50e Release:0 Summary:MirBSD Korn Shell License:MirOS and ISC ++ mksh-R50d.tgz - mksh-R50e.tgz ++ 3206 lines of diff (skipped) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2014-10-08 22:13:54 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is mksh Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2014-10-05 20:33:34.0 +0200 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2014-10-08 22:14:06.0 +0200 @@ -1,0 +2,11 @@ +Tue Oct 7 17:22:15 UTC 2014 - t...@mirbsd.org + +- update to regression bugfix version 50d + - [Goodbox] Fix NULL pointer dereference on “unset x; nameref x” + - [tg] Fix severe regression in field splitting (LP#1378208) + - [tg] Add a warning about not using tainted user input (including +from the environment) in arithmetics, until Stéphane writes it up +nicely +- refresh vendor patch + +--- Old: mksh-R50c.tgz New: mksh-R50d.tgz Other differences: -- ++ mksh.spec ++ --- /var/tmp/diff_new_pack.ykhRCF/_old 2014-10-08 22:14:07.0 +0200 +++ /var/tmp/diff_new_pack.ykhRCF/_new 2014-10-08 22:14:07.0 +0200 @@ -21,7 +21,7 @@ # Please see OBS home:mirabile/mksh for a package for other distributions. Name: mksh -Version:50c +Version:50d Release:0 Summary:MirBSD Korn Shell License:MirOS and ISC ++ mksh-R50c.tgz - mksh-R50d.tgz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mksh/Build.sh new/mksh/Build.sh --- old/mksh/Build.sh 2014-10-03 19:32:57.0 +0200 +++ new/mksh/Build.sh 2014-10-07 17:23:02.0 +0200 @@ -1,5 +1,5 @@ #!/bin/sh -srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.668 2014/10/03 17:32:07 tg Exp $' +srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.669 2014/10/07 15:22:12 tg Exp $' #- # Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012, 2013, 2014 @@ -1784,7 +1784,7 @@ #define EXTERN #define MKSH_INCLUDES_ONLY #include sh.h - __RCSID($MirOS: src/bin/mksh/Build.sh,v 1.668 2014/10/03 17:32:07 tg Exp $); + __RCSID($MirOS: src/bin/mksh/Build.sh,v 1.669 2014/10/07 15:22:12 tg Exp $); int main(void) { printf(Hello, World!\n); return (isatty(0)); } EOF case $cm in @@ -2316,7 +2316,7 @@ addsrcs USE_PRINTF_BUILTIN printf.c test 1 = $USE_PRINTF_BUILTIN add_cppflags -DMKSH_PRINTF_BUILTIN test 1 = $HAVE_CAN_VERB CFLAGS=$CFLAGS -verbose -add_cppflags -DMKSH_BUILD_R=503 +add_cppflags -DMKSH_BUILD_R=504 $e $bi$me: Finished configuration testing, now producing output.$ao diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mksh/check.t new/mksh/check.t --- old/mksh/check.t2014-10-03 19:32:59.0 +0200 +++ new/mksh/check.t2014-10-07 17:23:04.0 +0200 @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/check.t,v 1.659 2014/10/03 17:32:09 tg Exp $ +# $MirOS: src/bin/mksh/check.t,v 1.661 2014/10/07 15:22:14 tg Exp $ # OpenBSD src/regress/bin/ksh updated: 2013/12/02 20:39:44 #- # Copyright © 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, @@ -27,7 +27,7 @@ # http://www.freebsd.org/cgi/cvsweb.cgi/src/tools/regression/bin/test/regress.sh?rev=HEAD expected-stdout: - @(#)MIRBSD KSH R50 2014/10/03 + @(#)MIRBSD KSH R50 2014/10/07 description: Check version of shell. stdin: @@ -36,7 +36,7 @@ category: shell:legacy-no --- expected-stdout: - @(#)LEGACY KSH R50 2014/10/03 + @(#)LEGACY KSH R50 2014/10/07 description: Check version of legacy shell. stdin: @@ -3736,12 +3736,18 @@ name: IFS-subst-3 description: Check leading IFS non-whitespace after trim does make a field + but leading IFS whitespace does not, nor empty replacements stdin: showargs() { for i; do echo -n $i; done; echo; } + showargs 0 ${-+} IFS=: showargs 1 ${-+:foo:bar} + IFS=' ' + showargs 2 ${-+ foo bar} expected-stdout: +0 1 foo bar +2 foo bar --- name: IFS-subst-4-1 description: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mksh/eval.c new/mksh/eval.c --- old/mksh/eval.c 2014-10-03 19:33:01.0 +0200 +++ new/mksh/eval.c 2014-10-07 17:23:06.0 +0200 @@ -23,7 +23,7 @@ #include sh.h -__RCSID($MirOS: src/bin/mksh/eval.c,v 1.152 2014/10/03 17:32:11 tg Exp $); +__RCSID($MirOS: src/bin/mksh/eval.c,v 1.153 2014/10/07 15:22:16 tg Exp $); /* * string expansion @@ -62,6 +62,7 @@ #define IFS_WORD 0 /* word has chars
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2014-10-05 20:31:57 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is mksh Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2014-09-06 16:59:29.0 +0200 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2014-10-05 20:33:34.0 +0200 @@ -1,0 +2,19 @@ +Fri Oct 3 19:21:55 UTC 2014 - t...@mirbsd.org + +- update to SECURITY version 50c + - [tg] Know more rare signals when generating sys_signame[] replacement + - [tg] OpenBSD sync (mostly RCSID only) + - [tg] Document HISTSIZE limit; found by luigi_345 on IRC + - [zacts] Fix link to Debian .mkshrc + - [tg] Cease exporting $RANDOM (Debian #760857) + - [tg] Fix C99 compatibility + - [tg] Work around klibc bug causing a coredump (Debian #763842) + - [tg] Use issetugid(2) as additional check if we are FPRIVILEGED + - [tg] SECURITY: do not permit += from environment + - [tg] Fix more field splitting bugs reported by Stephane Chazelas and +mikeserv; document current status wrt. ambiguous ones as testcases too +- use build log cleaner sed command from home:mirabile package +- enable lksh build-time option to automatically run set -o posix + when called as sh or -sh, like home:mirabile package did + +--- Old: mksh-R50b.tgz New: mksh-R50c.tgz Other differences: -- ++ mksh.spec ++ --- /var/tmp/diff_new_pack.RdEVqt/_old 2014-10-05 20:33:35.0 +0200 +++ /var/tmp/diff_new_pack.RdEVqt/_new 2014-10-05 20:33:35.0 +0200 @@ -3,7 +3,7 @@ # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 Guido Berhoerster. -# Copyright (c) 2013 Thorsten Glaser. +# Copyright (c) 2013, 2014 Thorsten Glaser. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,7 +21,7 @@ # Please see OBS home:mirabile/mksh for a package for other distributions. Name: mksh -Version:50b +Version:50c Release:0 Summary:MirBSD Korn Shell License:MirOS and ISC @@ -82,6 +82,8 @@ sh Build.sh -r -c lto || touch build.failed %endif mv test.sh test-mksh.sh +# build lksh to automatically enable -o posix if called as sh +CPPFLAGS=$CPPFLAGS -DMKSH_BINSHPOSIX # work around bugs in gcc 4.8 (deb#717734 rh#922974) and gcc 4.1.2 in SLE 10 %if 0%{?suse_version} = 1310 || 0%{?sles_version} == 10 sh Build.sh -L -r || touch build.failed @@ -89,7 +91,9 @@ sh Build.sh -L -r -c lto || touch build.failed %endif mv test.sh test-lksh.sh -} 21 | sed '/conftest.c:/s/: warning:/: W:/' +} 21 | sed \ + -e 's!conftest.c:\([0-9]*\(:[0-9]*\)*\): error:!cE(\1) -!g' \ + -e 's!conftest.c:\([0-9]*\(:[0-9]*\)*\): warning:!cW(\1) -!g' test ! -e build.failed %install ++ mksh-R50b.tgz - mksh-R50c.tgz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mksh/Build.sh new/mksh/Build.sh --- old/mksh/Build.sh 2014-09-03 21:23:13.0 +0200 +++ new/mksh/Build.sh 2014-10-03 19:32:57.0 +0200 @@ -1,5 +1,5 @@ #!/bin/sh -srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.664 2014/09/03 19:22:48 tg Exp $' +srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.668 2014/10/03 17:32:07 tg Exp $' #- # Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012, 2013, 2014 @@ -1784,7 +1784,7 @@ #define EXTERN #define MKSH_INCLUDES_ONLY #include sh.h - __RCSID($MirOS: src/bin/mksh/Build.sh,v 1.664 2014/09/03 19:22:48 tg Exp $); + __RCSID($MirOS: src/bin/mksh/Build.sh,v 1.668 2014/10/03 17:32:07 tg Exp $); int main(void) { printf(Hello, World!\n); return (isatty(0)); } EOF case $cm in @@ -1904,6 +1904,11 @@ int main(void) { struct timeval tv; return (gettimeofday(tv, NULL)); } EOF +ac_test issetugid -'EOF' + #include unistd.h + int main(void) { return (issetugid()); } +EOF + ac_test killpg -'EOF' #include signal.h int main(int ac, char *av[]) { return (av[0][killpg(123, ac)]); } @@ -2273,6 +2278,7 @@ sigs=ABRT FPE ILL INT SEGV TERM ALRM BUS CHLD CONT HUP KILL PIPE QUIT sigs=$sigs STOP TSTP TTIN TTOU USR1 USR2 POLL PROF SYS TRAP URG VTALRM sigs=$sigs XCPU XFSZ INFO WINCH EMT IO DIL LOST PWR SAK CLD IOT RESV + sigs=$sigs STKFLT UNUSED test 1 = $HAVE_CPP_DD test $NSIG -gt 1 sigs=$sigs `vq \ $CPP
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2014-09-06 12:18:33 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is mksh Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2014-08-25 11:04:04.0 +0200 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2014-09-06 16:59:29.0 +0200 @@ -1,0 +2,23 @@ +Thu Sep 4 16:06:24 UTC 2014 - g...@opensuse.org + +- update to version 50b + - [Ypnose] Fix operator description in the manpage + - [tg] Change all mention of “eglibc” to “glibc”, it is merged +back + - [Colona] Fix rare infinite loop with invalid UTF-8 in the edit +buffer + - [tg] Make more clear when a shell is interactive in the manpage + - [tg] Document that % is a symmetric remainder operation, and +how to get a mathematical modulus from it, in the manpage + - [tg, Christopher Ferris, Elliott Hughes] Make the cat(1) +builtin also interruptible in the write loop, not just in the +read loop, and avoid it getting SIGPIPE in the smores function +in dot.mkshrc by terminating cat upon user quit + - [tg] Make some comments match the code, after jaredy from obsd +changed IFS split handling + - [tg] Fix some IFS-related mistakes in the manual page + - [tg] Document another issue as known-to-fail test IFS-subst-3 + - [tg] Improve check.pl output in some cases + - [tg, Jb_boin] Relax overzealous nameref RHS checks + +--- Old: mksh-R50.tgz New: mksh-R50b.tgz Other differences: -- ++ mksh.spec ++ --- /var/tmp/diff_new_pack.Vkz6vc/_old 2014-09-06 16:59:30.0 +0200 +++ /var/tmp/diff_new_pack.Vkz6vc/_new 2014-09-06 16:59:30.0 +0200 @@ -21,7 +21,7 @@ # Please see OBS home:mirabile/mksh for a package for other distributions. Name: mksh -Version:50 +Version:50b Release:0 Summary:MirBSD Korn Shell License:MirOS and ISC ++ mksh-R50.tgz - mksh-R50b.tgz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mksh/Build.sh new/mksh/Build.sh --- old/mksh/Build.sh 2014-06-29 12:56:33.0 +0200 +++ new/mksh/Build.sh 2014-09-03 21:23:13.0 +0200 @@ -1,5 +1,5 @@ #!/bin/sh -srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.662 2014/06/29 10:56:08 tg Exp $' +srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.664 2014/09/03 19:22:48 tg Exp $' #- # Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012, 2013, 2014 @@ -1784,7 +1784,7 @@ #define EXTERN #define MKSH_INCLUDES_ONLY #include sh.h - __RCSID($MirOS: src/bin/mksh/Build.sh,v 1.662 2014/06/29 10:56:08 tg Exp $); + __RCSID($MirOS: src/bin/mksh/Build.sh,v 1.664 2014/09/03 19:22:48 tg Exp $); int main(void) { printf(Hello, World!\n); return (isatty(0)); } EOF case $cm in @@ -2310,7 +2310,7 @@ addsrcs USE_PRINTF_BUILTIN printf.c test 1 = $USE_PRINTF_BUILTIN add_cppflags -DMKSH_PRINTF_BUILTIN test 1 = $HAVE_CAN_VERB CFLAGS=$CFLAGS -verbose -add_cppflags -DMKSH_BUILD_R=501 +add_cppflags -DMKSH_BUILD_R=502 $e $bi$me: Finished configuration testing, now producing output.$ao @@ -2620,7 +2620,7 @@ MKSH_DONT_EMIT_IDSTRINGomit RCS IDs from binary MKSH_MIDNIGHTBSD01ASH_COMPAT set -o sh: additional compatibility quirk MKSH_NOPROSPECTOFWORK disable jobs, co-processes, etc. (do not use) -MKSH_NOPWNAM skip PAM calls, for -static on eglibc, Solaris +MKSH_NOPWNAM skip PAM calls, for -static on glibc or Solaris MKSH_NO_CMDLINE_EDITINGdisable command line editing code entirely MKSH_NO_DEPRECATED_WARNING omit warning when deprecated stuff is run MKSH_NO_EXTERNAL_CAT omit hack to skip cat builtin when flags passed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mksh/check.pl new/mksh/check.pl --- old/mksh/check.pl 2014-06-09 15:26:15.0 +0200 +++ new/mksh/check.pl 2014-08-19 09:43:57.0 +0200 @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/check.pl,v 1.36 2014/06/09 13:25:50 tg Exp $ +# $MirOS: src/bin/mksh/check.pl,v 1.37 2014/08/19 07:43:32 tg Exp $ # $OpenBSD: th,v 1.1 2013/12/02 20:39:44 millert Exp $ #- # Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2011, @@ -348,6 +348,7 @@ print ($nifailed ignored) if $nifailed; print ($nxfailed unexpected) if $nxfailed; print (as expected) if $nfailed !$nxfailed !$nifailed; +
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2014-08-25 11:03:28 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is mksh Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2014-07-01 07:05:35.0 +0200 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2014-08-25 11:04:04.0 +0200 @@ -1,0 +2,12 @@ +Thu Aug 21 12:22:27 CEST 2014 - p...@suse.de + +- We use update-alternatives so there is no need to obsolete ksh. +- Do not differentiate between openSUSE and SLES and simply state + that this is the SUSE version. + +--- +Tue Aug 19 13:51:41 CEST 2014 - p...@suse.de + +- Test for suse_version 1315 as that is what SLE12 will be using. + +--- Other differences: -- ++ mksh.spec ++ --- /var/tmp/diff_new_pack.arjWIf/_old 2014-08-25 11:04:05.0 +0200 +++ /var/tmp/diff_new_pack.arjWIf/_new 2014-08-25 11:04:05.0 +0200 @@ -34,10 +34,11 @@ # for %%check BuildRequires: perl BuildRequires: update-alternatives -%if 0%{?suse_version} = 1320 -# replaces pdksh in openSUSE = 13.2 +%if 0%{?suse_version} = 1315 +# replaces pdksh in openSUSE = 13.2 and SLES = 12 Provides: pdksh = %{version} Obsoletes: pdksh %{version} +Provides: /bin/ksh Requires(post): update-alternatives Requires(preun): update-alternatives %else @@ -56,14 +57,16 @@ %setup -q -n %{name} %patch0 -p1 +%if 0%{?sles_version} 0 || 0%{suse_version} 0 ed -s sh.h 'EOF' -,s/#define MKSH_VERSION R\([^]*\)/#define MKSH_VERSION R\1 openSUSE/ +,s/#define MKSH_VERSION R\([^]*\)/#define MKSH_VERSION R\1 SUSE/ w EOF ed -s check.t 'EOF' -,s/@(#)\(MIRBSD\|LEGACY\) KSH R\(.*\)/@(#)\1 KSH R\2 openSUSE/ +,s/@(#)\(MIRBSD\|LEGACY\) KSH R\(.*\)/@(#)\1 KSH R\2 SUSE/ w EOF +%endif ln -s . examples @@ -98,7 +101,7 @@ done install -d -m 755 %{buildroot}%{_sysconfdir}/alternatives ln -s %{_sysconfdir}/bash.bashrc %{buildroot}%{_sysconfdir}/mkshrc -%if 0%{?suse_version} = 1320 +%if 0%{?suse_version} = 1315 # compatibility symlinks for pdksh, lksh replaces pdksh in openSUSE = 13.2 ln -s /bin/lksh %{buildroot}/bin/pdksh ln -s %{_bindir}/lksh %{buildroot}%{_bindir}/pdksh @@ -122,7 +125,7 @@ %clean rm -Rf %{buildroot} -%if 0%{?suse_version} = 1320 +%if 0%{?suse_version} = 1315 %post %{_sbindir}/update-alternatives \ --install /bin/ksh ksh %{_bindir}/lksh 15 \ @@ -163,7 +166,7 @@ %{_bindir}/lksh %{_mandir}/man1/mksh.1%{?ext_man} %{_mandir}/man1/lksh.1%{?ext_man} -%if 0%{?suse_version} = 1320 +%if 0%{?suse_version} = 1315 /bin/pdksh %{_bindir}/pdksh %{_mandir}/man1/pdksh.1%{?ext_man} -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2014-07-01 07:05:26 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is mksh Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2014-03-05 15:36:39.0 +0100 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2014-07-01 07:05:35.0 +0200 @@ -1,0 +2,42 @@ +Sun Jun 29 21:34:02 UTC 2014 - g...@opensuse.org + +- update to version 50 + - [tg] Fix initial IFS whitespace not being ignored when +expanding + - [tg] MKSH_BINSHREDUCED no longer mistakenly enables brace +expansion + - [tg] Explain more clearly Vi input mode limitations in the +manpage + - [tg] Improve error reporting of the check.pl script (which +needs a maintainer since I don’t speak any perl(1), really), +for lewellyn + - [tg] Use $TMPDIR in test.sh for scratch space + - [tg, Polynomial-C] Check that the scratch space is not mounted +noexec + - [pekster, jilles, tg] Use termcap(5) names, not terminfo(5) +names, in tput(1) examples, for improved portability (e.g. to +MidnightBSD) + - [tg] Avoid C99 Undefined Behaviour in mirtoconf LFS test +(inspired by Debian #742780) + - [tg] Fix ${!foo} for when foo is unset + - [tg] Improve nameref error checking (LP#1277691) + - [tg] Fix readonly bypass found by Bert Münnich + - [Ryan Schmidt] Improved system reporting for Mac OS X + - [nDuff] Explain better [[ extglob handling in the manpage + - [tg] Remove arr=([index]=value) syntax due to regressions + - [tg] IFS-split arithmetic expansions as per POSIX 201x + - [OpenBSD] Add more detailed Authors section to manpage + - [tg] Fix set ±p issue for good: drop privs unless requested + - [tg] Improve signal handling and use a more canonical probing +order + - [tg] Fix return values $? and ${PIPESTATUS[*]} interaction with +set -o pipefail and COMSUBs + - [enh] Detect ENOEXEC ELF files and use a less confusing error +message + - [tg] Update to Unicode 7.0.0 + - [tg] Shut up valgrind in the $RANDOM code + - [tg] Use -fstack-protector-strong in favour of +-fstack-protector-all + - [tg] Fix access-after-free crash spotted by Enjolras via IRC + +--- Old: mksh-R49.tgz New: mksh-R50.tgz Other differences: -- ++ mksh.spec ++ --- /var/tmp/diff_new_pack.lpgoaU/_old 2014-07-01 07:05:36.0 +0200 +++ /var/tmp/diff_new_pack.lpgoaU/_new 2014-07-01 07:05:36.0 +0200 @@ -21,7 +21,7 @@ # Please see OBS home:mirabile/mksh for a package for other distributions. Name: mksh -Version:49 +Version:50 Release:0 Summary:MirBSD Korn Shell License:MirOS and ISC ++ mksh-R49.tgz - mksh-R50.tgz ++ 1659 lines of diff (skipped) ++ mksh-vendor-mkshrc.patch ++ --- /var/tmp/diff_new_pack.lpgoaU/_old 2014-07-01 07:05:36.0 +0200 +++ /var/tmp/diff_new_pack.lpgoaU/_new 2014-07-01 07:05:36.0 +0200 @@ -2,26 +2,26 @@ === --- mksh.orig/main.c +++ mksh/main.c -@@ -636,6 +636,11 @@ main_init(int argc, const char *argv[], - else if (Flag(FTALKING)) { - char *env_file; - +@@ -591,6 +591,11 @@ main_init(int argc, const char *argv[], + if (Flag(FLOGIN)) + include(substitute($HOME/.profile, 0), 0, NULL, true); + if (Flag(FTALKING)) { +#if defined(MKSH_VENDOR_MKSHRC_PATH) !defined(MKSH_LEGACY_MODE) -+ /* include vendor mkshrc */ -+ include(MKSH_VENDOR_MKSHRC_PATH, 0, NULL, true); ++ /* include vendor mkshrc */ ++ include(MKSH_VENDOR_MKSHRC_PATH, 0, NULL, true); +#endif + - /* include $ENV */ - env_file = substitute(substitute(${ENV:- MKSHRC_PATH }, 0), - DOTILDE); + cp = substitute(substitute(${ENV:- MKSHRC_PATH }, + 0), DOTILDE); + if (cp[0] != '\0') Index: mksh/mksh.1 === --- mksh.orig/mksh.1 +++ mksh/mksh.1 -@@ -375,6 +375,11 @@ This isn't easily implemented but - .Pq just always run Ic set +p - a stopgap measure for: - .Pa http://blog.cmpxchg8b.com/2013/08/security\-debianisms.html +@@ -371,6 +371,11 @@ it is processed; non-existence is silent + A privileged shell then drops privileges if neither was the + .Fl p + option given on the command line nor set during execution of the startup files. +.Pp +If enabled at
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2014-01-13 10:55:32 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is mksh Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2013-10-30 15:45:46.0 +0100 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2014-01-13 10:55:33.0 +0100 @@ -1,0 +2,29 @@ +Sun Jan 12 10:09:16 UTC 2014 - g...@opensuse.org + +- update to version 49 + - [tg] dot.mkshrc: fix two issues with the cd wrapper + - [tg] Unbreak set +p (wider issue still to be addressed) + - [Steffen Daode Nurpmeso] Use WCONTINUED with waitpid(2) + - [millert] Add proper suspend builtin handling tty(4) and +setpgrp(2) + - [tg] Sanitise and slightly optimise control character handling + - [tg] Add O_BINARY to all open(2) calls for OS/2 kLIBC support + - [tg] Generate option strings for shell, set, ulimit at compile +time + - [Steffen Daode Nurpmeso] Drop ISTRIP termios(4) mode + - [tg] Mention negative history numbers, octals in the manpage + - [tg] Make check.pl work with Perl 5.6.1 again + - [tg] Detect getsid(2) and skip the oksh suspend builtin +otherwise + - [tg] Document that set -o noclobber is unsafe for tempfiles + - [tg] Update to Unicode 6.3.0 + - [RT] Restore some portability + - [tg] Fix parsing positional argument variable names + - [tg] Sprinkle a few __attribute__((__pure__)); fix warnings + - [tg] Fix build on OSX: always use our wcwidth code; only use +our strlcpy(3) code if the OE doesn’t provide one (prompted by +jonthn on IRC) + - [tg] Optimise sh -c to exec even in MKSH_SMALL + - [tg] Use new BAFH for hashing + +--- Old: mksh-R48b.tgz New: mksh-R49.tgz Other differences: -- ++ mksh.spec ++ --- /var/tmp/diff_new_pack.ELfqYZ/_old 2014-01-13 10:55:34.0 +0100 +++ /var/tmp/diff_new_pack.ELfqYZ/_new 2014-01-13 10:55:34.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package mksh # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 Guido Berhoerster. # Copyright (c) 2013 Thorsten Glaser. # @@ -21,7 +21,7 @@ # Please see OBS home:mirabile/mksh for a package for other distributions. Name: mksh -Version:48b +Version:49 Release:0 Summary:MirBSD Korn Shell License:MirOS and ISC ++ mksh-R48b.tgz - mksh-R49.tgz ++ 3978 lines of diff (skipped) ++ mksh-vendor-mkshrc.patch ++ --- /var/tmp/diff_new_pack.ELfqYZ/_old 2014-01-13 10:55:34.0 +0100 +++ /var/tmp/diff_new_pack.ELfqYZ/_new 2014-01-13 10:55:34.0 +0100 @@ -2,7 +2,7 @@ === --- mksh.orig/main.c +++ mksh/main.c -@@ -648,6 +648,11 @@ main_init(int argc, const char *argv[], +@@ -636,6 +636,11 @@ main_init(int argc, const char *argv[], else if (Flag(FTALKING)) { char *env_file; @@ -18,10 +18,11 @@ === --- mksh.orig/mksh.1 +++ mksh/mksh.1 -@@ -366,6 +366,10 @@ parameter after subjecting it to paramet - substitution; if unset or empty, the user mkshrc profile is processed; - otherwise, if a file whose name is the substitution result exists, - it is processed; non-existence is silently ignored. +@@ -375,6 +375,11 @@ This isn't easily implemented but + .Pq just always run Ic set +p + a stopgap measure for: + .Pa http://blog.cmpxchg8b.com/2013/08/security\-debianisms.html ++.Pp +If enabled at compile time, all interactive shells process a vendor-supplied +initialisation file before the +.Ev ENV -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit mksh for openSUSE:Factory
Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2013-10-30 15:45:45 Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) Package is mksh Changes: --- /work/SRC/openSUSE:Factory/mksh/mksh.changes2013-10-17 17:42:22.0 +0200 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2013-10-30 15:45:46.0 +0100 @@ -1,0 +2,8 @@ +Fri Oct 18 15:09:53 UTC 2013 - g...@opensuse.org + +- replace pdksh in openSUSE = 13.2, lksh provides backwards + compatibility + - create corresponding symlinks + - use update-alternatives to allow for lksh as (/usr)/bins/ksh + +--- Other differences: -- ++ mksh.spec ++ --- /var/tmp/diff_new_pack.hohH60/_old 2013-10-30 15:45:47.0 +0100 +++ /var/tmp/diff_new_pack.hohH60/_new 2013-10-30 15:45:47.0 +0100 @@ -16,23 +16,31 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + + # Please see OBS home:mirabile/mksh for a package for other distributions. Name: mksh Version:48b Release:0 -License:MirOS and ISC Summary:MirBSD Korn Shell -Url:http://www.mirbsd.org/mksh.htm +License:MirOS and ISC Group: System/Shells +Url:http://www.mirbsd.org/mksh.htm Source: https://www.mirbsd.org/MirOS/dist/mir/mksh/%{name}-R%{version}.tgz -%if 0%{?suse_version} # PATCH-FEATURE-OPENSUSE mksh-vendor-mkshrc.patch g...@opensuse.org -- Add support for a vendor-supplied kshrc which is read by interactive shells before $ENV or $HOME/.mkshrc are processed Patch0: mksh-vendor-mkshrc.patch BuildRequires: ed # for %%check BuildRequires: perl -# only for versions not yet supporting mksh +%if 0%{?suse_version} = 1320 +# replaces pdksh in openSUSE = 13.2 +Provides: pdksh = %{version} +Obsoletes: pdksh %{version} +Requires(post): update-alternatives +Requires(preun): update-alternatives +%else +# for SLES or openSUSE 13.2 which do not mksh Requires(post): grep Requires(postun): awk %endif @@ -45,8 +53,8 @@ %prep %setup -q -n %{name} -%if 0%{?suse_version} %patch0 -p1 + ed -s sh.h 'EOF' ,s/#define MKSH_VERSION R\([^]*\)/#define MKSH_VERSION R\1 openSUSE/ w @@ -55,14 +63,12 @@ ,s/@(#)\(MIRBSD\|LEGACY\) KSH R\(.*\)/@(#)\1 KSH R\2 openSUSE/ w EOF -%endif + ln -s . examples %build export CFLAGS='%{optflags}' -%if 0%{?suse_version} export CPPFLAGS='-DMKSH_VENDOR_MKSHRC_PATH=\/etc/mkshrc\' -%endif # filter compiler warnings and errors from configuration tests { # work around bugs in gcc 4.8 (deb#717734 rh#922974) and gcc 4.1.2 in SLE 10 @@ -91,6 +97,18 @@ done install -d %{buildroot}%{_sysconfdir} ln -s %{_sysconfdir}/bash.bashrc %{buildroot}%{_sysconfdir}/mkshrc +%if 0%{?suse_version} = 1320 +# compatibility symlinks for pdksh, lksh replaces pdksh in openSUSE = 13.2 +ln -s /bin/lksh %{buildroot}/bin/pdksh +ln -s %{_bindir}/lksh %{buildroot}%{_bindir}/pdksh +ln -s %{_mandir}/man1/lksh.1%{ext_man} \ +%{buildroot}%{_mandir}/man1/pdksh.1%{ext_man} +# ghost files for update-alternatives +ln -sf /bin/true %{buildroot}/bin/ksh +ln -sf /bin/true %{buildroot}/%{_bindir}/ksh +ln -sf %{_mandir}/man1/lksh.1%{ext_man} \ +%{buildroot}/%{_mandir}/man1/ksh.1%{ext_man} +%endif %check for shell in mksh lksh; do @@ -100,8 +118,19 @@ %clean rm -Rf %{buildroot} -# only for versions not yet supporting mksh -%if 0%{?suse_version} = 1310 +%if 0%{?suse_version} = 1320 +%post +%{_sbindir}/update-alternatives \ + --install /bin/ksh ksh /bin/lksh 15 \ + --slave %{_bindir}/ksh usr-bin-ksh %{_bindir}/lksh \ + --slave %{_mandir}/man1/ksh.1.gz ksh.1.gz %{_mandir}/man1/lksh.1%{ext_man} + +%preun +if test $1 -eq 0 ; then +%{_sbindir}/update-alternatives --remove ksh /bin/lksh +fi +%else +# for SLE or openSUSE 13.2 which do not support mksh %post for entry in /bin/mksh %{_bindir}/mksh; do grep -q ${entry} %{_sysconfdir}/shells ||\ @@ -128,7 +157,15 @@ /bin/lksh %{_bindir}/mksh %{_bindir}/lksh -%{_mandir}/man1/mksh.1* -%{_mandir}/man1/lksh.1* +%{_mandir}/man1/mksh.1%{ext_man} +%{_mandir}/man1/lksh.1%{ext_man} +%if 0%{?suse_version} = 1320 +/bin/pdksh +%{_bindir}/pdksh +%{_mandir}/man1/pdksh.1%{ext_man} +%ghost %verify(not link) /bin/ksh +%ghost %verify(not link) %{_bindir}/ksh +%ghost %verify(not link) %{_mandir}/man1/ksh.1%{ext_man} +%endif %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org