Skip to content

Commit b1ade26

Browse files
committed
2008-11-04
1 parent 8e947cc commit b1ade26

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+3909
-1082
lines changed

bin/package

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ all_types='*.*|sun4' # all but sun4 match *.*
4444
case `(getopts '[-][123:xyz]' opt --xyz; echo 0$opt) 2>/dev/null` in
4545
0123) USAGE=$'
4646
[-?
47-
@(#)$Id: package (AT&T Research) 2008-06-24 $
47+
@(#)$Id: package (AT&T Research) 2008-09-24 $
4848
]'$USAGE_LICENSE$'
4949
[+NAME?package - source and binary package control]
5050
[+DESCRIPTION?The \bpackage\b command controls source and binary
@@ -256,7 +256,9 @@ case `(getopts '[-][123:xyz]' opt --xyz; echo 0$opt) 2>/dev/null` in
256256
output is also captured in
257257
\b$INSTALLROOT/lib/package/gen/test.out\b. In general a package
258258
must be made before it can be tested. Components tested with
259-
the \bregress\b(1) command require \bksh93\b.]
259+
the \bregress\b(1) command require \bksh93\b. If \bonly\b is
260+
also specified then only the listed package components are
261+
tested, otherwise the closure of the components is tested.]
260262
[+update\b [ beta ]] [ binary ]] [ source ]] [\aarchitecture\a ... ]] [ \aurl\a ]] [ \apackage\a ... ]]?Download
261263
the latest release of the selected and required packages from \aurl\a
262264
(e.g., \bhttp://www.research.att.com/sw/download\b) into the directory
@@ -1054,7 +1056,10 @@ ${bT}(5)${bD}Read all unread package archive(s):${bX}
10541056
Run the regression tests for PACKAGE. If the standard output
10551057
is a terminal then the output is also captured in
10561058
\$INSTALLROOT/lib/package/gen/test.out. In general a package
1057-
must be made before it can be tested.
1059+
must be made before it can be tested. Components tested with
1060+
the \bregress\b(1) command require \bksh93\b. If only is
1061+
also specified then only the listed package components are
1062+
tested, otherwise the closure of the components is tested.
10581063
update [ beta ] [ binary ] [ source ] [ ARCHITECTURE ... ] [ URL ] [ PACKAGE ... ]
10591064
Download the latest release of the selected and required
10601065
packages from URL (e.g.,
@@ -3527,8 +3532,7 @@ components() # [ package ]
35273532
*) _components_="$_components_ $p" ;;
35283533
esac
35293534
;;
3530-
*)
3531-
if view - src lib/package/$p.pkg
3535+
*) if view - src lib/package/$p.pkg
35323536
then p=$_view_
35333537
op=::
35343538
exec < $p
@@ -4016,16 +4020,31 @@ admin) while test ! -f $admin_db
40164020
view file src lib/package/admin/$admin_db || exit 1
40174021
admin_db=$_view_
40184022
done
4023+
admin_components=
40194024
case $admin_action in
40204025
list) cat $admin_db
40214026
exit
40224027
;;
4028+
test) set $admin_args
4029+
while :
4030+
do case $# in
4031+
1) break ;;
4032+
esac
4033+
shift
4034+
case $1 in
4035+
*=*) ;;
4036+
*) admin_components=-$1
4037+
break
4038+
;;
4039+
esac
4040+
done
4041+
;;
40234042
esac
40244043
: all work done in $PACKAGESRC/admin
40254044
cd $PACKAGESRC/admin || exit
40264045
checksrc
40274046
packages=
4028-
admin_log=$admin_action.log
4047+
admin_log=${admin_action}${admin_components}.log
40294048
exec < $admin_db || exit
40304049
test -d $admin_log || $exec mkdir $admin_log || exit
40314050
case $admin_on in
@@ -4048,6 +4067,9 @@ admin) while test ! -f $admin_db
40484067
*) admin_binary=
40494068
;;
40504069
esac
4070+
case $only in
4071+
1) admin_args="only $admin_args" ;;
4072+
esac
40514073
trap 'kill $pids >/dev/null 2>&1' 1 2 3 15
40524074
index=0
40534075
while read type host root date time make test write junk
@@ -6141,6 +6163,10 @@ results)set '' $target
61416163
test) requirements source $package
61426164
components $package
61436165
package=$_components_
6166+
case $only in
6167+
0) only= ;;
6168+
1) only=--recurse=only ;;
6169+
esac
61446170

61456171
# must have nmake
61466172

@@ -6159,7 +6185,7 @@ test) requirements source $package
61596185

61606186
# do the tests
61616187

6162-
eval capture \$MAKE \$makeflags \$noexec recurse test \$target \$nmakesep \$package $assign
6188+
eval capture \$MAKE \$makeflags \$noexec \$only recurse test \$target \$nmakesep \$package $assign
61636189
;;
61646190

61656191
update) # download the latest release.version for selected packages

lib/package/INIT.README

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,17 @@ All recorded changes follow.
9292

9393
:::::::: INIT ::::::::
9494

95+
08-10-16 make.probe '-fno-stack-protector -fno-stack-protector-all' to cop out!!
96+
08-09-30 rt.sh: fix ksh93 regression test signal count
97+
08-09-26 regress.sh: ignore SIGPIPE for SET pipe-input
98+
08-09-24 package.sh: package only test foo => make --recurse=only recurse tests foo
99+
08-09-20 make.probe: handle another /usr/bin/file shared lib description
100+
08-09-20 regress.sh: add --pipefail for SET pipe-input ...
101+
08-09-17 Makefile: add gdbm1.c for <gdbm-ndbm.h>
102+
08-09-10 make.probe: add CC.NOPROTECT
103+
08-08-08 mktest.sh: add --width=width
104+
08-08-05 dbm.req: favor sleepycat ndbm compatibility
105+
08-08-04 C+probe: fix stdlib initialization logic
95106
08-06-24 package.sh: fix $INSTALLROOT/bin/cc intercept time stamp file typo
96107
08-06-20 TEST.mk: make the localyunit before *.rt => *.tst -- doh
97108
08-06-20 mktest.sh: prepend $PWD onto PATH for local units -- doh^2

lib/package/INIT.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@
4848
<P><HR><CENTER><FONT color=red><FONT face=courier><H3><A name="INIT changes">INIT changes</A></H3></FONT></FONT></CENTER>
4949
<PRE>
5050

51+
08-10-16 make.probe '-fno-stack-protector -fno-stack-protector-all' to cop out!!
52+
08-09-30 rt.sh: fix ksh93 regression test signal count
53+
08-09-26 regress.sh: ignore SIGPIPE for SET pipe-input
54+
08-09-24 package.sh: package only test foo =&gt; make --recurse=only recurse tests foo
55+
08-09-20 make.probe: handle another /usr/bin/file shared lib description
56+
08-09-20 regress.sh: add --pipefail for SET pipe-input ...
57+
08-09-17 Makefile: add gdbm1.c for &lt;gdbm-ndbm.h&gt;
58+
08-09-10 make.probe: add CC.NOPROTECT
59+
08-08-08 mktest.sh: add --width=width
60+
08-08-05 dbm.req: favor sleepycat ndbm compatibility
61+
08-08-04 C+probe: fix stdlib initialization logic
5162
08-06-24 package.sh: fix $INSTALLROOT/bin/cc intercept time stamp file typo
5263
08-06-20 TEST.mk: make the localyunit before *.rt =&gt; *.tst -- doh
5364
08-06-20 mktest.sh: prepend $PWD onto PATH for local units -- doh^2
@@ -852,7 +863,7 @@
852863
<TR>
853864
<TD align=left></TD>
854865
<TD align=center></TD>
855-
<TD align=right>July 26, 2008</TD>
866+
<TD align=right>November 04, 2008</TD>
856867
</TR>
857868
</TABLE>
858869
<P>

lib/package/INIT.ver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
INIT 2008-07-25 2008-07-25 1
1+
INIT 2008-11-04 2008-11-04 1

lib/package/ast-ksh.README

Lines changed: 120 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,103 @@ All recorded changes follow.
9292

9393
:::::::: ksh93 ::::::::
9494

95-
08-07-25 --- Release ksh93t ---
95+
08-10-31 --- Release ksh93t ---
96+
08-10-31 Variable scoping/initialization bugs that could dump core were fixed.
97+
08-10-24 The lexer now accepts all RE characters for patterns prefixed
98+
with a ksh ~(...) option expression.
99+
08-10-24 For ${var/pat/sub} \0 in sub expands to the text matched by pat.
100+
08-10-18 A bug in array scoping that could dump core has been fixed.
101+
08-10-10 read -n and -N fixed to count characters in multibyte locales.
102+
08-10-10 A bug that mishandled _.array[] type references has been fixed.
103+
08-10-09 ${.sh.version} now contains a catenation of the following (after
104+
'Version') denoting compile time features:
105+
A SHOPT_AUDIT
106+
B SHOPT_BASH
107+
L SHOPT_ACCT
108+
M SHOPT_MULTIBYTE
109+
08-10-09 A bug that caused subshell command substitution with redirection
110+
to hang has been fixed.
111+
08-10-08 Output errors, other than to stderr, now result in a diagnostic.
112+
08-10-08 ksh93 now supports types that contain arrays of other types as
113+
members. Earlier versions core dumped in this case.
114+
08-10-05 A bug which caused the shell to emit a syntax error for an arithmetic
115+
statement of the form (( var.name[sub] = value)) has been fixed.
116+
08-10-01 A bug that caused subshell command substitution to hang has
117+
been fixed.
118+
08-09-29 When the -p export option of typeset is used with other options,
119+
only those variables matching the specified options are displayed.
120+
08-09-29 When the shell reads the environment and finds variables that are
121+
not valid shell assignments, it now passes these on to subsequent
122+
commands rather than deleting them.
123+
08-09-29 A bug in the display of compound variables containing an indexed
124+
array of compound variables has been fixed.
125+
08-09-29 A bug in the display of compound variables containing an associative
126+
array with a subscript containing a . in the name has been fixed.
127+
08-09-26 A core dump in the subshell environment restore has been fixed.
128+
08-09-24 $(...) has been fixed to properly set the exit status in $?.
129+
08-09-23 $(<...) with IFS=$'\n\n' has been fixed to retain all but the last
130+
of multiple trailing newlines.
131+
08-09-23 The -p option to typeset when used with other attributes, restricts
132+
the output to variables with the specified attributes.
133+
08-09-22 A bug that sometimes lost the exit status of a job has been fixed.
134+
08-09-21 A bug that retained trailing command substitution newlines in
135+
cases where the command caused the shell to fork has been fixed.
136+
08-09-19 type, whence -v, and command -v were fixed to comply with POSIX
137+
by writing 'not found' diagnostics to the standard error.
138+
08-09-18 test and [...] were fixed to comply with POSIX in the case
139+
of test '(' binop ')' where binop is a valid binary test operator.
140+
08-09-16 If a method discipline named create is specified when defining a
141+
type, this function will be called when an instance is created.
142+
08-09-15 The variable _ is now set as a reference to the compound variable
143+
when defining a compound variable or a type.
144+
08-09-10 The shell now prints an error message when the type name specified
145+
for an indexed array subscript is not an enumeration type.
146+
08-09-10 A bug in which a subshell that spawned a background process could
147+
loose output that was produced after the foreground completed
148+
has been fixed.
149+
08-09-10 A timing bug on some systems that could cause coprocesses started by a
150+
subshell to not clean up and prevent other coprocesses has been fixed.
151+
08-09-09 The typeset -m option is now able to rename array elements from
152+
the same array.
153+
08-09-09 The exit status of 2 from the DEBUG trap causes the next command
154+
to be skipped. An exit value of 255 from a DEBUG trap called from
155+
a function causes the function to return.
156+
08-09-08 A bug in which a coprocess created in a subshell that did not
157+
complete when the subshell terminated could prevent a coprocess
158+
from being created in the parent shell has been fixed.
159+
08-09-05 An assignment of the form name1=name2 where name1 and name2
160+
are both compound variables causes name1 to get a copy of name2.
161+
name1+=name2 causes name2 sub-variables to be appended to name1.
162+
08-09-05 A bug in which unsetting a compound variable did not unset all
163+
the sub-variables has been fixed.
164+
08-09-01 A bug in the subshell cleanup code that could cause SIGSEGV has
165+
been fixed.
166+
06-08-26 The SHLVL variable which is an environment variable used by bash
167+
and zsh that gets incremented when the shell starts.
168+
08-08-25 For an indexed array, a negative subscript now refers to offsets
169+
from the end so that -1 refers to the last element.
170+
08-08-24 An alignment error for shorts on 64 bit architectures has been fixed.
171+
08-08-22 If oldvar is a compound variable, typeset -C newvar=oldvar creates
172+
newvar as a copy of oldvar.
173+
08-08-19 The ALRM signal no longer cause the sleep builtin to terminate.
174+
08-08-13 When used in an arithmetic expression, the .sh.version variable
175+
now produces a number that will be increasing for each release.
176+
08-08-11 A bug in which type instantiation with a compound assignment in
177+
a dot script in which the type is defined has been fixed.
178+
08-08-07 The -m option has been added to typeset to move or rename a
179+
variable. Not documented yet.
180+
08-08-06 A bug in read when used in a loop when a prompt was specified
181+
when reading from a terminal has been fixed.
182+
08-08-01 A bug with the pipefail option in which a nested pipeline could
183+
cause an asynchronous command to block has been fixed.
184+
08-08-01 A for loop optimizer bug that treats .sh.lineno as an invariant
185+
has been fixed.
186+
08-07-30 A bug in which expanding compound variable that had a get discipline
187+
from with a here document could cause a syntax error has been fixed.
96188
08-07-18 A bug in which a nameref caused a local variable to be created
97189
rather than binding to an existing variable in the global scope
98190
has been fixed.
99-
08-07-17 A bug which occured when a nameref was created from within a
191+
08-07-17 A bug which occurred when a nameref was created from within a
100192
function that was part of a pipeline has been fixed.
101193
08-07-14 The compile option SHOPT_STATS was added. With this option the
102194
compound variable .sh.stats keeps usage statistics that could help
@@ -111,7 +203,7 @@ All recorded changes follow.
111203
edit line is redrawn in place.
112204
08-07-01 A bug in the handling of shared variables when inside an embedded
113205
type has been fixed.
114-
08-06-29 A bug in multiline edit mode which occured when the prompt length
206+
08-06-29 A bug in multiline edit mode which occurred when the prompt length
115207
was three characters or less has been fixed.
116208
08-06-23 A bug in which the SIGCLD was not be triggered when background
117209
jobs completed has been fixed.
@@ -218,9 +310,9 @@ All recorded changes follow.
218310
08-03-27 A bug in which the terminal group was not given back to the parent
219311
shell when the last part of a pipeline was handled by the parent shell
220312
and the other parts of the pipeline complete has been fixed.
221-
The symtom was that the pipeline became uninterruptable.
313+
The symptom was that the pipeline became uninterruptable.
222314
08-03-25 A bug in restricted mode introduced in ksh93s that caused scripts
223-
that did not use #! to executed in restriected mode has been fixed.
315+
that did not use #! to executed in restricted mode has been fixed.
224316
08-03-25 A bug in which the pipefail option did not work for a pipeline
225317
within a pipeline has been fixed.
226318
08-03-24 A bug in which OPTIND was not set correctly in subshells has
@@ -262,7 +354,7 @@ All recorded changes follow.
262354
has bee fixed.
263355
08-02-07 A bug in which test \( ! -e \) produced an error has been fixed.
264356
08-02-14 The typeset -a option can now optionally be followed by the name
265-
of an enumerication type which allows subscripts to be enumerations.
357+
of an enumeration type which allows subscripts to be enumerations.
266358
08-02-14 The enum builtin which creates enumeration types has been added.
267359
08-02-12 The backoff logic when there are no more processes has been fixed.
268360
08-02-07 The -X option has been added to typeset. The -X option creates
@@ -272,7 +364,7 @@ All recorded changes follow.
272364
variables. Also the -h and -S options have been added to
273365
typeset that are only applicable when defining a type.
274366
08-01-31 The prefix expansion operator @ has been added. ${@name}
275-
expandes to the type of name or yields the attributes.
367+
expands to the type of name or yields the attributes.
276368
07-11-15 A bug in the macro expander for multibyte characters in which
277369
part of the character contains a file pattern byte has been fixed.
278370
07-10-03 A bug in which : was not allowed as part of an alias name has been
@@ -317,7 +409,7 @@ All recorded changes follow.
317409
assignments was treated as a noop has been fixed.
318410
08-01-17 A bug in which discipline functions invoked from withing a
319411
compound assignment could fail has been fixed.
320-
08-01-16 Incomplete arithmetic assigments, for example ((x += )), now
412+
08-01-16 Incomplete arithmetic assignments, for example ((x += )), now
321413
generate an error message.
322414
08-01-16 A bug in which a set discipline defined for a variable before
323415
an array assignment could cause a core dump has been fixed.
@@ -390,7 +482,7 @@ All recorded changes follow.
390482
any word, each : will be considered a path delimiter.
391483
07-09-06 A bug in which subprocess cleanup could corrupt the malloc() heap
392484
has been fixed.
393-
07-08-26 A bug in which a name reference to an associatve array instance
485+
07-08-26 A bug in which a name reference to an associative array instance
394486
could cause the subscript to be evaluated as an arithmetic expression
395487
has been fixed.
396488
07-08-22 A bug in which the value of an array instance was of a compound
@@ -411,7 +503,7 @@ All recorded changes follow.
411503
an exit status of 127 when pipefail was enabled has been fixed.
412504
07-07-09 The SHOPT_AUDIT compile option has been added for keyboard logging.
413505
07-06-25 In vi insert mode, ksh no longer emits a backspace character
414-
before the carraige return when the newline is entered.
506+
before the carriage return when the newline is entered.
415507
07-06-25 A bug in which pipefail would cause a command to return 0
416508
when the pipeline was the last command and the failure happened
417509
on a component other than the last has been fixed.
@@ -1056,7 +1148,7 @@ All recorded changes follow.
10561148

10571149
02-06-17 --- Release ksh93n- ---
10581150
02-06-17 A bug in which user defined macros could cause a core dump in
1059-
with MULTIBYE mode has been fixed.
1151+
with MULTIBYTE mode has been fixed.
10601152
02-06-17 A bug in which printf format specifiers of the form %2$s were causing
10611153
a core dump has been fixed.
10621154
02-06-17 A bug in which setting stty to noecho mode did not prevent the
@@ -1763,7 +1855,7 @@ All recorded changes follow.
17631855
positioned for the last command of a script has been fixed.
17641856
95-04-31 A bug in the edit modes which allowed walking back in
17651857
the history file for more than HISTSIZE commands has
1766-
beed fixed.
1858+
been fixed.
17671859
95-04-31 A bug which could cause a core dump if variable TMPDIR was
17681860
changed between two command substitutions has been fixed.
17691861
95-04-31. A bug which prevented a trap on EXIT from being cleared
@@ -1893,6 +1985,20 @@ All recorded changes follow.
18931985

18941986
:::::::: libast ::::::::
18951987

1988+
08-11-04 regex/regcomp.c: fix locale [!-...] and [^-...] re-initialization
1989+
08-11-04 stdio: add flockfile.c ftrylockfile.c funlockfile.c
1990+
08-10-24 port/astconf.c: handle multiple/trailing '/' in universe initialization
1991+
08-09-10 misc/magic.c: handle old vcodex() indices
1992+
08-09-10 sfio/sfvprintf.c: drop SF_WCWIDTH, use %Lc or %Ls instead
1993+
08-09-05 Makefile: ibm.risc joins the :NOOPTIMIZE: crowd
1994+
08-09-04 regex/regnexec.c: fix nested delimiter match beyond end of subject
1995+
08-08-20 misc/fts.c: fix st_nlink stat() optimization logic
1996+
08-08-19 sfio/sfpkrd.c: workaround macosx recv(PEEK) data consumption on non-socket
1997+
08-08-19 strn?tol?d: handle long double with smaller exponent range than double
1998+
08-08-18 sfio/sfcvt.c: eliminate excessive multiplies and integral overprecision
1999+
08-08-11 tm/tmxfmt.c: handle %10N and %010N
2000+
08-08-06 include/shcmd.h: add 'int invariant;' for builtin invarinat arg count
2001+
08-08-05 features/ndbm: favor sleepycat ndbm compatibility
18962002
08-07-21 include/glob.h,misc/glob.c: GLOB_STARSTAR only forces lstat on chdir
18972003
08-07-17 sfio: sync with kpv
18982004
08-07-17 misc/optget.c: call astwinsize() each time terminal width required
@@ -3401,6 +3507,8 @@ All recorded changes follow.
34013507

34023508
:::::::: libcmd ::::::::
34033509

3510+
08-10-15 rm.c: handle 'rm -f x x' => exit 0
3511+
08-09-08 stty.c: #ifdef guard TAB[012] -- freebsd: damn the posix, full speed ahead
34043512
08-06-17 shcmd.h: move to libast
34053513
08-04-24 uniq.c: add optget() 'n' option for -1 => -f1
34063514
08-04-24 getconf.c: clarify diffs between "name - value" and "name = value"

0 commit comments

Comments
 (0)