* GUI in Java was removed in 10.7.2 release.
* Fix build error related to readline with devel/readline. PR pkg/54484
Changelog:
10.7.2
Fixing out-of-sink of file positions when mixing 'search' and 'seek'
with 'read-line' on IO-streams introduced a new errror making
the newlisp-10.x.x/examples/upload.cgi script fail.
10.7.3
Supress loading of startup init.lsp when -h option is present. Before
only the -n and -x options supressed init.lsp.
Change in modules/gsl.lsp to make it work on locales using comma separator.
Ability to use 'open', 'rename-file', 'delete-file', 'make-dir' and
'remove-dir' with UTF16 filenames in UTF8 versions on Windows when
using the UTF8 version of newLISP. The functions 'file-info', 'file?',
'change-dir' and 'dir? already worked on UTF16 filenames when using the UTF8
version of newLISP on Windows.
Thanks to Michael Sabin who started the work a few years back writing the
win-path.c file with functions translating between UTF8 and UTF16.
When using the UTF8 version of newLISP on Windows in a command shell, that
command shell program also should be able to handle/display UTF8 (not UTF16).
On Windows and Linux the Java based frontend newLISP-GS handles UTF8.
On Mac OS the terminal program handles UTF8.
Fixed a wrong 'symbol protected message' when a protected symbol is
part of a nested espression, but not a symbol with its content to be
modified.
New modules/postscript.lsp changes description of ps:drawto.
Fixed flushing problem on 'print' to stdout on Mac OS and other BSDs.
'(read-key true)' with the 'true' parameter is now non-blocking.
(trim str) on some strings containing 0's would overrun memory and 0's
where not trimmed from the left. All character <= 32 (space) should
be trimmed from the left and right ends of the string buffer. When the
entire string is valid ASCII or UTF-8 with no 0s, ‘trim’ behaves
like in older versions.
10.7.4
When starting newlisp in -http-safe server mode HTTP_PUT and HTTP_DELETE
requests will not be served. This will cause 'write-file' and 'delete-file'
in url syntax, 'put-url' and 'delete-url' functions issued from a newLISP
client to return the text message "Server in safe mode".
New file qa-specific-tests/qa-share.lsp .
New guiserver.jar v 1.67 compiled with java 1.6
Still problems on macOS, some unrelated to change to image/icon load change
Added REQUEST_URI to environment variables in webserver mode.
Removed code introduced in 10.7.2 to syncronize file poisitons of C FILE stream
and raw file handle operations. Syncronization still seem s to work on cases
tested, but may not work in all cases mixing 'read-line' and 'seek'.
Changes for separately packaged Java Guiserver and elimination of installers.
(rotate theList -offsetOfRotation) was buggy
10.7.5
In getPutPostDeleteUrl(....) sock wasn't closed when returning with webError(..)
compareLists() in nl-math.c did not take list lengths into account. Also update
of qa-dot for relevant cases.
Version 10.16.3 'Dubnium' (LTS):
Notable changes
This is a security release.
Node.js, as well as many other implementations of HTTP/2, have been found vulnerable to Denial of Service attacks. See https://github.com/Netflix/security-bulletins/blob/master/advisories/third-party/2019-002.md for more information.
Vulnerabilities fixed:
CVE-2019-9511 “Data Dribble”: The attacker requests a large amount of data from a specified resource over multiple streams. They manipulate window size and stream priority to force the server to queue the data in 1-byte chunks. Depending on how efficiently this data is queued, this can consume excess CPU, memory, or both, potentially leading to a denial of service.
CVE-2019-9512 “Ping Flood”: The attacker sends continual pings to an HTTP/2 peer, causing the peer to build an internal queue of responses. Depending on how efficiently this data is queued, this can consume excess CPU, memory, or both, potentially leading to a denial of service.
CVE-2019-9513 “Resource Loop”: The attacker creates multiple request streams and continually shuffles the priority of the streams in a way that causes substantial churn to the priority tree. This can consume excess CPU, potentially leading to a denial of service.
CVE-2019-9514 “Reset Flood”: The attacker opens a number of streams and sends an invalid request over each stream that should solicit a stream of RST_STREAM frames from the peer. Depending on how the peer queues the RST_STREAM frames, this can consume excess memory, CPU, or both, potentially leading to a denial of service.
CVE-2019-9515 “Settings Flood”: The attacker sends a stream of SETTINGS frames to the peer. Since the RFC requires that the peer reply with one acknowledgement per SETTINGS frame, an empty SETTINGS frame is almost equivalent in behavior to a ping. Depending on how efficiently this data is queued, this can consume excess CPU, memory, or both, potentially leading to a denial of service.
CVE-2019-9516 “0-Length Headers Leak”: The attacker sends a stream of headers with a 0-length header name and 0-length header value, optionally Huffman encoded into 1-byte or greater headers. Some implementations allocate memory for these headers and keep the allocation alive until the session dies. This can consume excess memory, potentially leading to a denial of service.
CVE-2019-9517 “Internal Data Buffering”: The attacker opens the HTTP/2 window so the peer can send without constraint; however, they leave the TCP window closed so the peer cannot actually write (many of) the bytes on the wire. The attacker then sends a stream of requests for a large response object. Depending on how the servers queue the responses, this can consume excess memory, CPU, or both, potentially leading to a denial of service.
CVE-2019-9518 “Empty Frames Flood”: The attacker sends a stream of frames with an empty payload and without the end-of-stream flag. These frames can be DATA, HEADERS, CONTINUATION and/or PUSH_PROMISE. The peer spends time processing each frame disproportionate to attack bandwidth. This can consume excess CPU, potentially leading to a denial of service.
net/http: Denial of Service vulnerabilities in the HTTP/2 implementation
net/http and golang.org/x/net/http2 servers that accept direct connections from
untrusted clients could be remotely made to allocate an unlimited amount of
memory, until the program crashes. Servers will now close connections if the
send queue accumulates too many control messages.
The issues are CVE-2019-9512 and CVE-2019-9514, and Go issue golang.org/issue/33606.
Thanks to Jonathan Looney from Netflix for discovering and reporting these issues.
This is also fixed in version v0.0.0-20190813141303-74dc4d7220e7 of
golang.org/x/net/http2.
net/url: parsing validation issue
url.Parse would accept URLs with malformed hosts, such that the Host field
could have arbitrary suffixes that would appear in neither Hostname() nor
Port(), allowing authorization bypasses in certain applications. Note that URLs
with invalid, not numeric ports will now return an error from url.Parse.
The issue is CVE-2019-14809 and Go issue golang.org/issue/29098.
Thanks to Julian Hector and Nikolai Krein from Cure53, and Adi Cohen (adico.me)
for discovering and reporting this issue.
net/http: Denial of Service vulnerabilities in the HTTP/2 implementation
net/http and golang.org/x/net/http2 servers that accept direct connections from
untrusted clients could be remotely made to allocate an unlimited amount of
memory, until the program crashes. Servers will now close connections if the
send queue accumulates too many control messages.
The issues are CVE-2019-9512 and CVE-2019-9514, and Go issue golang.org/issue/33606.
Thanks to Jonathan Looney from Netflix for discovering and reporting these issues.
This is also fixed in version v0.0.0-20190813141303-74dc4d7220e7 of
golang.org/x/net/http2.
net/url: parsing validation issue
url.Parse would accept URLs with malformed hosts, such that the Host field
could have arbitrary suffixes that would appear in neither Hostname() nor
Port(), allowing authorization bypasses in certain applications. Note that URLs
with invalid, not numeric ports will now return an error from url.Parse.
The issue is CVE-2019-14809 and Go issue golang.org/issue/29098.
Thanks to Julian Hector and Nikolai Krein from Cure53, and Adi Cohen (adico.me)
for discovering and reporting this issue.
This should help with some people's problems with the rust builds being
excessively long, and if we ever run into compatibility problems between
rust's llvm-current and our shipped version it should be easy to switch
on the internal LLVM by default again.
I've been using this for some time with Firefox without problems.
Bump PKGREVISION.
Changes between version 1.5.4 and version 1.5.5
* platform support: - SunOS: bug reports and patches from Richard Lowe
in sb-posix tests (#1837495), sb-concurrency tests (#1837817),
unencapsulated tracing (#1837307), float registers in interrupt
contexts (#1837168)
* bug fix: do not generate version.lisp-expr from git describe if the
git repository is not sbcl's own. (#1836663, thanks to Richard Lowe)
* bug fix: compiler crash related to VALUES-LIST on a &REST argument in
some contexts. (#1836096, reported by Samuel Jimenez)
* bug fix: compiler hang related to constraint propagation. (#1835599,
reported by Mark Cox)
* bug fix: the inspector showed the wrong array element type. (#1835934,
reported by Richard M Kreuter)
* optimization: numerous improvements to hash table access and rehashing
* optimization: ASSERT compiles into substantially more compact code.
(#1835221)
Changes between version 1.5.3 and version 1.5.4
* minor incompatible change: hash tables on 64-bit machines consume roughly
20% less memory but can only grow to hold 2^31 entries (theoretically)
due to use of 31-bit indices internally.
* platform support: - RISC-V: improve rotate-byte support (thanks to Philipp
Matthias Schaefer)
* bug fix: the system reasons more correctly regarding the array rank of
complicated array types. (reported by Bart Botta)
* bug fix: DOUBLE-FLOAT-P never gets weaked to NUMBERP. (reported by Bart
Botta)
* enhancement: the regression test suite can now benefit from paralellism,
completing much faster when enough compute power is available.
* optimization: readtables with non-base-char dispatch characters are less
inefficient.
* optimization: INTERN performs fewer redundant type checks.
* optimization: tests for PATHNAMEP and STRUCTURE-OBJECT (including in
computing hash functions) are faster.
Changes between version 1.5.2 and version 1.5.3
* platform support: - RISC-V: numerous bug fixes and improvements - all
platforms: better run-program performance when used from multiple threads.
* enhancement: (declaim (optimize (debug 2))) ensures compilation of
top-level forms, providing better debugging for simple forms that are
otherwise "byte-code interpreted" when compiled into FASLs.
* bug fix: use of finalizers could in rare circumstances cause a crash in
the garbage collector.
* bug fix: show extended function designators, e.g. (setf foo), in the
disassembler
* optimization: reduced overhead of calling NTH/NTHCDR.
* optimization: improved FLOAT-SIGN on DOUBLE-FLOATs on 64-bit platforms
Changes between version 1.5.1 and version 1.5.2
* enhancement: RISC-V support with the generational garbage collector.
* enhancement: command-line option "--tls-limit" can be used to alter
the maximum number of thread-local symbols from its default of 4096.
* enhancement: better muffling of redefinition and lambda-list warnings
* platform support: - OS X: use Grand Central Dispatch semaphores, rather
than Mach semaphores - Windows: remove non-functional definition of
make-listener-thread
* new feature: decimal reader syntax for rationals, using the R exponent
marker and/or *READ-DEFAULT-FLOAT-FORMAT* of RATIONAL.
* optimization: various Unicode tables have been packed more efficiently
Changes between version 1.5.0 and version 1.5.1
* enhancement: restarts for missing package errors.
* optimization: FIND-PACKAGE should be faster even when run in the context
of a package with local package-nicknames.
* optimization: fix TRUNCATE deftransform's results to have well-defined
signs
* bug fix: thread-safety problems in RUN-PROGRAM with :PTY.
* bug fix: SLEEP transform could never fire.
* build enhancement: defend against quirky host floating point implementation
* test enhancement: allow more parallelism in running the regression test
suite
Changes between version 1.4.16 and version 1.5.0
* enhancement: SB-COVER emulates IN-PACKAGE when recording source maps;
this makes it possible to generate coverage for forms that uses local
package nicknames, or otherwise must be read in the correct package.
* build enhancement: new host quirks mechanism, support for building
under ABCL and ECL (as well as CCL, CMUCL, CLISP and SBCL itself)
* optimization: (FIND-SYMBOL x "P") for constant "P" executes faster,
subject to "P" not being a package-local nickname of any package.
Similarly INTERN. (#1814924)
* optimization: bounds checks are elided when possible where the same
array is dereferenced multiple times.
* bug fix: initargs are now deduplicated when computing effective slots.
* bug fix: TREE-EQUAL with :TEST 'EQL now correctly computes its answer.
(reported by Bahodir Mansurov)
* bug fix: compiled (COERCE x 'FLOAT) no longer coerces double-floats into
single-floats. (reported by J. Gareth Williams)
Changes between version 1.4.15 and version 1.4.16
* minor incompatible change: ENSURE-DIRECTORIES-EXIST no longer
establishes a CONTINUE restart in case of an error.
* minor incompatible change: Defining macros (DEFVAR, etc) which require
a symbol as the name will fail to macroexpand if given a non-symbol.
* enhancement: the unexported restart names SB-{ALIEN,FASL,IMPL,PCL}::RETRY
have been replaced by SB-EXT:RETRY.
Changes between version 1.4.14 and version 1.4.15
* enhancement: added AVX2 instructions on x86-64, which can be used with
SB-SIMD-PACK.
* enhancement: specializer name parsing is less lenient and signals a
specific condition in case of syntax errors. (#1808681)
* enhancement: provide interactive restarts for some file-system errors.
* enhancement: COMPILE no longer acquires the world lock. (fixes most
occurrences of #308959)
* bug fix: RUN-PROGRAM is more responsive and less likely to deadlock
(#1702178, #1808641)
* bug fix: traceroot can search for simple-fun targets (#1808659,
reported by Michal Herda)
* compiler bug fixes:
related to code generation: #1805899, #1806982, #1807455
related to interpreting and constant-folding: #1806513
related to the type system: #1804759, #1804796
related to eq-testing of structure slots: #1809582, #1808273
related to dynamic-extent: #1809565, #1809253, #1809485, #1739652
related to GC safety: #308949
Changes between version 1.4.13 and version 1.4.14
* enhancement: attempting to build on openbsd 6.0 or newer without the
wxallowed mount option now results in a more useful error message.
* enhancement: by popular demand, SB-EXT now exports two functions
HEAP-ALLOCATED-P and STACK-ALLOCATED-P to assist in writing debug
assertions that objects in hash-tables are not stack-allocated, etc.
* bug fix: restored sb-thread support on OpenBSD.
Changes between version 1.4.12 and version 1.4.13
* minor incompatible change: PRINT-TYPE and PRINT-TYPE-SPECIFIER are not
exported from SB-EXT. These were never announced, so this change would
only affects users who discovered these undocumented functions.
* enhancement: SB-EXT:SEARCH-ROOTS and SB-EXT:GC-AND-SEARCH-ROOTS are
supported on all backends that use gencgc.
Changes between version 1.4.11 and version 1.4.12
* minor incompatible change: a number of platform-specific elements of
*FEATURES* related to whether the system implements particular
strategies have been removed.
* minor incompatible change: some changes to the (internal) implementation
details of the x86 and x86-64 have necessitated changes to some
low-level libraries.
* enhancement: attempting to transfer control through GO or RETURN-FROM
to frames which no longer exist are now caught and handled by the debugger.
* enhancement: identical code (at the machine instruction level) can now
be shared between functions, if explicitly requested.
* enhancement: SB-EXT:STRING-TO-OCTETS and SB-EXT:OCTETS-TO-STRING are
now documented.
* bug fixes: fix a number of bugs revealed by random testing (#1793171,
#1793150, #1791550, #1792030, #1791059, #1790157, #1790717, #1790703)
Changes between version 1.4.10 and version 1.4.11
* minor incompatible change: changes to the (internal) assembler on x86
and x86-64 may cause problems to some low-level third-party libraries:
new macro EA for defining an effective address, without size
information;
an explicit size modifier is now needed for MOVSX and MOVSZ
instructions;
MOVD and MOVQ move a single size of operand by definition.
* enhancement: support the latest MinGW (#1786731, reported by il71)
* enhancement: checks for modifications of constants can now be done in
local (FLET/LABELS) functions.
* optimization: improved type checking routines for various compound types.
* optimization: array bound checks are elided on vectors when the index
is known to be less than the length, including LOOP ACROSS.
* optimization: the register allocator's use of temporaries is somewhat
improved.
* optimization: checking widetags involves fewer conditional jumps on x86
and x86-64.
* bug fix: fix a number of bugs related to constant improper lists as
sequence arguments (#1768563, #1768568, #1768652)
Changes between version 1.4.9 and version 1.4.10
* enhancement: added SB-EXT:MAKE-WEAK-VECTOR.
* enhancement: constant-modification detection warnings can be generated
in the presence of conditional constructs.
* optimization: better bounds-checking on x86[-64] and ARM64.
* optimization: adding 1 to or subtracting 1 from a fixnum variable does
not cons.
* bug fixes: fix a number of bugs revealed by random testing (#1782826,
#1779878, #1779737)
Changes between version 1.4.8 and version 1.4.9
* enhancement: SB-COVER instrumentation for x86[-64] has signficantly
less overhead. The performance penalty for 64-bit code has been
measured at around 30% slower than uninstrumented code as contrasted
with slowdowns in excess of 100% previously.
* enhancement: tracing a generic function with the :METHODS T option
produces output corresponding to each method called under the default
:ENCAPSULATE NIL tracing implementation.
* bug fix: updated TRACE documentation. (#574614 was actually already
fixed, but there were other issues.)
* bug fix: fixed x86 GC bug causing heap corruption. (#1749369)
* bug fix: improved compatibility with macOS High Sierra and graphical
applications.
Changes between version 1.4.7 and version 1.4.8
* bug fix: redefinition of method combinations now does the expected
thing; generic functions using that method combination have their
effective methods lazily recomputed according to the new definition
of the method combination. (Reported by Didier Verna at ELS 2018)
* bug fix: :arguments argument to the long form of DEFINE-METHOD-COMBINATION
is now implemented more correctly, supporting suppliedp variables and
&optional defaults. (Reported by Bruno Haible, #309084)
Changes between version 1.4.6 and version 1.4.7
* enhancement: better handling of unknown keyword arguments (#1750466)
* enhancement: namestrings can now be computed for certain pathnames
that previously did not have namestrings because of #\. characters
in their name and/or type components.
* bug fix: compiling a SLEEP call with a float positive infinity
argument no longer causes an internal error (#1754081)
* bug fix: keyword arguments provided to a generic function with
EQL-specialized methods are checked more correctly (reported by
Syll, #1760987)
Changes between version 1.4.5 and version 1.4.6
* enhancement: DISASSEMBLE on a symbol naming a macro will
disassemble the expander, not the code that traps attempted
FUNCALL of the macro.
* enhancement: The sb-sprof contrib now provides an experimental
interface for accessing collected profiler data.
* enhancement: The instruction-level profiling of the sb-prof contrib
annotates the disassembler output more efficiently.
* optimization: improved dynamic-extent handling of nested variables.
Changes betweenNew in version 1.4.5
* minor incompatible change: building with/without the :sb-package-locks
feature is no longer an option. Package locks are always compiled in,
and removing :sb-package-locks from *features* will have no effect.
* enhancement: FIND-PACKAGE does not acquire a mutex
* enhancement: cheneygc can perform heap relocation on startup
* enhancement: in threaded builds, finalizers execute in a system-internal
thread so that a user thread which invokes GC is unblocked from
performing work as soon it returns from GC and invokes any post-GC hooks.
As such, it is more important than before to avoid assumptions about
special variable bindings in finalizers, even in single-threaded code.
* optimization: faster (funcall (or function symbol)) on x86-64.
Changes between version 1.4.3 and version 1.4.4
* bug fix: pathname accessors such as PATHNAME-DIRECTORY work on
SYNONYM-STREAMs.
* bug fix: (pathname-{device,directory,name,type} ... :case :common) works
as expected. In particular MAKE-PATHNAME composed with the accessors
roundtrips properly when both use the same :case. (#1739906)
* bug fix: DIRECTORY no longer gets confused when the value of
*DEFAULT-PATHNAME-DEFAULTS* has a name or type component. (#1740563)
* bug fix: pattern pieces in pathname components are correctly
escaped during unparsing.
* bug fix: DELETE-DIRECTORY no longer signals an error when the
directory is supplied as a pathname with name and/or type
components containing escaped characters. (#1740624)
* bug fix: weak hash-tables no longer cause GC time to scale
superlinearly (#1241771)
* bug fix: CANCEL-FINALIZATION operates in approximately constant
time per operation (#1587983)
* bug fix: big-endian MIPS systems now (mostly) work again (broken
since 1.3.14.x).
* bug fix: backtrace from arg-count errors on systems other than x86,
x86-64, ARM, and ARM64 now works again.
* bug fix: backtrace from asynchronous interrupts on non-x86,
non-x86-64 systems should now be more reliable.
* enhancement: warnings and errors referring to bindings established by
LET, LET*, FLET and LABELS point to the offending form more accurately.
* enhancement: backtrace for invalid argument count produces the
exact supplied arguments including the extra ones on all platforms
(no longer just x86, x86-64, ARM, and ARM64).
Mypy 0.720 was released. This release uses the new semantic analyzer by
default, adds a flag to warn about unreachable code, and has other improvements
and bug fixes.
what is new for perl v5.30.0
Core Enhancements
Limited variable length lookbehind in regular expression pattern matching is now experimentally supported
Using a lookbehind assertion (like "(?<=foo?)" or "(?<!ba{1,9}r)" previously would generate an error and
refuse to compile. Now it compiles (if the maximum lookbehind is at most 255 characters), but raises a
warning in the new "experimental::vlb" warnings category. This is to caution you that the precise behavior
is subject to change based on feedback from use in the field.
See "(?<=pattern)" in perlre and "(?<!pattern)" in perlre.
The upper limit "n" specifiable in a regular expression quantifier of the form "{m,n}" has been doubled to 65534
The meaning of an unbounded upper quantifier "{m,}" remains unchanged. It matches 2**31 - 1 times on most
platforms, and more on ones where a C language short variable is more than 4 bytes long.
Unicode 12.1 is supported
Because of a change in Unicode release cycles, Perl jumps from Unicode 10.0 in Perl 5.28 to Unicode 12.1 in
Perl 5.30.
For details on the Unicode changes, see <https://www.unicode.org/versions/Unicode11.0.0/> for 11.0;
<https://www.unicode.org/versions/Unicode12.0.0/> for 12.0; and
<https://www.unicode.org/versions/Unicode12.1.0/> for 12.1. (Unicode 12.1 differs from 12.0 only in the
addition of a single character, that for the new Japanese era name.)
The Word_Break property, as in past Perl releases, remains tailored to behave more in line with expectations
of Perl users. This means that sequential runs of horizontal white space characters are not broken apart,
but kept as a single run. Unicode 11 changed from past versions to be more in line with Perl, but it left
several white space characters as causing breaks: TAB, NO BREAK SPACE, and FIGURE SPACE (U+2007). We have
decided to continue to use the previous Perl tailoring with regards to these.
Wildcards in Unicode property value specifications are now partially supported
You can now do something like this in a regular expression pattern
qr! \p{nv= /(?x) \A [0-5] \z / }!
which matches all Unicode code points whose numeric value is between 0 and 5 inclusive. So, it could match
the Thai or Bengali digits whose numeric values are 0, 1, 2, 3, 4, or 5.
This marks another step in implementing the regular expression features the Unicode Consortium suggests.
Most properties are supported, with the remainder planned for 5.32. Details are in "Wildcards in Property
Values" in perlunicode.
qr'\N{name}' is now supported
Previously it was an error to evaluate a named character "\N{...}" within a single quoted regular expression
pattern (whose evaluation is deferred from the normal place). This restriction is now removed.
Turkic UTF-8 locales are now seamlessly supported
Turkic languages have different casing rules than other languages for the characters "i" and "I". The
uppercase of "i" is LATIN CAPITAL LETTER I WITH DOT ABOVE (U+0130); and the lowercase of "I" is LATIN SMALL
LETTER DOTLESS I (U+0131). Unicode furnishes alternate casing rules for use with Turkic languages.
Previously, Perl ignored these, but now, it uses them when it detects that it is operating under a Turkic
UTF-8 locale.
It is now possible to compile perl to always use thread-safe locale operations.
Previously, these calls were only used when the perl was compiled to be multi-threaded. To always enable
them, add
-Accflags='-DUSE_THREAD_SAFE_LOCALE'
to your Configure flags.
Eliminate opASSIGN macro usage from core
This macro is still defined but no longer used in core
"-Drv" now means something on "-DDEBUGGING" builds
Now, adding the verbose flag ("-Dv") to the "-Dr" flag turns on all possible regular expression debugging.
Incompatible Changes
Assigning non-zero to $[ is fatal
Setting $[ to a non-zero value has been deprecated since Perl 5.12 and now throws a fatal error. See
"Assigning non-zero to $[ is fatal" in perldeprecation.
Delimiters must now be graphemes
See "Use of unassigned code point or non-standalone grapheme for a delimiter." in perldeprecation
Some formerly deprecated uses of an unescaped left brace "{" in regular expression patterns are now illegal
But to avoid breaking code unnecessarily, most instances that issued a deprecation warning, remain legal and
now have a non-deprecation warning raised. See "Unescaped left braces in regular expressions" in
perldeprecation.
Previously deprecated sysread()/syswrite() on :utf8 handles is now fatal
Calling sysread(), syswrite(), send() or recv() on a ":utf8" handle, whether applied explicitly or
implicitly, is now fatal. This was deprecated in perl 5.24.
There were two problems with calling these functions on ":utf8" handles:
o All four functions only paid attention to the ":utf8" flag. Other layers were completely ignored, so a
handle with ":encoding(UTF-16LE)" layer would be treated as UTF-8. Other layers, such as compression
are completely ignored with or without the ":utf8" flag.
o sysread() and recv() would read from the handle, skipping any validation by the layers, and do no
validation of their own. This could lead to invalidly encoded perl scalars.
my() in false conditional prohibited
Declarations such as "my $x if 0" are no longer permitted.
Fatalize $* and $#
These special variables, long deprecated, now throw exceptions when used.
Fatalize unqualified use of dump()
The "dump()" function, long discouraged, may no longer be used unless it is fully qualified, i.e.,
"CORE::dump()".
Remove File::Glob::glob()
The "File::Glob::glob()" function, long deprecated, has been removed and now throws an exception which
advises use of "File::Glob::bsd_glob()" instead.
"pack()" no longer can return malformed UTF-8
It croaks if it would otherwise return a UTF-8 string that contains malformed UTF-8. This protects against
potential security threats. This is considered a bug fix as well.
Any set of digits in the Common script are legal in a script run of another script
There are several sets of digits in the Common script. "[0-9]" is the most familiar. But there are also
"[\x{FF10}-\x{FF19}]" (FULLWIDTH DIGIT ZERO - FULLWIDTH DIGIT NINE), and several sets for use in
mathematical notation, such as the MATHEMATICAL DOUBLE-STRUCK DIGITs. Any of these sets should be able to
appear in script runs of, say, Greek. But the design of 5.30 overlooked all but the ASCII digits "[0-9]",
so the design was flawed. This has been fixed, so is both a bug fix and an incompatibility.
All digits in a run still have to come from the same set of ten digits.
JSON::PP enables allow_nonref by default
As JSON::XS 4.0 changed its policy and enabled allow_nonref by default, JSON::PP also enabled allow_nonref
by default.
Deprecations
In XS code, use of various macros dealing with UTF-8.
This deprecation was scheduled to become fatal in 5.30, but has been delayed to 5.32 due to problems that
showed up with some CPAN modules. For details of what's affected, see perldeprecation.
Performance Enhancements
o Translating from UTF-8 into the code point it represents now is done via a deterministic finite
automaton, speeding it up. As a typical example, "ord("\x7fff")" now requires 12% fewer instructions
than before. The performance of checking that a sequence of bytes is valid UTF-8 is similarly improved,
again by using a DFA.
o Eliminate recursion from finalize_op().
o A handful of small optimizations related to character folding and character classes in regular
expressions.
o Optimization of "IV" to "UV" conversions.
o Speed up of the integer stringification algorithm by processing two digits at a time instead of one.
o Improvements based on LGTM analysis and recommendation.
o Code optimizations in regcomp.c, regcomp.h, regexec.c.
o Regular expression pattern matching of things like "qr/[^a]/" is significantly sped up, where a is any
ASCII character. Other classes can get this speed up, but which ones is complicated and depends on the
underlying bit patterns of those characters, so differs between ASCII and EBCDIC platforms, but all case
pairs, like "qr/[Gg]/" are included, as is "[^01]".
The canonical form [1] of an R package Makefile includes the
following:
- The first stanza includes R_PKGNAME, R_PKGVER, PKGREVISION (as
needed), and CATEGORIES.
- HOMEPAGE is not present but defined in math/R/Makefile.extension to
refer to the CRAN web page describing the package. Other relevant
web pages are often linked from there via the URL field.
This updates all current R packages to this form, which will make
regular updates _much_ easier, especially using pkgtools/R2pkg.
[1] http://mail-index.netbsd.org/tech-pkg/2019/08/02/msg021711.html
v6.10.3:
BUGFIXES
vulns → vulnerabilities in npm audit output
install, doctor: don't crash if registry unset
Handle unhandledRejections, tell user what to do when encountering an EACCES error in the cache.
Version 10.16.2 'Dubnium' (LTS)
Notable changes
This release patches a regression in the OpenSSL upgrade to 1.1.1c that causes intermittent hangs in machines that have low entropy.
this might be the cause of weird missing -lz on the latest SmartOS bulk
build, which appears to use this package (e.g. graphics/glitz).
Bump PKGREVISION.
for ansi.h on netbsd.
gcc{7,8}: document same patch that already existed was upstreamed.
This patch is necessary to build GCC on NetBSD >= 9.0, since changes
to ansi.h resulted in not using the same include guards.
Fixes PR toolchain/54362
This is based on an already upstreamed patched that exists in GCC>9.0.
GCC stddef.h relied on the include guards of headers, and those were
changed in netbsd 9.0, so these packages no longer build.
Since we are using a bootstrap GCC, we also need to patch the headers
in the bootstrap fixincludes, patching the package is not sufficient.
Ada part of PR toolchain/54362.
LLVM 8.0.1 is now available! Download it now, or read the release notes.
This release contains bug-fixes for the LLVM 8.0.0 release. This
release is API and ABI compatible with 8.0.0.
v6.10.2:
tl;dr - Fixes several issues with the cache when npm is run as sudo on Unix systems.
TESTING
check test cache for root-owned files
run sudo tests on Travis-CI
set --no-esm tap flag
add script to run tests and leave fixtures for inspection and debugging
BUGFIXES
add a util for writing arbitrary files to cache This prevents metrics timing and debug logs from becoming root-owned.
infer cache owner from parent dir in correct-mkdir util
ensure correct owner on cached all-packages metadata
report server error on failure
Fix npm ci with file: dependencies.
Version 10.16.1 'Dubnium' (LTS)
Notable changes
deps: upgrade openssl sources to 1.1.1c
stream: do not unconditionally call \_read() on resume()
worker: fix nullptr deref after MessagePort deser failure
Erlang/OTP 22 is a new major release with new features and improvements as well as incompatibilities.
For a deeper dive into the hightligts of the OTP 22 release, you can read our blog here:
http://blog.erlang.org/OTP-22-Highlights/
Potential Incompatibilities
gen_* behaviours: If logging of the last N messages through sys:log/2,3 is active for the server, this log is included in the terminate report.
reltool: A new element, Opts, can now be included in a rel tuple in the reltool release specific configuration format: {rel, Name, Vsn, RelApps, Opts}.
All external pids/ports/refs created by erlang:list_to_pid and similar functions now compare equal to any other pid/port/ref with same number from that node.
The old legacy erl_interface library is deprecated as of OTP 22, and will be removed in OTP 23. This does not apply to the ei library.
VxWorks is deprecated as of OTP 22 and will be removed in OTP 23.
Erts:
Support for Erlang Distribution protocol to split the payload of large signals into several fragments.
ETS option write_concurrency now also effects and improves scalability of ordered_set tables.
The length/1 BIF used to calculate the length of the list in one go without yielding, even if the list was very long. Now it yields when called with long lists.
A new (still experimental) module socket is introduced. It is implemented as a NIF and the idea is that it shall be as "close as possible" to the OS level socket interface.
Added the NIF function enif_term_type, which helps avoid long sequences of enif_is_xyz by returning the type of the given term. This is especially helpful for NIFs that serialize terms, such as JSON encoders, where it can improve both performance and readability.
Compiler:
The compiler has been rewritten to internally use an intermediate representation based on Static Single Assignment (SSA). The new intermediate representation makes more optimizations possible.
The binary matching optimizations are now applicable in many more circumstances than before.
Type optimizations are now applied across local function calls, and will remove a lot more redundant type tests than before.
All compiler options that can be given in the source file can now be given in the option list on the command line for erlc.
In OTP 22, HiPE (the native code compiler) is not fully functional. The reasons for this are new BEAM instructions for binary matching that the HiPE native code compiler does not support. If erlc is invoked with the +native option, and if any of the new binary matching instructions are used, the compiler will issue a warning and produce a BEAM file without native code.
Standard libraries:
Cover now uses the counters module instead of ets for updating counters. The new function cover:local_only/0 allows running Cover in a restricted but faster local-only mode. The increase in speed will vary depending on the type of code being cover-compiled, as an example the compiler test suite runs more than twice as fast with the new Cover.
A simple socket API is provided through the socket module. This is a low level API that does *not* replace gen_[tcp|udp|sctp]. It is intended to *eventually* replace the inet driver. It also provides a basic API that facilitates the implementation of other protocols than TCP, UDP and SCTP. Known issues are; No support for the Windows OS (currently), a small term leakage. This feature will be classed as experimental in OTP 22.
SSL: now uses the new logger API, including log levels and verbose debug logging.
SSL: Basic support for TLS 1.3 Server for experimental use.
crypto: The new hash_info/1 and cipher_info/1 functions returns maps with information about the hash or cipher in the argument.
## v1.9.1 (2019-07-18)
### 1. Enhancements
#### Mix
* [mix format] Print relative paths in `--check-formatted` output
* [mix release] Support included applications
### 2. Bug fixes
#### Elixir
* [Code] Fix formatter wrongly removing nested parens in nested calls
#### Logger
* [Logger] Do not crash translator on poorly formatted supervisor names
#### Mix
* [mix compile] Raise readable error for mismatched sources during compilation
* [mix release] Preserve UTF8 encoding in release config files
## v1.9.0 (2019-06-24)
### 1. Enhancements
#### EEx
* [EEx] Allow more complex mixed expressions when tokenizing
#### Elixir
* [Access] Allow `Access.at/1` to handle negative index
* [CLI] Add support for `--boot`, `--boot-var`, `--erl-config`, `--pipe-to`, `--rpc-eval`, and `--vm-args` options
* [Code] Add `static_atom_encoder` option to `Code.string_to_quoted/2`
* [Code] Support `:force_do_end_blocks` on `Code.format_string!/2` and `Code.format_file!/2`
* [Code] Do not raise on deadlocks on `Code.ensure_compiled/1`
* [Config] Add `Config`, `Config.Reader`, and `Config.Provider` modules for working with configuration
* [File] Add `File.rename!/2`
* [Inspect] Add `:inspect_fun` and `:custom_options` to `Inspect.Opts`
* [Kernel] Add `~U` sigil for UTC date times
* [Kernel] Optimize `&super/arity` and `&super(&1)`
* [Kernel] Optimize generated code for `with` with a catch-all clause
* [Kernel] Validate `__struct__` key in map returned by `__struct__/0,1`
* [Module] Add `Module.get_attribute/3`
* [Protocol] Improve `Protocol.UndefinedError` messages to also include the type that was attempted to dispatch on
* [Protocol] Optimize performance of dynamic dispatching for non-consolidated protocols
* [Record] Include field names in generated type for records
* [Regex] Automatically recompile regexes
* [Registry] Add `Registry.select/2`
* [System] Add `System.restart/0`, `System.pid/0` and `System.no_halt/1`
* [System] Add `System.get_env/2`, `System.fetch_env/1`, and `System.fetch_env!/1`
* [System] Support `SOURCE_DATE_EPOCH` for reproducible builds
#### ExUnit
* [ExUnit] Allow multiple `:exclude` on configuration/CLI
* [ExUnit.DocTest] No longer wrap doctest errors in custom exceptions. They ended-up hiding more information than showing
* [ExUnit.DocTest] Display the actual doctest code when doctest fails
#### IEx
* [IEx.CLI] Copy ticktime from remote node on IEx `--remsh`
* [IEx.CLI] Automatically add a host on node given to `--remsh`
#### Logger
* [Logger] Use a decentralized mode computation for Logger which allows overloads to be detected more quickly
* [Logger] Use `persistent_term` to store configuration whenever available for performance
#### Mix
* [Mix] Follow XDG base dir specification in Mix for temporary and configuration files
* [Mix.Generator] Add `copy_file/3`, `copy_template/4`, and `overwite?/2`
* [Mix.Project] Add `preferred_cli_target` that works like `preferred_cli_env`
* [mix archive.uninstall] Allow `mix archive.uninstall APP` to uninstall any installed version of APP
* [mix new] No longer generate a `config/` directory for mix new
* [mix release] Add support for releases
* [mix release.init] Add templates for release configuration
* [mix test] Allow running tests for a given umbrella app from the umbrella root with `mix test apps/APP/test`. Test failures also include the `apps/APP` prefix in the test location
### 2. Bug fixes
#### EEx
* [EEx] Consistently trim newlines when you have a single EEx expression per line on multiple lines
#### Elixir
* [Code] Quote `::` in `Code.format_string!/1` to avoid ambiguity
* [Code] Do not crash formatter on false positive sigils
* [Enum] Ensure the first equal entry is returned by `Enum.min/2` and `Enum.max/2`
* [Kernel] Improve error message when string interpolation is used in a guard
* [Kernel] Properly merge and handle docs for callbacks with multiple clauses
* [Kernel] Guarantee reproducible builds on modules with dozens of specs
* [Kernel] Resolve `__MODULE__` accordingly in nested `defmodule` to avoid double nesting
* [Kernel] Type variables starting with an underscore (`_foo`) should not raise compile error
* [Kernel] Keep order of elements when macro `in/2` is expanded with a literal list on the right-hand side
* [Kernel] Print proper location on undefined function error from dynamically generated functions
* [Kernel] **Potentially breaking** Do not leak aliases when nesting module definitions that are fully namespaced modules. If you defined `defmodule Elixir.Foo.Bar` inside `defmodule Foo`, previous Elixir versions would automatically define an alias, but fully namespaced modules such as `Elixir.Foo.Bar` should never define or require an alias. If you were accidentally relying on this broken behaviour, your code may no longer work
* [System] Make sure `:init.get_status/0` is set to `{:started, :started}` once the system starts
* [Path] Do not expand `~` in `Path.expand/2` when not followed by a path separator
* [Protocol] Ensure `debug_info` is kept in protocols
* [Regex] Ensure inspect returns valid `~r//` expressions when they are manually compiled with backslashes
* [Registry] Fix ETS leak in `Registry.register/2` for already registered calls in unique registries while the process is still alive
#### ExUnit
* [ExUnit] Raise error if attempting to run single line tests on multiple files
* [ExUnit] Return proper error on duplicate child IDs on `start_supervised`
#### IEx
* [IEx] Automatically shut down IEx if we receive EOF
#### Logger
* [Logger] Don't discard Logger messages from other nodes as to leave a trail on both systems
#### Mix
* [mix compile] Ensure Erlang-based Mix compilers (erlang, leex, yecc) set valid position on diagnostics
* [mix compile] Ensure compilation halts in an umbrella project if one of the siblings fail to compile
* [mix deps] Raise an error if the umbrella app's dir name and `mix.exs` app name don't match
* [mix deps.compile] Fix subcommand splitting bug in rebar3
* [mix test] Do not consider modules that are no longer cover compiled when computing coverage report, which could lead to flawed reports
### 3. Soft-deprecations (no warnings emitted)
#### Mix
* [Mix.Config] `Mix.Config` has been deprecated in favor of the `Config` module that now ships as part of Elixir itself. Reading configuration files should now be done by the `Config.Reader` module
### 4. Hard-deprecations
#### Elixir
* [CLI] Deprecate `--detached` option, use `--erl "-detached"` instead
* [Map] Deprecate Enumerable keys in `Map.drop/2`, `Map.split/2`, and `Map.take/2`
* [String] The `:insert_replaced` option in `String.replace/4` has been deprecated. Instead you may pass a function as a replacement or use `:binary.replace/4` if you need to support earlier Elixir versions
#### Mix
* [Mix.Project] Deprecate `Mix.Project.load_paths/1` in favor of `Mix.Project.compile_path/1`
Update to the canonical form of an R package and fix the LICENSE
field. Note that this package is now included within the base R
package, so it is marked with CONFLICTS.
This repo is a continuation of the bsd-port tree, still maintained by
the FreeBSD ports java people.
It is forked from (and merges regularly from) AdoptOpenJDK.
They accept patches for other BSDs, so we should see if we have anything
in our tree worth contributing.
As a side effect, this changes updates openjdk8 to u222.
1 New and Improved Features
1.1 Direct Linking
Direct linking can be enabled with -Dclojure.compiler.direct-linking=true
Direct linking allows functions compiled with direct linking on to make direct static method calls to most other functions, instead of going through the var and the Fn object. This can enable further optimization by the jit, at a cost in dynamism. In particular, directly-linked calls will not see redefinitions.
With this change, clojure.core itself is compiled with direct linking and therefore other namespaces cannot redefine core fns and have those redefinitions seen by core code.
A new metadata key ^:redef is provided. A function declared with this key can be redefined and will never be direct linked. Also, functions declared as ^:dynamic will never be direct linked.
CLJ-1809
CLJ-1805
CLJ-1854
CLJ-1856
1.2 String Functions
Several new string functions were added to clojure.string to increase portability and reduce the need for Java interop calls:
index-of - search for the index of a char or string in a string
last-index-of - search for the index of a char or string backwards in a string
starts-with? - true if string starts with a substring
ends-with? - true if string ends with a substring
includes? - true if string includes a substring
CLJ-1449
1.3 Socket Server and REPL
The Clojure runtime now has the ability to start a socket server at initialization based on system properties. One expected use for this is serving a socket-based REPL, but it also has many other potential uses for dynamically adding server capability to existing programs without code changes.
A socket server will be started for each JVM system property like clojure.server.<server-name>. The value for this property is an edn map representing the configuration of the socket server with the following properties:
address - host or address, defaults to loopback
port - positive integer, required
accept - namespaced symbol of function to invoke on socket accept, required
args - sequential collection of args to pass to accept
bind-err - defaults to true, binds *err* to socket out stream
server-daemon - defaults to true, socket server thread doesn't block exit
client-daemon - defaults to true, socket client thread doesn't block exit
Additionally, there is a repl function provided that is slightly customized for use with the socket server in clojure.core.server/repl.
Following is an example of starting a socket server with a repl listener. This can be added to any existing Clojure program to allow it to accept external REPL clients.
-Dclojure.server.repl="{:port 5555 :accept clojure.core.server/repl}"
An example client you can use to connect to this socket repl is telnet:
$ telnet 127.0.0.1 5555
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
user=> (println "hello")
hello
See:
CLJ-1671
CLJ-1853
Socket REPL design page
CLJ-1829
2 Enhancements
2.1 Error handling
CLJ-1778 let-bound namespace-qualified bindings should throw (if not map destructuring)
CLJ-1456 Compiler now errors if too few or too many arguments to throw
CLJ-1282 quote now throws if passed more or less than one arg
CLJ-1210 Improved error message for (clojure.java.io/reader nil)
2.2 Documentation strings
CLJ-1060 'list*' returns not a list
CLJ-1722 Typo in the docstring of 'with-bindings'
CLJ-1769 Docstrings for *' and +' refer to * and +
CLJ-1414 sort and sort-by now indicate sort is stable in docstring
2.3 Performance
CLJ-703 Improve writeClassFile performance
CLJ-1765 areduce performance improvements
CLJ-1724 Remove unnecessary call to seq() in LazySeq.hashCode()
CLJ-1295 Improved array-map dissoc performance
CLJ-1277 Speed up printing of time instants with type hints
CLJ-1259 Speed up pprint and cl-format with type hints
CLJ-668 Improve slurp performance by using StringWriter and jio/copy
2.4 Other enhancements
CLJ-1208 Optionally require namespace on defrecord class init
CLJ-1823 Document new :load-ns option to defrecord/deftype
CLJ-1810 ATransientMap now marked public
CLJ-1653 str of an empty list should be "()"
CLJ-1567 Removed unused local in condp implementation
CLJ-1351 Unused swapThunk method was being emitted for fns with keyword callsites
CLJ-1329 Removed unused local in PersistentVector.cons()
CLJ-1831 Add clojure.core/map-entry? predicate
CLJ-1845 Make clojure.core/load dynamic so it can be redef'ed even with direct linking
3 Bug Fixes
CLJ-130 Namespace metadata lost in AOT compile
CLJ-1134 star-directive in clojure.pprint/cl-format with at-prefix ("~n@*") does not obey its specification
CLJ-1137 Metadata on a def gets evaluated twice
CLJ-1157 Classes generated by gen-class aren't loadable from remote codebase
CLJ-1225 quot overflow issues around Long/MIN_VALUE for BigInt
CLJ-1313 Correct a few unit tests
CLJ-1319 array-map fails lazily if passed an odd number of arguments
CLJ-1361 pprint with code-dispatch incorrectly prints a simple ns macro call
CLJ-1390 pprint a GregorianCalendar results in Arity exception
CLJ-1399 field name unmunged when recreating deftypes serialized into bytecode
CLJ-1485 clojure.test.junit/with-junit-output doesn't handle multiple expressions
CLJ-1528 clojure.test/inc-report-counter is not thread-safe
CLJ-1533 invokePrim path does not take into account var or form meta
CLJ-1562 some->,some->>,cond->,cond->> and as-> doesn't work with (recur)
CLJ-1565 pprint produces infinite output for a protocol
CLJ-1588 StackOverflow in clojure.test macroexpand with are and anon fn
CLJ-1644 into-array fails for sequences starting with nil
CLJ-1645 protocol class does not set the source file
CLJ-1657 proxy bytecode calls super methods of abstract classes
CLJ-1659 compile leaks files
CLJ-1761 clojure.core/run! does not always return nil per docstring
CLJ-1782 Spelling mistake in clojure.test/use-fixtures
CLJ-1785 Reader conditionals throw when returning nil
CLJ-1766 Serializing+deserializing lists breaks their hash
CLJ-1609 Edge case in Reflector's search for a public method declaration
CLJ-1586 Compiler doesn't preserve metadata for LazySeq literals
CLJ-1232 Functions with non-qualified return type hints will now work without import from other namespace
CLJ-1812 Fix test failure on windows due to line endings
CLJ-1380 3-arg ExceptionInfo constructor permitted nil data
CLJ-1226 set! of a deftype field using field-access syntax caused ClassCastException
Records and types without fields eval to empty map
CLJ-1827 Fix reflection warning introduced in CLJ-1259
CLJ-1453 Ensure that all Iterator implementations throw NoSuchElementException on next() when exhausted
CLJ-1868 Avoid compiler NPE when checking class return type
Changes in 2.2.6 (since 2.2.5)
* Bug fixes
** Fix regression introduced in 2.2.5 that would break HTTP servers
Guile 2.2.5 introduced a bug that would break the built-in HTTP server
provided by the (web server) module. Specifically, HTTP servers would
hang while reading requests. See <https://bugs.gnu.org/36350>.
** 'strftime' and 'strptime' honor the current locale encoding
Until now these procedures would wrongfully assume that the locale
encoding is always UTF-8. See <https://bugs.gnu.org/35920>.
** Re-export 'current-load-port'
This procedure was erroneously removed in the 2.2 series but was still
documented.
** Minor documentation mistakes were fixed
Changelog:
Changes affecting backwards compatibility
All strutils.rfind procs now take start and last like strutils.find with the same data slice/index meaning. This is backwards compatible for calls not changing the rfind start parameter from its default. (#11487)
In the unlikely case that you were using rfind X, start=N, or rfind X, N, then you need to change that to rfind X, last=N or rfind X, 0, N. (This should minimize gotchas porting code from other languages like Python or C++.)
On Windows stderr/stdout/stdin are not opened as binary files anymore. Use the switch -d:nimBinaryStdFiles for a transition period.
Breaking changes in the standard library
Mac OS X / BSD: TSa_Family is now the uint8 type, so type conversions like x.sin_family = uint16 toInt(nativesockets.AF_INET) need to be changed into x.sin_family = TSa_Family toInt(nativesockets.AF_INET).
Library additions
toOpenArray is now available for the JS target.
Library changes
Fix async IO operations stalling even after socket is closed. (#11232)
More informative error message for streams.openFileStream. (#11438)
Compiler changes
Better error message for IndexError for empty containers. (#11476)
Fix regression in semfold for old right shift. (#11477)
Fix for passing tuples as static params to macros. (#11423)
Bugfixes
Fixed "nimpretty goes crazy with this snippet" (#10295)
Fixed "nimpretty doesn't trim all whitespace on the right side of an export marker" (#10177)
Fixed "nimpretty gives invalid indentation to array elements" (#9505)
Fixed "nimpretty doesn't indent correctly if preceding line ends with ;, { etc" (#10159)
Fixed "Nimpretty wrong indentation for doc comments" (#10156)
Fixed "HttpClient Documentation needs Proxy example" (#11281)
Fixed "nimpretty aligns comment annoyingly" (#9399)
Fixed "ENDB missing from Docs and TheIndex, remove ENDB from -fullhelp" (#11431)
Fixed "Nimrod on Documentation generator" (#11460)
Fixed "nimpretty (de)indents code where it shouldn't" (#11468)
Fixed "nimpretty adds spaces where it shouldn't" (#11470)
Fixed "nimpretty formats enums differently based on commas" (#11467)
Fixed "strutils.rfind start parameter is unecessarily unusual" (#11430)
Fixed "TinyC is not documented" (#11495)
Fixed "c2nim missing from 0.20.0" (#11434)
Fixed "nimsuggest doesn't work unless compiled with -d:danger" (#11482)
Fixed "random.initRand crashes in Nim 0.20.0 JS backend" (#11450)
Fixed "0.20.0 fails to bootstrap when passing "-verbosity:2" (or 3) to koch" (#11436)
Fixed "Destructors lifting doesn't work with inheritance" (#11517)
Fixed "std/sums missing from TheIndex" (#11543)
Fixed "sequtils module: link is broken" (#11546)
Fixed "Case Statement Macros do not work in functions above exported functions." (#11556)
Fixed "newruntime: internal error when initializing a proc variable" (#11533)
Fixed "newruntime: error when modifying a sequence" (#11524)
Fixed "fmod and other math module functions are missing in js mode" (#4630)
Fixed "Object variants and new runtime" (#11563)
Fixed "newruntime exceptions" (#11577)
Fixed "nimpretty is not aware that the next line is a part of the same context" (#11469)
Fixed "Distinct procs fail to compile" (#11600)
Fixed "[SharedTables] Error: undeclared identifier: 'defaultInitialSize'" (#11588)
Fixed "newSeqOfCap is not working in newruntime" (#11098)
Fixed "nimpretty destroys source with a source code filter" (#11532)
Fixed "Unexpected behaviour when constructing with result" (#11525)
Fixed "Regression in 0.20.0: Nested proc using outer scope variable fails to compile" (#11523)
Fixed "os:standalone Error: redefinition of 'nimToCStringConv' " (#11445)
Fixed "No ambiguity error on field overloaded by field=" (#11514)
Fixed "object variants and new runtime part 2" (#11611)
Fixed "seq Error: unhandled exception: value out of range: 32772 " (#11606)
Fixed "Compiled binary includes full path to internal nim files" (#11572)
Fixed "Newruntime: top-level string variable is empty after an array assignment" (#11614)
Fixed "Newruntime: raise ObjContructor() doesn't compile" (#11628)
Fixed "Owned ref can be copied and causes double-free" (#11617)
Fixed "When compiling to JS (in -d:release) output contains toolchain path on dev's machine" (#11545)
Fixed "wrong unicode string output" (#11618)
Fixed "unittest "generic instantiation too nested" error" (#11515)
Fixed "Last read of a var parameter generates sink instead of assignment" (#11633)
Fixed "const table with proc type does not compile anymore" (#11479)
Fixed "Can't use offsetOf on object that ends with an UncheckedArray" (#11320)
Fixed "Newruntime/regression: Bad codegen for inline methods" (#11636)
Fixed "String or sequences inside a loop are not cleared in each iteration" (#11510)
Fixed "Nim -v doesn't acknowledge new danger flag" (#11484)
Fixed "SIGSEGV while compiling when trying to instantiate a case type, that uses an enum with nsage of parts of strutils fails when using -d:useNimRtl" (#8405)
Fixed "regression(0.20): finally block executed twice in VM" (#11610)
Fixed "exportc symbol not exported, leading to link error" (#11651)
Fixed "Render bug: opearatorasses refs across threads" (#7057)
Fixed "BUG: "varargs[string, $]" calls $ n^2 times instead of n times (n=len(varargs))" (#8316)
Fixed "Problem with the same name for module and exported type" (#3333)
Fixed "-gc:go does notles/objects fail with "non-trivial" error..." (#11671)
Fixed "Regression: parameter default value + typedesc parameter causes compiler crash" (#11660)
Fixed "newruntime: undetected dangling ref" (#11350)
Fixed "Newruntime: setLen() not working on sequences of owned refs" (#11530)
Fixed "Incorrect overflow/underflow error in case statements" (#11551)
Fixed "cgen preprocessor directive placed after struct declaration" (#11691)
Fixed "continue in an except Exception as e block crashes the compiler." (#11683)
Fixed "nimsuggest, nim check segfault when using bindSym and doAssert" (#10901)
Fixed "Nimpretty issue, multiline string of x length only causes output grow every time." (#11700)
Fixed "Array indexed by distinct int doesnt work with iterators" (#11715)
Before, the filename "3270" was wrongly replaced with "${PYVERSSUFFIX}"
since the version number "3.7", when interpreted as a regular expression,
matched that filename.
crates.
Previously, crates with a '-' outside the version and version with semver
pre-release version and semver build metadata were not properly handled.
Improvement suggestion by leot@
Tested all cargo.mk users in pkgsrc.
This also addresses PR/54316.
Please note: this bootstrap is built against 8.99.50, i.e. fairly
recent -current. This should make it possible to build rust on
this OS version. The previous bootstrap kit was built against
8.99.35, and apparently a C++ update happened since then making
the older bootstrap kit unusable on a fresh, new -current.
This fixes a nasty code-generation bug, among other things:
go1.12.6 (released 2019/06/11) includes fixes to the compiler, the linker,
the go command, and the crypto/x509, net/http, and os packages.
See the Go 1.12.6 milestone on our issue tracker for details.
go1.12.7 (released 2019/07/08) includes fixes to cgo, the compiler,
and the linker. See the Go 1.12.7 milestone on our issue tracker for details.
go1.11.11 (released 2019/06/11) includes a fix to the crypto/x509 package.
See the Go 1.11.11 milestone on our issue tracker for details.
go1.11.12 (released 2019/07/08) includes fixes to the compiler and the linker.
See the Go 1.11.12 milestone on our issue tracker for details.
Python 3.7.4 final
Core and Builtins
bpo-37500: Due to unintended side effects, revert the change introduced by bpo-1875 in 3.7.4rc1 to check for syntax errors in dead conditional code blocks.
Documentation
bpo-37149: Replace the dead link to the Tkinter 8.5 reference by John Shipman, New Mexico Tech, with a link to the archive.org copy.
Python 3.7.4 release candidate 2
Security
bpo-37463: ssl.match_hostname() no longer accepts IPv4 addresses with additional text after the address and only quad-dotted notation without trailing whitespaces. Some inet_aton() implementations ignore whitespace and all data after whitespace, e.g. ‘127.0.0.1 whatever’.
Core and Builtins
bpo-24214: Improved support of the surrogatepass error handler in the UTF-8 and UTF-16 incremental decoders.
Library
bpo-37440: http.client now enables TLS 1.3 post-handshake authentication for default context or if a cert_file is passed to HTTPSConnection.
bpo-37437: Update vendorized expat version to 2.2.7.
bpo-37428: SSLContext.post_handshake_auth = True no longer sets SSL_VERIFY_POST_HANDSHAKE verify flag for client connections. Although the option is documented as ignored for clients, OpenSSL implicitly enables cert chain validation when the flag is set.
bpo-32627: Fix compile error when _uuid headers conflicting included.
Windows
bpo-37369: Fixes path for sys.executable when running from the Microsoft Store.
bpo-35360: Update Windows builds to use SQLite 3.28.0.
macOS
bpo-34602: Avoid test suite failures on macOS by no longer calling resource.setrlimit to increase the process stack size limit at runtime. The runtime change is no longer needed since the interpreter is being built with a larger default stack size.
Imported from wip.
"Commodore BASIC" (cbmbasic) is a 100% compatible version of Commodore's
version of Microsoft BASIC 6502 as found on the Commodore 64. You can use it
in interactive mode or pass a BASIC file as a command line parameter.
cbmbasic does not emulate 6502 code; all code is completely native. On a
1 GHz CPU you get about 1000x speed compared to a 1 MHz 6502.
In 5.1.0 the binary-version was bumped to 11. Update OWN_DIRS
accordingly and introduce CHICKEN_BINARY_VERSION variable to
automatically adjust OWN_DIRS and PLIST.
PKGREVISION++
Changelog:
The 2.13.0 release improves Scala in the following areas:
Collections: Standard library collections have been overhauled
for simplicity, performance, and safety. This is the centerpiece
of the release.
Standard library: Future is faster and more robust. Elsewhere,
useful classes and methods have been added.
Language: Literal types, partial unification, by-name implicits,
more.
Compiler: 5-10% faster, deterministic output, improved optimizer.
3.3.5:
Handle annotation args in Python 3.x
Fix vararg and function signatures in 3.x
Some 3.x < 3.6 while (1)/if fixes — others remain
Start reinstating else if -> elif
LOAD_CONST -> LOAD_CODE where appropriate
option --weak-verify is now --syntax-verify
code cleanups, start using black to reformat text
Changes:
3.6.9
=====
Documentation
-------------
- bpo-35605: Fix documentation build for sphinx<1.6. Patch by Anthony Sottile.
- bpo-35564: Explicitly set master_doc variable in conf.py for compliance with
Sphinx 2.0
0.5.0:
- **Breaking Change** comp_for is now called sync_comp_for for all Python
versions to be compatible with the Python 3.8 Grammar
- Added .pyi stubs for a lot of the parso API
- Small FileIO changes
Python 3.6.9 final
Library
bpo-37437: Update vendorized expat version to 2.2.7.
macOS
bpo-34602: Avoid test suite failures on macOS by no longer calling resource.setrlimit to increase the process stack size limit at runtime. The runtime change is no longer needed since the interpreter is being built with a larger default stack size.
Python 3.6.9 release candidate 1
Security
bpo-35907: CVE-2019-9948: Avoid file reading by disallowing local-file:// and local_file:// URL schemes in URLopener().open() and URLopener().retrieve() of urllib.request.
bpo-36742: Fixes mishandling of pre-normalization characters in urlsplit().
bpo-30458: Address CVE-2019-9740 by disallowing URL paths with embedded whitespace or control characters through into the underlying http client request. Such potentially malicious header injection URLs now cause an http.client.InvalidURL exception to be raised.
bpo-36216: Changes urlsplit() to raise ValueError when the URL contains characters that decompose under IDNA encoding (NFKC-normalization) into characters that affect how the URL is parsed.
bpo-33529: Prevent fold function used in email header encoding from entering infinite loop when there are too many non-ASCII characters in a header.
bpo-35746: [CVE-2019-5010] Fix a NULL pointer deref in ssl module. The cert parser did not handle CRL distribution points with empty DP or URI correctly. A malicious or buggy certificate can result into segfault. Vulnerability (TALOS-2018-0758) reported by Colin Read and Nicolas Edet of Cisco.
bpo-35121: Don’t send cookies of domain A without Domain attribute to domain B when domain A is a suffix match of domain B while using a cookiejar with http.cookiejar.DefaultCookiePolicy policy. Patch by Karthikeyan Singaravelan.
Library
bpo-35643: Fixed a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py. Patch by Mickaël Schoentgen.
bpo-35121: Don’t set cookie for a request when the request path is a prefix match of the cookie’s path attribute but doesn’t end with “/”. Patch by Karthikeyan Singaravelan.
Documentation
bpo-35605: Fix documentation build for sphinx<1.6. Patch by Anthony Sottile.
bpo-35564: Explicitly set master_doc variable in conf.py for compliance with Sphinx 2.0
Tests
bpo-36816: Update Lib/test/selfsigned_pythontestdotnet.pem to match self-signed.pythontest.net’s new TLS certificate.
bpo-35925: Skip specific nntplib and ssl networking tests when they would otherwise fail due to a modern OS or distro with a default OpenSSL policy of rejecting connections to servers with weak certificates or disabling TLS below TLSv1.2.
bpo-27313: Avoid test_ttk_guionly ComboboxTest failure with macOS Cocoa Tk.
bpo-32947: test_ssl fixes for TLS 1.3 and OpenSSL 1.1.1.
macOS
bpo-34602: Avoid failures setting macOS stack resource limit with resource.setrlimit. This reverts an earlier fix for bpo-18075 which forced a non-default stack size when building the interpreter executable on macOS.
0.711:
The following two issues in mypy 0.710 were fixed:
Revert typeshed (“Define functools.partial as overloaded function instead of its own class”). This caused too many false positive errors in real-world code.
Fix MYPYC_BLACKLIST on Windows. This broke running dmypy on Windows.
Changelog:
5.1.0
- Core libraries
- Symbols ending or starting with a colon are now always pipe-quoted
when written by `write` to ensure they can be read back with a
different keyword-style setting.
- Read-write invariance of special symbols starting with #! other
than #!key, #!rest or #!optional is now preserved (#1572).
- When using (set-file-position!) on a port, its EOF status will now
be reset.
- In (chicken file posix), the values of perm/irgrp, perm/iwgrp,
perm/ixgrp, perm/iroth, perm/iwoth and perm/ixoth are now correctly
defined (they were all for "usr"; #1602, thanks to Eric Hoffman).
- In (chicken file posix), `file-truncate` now accepts also accepts
port objects, for consistency with other file procedures.
All such procedures from (chicken file posix) now have the correct
types in types.db (fixes#1609, thanks to Robert Jensen).
- Add the system-config-directory and system-cache-directory procedures
in the chicken.platform module. These procedures follow the XDG
specification and also give sensible results on Windows.
- Fix get-environment from (chicken process-context) to raise an
error when passed #f instead of segfaulting.
- Qualified symbols (##foo#bar style) are no longer encoded by a
byte prefix inside the symbol name. This ensures read-write
invariance of symbols which start with a low-byte character
(fixes#1077, except for keywords, which start with NUL bytes).
- Fix a missing export (list->s64vector) in SRFI-4.
- Runtime system
- Keywords are now distinct types; they are not a subtype of symbols.
- Use arc4random on FreeBSD (thanks to Tobias Kortkamp and gahr)
- Removed the unused, undocumented (and incorrect!) C functions
C_delete_symbol_table and C_set_symbol_table.
- Continuations which discard additional values beyond the first no
longer accept multiple values via direct invocation after being
captured through `call/cc`, only via `values` (revert of #1390,
due to #1601)
- SRFI-4 vector predicates, reference, set and length procedures
should now be faster in tight loops as they're inlineable (#757).
- Keywords are now interned in a separate keyword table, not in the
standard symbol table. This brings full read-write invariance
for symbols (they can now also start with NUL bytes). Keywords
no longer have plists. Fixes#1576.
- Increased the "binary compatibility version" to 11.
- Compiler
- Restored optimized implementations of =, +, -, /, * and quotient in
fixnum-arithmetic mode (fixes#1604 mostly; thanks to "chickendan").
- Added an optimization pass for reducing the amount of boxing of
intermediate floating point values, enabled by the "-lfa2" compiler
option.
- The "lfa2" pass is now enabled at optimization levels 2 or higher.
- Module system
- When you try to import the module you are currently defining into
itself, an error will be raised. This prevents an infinite loop in
the compiler when later trying to import that same module (fixes
#1506, thanks to Kristian Lein-Mathisen).
- Foreign function interface
- Improved hygiene in FFI macro expansions, which means you don't
have to import "scheme" or "(chicken base)" for them to work.
- Type system
- It is now possible to quote free variables in type declarations,
which acts as shorthand for `forall' (thanks to "megane")
- Tools
- csi now uses (system-config-directory) to find csirc and falls back to
$HOME/.csirc when needed.
- chicken-install now uses (system-config-directory) to find a user
defined setup.defaults file ; it also uses (system-cache-directory)
for its egg cache directory when the CHICKEN_EGG_CACHE environment
variable is not defined.
- Egg specifications
- Allows "cond-expand" and "error" forms in egg specification files.
- Add "c-object" and "object" properties to link separately compiled
C objects into CHICKEN code.
v6.9.2
This release is identical to v6.9.1, but we had to publish a new version due to a .git directory in the release.
v6.9.1
BUGFIXES
Update knownBroken version.
Fix outdated rendering for global dependencies.
Fix OTP for token create and remove.
DEPENDENCIES
sha@3.0.0
query-string@6.4.0
readable-stream@3.2.0
tacks@1.3.0
tap@12.6.0
tar-stream@2.0.1
Add comment to patch.
Changes in 2.2.5 (since 2.2.4):
* Notable improvements
** Greatly improved performance of bidirectional pipes.
The performance of bidirectional pipes, as created using 'open-pipe' or
'open-pipe*' in OPEN_BOTH mode, has been greatly improved. When reading
large blocks of binary data from a bidirectional pipe, the maximum
bandwidth has been increased by a factor of ~10^3 in some cases.
** New 'get-bytevector-some!' I/O primitive.
This new I/O primitive is similar to 'get-bytevector-some' from the
R6RS, except that it writes its data to a user-specified range of
indices in an existing bytevector. As a corollary, it is also now
possible to specify a maximum number of bytes to read. Note that
'get-bytevector-some', and now 'get-bytevector-some!', are unique among
Guile's I/O primitives in their support of efficient binary reads of
potentially large blocks while also allowing for short reads, to avoid
undesired blocking. Now these operations can be performed while also
avoiding heap-allocation.
'get-bytevector-some!' is needed to efficiently implement the new
bidirectional pipes, which are built upon R6RS custom binary
input/output ports.
** get-bytevector-{n!,some,some!} now support suspendable I/O.
Scheme implementations of 'get-bytevector-n!', 'get-bytevector-some',
and 'get-bytevector-some!' have been added to (ice-9 suspendable-ports).
As a result, these I/O operations now support suspendable I/O.
* Compiler improvements
** guild compile: Add -Wshadowed-toplevel.
Top-level definitions that shadow previous top-level definitions from
the same compilation unit will now trigger a compile-time warning, if
-Wshadowed-toplevel is enabled. It is enabled by default.
** guild compile: Add '-x' flag.
Passing "-x EXT" to 'guild compile' will now cause EXT to be recognized
as a valid source file name extension. For example, to compile R6RS
code, you might want to pass "-x .sls" so that files ending in ".sls"
can be found.
* Miscellaneous improvements
** Bootstrap optimization
eval.go and psyntax-pp.go are now built before the rest of the .go files
so that they are processed by a fast macro expander. This saves time
when using parallel builds.
** put-u8 now always writes a single byte, regardless of the port encoding.
Previously, (put-u8 PORT OCTET) worked as expected only when writing to
binary ports, i.e. those with port encoding "ISO-8859-1" a.k.a. Latin-1.
Strictly speaking, this meets the requirements of the R6RS 'put-u8',
which need only support binary ports. However, Guile in fact allows
binary I/O to be performed on any port, and yet 'put-u8' behaved in a
surprising way with other port encodings: it would perform a _textual_
I/O operation, writing the character with Unicode scalar value OCTET.
Now, 'put-u8' always writes a single byte with value OCTET, regardless
of the port encoding.
** Optimize fixnum exact integer square roots.
'exact-integer-sqrt' now avoids heap allocation when applied to a
fixnum. 'sqrt' now avoids heap allocation when applied to a fixnum
that's a perfect square. Fewer heap allocations are now required when
applying 'sqrt' to a square of an exact rational whose numerator or
denominator are fixnums.
** scm_mkstrport: Optimize the POS -> BYTE_POS conversion.
scm_mkstrport now avoids an unnecessary heap allocation and conversion
to UTF-8, when STR is provided and POS is non-zero.
** SRFI-19: Support ~N in string->date.
Support for the ~N escape, which allows fractions of a second to be
parsed, is now supported in SRFI-19 'string->date'.
** SRFI-19: Update the leap second table.
The leap on 1 January 2017 was added to SRFI-19's leap second table.
** stexi->shtml: Add support for @i, @math, @tie and @dots.
stexi->shtml is now able to convert @i, @math, @tie and @dots to HTML.
** Define AT_SYMLINK_NOFOLLOW, AT_NO_AUTOMOUNT, and AT_EMPTY_PATH.
AT_SYMLINK_FOLLOW, AT_NO_AUTOMOUNT, and AT_EMPTY_PATH are now available
from Scheme, if supported on the platform.
** Improvements to the 'time' macro from (ice-9 time).
The 'time' macro now supports expressions that return multiple values.
It has also been rewritten as a hygienic 'syntax-rules' macro.
Previously, it was built using 'define-macro', and was therefore
unhygienic. This is not merely an internal implementation detail, but
is potentially relevant to any user of the 'time' macro, since it could
lead to unintended variable capture and other problems.
** Clarify the documentation for 'nil?'.
See commit b44f505f1571fc9c42e58982f161a9cfc81fb7f4.
** Clarify the manual's "Processes" section.
See commit 8cdd3a0773930ca872a13aada7a1344f03bb382b.
** Avoid 'with-latin1-locale' in binary I/O tests.
See commit 162a031e5f2c64cd23fcf069fb7b5071196f9527.
** Update user-visible copyright years.
* Bug fixes
** Avoid regexp ranges in HTTP inter-protocol exploitation check.
The regular expression used to check for HTTP inter-protocol
exploitation attacks previously used a character range '0-9', whose
meaning depends on the current locale. This has now been fixed.
** Fixes to the SRFI-19 time/date library.
*** TAI-to-UTC conversion leaps at the wrong time.
<https://bugs.gnu.org/21911>
*** time-utc->date shows bogus zone-dependent leap second.
<https://bugs.gnu.org/22034>
*** Manual incorrectly describes Julian Date.
<https://bugs.gnu.org/21902>
*** date->string duff ISO 8601 negative years.
<https://bugs.gnu.org/21903>
*** date->string duff ISO 8601 format for non-4-digit years.
<https://bugs.gnu.org/21904>
*** julian-day->date negative input breakage.
<https://bugs.gnu.org/21906>
*** time-duration screws up negative durations.
<https://bugs.gnu.org/26162>
*** time-difference doesn't detect error of differing time types.
<https://bugs.gnu.org/26163>
** Improve overflow checks in bytevector, string, and I/O operations.
Several numerical computations, performed using primitive C arithmetic
in Guile's core bytevector, string, and I/O operations, have been
rewritten to avoid overflows.
** Fix type inferencing for 'nil?' and 'null?' predicates.
Previously, the compiler would sometimes miscompile certain combinations
of 'nil?' and 'null?' predicates present within the same top-level form.
See <https://bugs.gnu.org/33036>.
** Fix 'atomic-box-compare-and-swap!'.
Previously, 'atomic-box-compare-and-swap!' would sometimes spuriously
fail on architectures based on Load-Linked/Store-Conditional (LL/SC)
synchronication primitives (e.g. ARM, PowerPC, and MIPS) in a way that
was undetectable by the caller. See <https://bugs.gnu.org/32786>.
** Make URI handling locale independent.
Previously, procedures in (web uri) would misbehave in some locales
including sv_SE. See <https://bugs.gnu.org/35785>.
** Strings, i18n: Limit the use of alloca to approximately 8 kilobytes.
Previously, 'string-locale-ci=?', 'string-locale-ci<?',
'string-locale<?', 'string-locale-{downcase,upcase,titlecase}' and
'string-normalize-{nfd,nfc,nfkd,nfkc}' would overflow the C stack when
applied to very large strings.
** Fix documentation of R6RS 'binary-port?' to reflect reality.
Previously, the documentation incorrectly stated that 'binary-port?'
always returns #t. In fact, it returns #t if and only if the port
encoding is "ISO-8859-1". The documentation for 'binary-port?' and
'textual-port?' has been rewritten to reflect the current reality, and
also to leave open the possibility of changing the behavior of these
predicates in a future version of Guile.
** Avoid passing NULL to 'memcpy' and 'memcmp'.
Previously, NULL was sometimes passed to 'memcpy' or 'memcmp' when the
size argument was 0.
** Save and restore errno in the signal handler.
Previously, Guile's synchronous C signal handler failed to save and
restore 'errno', although it might change its value. This could
potentially lead to spurious corruptions of 'errno' within threads
interrupted by signals.
** scm_to_stringn: Avoid passing NULL to c_strcasecmp.
<https://lists.gnu.org/archive/html/guile-user/2019-05/msg00070.html>
** r6rs-ports: Accept 'port-position' values greater than 2^32.
<https://bugs.gnu.org/32161>
** r6rs-ports: 'put-bytevector' accepts 64-bit integers.
Fixed in commit 741c45458da0831a12a4f8d729814bf9f2cb6571.
** Fix R6RS call-with-{input,output}-file to open textual ports.
<https://bugs.gnu.org/32329>
** Update (ice-9 match) to include selected bug fixes from upstream.
*** ice-9/match named match-let is not working
<https://bugs.gnu.org/22925>
** open-process: Fix dup(2) and execvp(2) error handling.
Fixed in commit 521f1ab4709217407496004019c00005d2a82f78.
** bytevectors: Support large indices in integer accessors.
Fixed in commit b9cf3517efd4643670d970d2692bc7bede9a85e8.
** bytevectors: Fix list validation of *list->bytevector procedures.
<https://bugs.gnu.org/32938>
** Gracefully handle huge shift counts in 'ash' and 'round-ash'.
<https://bugs.gnu.org/32644>
** In 'ash' and 'round-ash', handle right shift count of LONG_MIN.
<https://bugs.gnu.org/21901>
** Use 'scm_from_utf8_{string,symbol,keyword}' for C string literals.
<https://bugs.gnu.org/33044>
** web: Add support for HTTP header continuation lines.
Fixed in commit 73cde5ed7218a090ecee888870908af5445796f0.
** scm_seed_to_random_state: Support wide string arguments.
<https://bugs.gnu.org/33044>
** Do not warn the user when 'madvise' returns ENOSYS.
Fixed in commit 45e4ace6603e00b297e6542362273041aebe7305.
** Add 'texinfo' as a dependency in the README.
Fixed in commit 1bbce71501198c3c7abdf07941f5cdc1434858c2.
** Don't mutate read-only string in ports test.
Fixed in commit 552f007e91a97f136aad1b22918688b61d03a4a3.
** Remove redefinition of when & unless in snarf-check-and-output-texi.
Fixed in commit 1ba5d6f47a54dceee4452a1e7726d2635e5b3449.
** Fix strftime when Guile is built without threading support.
Fixed in commit 139c702fc8b61fdeb813c3428fef3701ea8677f9.
** Avoid leaking a file descriptor in test-unwind.
Fixed in commit 1437b76777e576b3d000e2f80c5ecdb33a74ac33.
** Fix binary output on files created by mkstemp!.
Fixed in commit 78468baa118d316050a27e43250966e52ffd3d54.
** Fix crypt-on-glibc test error.
Fixed in commit 27ffbfb0235de466016ea5a6421508f6548971b6.
** Fix race when expanding syntax-parameterize and define-syntax-parameter.
<https://bugs.gnu.org/27476#102>
** Add a fallback value for the locale-monetary-decimal-point.
Fixed in commit 9ba449643d4c2ac1d2174befca7d765af222bcc0.
** Handle newlib C library's langinfo constant names.
Fixed in commit 92105d13ad1363b511214589b7d62d95304beb17.
** Make locale monetary conversion tests be less strict on terminal whitespace.
Fixed in commit 2a3ccfb66714efc1c081ea6e921336f80b756d3c.
** Disable test for current value of setitimer on Cygwin.
Fixed in commit 3a64c504caaf83e9faf2ec9b7d0e031e1a6a09b9.
** Fix gc.test "after-gc-hook gets called" failures.
<https://bugs.gnu.org/31776#17>
** Update iconv.m4 from gnulib, to fix an iconv leak during configure.
<https://lists.gnu.org/archive/html/guile-devel/2019-05/msg00011.html>
** guild compile: Add missing newline in "unrecognized option" error message.
Fixed in commit 85c5bae4fd94f8686d26fd792b7c0f588c23bd94.
** 'basename' now correctly handles "/" and "//".
Fixed in commit 36ad1d24b3d2c174a64c445502a36f19605dbd65.
** Make srfi-71 visible through 'cond-expand'.
Fixed in commit 59a06d8392234fbec8b3605cec266a7a0a7b7a56.
The OpenMP subproject of LLVM contains the components required to build an
executable OpenMP program that are outside the compiler itself.
Here you can find the code for the runtime library against which code compiled
by clang -fopenmp must be linked before it can run.
Changelog:
Changes affecting backwards compatibility
shr is now sign preserving. Use -d:nimOldShiftRight to enable the old behavior globally.
The isLower, isUpper family of procs in strutils/unicode operating on strings have been deprecated since it was unclear what these do. Note that the much more useful procs that operate on char or Rune are not affected.
strutils.editDistance has been deprecated, use editdistance.editDistance or editdistance.editDistanceAscii instead.
The OpenMP parallel iterator `||` now supports any #pragma omp directive and not just #pragma omp parallel for. See OpenMP documentation.
The default annotation is parallel for, if you used OpenMP without annotation the change is transparent, if you used annotations you will have to prefix your previous annotations with parallel for.
Furthermore, an overload with positive stepping is available.
The unchecked pragma was removed, instead use system.UncheckedArray.
The undocumented #? strongSpaces parsing mode has been removed.
The not operator is now always a unary operator, this means that code like assert not isFalse(3) compiles.
getImpl on a var or let symbol will now return the full IdentDefs tree from the symbol declaration instead of just the initializer portion.
Methods are now ordinary “single” methods, only the first parameter is used to select the variant at runtime. For backwards compatibility use the new --multimethods:on switch.
Generic methods are now deprecated; they never worked well.
Compile time checks for integer and float conversions are now stricter. For example, const x = uint32(-1) now gives a compile time error instead of being equivalent to const x = 0xFFFFFFFF'u32.
Using typed as the result type in templates/macros now means “expression with a type”. The old meaning of typed is preserved as void or no result type at all.
A bug allowed macro foo(): int = 123 to compile even though a macro has to return a NimNode. This has been fixed.
With the exception of uint and uint64, conversion to unsigned types are now range checked during runtime.
Macro arguments of type typedesc are now passed to the macro as NimNode like every other type except static. Use typed for a behavior that is identical in new and old Nim. See the RFC Pass typedesc as NimNode to macros for more details.
Breaking changes in the standard library
osproc.execProcess now also takes a workingDir parameter.
std/sha1.secureHash now accepts openArray[char], not string. (Former successful matches should keep working, though former failures will not.)
options.UnpackError is no longer a ref type and inherits from system.Defect instead of system.ValueError.
system.ValueError now inherits from system.CatchableError instead of system.Defect.
The procs parseutils.parseBiggestInt, parseutils.parseInt, parseutils.parseBiggestUInt and parseutils.parseUInt now raise a ValueError when the parsed integer is outside of the valid range. Previously they sometimes raised an OverflowError and sometimes they returned 0.
The procs parseutils.parseBin, parseutils.parseOct and parseutils.parseHex were not clearing their var parameter number and used to push its value to the left when storing the parsed string into it. Now they always set the value of the parameter to 0 before storing the result of the parsing, unless the string to parse is not valid (then the value of number is not changed).
streams.StreamObject now restricts its fields to only raise system.Defect, system.IOError and system.OSError. This change only affects custom stream implementations.
nre’s RegexMatch.{captureBounds,captures}[] no longer return Option or nil/"", respectively. Use the newly added n in p.captures method to check if a group is captured, otherwise you’ll receive an exception.
nre’s RegexMatch.{captureBounds,captures}.toTable no longer accept a default parameter. Instead uncaptured entries are left empty. Use Table.getOrDefault() if you need defaults.
nre’s RegexMatch.captures.{items,toSeq} now returns an Option[string] instead of a string. With the removal of nil strings, this is the only way to indicate a missing match. Inside your loops, instead of capture == "" or capture == nil, use capture.isSome to check if a capture is present, and capture.get to get its value.
nre’s replace() no longer throws ValueError when the replacement string has missing captures. It instead throws KeyError for named captures, and IndexError for unnamed captures. This is consistent with RegexMatch.{captureBounds,captures}[].
splitFile now correctly handles edge cases, see #10047.
isNil is no longer false for undefined in the JavaScript backend: now it’s true for both nil and undefined. Use isNull or isUndefined if you need exact equality: isNil is consistent with ===, isNull and isUndefined with ==.
several deprecated modules were removed: ssl, matchers, httpserver, unsigned, actors, parseurl
two poorly documented and not used modules (subexes, scgi) were moved to graveyard (they are available as Nimble packages)
procs string.add(int) and string.add(float) which implicitly convert ints and floats to string have been deprecated. Use string.addInt(int) and string.addFloat(float) instead.
case object branch transitions via system.reset are deprecated. Compile your code with -d:nimOldCaseObjects for a transition period.
base64 module: The default parameter newLine for the encode procs was changed from "\13\10" to the empty string "".
Breaking changes in the compiler
The compiler now implements the “generic symbol prepass” for when statements in generics, see bug #8603. This means that code like this does not compile anymore:
proc enumToString*(enums: openArray[enum]): string =
# typo: 'e' instead 'enums'
when e.low.ord >= 0 and e.high.ord < 256:
result = newString(enums.len)
else:
result = newString(enums.len * 2)
discard x is now illegal when x is a function symbol.
Implicit imports via --import: module in a config file are now restricted to the main package.
Library additions
There is a new stdlib module std/editdistance as a replacement for the deprecated strutils.editDistance.
There is a new stdlib module std/wordwrap as a replacement for the deprecated strutils.wordwrap.
Added split, splitWhitespace, size, alignLeft, align, strip, repeat procs and iterators to unicode.nim.
Added or for NimNode in macros.
Added system.typeof for more control over how type expressions can be deduced.
Added macros.isInstantiationOf for checking if the proc symbol is instantiation of generic proc symbol.
Added the parameter isSorted for the sequtils.deduplicate proc.
Added os.relativePath.
Added parseopt.remainingArgs.
Added os.getCurrentCompilerExe (implemented as getAppFilename at CT), can be used to retrieve the currently executing compiler.
Added xmltree.toXmlAttributes.
Added std/sums module for fast summation functions.
Added Rusage, getrusage, wait4 to the posix interface.
Added the posix_utils module.
Added system.default.
Added sequtils.items for closure iterators, allows closure iterators to be used by the mapIt, filterIt, allIt, anyIt, etc.
Library changes
The string output of macros.lispRepr proc has been tweaked slightly. The dumpLisp macro in this module now outputs an indented proper Lisp, devoid of commas.
Added macros.signatureHash that returns a stable identifier derived from the signature of a symbol.
In strutils empty strings now no longer match as substrings.
The Complex type is now a generic object and not a tuple anymore.
The ospaths module is now deprecated, use os instead. Note that os is available in a NimScript environment but unsupported operations produce a compile-time error.
The parseopt module now supports a new flag allowWhitespaceAfterColon (default value: true) that can be set to false for better Posix interoperability. (Bug #9619.)
os.joinPath and os.normalizePath handle edge cases like "a/b/../../.." differently.
securehash was moved to lib/deprecated.
The switch -d:useWinAnsi is not supported anymore.
In times module, procs format and parse accept a new optional DateTimeLocale argument for formatting/parsing dates in other languages.
Language additions
Vm support for float32<->int32 and float64<->int64 casts was added.
There is a new pragma block noSideEffect that works like the gcsafe pragma block.
added os.getCurrentProcessId.
User defined pragmas are now allowed in the pragma blocks.
Pragma blocks are no longer eliminated from the typed AST tree to preserve pragmas for further analysis by macros.
Custom pragmas are now supported for var and let symbols.
Tuple unpacking is now supported for constants and for loop variables.
Case object branches can be initialized with a runtime discriminator if possible discriminator values are constrained within a case statement.
Language changes
The standard extension for SCF (source code filters) files was changed from .tmpl to .nimf, it’s more recognizable and allows tools like Github to recognize it as Nim, see #9647. The previous extension will continue to work.
Pragma syntax is now consistent. Previous syntax where type pragmas did not follow the type name is now deprecated. Also pragma before generic parameter list is deprecated to be consistent with how pragmas are used with a proc. See #8514 and #1872 for further details.
Hash sets and tables are initialized by default. The explicit initHashSet, initTable, etc. are not needed anymore.
Tool changes
jsondoc now includes a moduleDescription field with the module description. jsondoc0 shows comments as its own objects as shown in the documentation.
nimpretty: –backup now defaults to off instead of on and the flag was undocumented; use git instead of relying on backup files.
koch now defaults to build the latest stable Nimble version unless you explicitly ask for the latest master version via --latest.
Compiler changes
The deprecated fmod proc is now unavailable on the VM.
A new --outdir option was added.
The compiled JavaScript file for the project produced by executing nim js will no longer be placed in the nimcache directory.
The --hotCodeReloading has been implemented for the native targets. The compiler also provides a new more flexible API for handling the hot code reloading events in the code.
The compiler now supports a --expandMacro:macroNameHere switch for easy introspection into what a macro expands into.
The -d:release switch now does not disable runtime checks anymore. For a release build that also disables runtime checks use -d:release -d:danger or simply -d:danger.
Bugfixes
Fixed “distinct generic typeclass not treated as distinct” (#4435)
Fixed “multiple dynlib pragmas with function calls conflict with each other causing link time error” (#9222)
Fixed “[RFC] extractFilename("usr/lib/") should return “lib” (not “”) and be called baseName (since works with dirs)” (#8341)
Fixed “\0 in comment replaced with 0 in docs” (#8841)
Fixed “round function in Math library sometimes doesn’t work” (#9082)
Fixed “Async readAll in httpclient produces garbled output.” (#8994)
Fixed “[regression] project config.nims not being read anymore” (#9264)
Fixed “Using iterator within another iterator fails” (#3819)
Fixed “nim js -o:dirname main.nim writes nothing, and no error shown” (#9154)
Fixed “Wrong number of deallocations when using destructors” (#9263)
Fixed “devel docs in nim-lang.github.io Source links point to master instead of devel” (#9295)
Fixed “compiler/nimeval can’t be used twice: fails 2nd time with: Error: internal error: n is not nil” (#9180)
Fixed “Codegen bug with exportc” (#9297)
Fixed “Regular Expressions: replacing empty patterns only works correctly in nre” (#9306)
Fixed “Openarray: internal compiler error when accessing length if not a param” (#9281)
Fixed “finish completely removing web folder” (#9304)
Fixed “counting the empty substring in a string results in infinite loop” (#8919)
Fixed “[Destructors] Wrong moves and copies” (#9294)
Fixed “proc isNil*(x: Any): bool = should be updated with non nil string, seq” (#8916)
Fixed “doAssert AST expansion excessive” (#8518)
Fixed “when Foo (of type iterator) is used where an expression is expected, show useful err msg instead of confusing Error: attempting to call undeclared routine Foo” (#8671)
Fixed “List comprehensions do not work with generic parameter” (#5707)
Fixed “strutils/isUpperAscii and unicode/isUpper consider space, punctuations, numbers as “lowercase”” (#7963)
Fixed “Regular Expressions: replacing empty patterns only works correctly in nre” (#9306)
Fixed “BUG: os.isHidden doesn’t work with directories; should use just paths, not filesystem access” (#8225)
Fixed “Unable to create distinct tuple in a const with a type declaration” (#2760)
Fixed “[nimpretty] raw strings are transformed into normal strings” (#9236)
Fixed “[nimpretty] proc is transfered to incorrect code” (#8626)
Fixed “[nimpretty] Additional new line is added with each format” (#9144)
Fixed ““%NIM%/config/nim.cfg” is not being read” (#9244)
Fixed “Illegal capture on async proc (except when the argument is seq)” (#2361)
Fixed “Jsondoc0 doesn’t output module comments.” (#9364)
Fixed “NimPretty has troubles with source code filter” (#9384)
Fixed “tfragment_gc test is flaky on OSX” (#9421)
Fixed “ansi color code templates fail to bind symbols” (#9394)
Fixed “Term write rule crash compiler.” (#7972)
Fixed “SIGSEGV when converting lines to closure iterator, most likely caused by defer” (#5321)
Fixed “SIGSEGV during the compile” (#5519)
Fixed “Compiler crash when creating a variant type” (#6220)
Fixed ““continue” inside a block without loops gives “SIGSEGV: Illegal storage access. (Attempt to read from nil?)”” (#6367)
Fixed “old changelogs should be kept instead of erased” (#9376)
Fixed “illegal recursion with generic typeclass” (#4674)
Fixed “Crash when closing an unopened file on debian 8.” (#9456)
Fixed “nimpretty joins regular and doc comment” (#9400)
Fixed “nimpretty changes indentation level of trailing comment” (#9398)
Fixed “Some bugs with nimpretty” (#8078)
Fixed “Computed gotos: bad codegen, label collision with if/statement in the while body” (#9276)
Fixed “nimpretty not idempotent: keeps adding newlines below block comment” (#9483)
Fixed “nimpretty shouldn’t format differently whether there’s a top-level newline” (#9484)
Fixed “Regression: 0.18 code with mapIt() fails to compile on 0.19” (#9093)
Fixed “nimpretty shouldn’t change file modif time if no changes => use os.updateFile” (#9499)
Fixed “Nim/compiler/pathutils.nim(226, 12) canon"/foo/../bar" == "/bar" [AssertionError]” (#9507)
Fixed “nimpretty adds a space before type, ptr, ref, object in wrong places” (#9504)
Fixed “nimpretty badly indents block comment” (#9500)
Fixed “typeof: Error: illformed AST: typeof(myIter(), typeOfIter)” (#9498)
Fixed “newAsyncSmtp() raises exception with Nim 0.19.0” (#9358)
Fixed “nimpretty wrongly adds empty newlines inside proc signature” (#9506)
Fixed “HttpClient: requesting URL with no scheme fails” (#7842)
Fixed “Duplicate definition in cpp codegen” (#6986)
Fixed “Sugar - distinctBase: undeclared identifier uncheckedArray” (#9532)
Fixed “Portable fsmonitor” (#6718)
Fixed “Small RFC. Minimal stacktrace for Exceptions when frames are disabled” (#9434)
Fixed “nim doc strutils.nim fails on 32 bit compiler with AssertionError on a RunnableExample” (#9525)
Fixed “Error: undeclared identifier: ‘|’” (#9540)
Fixed “using Selectors, Error: undeclared field: ‘OSErrorCode’” (#7667)
Fixed “The “–” template from module nimscript mis-translates “out” key” (#6011)
Fixed “logging error should go to stderr instead of stdout” (#9547)
Fixed “when in generic should fail earlier” (#8603)
Fixed “C++ codegen error when iterating in finally block in topmost scope” (#5549)
Fixed “document nim --nep1:on” (#9564)
Fixed “C++ codegen error when iterating in finally block in topmost scope” (#5549)
Fixed “strutils.multiReplace() crashes if search string is “”” (#9557)
Fixed “Missing docstrings are replaced with other text” (#9169)
Fixed “Type which followed by a function and generated by a template will not shown in docs generated by nim doc” (#9235)
Fixed “templates expand doc comments as documentation of other procedures” (#9432)
Fixed “please implement http put and delete in httpClient” (#8777)
Fixed “Module docs: 2 suggestions…” (#5525)
Fixed “math.hypot under/overflows” (#9585)
Fixed “=sink gets called on result when not used explicitly” (#9594)
Fixed “Treat compl as a c++ keyword” (#6836)
Fixed “Path in error message has ..\..\..\..\..\ prefix since 0.19.0” (#9556)
Fixed “nim check gives SIGSEGV: Illegal storage access ; maybe because of sizeof” (#9610)
Fixed “Cannot use a typedesc variable in a template” (#9611)
Fixed “=sink gets called on result when not used explicitly” (#9594)
Fixed “[NimScript] Error: arguments can only be given if the ‘–run’ option is selected” (#9246)
Fixed “macros.getTypeImpl regression, crash when trying to query type information from ref object” (#9600)
Fixed “[Regression] Complex.re and Complex.im are private” (#9639)
Fixed “nim check: internal error: (filename: "vmgen.nim", line: 1119, column: 19)” (#9609)
Fixed “optInd missing indent specification in grammar.txt” (#9608)
Fixed “not as prefix operator causes problems” (#9574)
Fixed “It is not possible to specify a pragma for the proc that returns lent T” (#9633)
Fixed “Compiler crash when initializing table with module name” (#9319)
Fixed “compiler crash” (#8335)
Fixed ““SIGSEGV” without any “undeclared identifier” error” (#8011)
Fixed “Incorrect parseopt parsing ?” (#9619)
Fixed “Operator or causes a future to be completed more than once” (#8982)
Fixed “Nimpretty adds instead of removes incorrect spacing inside backticks” (#9673)
Fixed “nimpretty should hardcode indentation amount to 2 spaces” (#9502)
Fixed “callSoon() is not working prior getGlobalDispatcher().” (#7192)
Fixed “use nimf as standardized extention for nim files with source code filter?” (#9647)
Fixed “Banning copy for a type prevents composing” (#9692)
Fixed “smtp module doesn’t support threads.” (#9728)
Fixed “Compiler segfault (stack overflow) compiling code on 0.19.0 that works on 0.18.0” (#9694)
Fixed “nre doesn’t document quantifiers re"foo{2,4}"” (#9470)
Fixed “ospaths still referenced despite its deprecation” (#9671)
Fixed “move on dereferenced pointer results in bogus value” (#9743)
Fixed “regression in discard statement” (#9726)
Fixed “try statements and exceptions do not cooperate well” (#96)
Fixed “XDeclaredButNotUsed doesn’t work with template, let/var/const, type; works with all other routine nodes” (#9764)
Fixed “ Warning: fun is deprecated doesn’t check whether deprecated overload is actually used” (#9759)
Fixed “Regression: tuple sizeof is incorrect if contains imported object” (#9794)
Fixed “Internal error when calling =destroy without declaration” (#9675)
Fixed “Internal error if =sink is used explictly” (#7365)
Fixed “unicode.strip behaving oddly” (#9800)
Fixed “X_examples.nim generated by runnableExamples should show line number where they came from” (#8289)
Fixed “quit() fails with “unreachable statement after ‘return’”” (#9832)
Fixed “quit() fails with “unreachable statement after ‘return’”” (#9832)
Fixed “Error: internal error: genLiteral: ty is nil when a var is accessed in quote do” (#9864)
Fixed “Regression: sizeof Error: cannot instantiate: ‘T’” (#9868)
Fixed “Using a template as a routine pragma no longer works” (#9614)
Fixed “Clang error on Rosencrantz” (#9441)
Fixed “Enum fields get hintXDeclaredButNotUsed hint even when marked with used pragma” (#9896)
Fixed “internal error: environment misses” (#9476)
Fixed “SIGSEGV: setLen on a seq doesn’t construct objects at CT” (#9872)
Fixed “Latest HEAD segfaults when compiling Aporia” (#9889)
Fixed “Unnecessary semicolon in error message” (#9907)
Fixed “koch temp c t.nim tries to look up t.nim in nim install directory (alongside koch)” (#9913)
Fixed “Regression: sizeof Error: cannot instantiate: ‘T’” (#9868)
Fixed “Showstopper regression: Nimscript no longer works “ (#9965)
Fixed “Global imports in cfg file broken” (#9978)
Fixed “Global imports in cfg file broken” (#9978)
Fixed “Regression - Nim compiler shows all gcc commands used when config.nims present” (#9982)
Fixed “[regression] Nimscript makes a program slower and more bloated” (#9995)
Fixed “Regression in Nimscript projectDir() behavior, returns empty string” (#9985)
Fixed “Global imports don’t work for non-std modules” (#9994)
Fixed “Object constructor regression in JS backend” (#10005)
Fixed “Regression: nimble install fails on nim devel” (#9991)
Fixed “Another config.nims regression” (#9989)
Fixed “nim js -d:nodejs main.nim gives: system.nim(1443, 7) Error: cannot 'importc' variable at compile time with a config.nims” (#9153)
Fixed “how to profile? using --profiler:on causes: Error: undeclared identifier: ‘framePtr’” (#8991)
Fixed “nim doc fail on lib/system/profiler.nim” (#9420)
Fixed “[regression] ./koch tests: Error: overloaded ‘readFile’ leads to ambiguous calls (with ~/.config/nim/config.nims)” (#9120)
Fixed “regression: normalizePath(“foo/..”) now incorrectly returns "", should be "." like before + in almost all other languages” (#10017)
Fixed “Incorrect ‘not all cases are covered’ when using enums with nonconsecutive items” (#3060)
Fixed “[ospaths] BUG: splitFile(“/a.txt”).dir = “” ; + other bugs with splitFile” (#8255)
Fixed “GC bug: seems very slow where it shouldn’t; maybe it leaks?” (#10040)
Fixed “Closure bug with the JS backend” (#7048)
Fixed “Error: unhandled exception: sym is not accessible [FieldError]” (#10058)
Fixed “with --errorMax:100 ; link step should not be attempted if previous step failed” (#9933)
Fixed “import os or ospaths compilation error in js” (#10066)
Fixed “Example for system.$[T: tuple | object] is misleading” (#7898)
Fixed “Combining object variants and inheritance leads to SIGSEGV during compilation” (#10033)
Fixed “Regression in distros.nim (foreignDep fails to compile)” (#10024)
Fixed “Testament megatest fails with Nim not found” (#10049)
Fixed “XDeclaredButNotUsed shows redundant info: declaration location shown twice” (#10101)
Fixed “Nim beginner’s feedback: “echo type(1)” does not work” (#5827)
Fixed “sizeof still broken with regard to bitsize/packed bitfields” (#10082)
Fixed “Codegen init regression” (#10148)
Fixed “toInt doesn’t raise an exception” (#2764)
Fixed “allow import inside block: makes N runnableExamples run N x faster, minimizes scope pollution” (#9300)
Fixed “Extra procs & docs for the unicode module” (#2353)
Fixed “regression: CI failing Error: unhandled exception: cannot open: /Users/travis/.cache/nim/docgen_sample_d/runnableExamples/docgen_sample_examples.nim [IOError]” (#10188)
Fixed “getAddrInfo index out of bounds error” (#10198)
Fixed “can’t build a tuple with static int element” (#10073)
Fixed “nimpretty creates foo.nim.backup for foo.nims” (#10211)
Fixed “regression caused by WEXITSTATUS: nim cpp compiler/nim.nim fails on OSX” (#10231)
Fixed “travis and appveyor should move the bulk of its logic to running a nim file” (#10041)
Fixed “Error: undeclared field: 'foo' should show type (+ where type is defined) (hard to guess in generic code)” (#8794)
Fixed “Discrepancy in Documentation About ‘f128 Type-Suffix” (#10213)
Fixed “Incorrect error message” (#10251)
Fixed “CI should call ./koch tools ; right now nimfind isn’t even being compiled” (#10039)
Fixed “Building koch from nim devel fails when config.nims importing os present” (#10030)
Fixed “unittest module uses programResult to report number of failures which can wrap” (#10261)
Fixed “Nimscript doesn’t raise any exceptions” (#10240)
Fixed “{.push raises: [].} breaks when combined with certain symbols” (#10216)
Fixed “Support “#.” for auto-enumerated lists in RST docs” (#8158)
Fixed “OpenSSL error breaking nimble and every package” (#10281)
Fixed “execShellCmd returns 0 instead of nonzero when child process exits with signal (eg SIGSEGV)” (#10273)
Fixed “nim check (and nim c –errorMax:0) SIGSEGV on first index out of bounds error” (#10104)
Fixed “Module db_sqlite doesn’t finalize statements with db_sqlite.rows after breaking the iterator’s loop” (#7241)
Fixed “Performance regression with –gc:markandsweep” (#10271)
Fixed “internal error when using typedesc is comparison in a macro” (#10136)
Fixed “cannot call template/macros with varargs[typed] to varargs[untyped]” (#10075)
Fixed “nim v0.13.0 breaks symbol lookup in quote block” (#3744)
Fixed “Some nimgrep issues” (#989)
Fixed “Safecall problem?” (#9218)
Fixed “Nim script is not supporting reading from stdin.” (#3983)
Fixed “Parameter constraints: undeclared identifier ‘{}’ within a template scope” (#7524)
Fixed “repr does not work with ‘var openarray’ parameter in function” (#7878)
Fixed “CountTable raisen error instead of returning a count of 0” (#10065)
Fixed “nim c -r main.nim foo1 "" foo3 doesn’t handle empty params or params w quotes” (#9842)
Fixed “refs #10249 ; more debug info to diagnose failures” (#10266)
Fixed “ObjectAssignmentError for aliased types” (#10203)
Fixed “nim cpp treats Nan as 0.0 (during compile time)” (#10305)
Fixed “terminal.nim colored output is not GCSAFE.” (#8294)
Fixed “Building koch from nim devel fails when config.nims importing os present” (#10030)
Fixed “every binary cmd line option should allow on/off switch” (#9629)
Fixed “Wrong bounds check using template [] to access array in a const object” (#3899)
Fixed “tdont_be_stupid.nim flaky test” (#10386)
Fixed “Separate nim install guide for users and packagers” (#5182)
Fixed “–embedsrc does not work on macos” (#10263)
Fixed “Devel regression on static semcheck” (#10339)
Fixed “vccexe.exe does not work without VS2015 x64 Native Tools command prompt.” (#10358)
Fixed “ospaths still referenced despite its deprecation” (#9671)
Fixed “Regression in sequtils” (#10433)
Fixed “Path in error message has ..\..\..\..\..\ prefix since 0.19.0” (#9556)
Fixed ““contributing” is listed as a module on theindex” (#10287)
Fixed “const Foo=int compiles; is that legal? what does it mean?” (#8610)
Fixed “parsecsv can’t handle empty lines at the beginning of the file” (#8365)
Fixed “Generated c code is not compile with the vcc cl.exe before 2012 after v0.19” (#10352)
Fixed “[Regression] converter to string leads fail to compile on 0.19” (#9149)
Fixed “regression: memory leak with default GC” (#10488)
Fixed “oids counter starts at zero; spec says it should be random” (#2796)
Fixed “re quantifier{ under-documented” (#9471)
Fixed “Minor issues in docs regarding keywords” (#9725)
Fixed “Explained the proc "pretty" in detail, file: json.nim with comments and sample program” (#10466)
Fixed “net.recvFrom address is always “0.0.0.0” for ipv6” (#7634)
Fixed “import “path with space/bar.nim” gives error msg with wrong file name” (#10042)
Fixed “Deprecation warnings for enum values print twice” (#8063)
Fixed “Undefined behaviour in the usage of incrSeqV3” (#10568)
Fixed “SetMaxPoolSize not heeded” (#10584)
Fixed “CI broken: tests/macros/t8997.nim fails” (#10591)
Fixed “prevent common user config to interfere with testament” (#10573)
Fixed “static: writeFile doesn’t work anymore since system refactorings” (#10585)
Fixed “export statement doesn’t support directories” (#6227)
Fixed “https://nim-lang.github.io/Nim/io.html gives 404” (#10586)
Fixed “Choosenim fails with “ambiguous call” in rst.nim” (#10602)
Fixed “Enable experimental feature with command line argument has no effect.” (#10606)
Fixed “Comparing function pointer with nil marks the proc as not gcsafe” (#6955)
Fixed “httpclient.timeout not exported” (#10357)
Fixed “nim check SIGSEGV (causing nimsuggest to fail too)” (#10547)
Fixed “index out of bounds errors should show index and bound” (#9880)
Fixed “Enable experimental feature with command line argument has no effect.” (#10606)
Fixed “Comparing function pointer with nil marks the proc as not gcsafe” (#6955)
Fixed “httpclient.timeout not exported” (#10357)
Fixed “nim check SIGSEGV (causing nimsuggest to fail too)” (#10547)
Fixed “certain seq manipulations fail when compiled to JS” (#10651)
Fixed “system.insert does not work with strings in VM” (#10561)
Fixed “Doc suggestion: include a link to theindex.html on …” (#5515)
Fixed “koch boot fails on windows with choosenim-installed nim: proxyexe.nim error” (#10659)
Fixed “getImpl on type symbol hides implementation” (#10702)
Fixed “Missing stdlib modules” (#8164)
Fixed “No “correct” way to declare inheritable ref object” (#10195)
Fixed “Line number missing in stdlib trace” (#6832)
Fixed “Better support for modifying XmlNodes” (#3797)
Fixed “No documentation of AsyncStreams” (#6383)
Fixed “set[ in proc definition crashes compiler” (#10678)
Fixed “net.bindAddr fails binding to all interfaces if address == "" for ipv6” (#7633)
Fixed “Tuple unpacking of for vars fails inside generic proc” (#10727)
Fixed “initSet should be called initHashSet” (#10730)
Fixed “inheritable placement not symmetric between object and ref object” (#3012)
Fixed “Alloc functions have side effects, makes it hard to use side effect tracking with destructors” (#9746)
Fixed “hashes:hash returns different values on Windows/Linux” (#10771)
Fixed “switch(“cpu”, “i386”) with –cc:vcc doesn’t work when it is written on *.nims” (#10387)
Fixed “async call now treated as non-gc safed call?” (#10795)
Fixed “{.borrow.} hangs compiler on non-distinct type (should produce an error or warning)” (#10791)
Fixed “DCE regression: modules can’t be eliminated” (#10703)
Fixed “Unsafeaddr rendered as addr in typed AST “ (#10807)
Fixed “Rendering of return statements in typed AST” (#10805)
Fixed “Assigning shallow string to a field makes a copy” (#10845)
Fixed “func keyword for proc types doesn’t imply noSideEffect” (#10838)
Fixed “SPAN.attachedType in toc should have no width” (#10857)
Fixed “[docgen] Generic type pragmas in wrong place” (#10792)
Fixed “os.joinPaths documentation is inaccurate; should reference uri.combine” (#10836)
Fixed ““invalid indentation” when assigning macro with code block to const” (#10861)
Fixed “Nim crashes with SIGABRT after getting into a replaceTypeVars infinite loop.” (#10884)
Fixed “Booleans Work Wrong in Compile-time” (#10886)
Fixed “C / CPP backends differ in argument evaluation order” (#8202)
Fixed “Change in syntax breaks valid code” (#10896)
Fixed “auto return type in macros causes internal error” (#10904)
Fixed “Nim string definition conflicts with other C/C++ instances” (#10907)
Fixed “nim check crash with invalid code, lowest priority” (#10930)
Fixed “nim check crash due to typing error, lowest priority” (#10934)
Fixed “Stacktrace displayed two times” (#10922)
Fixed “Cpp codegen regression. Showstopper” (#10948)
Fixed “lent T can return garbage” (#10942)
Fixed “Regression. atomicInc doesn’t compile with vcc and i386” (#10953)
Fixed “{.pure.} has no effect on objects” (#10721)
Fixed “nimpretty doesn’t put space around operators like a<b => a < b” (#10200)
Fixed “nimpretty messes alignment, after import statement” (#9811)
Fixed “Destructor regression for tuples unpacking” (#10940)
Fixed “Link error when a module defines a global variable and has no stacktrace” (#10943)
Fixed “std/json fails to escape most non-printables, breaking generation and parsing” (#10541)
Fixed “rst/markdown parser can’t handle extra parentheses after link” (#10475)
Fixed “Random: proc rand(x: HSlice) requires substraction” (#7698)
Fixed “Bug in setTerminate()” (#10765)
Fixed “ICE when using –newruntime with proc returning tuple” (#11004)
Fixed “terminal.nim does not compile using –newruntime” (#11005)
Fixed “Casting a seq to another seq generates invalid code with –newruntime” (#11018)
Fixed “strformat/fmt doesn’t work for custom types [regression]” (#11012)
Fixed “Casting a seq to another seq generates invalid code with –newruntime” (#11018)
Fixed “newruntime - t.destructor != nil [AssertionError] with toTable()” (#11014)
Fixed “templates (e.g. sequtils.toSeq) often shadow result” (#10732)
Fixed “newruntime: Error: system module needs: NimStringDesc when calling $ inside method on an object variant” (#11048)
Fixed “newruntime: internal error when iterating over seq (which is a field of an object) inside methods” (#11050)
Fixed “Error: internal error: ‘=destroy’ operator not found for type owned Node” (#11053)
Fixed “new output can be assigned to an unowned ref” (#11073)
Fixed “Illegal storage access when adding to a ref seq” (#11065)
Fixed “strformat float printing doesn’t print “.0” portion [regression]” (#11089)
Fixed “nim doc2 ignores –docSeeSrcUrl parameter” (#6071)
Fixed “runnableExamples + forLoop = segfault” (#11078)
Fixed “destructible context without ‘result’ or ‘return’ should also be supported” (#1192)
Fixed “new Obj crashes at the end of the program on newruntime” (#11082)
Fixed “Documentation of the modules broken out of system.nim are missing “ (#10972)
Fixed “DFA regression. Branches of AST trees are missed in control flow graph.” (#11095)
Fixed “[Regression] nkIdentDefs can be left in vmgen” (#11111)
Fixed “JS target does not prevent calling compileTime procs” (#11133)
Fixed “rand can return invalid values of a range type” (#11015)
Fixed “compiler crash on discard void” (#7470)
Fixed “Unowned ref can trivially escape without causing any crashes” (#11114)
Fixed “Destructor lifting regression” (#11149)
Fixed “const alias to compile time function fails.” (#11045)
Fixed “Using type instead of typedesc in template signature fails compilation” (#11058)
Fixed “Compiler error caused by quote do: else” (#11175)
Fixed “cast to non ptr UncheckedArray does not produce an error or warning” (#9403)
Fixed “openArray generates incorrect C code with “incomplete type”” (#9578)
Fixed “os:standalone Error: system module needs: appendString” (#10978)
Fixed “gensym regression” (#10192)
Fixed “new: module names need to be unique per Nimble broken on Windows” (#11196)
Fixed “Compiler crash on cfsml bindings” (#11200)
Fixed “Newruntime: compileTime variables can cause compilation to fail due to destructor injections” (#11204)
Fixed “object self-assignment order-of-evaluation broken” (#9844)
Fixed “seq self-assignment order-of-evaluation broken” (#9684)
Fixed “Compiler crash with generic types and static generic parameters” (#7569)
Fixed “C macro identifiers (e.g. errno) are not properly avoided in code generation” (#11153)
Fixed “SIGSEGV in asgnRefNoCycle with const sequence” (#9825)
Fixed “asyncdispatch could not be linked to nimrtl” (#6855)
Fixed “Newruntime: Bad C++ codegen for ref types with destructors” (#11215)
Fixed “Better error message for object variant with enum that is below it” (#4140)
Fixed “Can’t declare a mixin.” (#11237)
Fixed “Nim doc mangles signed octal literals” (#11131)
Fixed “Selectors, Error: undeclared field: ‘OSErrorCode’ on macOS” (#11124)
Fixed “--cppCompileToNamespace:foo fails compilation with import os” (#11194)
Fixed “[OpenMP] Nim symbol interpolation support” (#9365)
Fixed “Inconsistent typing error with gensymed var” (#7937)
Fixed “New module names break file-specific flags” (#11202)
Fixed “inheritance for generics does not work” (#88)
Fixed “Possible bug related to generics type resolution/matched” (#6732)
Fixed “static range type bounds not checked when conversion from intLit” (#3766)
Fixed “threadpool: sync() deadlocks in high-CPU-usage scenarios” (#11250)
Fixed “var result array - bad codegen (null pointer dereference)” (#8053)
Fixed “future/sugar => syntax breaks with generics” (#7816)
Fixed “os.joinPath removes the leading backslash from UNC paths (regression)” (#10952)
Fixed “re: memory leak when calling re proc repeatedly” (#11139)
Fixed “threadpool: tests/parallel/tconvexhull.nim segfaults intermittently on systems with more than 4 cores” (#11275)
Fixed “Not equal when streams.readBool and peekBool compare true” (#11049)
Fixed “os.tailDir fails on some paths” (#8395)
Fixed “Power op ^ is not optimized for a: int; echo a ^ 2 case (minor bug)” (#10910)
Fixed “str &= data doesn’t behave as str = str & data.” (#10963)
Fixed “Unable to make a const instance of an inherited, generic object.” (#11268)
Fixed “Overload precedence for non-builtin types” (#11239)
Fixed “Error when trying to iterate a distinct type based array” (#7167)
Fixed “Objects marked with {.exportc.} should be fully defined in generated header” (#4723)
Fixed “Generic function specialization regression” (#6076)
Fixed “compiler should give ambiguity errors in case of multiple compatible matches” (#8568)
Fixed “xmltree.findAll doesn’t work as expected with htmlparser for non-lowercase names” (#8329)
Fixed “wrong stack trace information about the raised exception” (#11309)
Fixed “Newruntime: owned procs don’t implicitly convert to unowned in ==” (#11257)
Fixed “order of imports can cause errors” (#11187)
Fixed “Passing code via stdin to Nim stopped working [regression Nim 0.19+]” (#11294)
Fixed “”–out:” switch is ineffective with “nim doc” [regression]” (#11312)
Fixed “VC++ broken in devel: module machine type ‘X86’ conflicts with target machine type ‘x64’” (#11306)
Fixed “Code that used multi aspect of multimethod now crashes at runtime” (#10912)
Fixed “symbol resolution issues when ambiguous call happens in generic proc” (#11188)
Fixed “compile pragma name collision” (#10299)
Fixed “Unexpected behaviour on method dispatch” (#10038)
Fixed “Nim object variant issue” (#1286)
Fixed “json.to macro cannot handle ambiguous types even in a full form (module.Type)” (#11057)
Fixed “Out of bounds access in CritBitTree” (#11344)
Fixed “Newruntime: assignment to discriminant field in case objects not supported” (#11205)
Fixed “Dynamic dispatch broken if base method returns generic var type” (#6777)
Fixed “newruntime and unused generics: compiler crash” (#6755)
Fixed “Type aliases do not work with Exceptions.” (#10889)
Fixed “Compiler crash when accessing constant in nested template” (#5235)
Fixed “unicode.nim Error: type mismatch: got <seq[char]> but expected ‘string’” (#9762)
Fixed “Internal error with auto return in closure iterator” (#5859)
Fixed “[Compiler Crash] - getAST + hasCustomPragma” (#7615)
Fixed “debug mode compiler crash when executing some compile time code” (#8199)
Fixed “Compiler does not set .typ inside macros when creating literal NimNodes” (#7792)
Fixed “Error: internal error: expr: var not init sevColor_994035” (#8573)
Fixed “internal error: could not find env param for when one iterator references another” (#9827)
Fixed “internal error when assigning a type to a constant of typedesc” (#9961)
Fixed “Overload resolution regression” (#11375)
Fixed “strutils: toBin(64) uses ‘/’ for the 63rd bit if it’s set” (#11369)
Fixed “base64.encode should not “prettify” the result by default” (#11364)
Fixed “Nim ships latest nimble rather than stable” (#11402)
Fixed “debugger:native no longer generates pdb file with cc:vcc” (#11405)
Change in GNU Prolog version 1.4.5 (Feb 2018):
pp* fix a bug in soft-cut (when a cut appears in the if-part)
* fix bug when consulting multifile predicates with alternatives
* add ?- ISO prefix operator
* add gplc option --new-top-level (add top-level command-line option handling)
* fix a bug on linux witg gcc 6.3.0 (or binutils): needs PIC code
* fix a bug in findall/4
* fix a bug in select/5 under Windows
* fix a bug in the compiler
* fix a bug in read/1
* fix large address awarenes under cygwin32 (configure.in)
* improve memory limitation of acyclic_term/1
* improve term output (write/1 and friends)
* improve error handling for options (e.g. in write_term/3)
* fix bug with cut in the if-part of if-then(-else)
* fix port to x86_64/OpenBSD
(machine kindly provided by Duncan Patton a Campbell)
* fix a bug with Apple/Yosemite gcc = LLVM version 6.0 (clang-600.0.56) on x86_64
* allow to define more atoms with MAX_ATOM env var on 64 bits machines
* fix a bug in bagof/3 when used as findall/3
* port to sparc64/OpenBSD
(machine kindly provided by Duncan Patton a Campbell)
* add built-in predicate findall/4
* fix a bug with linedit when environment variable LINEDIT=no
* fix bugs in the FD solver
* set socket option SO_REUSEADDR at socket creation
* support for alternate Prolog file extension .prolog
* fix a bug in atoms for 1-char atom '\0' (now acts as the empty atom)
* fix problems with Apple/Mavericks gcc = LLVM version 5.0 (clang-500.2.79) on x86_64
* remove clang warnings (uninitialized variables)
* fix bugs in the lexer of the form 0bop 2 when bop is an infix op
* fix terminal ANSI sequence handling in linedit
* increase internal compiler data sizes
* fix bug in gprolog.h (invalid 64 bits PL_MAX_INTEGER)
3.3.4:
Major work was done by x0ret to correct function signatures and include annotation types
Handle Python 3.6 STORE_ANNOTATION
Friendlier assembly output
LOAD_CONST replaced by LOAD_STR where appropriate to simplify parsing and improve clarity
remove unneeded parenthesis in a generator expression when it is the single argument to the function
Bug in noting an async function
Handle unicode docstrings and fix docstring bugs
Add uncompyle6 command-line short option -T as an alternate for --tree+
Some grammar cleanup
Built-in Python modules are built from extracted Python sources and
therefere bound to that specific Python version. For example, trying to
build a module from Python 2.7.16 against an installed Python 2.7.13 is
likely to cause errors.
This commit makes built-in Python modules depend on the full current
Python version.
What’s New in Libc++ 8.0.0?
API Changes
Building libc++ for Mac OSX 10.6 is not supported anymore.
Starting with LLVM 8.0.0, users that wish to link together translation units built with different versions of libc++’s headers into the same final linked image MUST define the _LIBCPP_HIDE_FROM_ABI_PER_TU macro to 1 when building those translation units. Not defining _LIBCPP_HIDE_FROM_ABI_PER_TU to 1 and linking translation units built with different versions of libc++’s headers together may lead to ODR violations and ABI issues. On the flipside, code size improvements should be expected for everyone not defining the macro.
Starting with LLVM 8.0.0, std::dynarray has been removed from the library. std::dynarray was a feature proposed for C++14 that was pulled from the Standard at the last minute and was never standardized. Since there are no plans to standardize this facility it is being removed.
Starting with LLVM 8.0.0, std::bad_array_length has been removed from the library. std::bad_array_length was a feature proposed for C++14 alongside std::dynarray, but it never actually made it into the C++ Standard. There are no plans to standardize this feature at this time. Formally speaking, this removal constitutes an ABI break because the symbols were shipped in the shared library. However, on macOS systems, the feature was not usable because it was hidden behind availability annotations. We do not expect any actual breakage to happen from this change.
Clang Tools 8.0.0:
Improvements to clangd
clangd now adds namespace qualifiers in code completion, for example, if you type “vec”, the list of completions will include “std::vector”.
When a global index is available, clangd will use it to augment the results of “go to definition” and “find references” queries. Global index also enables global code completion, which suggests symbols that are not imported in the current file and automatically inserts the missing #include directives.
clangd stores the symbol index on disk in a new compact binary serialization format. It is 10x more compact than YAML and 40% more compact than gzipped YAML.
clangd has a new efficient symbol index suitable for complex and fuzzy queries and large code bases (e.g., LLVM, Chromium). This index is used for code completion, go to definition, and cross-references. The architecture of the index allows for complex and fuzzy retrieval criteria and sophisticated scoring.
clangd has a new LSP extension that communicates information about activity on clangd’s per-file worker thread. This information can be displayed to users to let them know that the language server is busy with something. For example, in clangd, building the AST blocks many other operations.
clangd has a new LSP extension that allows the client to supply the compilation commands over LSP, instead of finding compile_commands.json on disk.
clangd has a new LSP extension that allows the client to request fixes to be sent together with diagnostics, instead of asynchronously.
clangd has a new LSP extension that allows the client to resolve a symbol in a light-weight manner, without retrieving further information (like definition location, which may require consulting an index).
Improvements to clang-query
A new command line parameter --preload was added to run commands from a file and then start the interactive interpreter.
The command q can was added as an alias for quit to exit the clang-query interpreter.
It is now possible to bind to named values (the result of let expressions).
It is now possible to write comments in clang-query code. This is primarily useful when using script-mode. Comments are all content following the # character on a line.
The new set print-matcher true command now causes clang-query to print the evaluated matcher together with the resulting bindings.
A new output mode detailed-ast was added to clang-query. The existing dump output mode is now a deprecated alias for detailed-ast
Output modes can now be enabled or disabled non-exclusively.
Improvements to clang-tidy
New abseil-duration-comparison check.
Checks for comparisons which should be done in the absl::Duration domain instead of the float of integer domains.
New abseil-duration-division check.
Checks for uses of absl::Duration division that is done in a floating-point context, and recommends the use of a function that returns a floating-point value.
New abseil-duration-factory-float check.
Checks for cases where the floating-point overloads of various absl::Duration factory functions are called when the more-efficient integer versions could be used instead.
New abseil-duration-factory-scale check.
Checks for cases where arguments to absl::Duration factory functions are scaled internally and could be changed to a different factory function.
New abseil-duration-subtraction check.
Checks for cases where subtraction should be performed in the absl::Duration domain.
New abseil-faster-strsplit-delimiter check.
Finds instances of absl::StrSplit() or absl::MaxSplits() where the delimiter is a single character string literal and replaces with a character.
New abseil-no-internal-dependencies check.
Gives a warning if code using Abseil depends on internal details.
New abseil-no-namespace check.
Ensures code does not open namespace absl as that violates Abseil’s compatibility guidelines.
New abseil-redundant-strcat-calls check.
Suggests removal of unnecessary calls to absl::StrCat when the result is being passed to another absl::StrCat or absl::StrAppend.
New abseil-str-cat-append check.
Flags uses of absl::StrCat() to append to a std::string. Suggests absl::StrAppend() should be used instead.
New abseil-upgrade-duration-conversions check.
Finds calls to absl::Duration arithmetic operators and factories whose argument needs an explicit cast to continue compiling after upcoming API changes.
New bugprone-too-small-loop-variable check.
Detects those for loops that have a loop variable with a “too small” type which means this type can’t represent all values which are part of the iteration range.
New cppcoreguidelines-macro-usage check.
Finds macro usage that is considered problematic because better language constructs exist for the task.
New google-objc-function-naming check.
Checks that function names in function declarations comply with the naming conventions described in the Google Objective-C Style Guide.
New misc-non-private-member-variables-in-classes check.
Finds classes that not only contain the data (non-static member variables), but also have logic (non-static member functions), and diagnoses all member variables that have any other scope other than private.
New modernize-avoid-c-arrays check.
Finds C-style array types and recommend to use std::array<> / std::vector<>.
New modernize-concat-nested-namespaces check.
Checks for uses of nested namespaces in the form of namespace a { namespace b { ... }} and offers change to syntax introduced in C++17 standard: namespace a::b { ... }.
New modernize-deprecated-ios-base-aliases check.
Detects usage of the deprecated member types of std::ios_base and replaces those that have a non-deprecated equivalent.
New modernize-use-nodiscard check.
Adds [[nodiscard]] attributes (introduced in C++17) to member functions to highlight at compile time which return values should not be ignored.
New readability-const-return-type check.
Checks for functions with a const-qualified return type and recommends removal of the const keyword.
New readability-isolate-decl check.
Detects local variable declarations declaring more than one variable and tries to refactor the code to one statement per declaration.
New readability-magic-numbers check.
Detects usage of magic numbers, numbers that are used as literals instead of introduced via constants or symbols.
New readability-redundant-preprocessor check.
Finds potentially redundant preprocessor directives.
New readability-uppercase-literal-suffix check.
Detects when the integral literal or floating point literal has non-uppercase suffix, and suggests to make the suffix uppercase. The list of destination suffixes can be optionally provided.
New alias cert-dcl16-c to readability-uppercase-literal-suffix added.
New alias cppcoreguidelines-avoid-c-arrays to modernize-avoid-c-arrays added.
New alias cppcoreguidelines-non-private-member-variables-in-classes to misc-non-private-member-variables-in-classes added.
New alias hicpp-avoid-c-arrays to modernize-avoid-c-arrays added.
New alias hicpp-uppercase-literal-suffix to readability-uppercase-literal-suffix added.
The cppcoreguidelines-narrowing-conversions check now detects more narrowing conversions: - integer to narrower signed integer (this is compiler implementation defined), - integer - floating point narrowing conversions, - floating point - integer narrowing conversions, - constants with narrowing conversions (even in ternary operator).
The objc-property-declaration check now ignores the Acronyms and IncludeDefaultAcronyms options.
The readability-redundant-smartptr-get check does not warn about calls inside macros anymore by default.
The readability-uppercase-literal-suffix check does not warn about literal suffixes inside macros anymore by default.
Clang 8.0.0:
Major New Features
* Clang supports use of a profile remapping file, which permits profile data captured for one version of a program to be applied when building another version where symbols have changed (for example, due to renaming a class or namespace). See the UsersManual for details.
* Clang has new options to initialize automatic variables with a pattern. The default is still that automatic variables are uninitialized. This isn’t meant to change the semantics of C and C++. Rather, it’s meant to be a last resort when programmers inadvertently have some undefined behavior in their code. These options aim to make undefined behavior hurt less, which security-minded people will be very happy about.
* Improvements to Clang’s diagnostics
Non-comprehensive list of changes in this release
* The experimental feature Pretokenized Headers (PTH) was removed in its entirely from Clang. The feature did not properly work with about 1/3 of the possible tokens available and was unmaintained.
* The internals of libc++ include directory detection on MacOS have changed. Instead of running a search based on the -resource-dir flag, the search is now based on the path of the compiler in the filesystem. The default behaviour should not change. However, if you override -resource-dir manually and rely on the old behaviour you will need to add appropriate compiler flags for finding the corresponding libc++ include directory.
* The integrated assembler is used now by default for all MIPS targets.
* Improved support for MIPS N32 ABI and MIPS R6 target triples.
* Clang now includes builtin functions for bitwise rotation of common value sizes, such as: __builtin_rotateleft32
* Improved optimization for the corresponding MSVC compatibility builtins such as _rotl().
8.0.0:
Non-comprehensive list of changes in this release
* The llvm-cov tool can now export lcov trace files using the -format=lcov option of the export command.
* The add_llvm_loadable_module CMake macro has been removed. The add_llvm_library macro with the MODULE argument now provides the same functionality. See Writing an LLVM Pass.
* For MinGW, references to data variables that might need to be imported from a dll are accessed via a stub, to allow the linker to convert it to a dllimport if needed.
* Added support for labels as offsets in .reloc directive.
* Support for precise identification of X86 instructions with memory operands, by using debug information. This supports profile-driven cache prefetching. It is enabled with the -x86-discriminate-memops LLVM Flag.
* Support for profile-driven software cache prefetching on X86. This is part of a larger system, consisting of: an offline cache prefetches recommender, AutoFDO tooling, and LLVM. In this system, a binary compiled with -x86-discriminate-memops is run under the observation of the recommender. The recommender identifies certain memory access instructions by their binary file address, and recommends a prefetch of a specific type (NTA, T0, etc) be performed at a specified fixed offset from such an instruction’s memory operand. Next, this information needs to be converted to the AutoFDO syntax and the resulting profile may be passed back to the compiler with the LLVM flag -prefetch-hints-file, together with the exact same set of compilation parameters used for the original binary. More information is available in the RFC.
* Windows support for libFuzzer (x86_64).
Version 10.16.0 'Dubnium' (LTS)
Notable Changes
deps:
update ICU to 64.2
upgrade npm to 6.9.0
upgrade openssl sources to 1.1.1b
upgrade to libuv 1.28.0
events: add once method to use promises with EventEmitter
n-api: mark thread-safe function as stable
repl: support top-level for-await-of
zlib: add brotli support
GCC 8.3
This is the list of problem reports (PRs) from GCC's bug tracking system that are known to be fixed in the 8.3 release. This list might not be complete (that is, it is possible that some PRs that have been fixed are not listed here).
Windows
https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=8.3
A C++ Microsoft ABI bitfield layout bug, PR87137 has been fixed. A non-field declaration could cause the current bitfield allocation unit to be completed, incorrectly placing a following bitfield into a new allocation unit. The Microsoft ABI is selected for:
Mingw targets
PowerPC, IA-32 or x86-64 targets when the -mms-bitfields option is specified, or __attribute__((ms_struct)) is used
SuperH targets when the -mhitachi option is specified, or __attribute__((renesas)) is used
GCC 8 introduced additional cases of this defect, but rather than resolve only those regressions, we decided to resolve all the cases of this defect in single change.
This release includes fixes to the compiler, the linker, the go command,
the runtime, and the os package.
Same as for go111, remove the pkg/bootstrap tree from the package.
This release includes fixes to the compiler, the linker, the go command, the
runtime, and the os package.
While here, remove pkg/bootstrap from the package, as it is only used
for bootstrapping.
configure forced to pass `-g' to CFLAGS and did not strip resulting binaries and
libraries. Pass `--disable-debug-symbols' and `--enable-strip' to respectively
address that.
Fix PR pkg/54228 reported by matt farnsworth.
While here, avoid to pass `-Wl,-z,wxneeded' to LDFLAGS on NetBSD.
Main changes:
* some quality-of-life bug fixes,
* many improvements to the documentation,
* a critical bug fix related to primitive projections and native_compute,
* several additional Coq libraries shipped with the Windows installer.
3.3.3:
As before, decomplation bugs fixed. The focus has primarily been on Python 3.7. But with this release, releases will be put on hold,as a better control-flow detection is worked on . Tis has been needed for a while, and is long overdue. It will probably also take a while to get done as good as what we have now.
However this work will be done in a new project decompyle3. In contrast to uncompyle6 the code wil be written assuming a modern Python 3, e.g. 3.7. It is originally intended to decompile Python version 3.7 and greater.
A number of Python 3.7+ chained comparisons were fixed
Revise Python 3.6ish format string handling
Go over operator precedence, e.g. for AST IfExp
Changelog:
Bugfixes
Fixed “32 bit signed xor broken on VM” (#10482)
Fixed “SetMaxPoolSize not heeded” (#10584)
Fixed “uint inplace add in if branch is omitted when compiled to JS” (#10697)
Fixed “Booleans Work Wrong in Compile-time” (#10886)
Fixed “Bug in setTerminate()” (#10765)
Fixed “Cannot raise generic exception” (#7845)
Fixed “Nim string definition conflicts with other C/C++ instances” (#10907)
Fixed “std/json fails to escape most non-printables, breaking generation and parsing” (#10541)
Fixed “object self-assignment order-of-evaluation broken” (#9844)
Fixed “Compiler crash with generic types and static generic parameters” (#7569)
This supports packages that require a large number of go-based dependencies,
treating them as additional distfiles and built inline as part of the package
build. The print-go-deps target is helpful to generate the list of GO_DEPS
required for each package by parsing the Gopkg.lock file in the extracted
sources.
Thanks to rillig@ for various suggestions and comments.
Pkgsrc changes: basically none.
Upstream changes:
Version 1.34.2 (2019-05-14)
===========================
* [Destabilize the `Error::type_id` function due to a security
vulnerability][60785]
[60785]: https://github.com/rust-lang/rust/pull/60785
Changelog:
0.19.4
Bugfixes
Fixed “Latest HEAD segfaults when compiling Aporia” (#9889)
Fixed “smtp module doesn’t support threads.” (#9728)
Fixed “toInt doesn’t raise an exception” (#2764)
Fixed “allow import inside block: makes N runnableExamples run N x faster, minimizes scope pollution” (#9300)
Fixed “regression: CI failing Error: unhandled exception: cannot open: /Users/travis/.cache/nim/docgen_sample_d/runnableExamples/docgen_sample_examples.nim [IOError]” (#10188)
Fixed “Discrepancy in Documentation About ‘f128 Type-Suffix” (#10213)
Fixed “Performance regression with –gc:markandsweep” (#10271)
Fixed “cannot call template/macros with varargs[typed] to varargs[untyped]” (#10075)
Fixed “–embedsrc does not work on macos” (#10263)
Fixed “terminal.nim colored output is not GCSAFE.” (#8294)
Fixed “Path in error message has ..\..\..\..\..\ prefix since 0.19.0” (#9556)
Fixed ““contributing” is listed as a module on theindex” (#10287)
Fixed “[Regression] converter to string leads fail to compile on 0.19” (#9149)
Fixed “oids counter starts at zero; spec says it should be random” (#2796)
0.19.2
Compiler changes
Added support for the RISC-V 64 bit architecture named riscv64 (e.g. HiFive)
Bugfixes
Fixed “Nim 0.19.0 docs have incorrect Source/Edit links” (#9083)
Fixed “Json: compilation fails with aliased type” (#9111)
Fixed “https://nim-lang.org/docs/nre.html gives 404 error” (#9119)
Fixed “Leaving \\ at the end of a path in copyDir removes every file’s first char” (#9126)
Fixed “nim doc SIGSEGV: Illegal storage access.” (#9140)
Fixed “[doc] List of broken links in the doc site” (#9109)
Fixed “Fix incorrect examples in nre docs” (#9053)
Fixed “Clean up root of repo and release archives” (#4934)
Fixed “Concept/converter/generics-related compiler crash” (#7351)
Fixed “converter + concept causes compiler to quit without error” (#6249)
Fixed “Error: internal error” (#6533)
Fixed “Methods break static[T] (internal error: nesting too deep)” (#5479)
Fixed “Memory error when checking if a variable is a string in concept” (#7092)
Fixed “Internal error when using array of procs” (#5015)
Fixed “[Regression] Compiler crash on proc with static, used to compile in nim 0.16” (#5868)
Fixed “fixes/8099” (#8451)
Fixed “distinct generic typeclass not treated as distinct” (#4435)
Fixed “multiple dynlib pragmas with function calls conflict with each other causing link time error” (#9222)
Fixed “\0 in comment replaced with 0 in docs” (#8841)
Fixed “Async readAll in httpclient produces garbled output.” (#8994)
Fixed “runnableExamples should be run by nim doc even if symbol is not public” (#9216)
Fixed “[regression] project config.nims not being read anymore” (#9264)
Fixed “Using iterator within another iterator fails” (#3819)
Fixed “nim js -o:dirname main.nim writes nothing, and no error shown” (#9154)
Fixed “devel docs in nim-lang.github.io Source links point to master instead of devel” (#9295)
Fixed “Regular Expressions: replacing empty patterns only works correctly in nre” (#9306)
Fixed “counting the empty substring in a string results in infinite loop” (#8919)
Fixed “[nimpretty] raw strings are transformed into normal strings” (#9236)
Fixed “[nimpretty] proc is transfered to incorrect code” (#8626)
Fixed “[nimpretty] Additional new line is added with each format” (#9144)
Fixed ““%NIM%/config/nim.cfg” is not being read” (#9244)
Fixed “Illegal capture on async proc (except when the argument is seq)” (#2361)
Fixed “Jsondoc0 doesn’t output module comments.” (#9364)
Fixed “NimPretty has troubles with source code filter” (#9384)
Fixed “tfragment_gc test is flaky on OSX” (#9421)
Fixed “ansi color code templates fail to bind symbols” (#9394)
Fixed “SIGSEGV when converting lines to closure iterator, most likely caused by defer” (#5321)
Fixed “Compiler crash when creating a variant type” (#6220)
Fixed “old changelogs should be kept instead of erased” (#9376)
Fixed “Crash when closing an unopened file on debian 8.” (#9456)
Fixed “nimpretty joins regular and doc comment” (#9400)
Fixed “nimpretty changes indentation level of trailing comment” (#9398)
Fixed “Some bugs with nimpretty” (#8078)
Fixed “nimpretty not idempotent: keeps adding newlines below block comment” (#9483)
Fixed “nimpretty shouldn’t format differently whether there’s a top-level newline” (#9484)
Fixed “nimpretty shouldn’t change file modif time if no changes => use os.updateFile” (#9499)
Fixed “nimpretty adds a space before type, ptr, ref, object in wrong places” (#9504)
Fixed “nimpretty badly indents block comment” (#9500)
Fixed “nimpretty wrongly adds empty newlines inside proc signature” (#9506)
Fixed “Duplicate definition in cpp codegen” (#6986)
Fixed “nim doc strutils.nim fails on 32 bit compiler with AssertionError on a RunnableExample” (#9525)
Fixed “using Selectors, Error: undeclared field: ‘OSErrorCode’” (#7667)
Fixed “strutils.multiReplace() crashes if search string is “”” (#9557)
Fixed “Type which followed by a function and generated by a template will not shown in docs generated by nim doc” (#9235)
Fixed “Module docs: 2 suggestions…” (#5525)
Fixed “Missing docstrings are replaced with other text” (#9169)
Fixed “templates expand doc comments as documentation of other procedures” (#9432)
Fixed “Path in error message has ..\..\..\..\..\ prefix since 0.19.0” (#9556)
Fixed “Nim/compiler/pathutils.nim(226, 12) canon"/foo/../bar" == "/bar" [AssertionError]” (#9507)
Fixed “[Regression] Borrow stringify operator no longer works as expected” (#9322)
Fixed “[NimScript] Error: arguments can only be given if the ‘–run’ option is selected” (#9246)
Fixed “nim check: internal error: (filename: "vmgen.nim", line: 1119, column: 19)” (#9609)
Fixed “optInd missing indent specification in grammar.txt” (#9608)
Fixed “nimpretty should hardcode indentation amount to 2 spaces” (#9502)
Fixed “Nimpretty adds instead of removes incorrect spacing inside backticks” (#9673)
Fixed “Compiler segfault (stack overflow) compiling code on 0.19.0 that works on 0.18.0” (#9694)
release-python-3.3.2
As before, lots of decomplation bugs fixed. The focus has primarily
been on Python 3.6. We can now parse the entire 3.6.8 Python library
and verify that without an error. The same is true for 3.5.8. A number
of the bugs fixed though are not contained to these versions. In fact
some span back as far as 2.x
But as before, many more remain in the 3.7 and 3.8 range which will
get addressed in future releases
Pypy 3.6 support was started. Pypy 3.x detection fixed (via xdis)
Changelog:
New Japanese Era Name: Reiwa (JDK-8205432)
core-libs/java.time
An instance representing the new Reiwa era has been added to this update. Unlike other eras, there is no public field for this era. It can be obtained by calling JapaneseEra.of(3) or JapaneseEra.valueOf("Reiwa"). JDK 13 and later will have a new public field to represent this era.
The placeholder name, "NewEra", for the Japanese era that started from May 1st, 2019 has been replaced with the new official name. Applications that relied on the placeholder name (see JDK-8202088) to obtain the new era singleton (JapaneseEra.valueOf("NewEra")) will no longer work.
Added GlobalSign R6 Root Certificate (JDK-8216577)
security-libs/java.security
The following root certificate has been added to the cacerts truststore:
+ GlobalSign
+ globalsignrootcar6
DN: CN=GlobalSign, O=GlobalSign, OU=GlobalSign Root CA - R6
Because python won't even try to build it.
You only see nis_failed.so if there is an error building it, when
it wanted to build it, and that should be fixed accordingly.
In a nutshell, if the yp headers are installed, python will build
the nis module, otherwise it won't.
On netbsd systems at least, if you have the yp headers installed and
subsequently re-install over the top with MKYP=no you get into the state
where the headers are installed, but the functions are no longer in libc.
This is an error with *your* system - either rebuild with MKYP=yes OR
remove the yp headers from include/rpc and include/rpcsvc.
Follow on fix for PR pkg/53673.
release-3.3.1
Lots of decomplation bugs, especially in the 3.x series fixed. Don't worry though, many more remain.
* Add annotation return values in 3.6+
* Fix 3.6+ lambda parameter handling decompilation
* Fix 3.7+ chained comparision decompilation
* split out semantic-action customization into more separate files
* Add 3.8 try/else
* Fix 2.7 generator decompilation
* Fix some parser failures fixes in 3.4+ using test_pyenvlib
* Add more run tests
Highlights from erlang 21.2 to 21.3:
Kernel:
The standard logger handler, logger_std_h, now has a new internal
feature for log rotation. For full information see the documentation.
SSL:
The Reason part of the error return from the functions connect and
handshake has a better and documented format. This is a potential
incompatibility. See the documentation.
Refactoring of state handling has improved the TLS application data
throughput and reduced CPU overhead
Code optimizations has reduced CPU load for encryption/decryption,
especially for Erlang's distribution protocol over TLS
Now supports active N
Erl_interface:
Support for plugin of a user supplied socket implementation has been added.
OTP:
The HTML reference documentation now shows the OTP version where
modules and functions were first introduced. Versions of OTP older than R13B04 is not shown in the reference
documentation
NAME
perldelta - what is new for perl v5.28.2
DESCRIPTION
This document describes differences between the 5.28.1 release and the 5.28.2 release.
If you are upgrading from an earlier release such as 5.28.0, first read perl5281delta, which describes
differences between 5.28.0 and 5.28.1.
Incompatible Changes
Any set of digits in the Common script are legal in a script run of another script
There are several sets of digits in the Common script. "[0-9]" is the most familiar. But there are also
"[\x{FF10}-\x{FF19}]" (FULLWIDTH DIGIT ZERO - FULLWIDTH DIGIT NINE), and several sets for use in
mathematical notation, such as the MATHEMATICAL DOUBLE-STRUCK DIGITs. Any of these sets should be able to
appear in script runs of, say, Greek. But the previous design overlooked all but the ASCII digits "[0-9]",
so the design was flawed. This has been fixed, so is both a bug fix and an incompatibility.
All digits in a run still have to come from the same set of ten digits.
Modules and Pragmata
Updated Modules and Pragmata
o Module::CoreList has been upgraded from version 5.20181129_28 to 5.20190419.
o PerlIO::scalar has been upgraded from version 0.29 to 0.30.
o Storable has been upgraded from version 3.08 to 3.08_01.
Platform Support
Platform-Specific Notes
Windows
The Windows Server 2003 SP1 Platform SDK build, with its early x64 compiler and tools, was accidentally
broken in Perl 5.27.9. This has now been fixed.
Mac OS X
Perl's build and testing process on Mac OS X for "-Duseshrplib" builds is now compatible with Mac OS X
System Integrity Protection (SIP).
SIP prevents binaries in /bin (and a few other places) being passed the "DYLD_LIBRARY_PATH" environment
variable. For our purposes this prevents "DYLD_LIBRARY_PATH" from being passed to the shell, which
prevents that variable being passed to the testing or build process, so running "perl" couldn't find
libperl.dylib.
To work around that, the initial build of the perl executable expects to find libperl.dylib in the build
directory, and the library path is then adjusted during installation to point to the installed library.
Selected Bug Fixes
o If an in-place edit is still in progress during global destruction and the process exit code (as stored
in $?) is zero, perl will now treat the in-place edit as successful, replacing the input file with any
output produced.
This allows code like:
perl -i -ne 'print "Foo"; last'
to replace the input file, while code like:
perl -i -ne 'print "Foo"; die'
will not.
o A regression in Perl 5.28 caused the following code to fail
close(STDIN); open(CHILD, "|wc -l")'
because the child's stdin would be closed on exec. This has now been fixed.
o "pack "u", "invalid uuencoding"" now properly NUL terminates the zero-length SV produced.
o Failing to compile a format now aborts compilation. Like other errors in sub-parses this could leave
the parser in a strange state, possibly crashing perl if compilation continued.
o See "Any set of digits in the Common script are legal in a script run of another script".
Update ruby26{,-base} to 2.6.3. Here is release announce:
Ruby 2.6.3 Released
Posted by naruse on 17 Apr 2019
Ruby 2.6.3 has been released.
This release adds support for New Japanese Era “令和” (Reiwa). It updates
the Unicode version to 12.1 beta (#15195), and updates date library (#15742).
This release also includes some bug fixes. See details commit logs.
release-3.3.0
First cut at Python 3.8 (many bugs remain)
Reinstate -c | --compile (compile before disassembly) option
The usual smattering of bug and doc fixes
go1.12.2 (released 2019/04/05) includes fixes to the compiler, the go command,
the runtime, and the doc, net, net/http/httputil, and os packages. See the Go
1.12.2 milestone on our issue tracker for details.
go1.12.3 (released 2019/04/08) was accidentally released without its intended
fix. It is identical to go1.12.2, except for its version number. The intended
fix is in go1.12.4.
go1.12.4 (released 2019/04/11) fixes an issue where using the prebuilt binary
releases on older versions of GNU/Linux led to failures when linking programs
that used cgo. Only Linux users who hit this issue need to update.
go1.11.7 (released 2019/04/05) includes fixes to the runtime and the net
packages. See the Go 1.11.7 milestone on our issue tracker for details.
go1.11.8 (released 2019/04/08) was accidentally released without its intended
fix. It is identical to go1.11.7, except for its version number. The intended
fix is in go1.11.9.
go1.11.9 (released 2019/04/11) fixes an issue where using the prebuilt binary
releases on older versions of GNU/Linux led to failures when linking programs
that used cgo. Only Linux users who hit this issue need to update.
Changelog:
Changes from 4.2.1 to 5.0.0
---------------------------
1. Support for the POSIX standard %a and %A printf formats has been added.
2. The test infrastructure has been greatly improved, simplifying the
contents of test/Makefile.am and making it possible to generate
pc/Makefile.tst from test/Makefile.in.
3. The regex routines have been replaced with those from GNULIB, allowing
me to stop carrying forward decades of changes against the original
ones from GLIBC.
4. Infrastructure upgrades: Bison 3.3, Automake 1.16.1, Gettext 0.19.8.1,
makeinfo 6.5.
5. The undocumented configure option and code that enabled the use of
non-English "letters" in identifiers is now gone.
6. The `--with-whiny-user-strftime' configuration option is now gone.
7. The code now makes some stronger assumptions about a C99 environment.
8. PROCINFO["platform"] yields a string indicating the platform for
which gawk was compiled.
9. Writing to elements of SYMTAB that are not variable names now
causes a fatal error. THIS CHANGES BEHAVIOR.
10. Comment handling in the pretty-printer has been reworked almost completely
from scratch. As a result, comments in many corner cases that were
previously lost are now included in the formatted output.
11. Namespaces have been implemented! See the manual. One consequence of this
is that files included with -i, read with -f, and command line program
segments must all be self-contained syntactic units. E.g., you can no
longer do something like this:
gawk -e 'BEGIN {' -e 'print "hello" }'
12. Gawk now uses the locale settings for ignoring case in single byte
locales, instead of hardwiring in Latin-1.
13. A number of bugs, some of them quite significant, have been fixed.
See the ChangeLog for details.
openbsd requires mapping the stack with MAP_STACK. binaries not doing this
will not run. patch taken from openbsd ports, via sjmulder.
I modified it to use GOOS_openbsd, because other OSes are not provided
an implementation of sysMarkStack.
Bump PKGREVISION.
* vulnerabilities of rubygems are already fixed in 2.4.5nb1.
Ruby 2.4.6 Released 1 Apr 2019
Ruby 2.4.6 has been released.
This release includes about 20 bug fixes after the previous release, and also
includes several security fixes. Please check the topics below for details.
* Multiple vulnerabilities in RubyGems
See the commit log for details.
After this release, we will end the normal maintenance phase of Ruby 2.4, and
start the security maintenance phase of it. This means that after the release
of 2.4.6 we will never backport any bug fixes to 2.4 except security fixes.
The term of the security maintenance phase is scheduled for 1 year. By the
end of this term, official support of Ruby 2.4 will be over. Therefore, we
recommend that you start planning to upgrade to Ruby 2.6 or 2.5.
As discussed on pkgsrc-users, rust does not work on any NetBSD before
8, for any architecture. Omit NetBSD 1 from the broken list, so that
this doesn't match NetBSD 10.
As discussed on pkgsrc-users, mark rust as BROKEN_ON for NetBSD 7
i386. The bootstrap is built for 8, apparently because it doens't
build on 7. This is BROKEN_ON not NOT_FOR because it does make sense
to want rust on 7 -- it just won't build.
(Probably this should be expanded to all arches and all versions < 8.)
Match the logic used by setup.py: it looks for two headers in the default
include path. This helps newer glibc linux.
Omit PLIST.dll on python3* because it doesn't appear in the PLIST.
Make PLIST.dll true on all non-IRIX.
tested: NetBSD-current, FreeBSD 11.2, Ubuntu 18.10, CentOS 6.9, Source Mage
From Dr. Thomas Orgis, myself, and with pointers to a change from leot.
PR pkg/53673
Changes:
3.7.3
=====
Documentation
-------------
- bpo-36083: Fix formatting of --check-hash-based-pycs options in the
manpage Synopsis.
- bpo-34764: Improve example of iter() with 2nd sentinel argument.
- bpo-21314: A new entry was added to the Core Language Section of the
Programming FAQ, which explaines the usage of slash(/) in the signature of
a function. Patch by Lysandros Nikolaou
- bpo-22062: Update documentation and docstrings for pathlib. Original patch
by Mike Short.
3.2.6:
Bug Fixes
* Python 3.x bytecode confusing "try/else" with "try" in a loop,
* Python 3 bug in not detecting end bounds of an "if" ... "elif",
* Comma placement in 3.6 and 3.7 **kwargs,
* Fix "if" return boundary in 3.6+,
* 2.7 can have two JUMP_BACKs at the end of a while loop
Pull Requests
* Better "assert" statement detemination in Python 2.7
* Python 3.7 testing
* Run more f-string tests on Python 3.7
* support utf-8 chars in Python 3 sourcecode
Python 3.7.3:
Security
bpo-36216: Changes urlsplit() to raise ValueError when the URL contains characters that decompose under IDNA encoding (NFKC-normalization) into characters that affect how the URL is parsed.
bpo-35746: [CVE-2019-5010] Fix a NULL pointer deref in ssl module. The cert parser did not handle CRL distribution points with empty DP or URI correctly. A malicious or buggy certificate can result into segfault. Vulnerability (TALOS-2018-0758) reported by Colin Read and Nicolas Edet of Cisco.
bpo-35121: Don’t send cookies of domain A without Domain attribute to domain B when domain A is a suffix match of domain B while using a cookiejar with http.cookiejar.DefaultCookiePolicy policy. Patch by Karthikeyan Singaravelan.
Core and Builtins
bpo-35942: The error message emitted when returning invalid types from __fspath__ in interfaces that allow passing PathLike objects has been improved and now it does explain the origin of the error.
bpo-35992: Fix __class_getitem__() not being called on a class with a custom non-subscriptable metaclass.
bpo-35991: Fix a potential double free in Modules/_randommodule.c.
bpo-35961: Fix a crash in slice_richcompare(): use strong references rather than stolen references for the two temporary internal tuples.
bpo-31506: Clarify the errors reported when object.__new__ and object.__init__ receive more than one argument. Contributed by Sanyam Khurana.
bpo-35720: Fixed a minor memory leak in pymain_parse_cmdline_impl function in Modules/main.c
bpo-35623: Fix a crash when sorting very long lists. Patch by Stephan Hohe.
bpo-35214: clang Memory Sanitizer build instrumentation was added to work around false positives from posix, socket, time, test_io, and test_faulthandler.
bpo-35560: Fix an assertion error in format() in debug build for floating point formatting with “n” format, zero padding and small width. Release build is not impacted. Patch by Karthikeyan Singaravelan.
bpo-35552: Format characters %s and %V in PyUnicode_FromFormat() and %s in PyBytes_FromFormat() no longer read memory past the limit if precision is specified.
bpo-35504: Fix segfaults and SystemErrors when deleting certain attributes. Patch by Zackery Spytz.
bpo-33989: Fix a possible crash in list.sort() when sorting objects with ob_type->tp_richcompare == NULL. Patch by Zackery Spytz.
Library
bpo-35931: The pdb debug command now gracefully handles all exceptions.
bpo-36251: Fix format strings used for stderrprinter and re.Match reprs. Patch by Stephan Hohe.
bpo-35807: Update ensurepip to install pip 19.0.3 and setuptools 40.8.0.
bpo-36179: Fix two unlikely reference leaks in _hashopenssl. The leaks only occur in out-of-memory cases.
bpo-35178: Ensure custom warnings.formatwarning() function can receive line as positional argument. Based on patch by Tashrif Billah.
bpo-36106: Resolve potential name clash with libm’s sinpi(). Patch by Dmitrii Pasechnik.
bpo-35512: unittest.mock.patch.dict() used as a decorator with string target resolves the target during function call instead of during decorator construction. Patch by Karthikeyan Singaravelan.
bpo-36091: Clean up reference to async generator in Lib/types. Patch by Henry Chen.
bpo-35899: Enum has been fixed to correctly handle empty strings and strings with non-Latin characters (ie. ‘α’, ‘א’) without crashing. Original patch contributed by Maxwell. Assisted by Stéphane Wirtel.
bpo-35918: Removed broken has_key method from multiprocessing.managers.SyncManager.dict. Contributed by Rémi Lapeyre.
bpo-35960: Fix dataclasses.field() throwing away empty mapping objects passed as metadata.
bpo-35847: RISC-V needed the CTYPES_PASS_BY_REF_HACK. Fixes ctypes Structure test_pass_by_value.
bpo-35780: Fix lru_cache() errors arising in recursive, reentrant, or multi-threaded code. These errors could result in orphan links and in the cache being trapped in a state with fewer than the specified maximum number of links. Fix handling of negative maxsize which should have been treated as zero. Fix errors in toggling the “full” status flag. Fix misordering of links when errors are encountered. Sync-up the C code and pure Python code for the space saving path in functions with a single positional argument. In this common case, the space overhead of an lru cache entry is reduced by almost half. Fix counting of cache misses. In error cases, the miss count was out of sync with the actual number of times the underlying user function was called.
bpo-23846: asyncio.ProactorEventLoop now catches and logs send errors when the self-pipe is full.
bpo-34323: asyncio: Enhance IocpProactor.close() log: wait 1 second before the first log, then log every second. Log also the number of seconds since close() was called.
bpo-34294: re module, fix wrong capturing groups in rare cases. re.search(), re.findall(), re.sub() and other functions that scan through string looking for a match, should reset capturing groups between two match attempts. Patch by Ma Lin.
bpo-35717: Fix KeyError exception raised when using enums and compile. Patch contributed by Rémi Lapeyre.
bpo-35699: Fixed detection of Visual Studio Build Tools 2017 in distutils
bpo-32710: Fix memory leaks in asyncio ProactorEventLoop on overlapped operation failure.
bpo-32710: Fix a memory leak in asyncio in the ProactorEventLoop when ReadFile() or WSASend() overlapped operation fail immediately: release the internal buffer.
bpo-35682: Fix asyncio.ProactorEventLoop.sendfile(): don’t attempt to set the result of an internal future if it’s already done.
bpo-35283: Add a pending deprecated warning for the threading.Thread.isAlive() method. Patch by Dong-hee Na.
bpo-35643: Fixed a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py. Patch by Mickaël Schoentgen.
bpo-35615: weakref: Fix a RuntimeError when copying a WeakKeyDictionary or a WeakValueDictionary, due to some keys or values disappearing while iterating.
bpo-28503: The crypt module now internally uses the crypt_r() library function instead of crypt() when available.
bpo-35121: Don’t set cookie for a request when the request path is a prefix match of the cookie’s path attribute but doesn’t end with “/”. Patch by Karthikeyan Singaravelan.
bpo-35585: Speed-up building enums by value, e.g. http.HTTPStatus(200).
bpo-21478: Calls to a child function created with unittest.mock.create_autospec() should propagate to the parent. Patch by Karthikeyan Singaravelan.
bpo-35513: TextTestRunner of unittest.runner now uses time.perf_counter() rather than time.time() to measure the execution time of a test: time.time() can go backwards, whereas time.perf_counter() is monotonic.
bpo-35502: Fixed reference leaks in xml.etree.ElementTree.TreeBuilder in case of unfinished building of the tree (in particular when an error was raised during parsing XML).
bpo-31446: Copy command line that was passed to CreateProcessW since this function can change the content of the input buffer.
bpo-20239: Allow repeated assignment deletion of unittest.mock.Mock attributes. Patch by Pablo Galindo.
bpo-17185: Set __signature__ on mock for inspect to get signature. Patch by Karthikeyan Singaravelan.
bpo-10496: check_environ() of distutils.utils now catches KeyError on calling pwd.getpwuid(): don’t create the HOME environment variable in this case.
bpo-35066: Previously, calling the strftime() method on a datetime object with a trailing ‘%’ in the format string would result in an exception. However, this only occured when the datetime C module was being used; the python implementation did not match this behavior. Datetime is now PEP-399 compliant, and will not throw an exception on a trailing ‘%’.
bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff. Orignial patch by R. David Murray & Jairo Trad. Enhanced by Sanyam Khurana.
bpo-35198: Fix C++ extension compilation on AIX
bpo-28441: On Cygwin and MinGW, ensure that sys.executable always includes the full filename in the path, including the .exe suffix (unless it is a symbolic link).
bpo-34572: Fix C implementation of pickle.loads to use importlib’s locking mechanisms, and thereby avoid using partially-loaded modules. Patch by Tim Burgess.
bpo-33687: Fix the call to os.chmod() for uu.decode() if a mode is given or decoded. Patch by Timo Furrer.
bpo-32146: Document the interaction between frozen executables and the spawn and forkserver start methods in multiprocessing.
Vala 0.44.1
===========
* Various improvements and bug fixes:
- ccodegen:
+ Use unsigned default value for flags-enum
+ Use guint to represent flags-enum in custom GMarshalFunc
- Move disconnect error from signal-module to semantic-analyzer pass
- Mark defined constructors of abstract classes as protected
- parser: Implicit creation method of abstract classes must be protected
- vala: Allow assignment of 0U to enum types
- libvaladoc: Don't try to create a Content.ListItem when there is none
* Bindings:
- gio-2.0: SocketAddress.from_native() is a factory method not a constructor
- glib-2.0: Add string.validate_len() since 2.60
- gstreamer: Update from 1.15.2+ git master
- gtk4: Update to 3.94.0+f14d998c
- libgvc: Some additions and ownership/return-type fixes
- vte-2.90: Mark as deprecated, it was replaced by vte-2.91
- vapi: Update GIR-based bindings
Vala 0.44.0
===========
* Various improvements and bug fixes:
- parser: Adjust various source references
- vala: More regular invocations of check() on inferred Expression.value_type
* Bindings:
- gstreamer: Update from 1.15.2+ git master
- gtk4: Update to 3.94.0+eacbeb9e
- vapi: Update GIR-based bindings
Vala 0.43.92
============
* Various improvements and bug fixes:
- codegen:
+ Allow to associate CCodeFile to actual SourceFile
+ Only emit declaration of *_register_type if needed
+ Add get_variable_array_length_cname() and use as possible
+ Respect array_length_cname attribute for global fields
+ Replace gvaluecollector_h_needed with dedidated add_include() calls
+ Respect finish[_vfunc]_name attributes defined in vala sources
+ Include "glib-object.h" for typeof expression
- vala:
+ Correctly perform compatibility check of array length-type [#607]
+ Don't ignore qualified parent when inferring type of enum member [#666035]
- girwriter:
+ Support transfer-ownership="container" for arrays
+ Always use get_gir_name() for TypeSymbols
- testrunner: Add support for Genie source files (.gs)
- tests: Add some Genie tests to increase coverage
- genie: Allow main function "init" to return integer as exit status [#402]
* Bindings:
- gobject-2.0: Add SignalHandler.disconnect_by_data()
- poppler-glib: Update to 0.74
- gtk4: Update to 3.94.0+b4ae491b
- vapi: Update GIR-based bindings
Vala 0.43.91
============
* Various improvements and bug fixes:
- Revert "valadoc: Drop duplicated code to add source files and use
CodeContext API" and "valadoc: Update API tests" (#748)
- valadoc: Report warning if resources for doclet could not be copied
- libvaladoc: Properly support the output of async constructors (#753)
- girparser: Correctly set array_length_type for delegates returning an array
- Revert "vala: Don't replace assignments for local variables with non-null
simple-types" (#755)
* Bindings:
- Follow GTK upstream rename to gtk4 and gtk4-unix-print
- gtk4,gtk4-unix-printer: Update to 3.94.0+02e856f6
- gtk+-unix-print-*.0: Fix PrintJob.get_page_ranges(),
Printer.get_hard_margins()
- atk-1.0: Adjust for upstream revert of Implementor using G_DEFINE_INTERFACE
- clutter-1.0: Drop deprecated from Actor.pick() (#625)
- glib-2.0: Add "delegate_target = false" to Log.writer_journald/
_standard_streams/_default
- gio-unix-2.0: Add DesktopAppInfo.get_string_list() since 2.60
- gstreamer: Update from 1.15.1+ git master
- webkit2gtk-4.0: Update to 2.23.91
- vapi: Update GIR-based bindings
Vala 0.43.90
============
* Various improvements and bug fixes:
- codegen: Replace some unfortunate asserts with internal error reports
- codegen: Properly handle and catch inner-error of finally-block (#742)
- codegen: Pass lambda expression of variable initializer to signal connect
- vala: Check inferred variable_type of LocalVariables
- vala: Parser doesn't ensure "protected" to be applied on TypeSymbol members
- libvaladoc: Don't change the size of an array in-parameter
- g-i: Fix return value on error in start_discriminator()
* Bindings:
- Add goocanvas-2.0 bindings (#739)
- gdk-3.0: Update to 3.24.4+a0129f55
- glib-2.0: Bind g_log_writer_journald/_standard_streams/_default as
LogWriterFunc (#559)
- goocanvas: Update from 1.0.0+af07af5d
- gstreamer: Update from 1.15.1+
- gtk+-4.0: Update to 3.94.0+a7fa1cf6
- vapi: Update GIR-based bindings
Vala 0.43.6
===========
* Various improvements and bug fixes:
- codegen: Don't apply address-of operator on literals when casting to array
- vala: Don't tweak closure on static lambdas [#740]
- Revert "codegen: Use copies of error_variable of catch-clauses for nested
usage" and add asynchronous "catch-error-scope" regression test [#741]
- libvaladoc: Build backing Vala.SourceFile for GIRs processed by importer
- libvaladoc/girimporter: Skip "source-position" elements
- genie: Support "protected" accessibility and allow explicit "public" [#346]
* Bindings:
- gst-editing-services-1.0: Fix some construtors and (un)hide symbols
- javascriptcoregtk-4.0: Fix GLib.Callback parameters which can't hold target
Vala 0.43.5
===========
* Various improvements and bug fixes:
- vala:
+ Use dedicated error message for assignments to literals
+ Async methods don't allow out-parameters before in-parameters [#636]
+ Allow direct access to the integer constants of an error-domain [#732]
+ Multiple lamdba arguments in method call should all use same scope [#59]
- codegen:
+ Use a parameter-map for creation of delegate declaration [#728]
+ Add "error_pos" CCode attribute and use it as needed [#728]
+ Emit struct declaration typedef before resolving its fields [#318]
+ Add "destroy_notify_cname" CCode attribute
+ Use get_ccode_*name/get_parameter_cexpression() for Parameters
+ Set owner for ValaDestroyNotify (POSIX) [#730]
+ Include "stddef.h" in CCodeBaseModule.destroy_value() (POSIX) [#730]
- girparser: Recognize error parameter before delegate target parameter [#265]
- compiler: Report deprecated command-line option "--thread"
- valadoc: Specify that the "--driver" option is deprecated [#736]
* Bindings:
- atk: Don't use a custom SignalEmissionHook while it is part of gobject-2.0
- gdk-pixbuf-2.0: Make PixbufSaveFunc usable [#728]
- gio-2.0: Make DBusInterface[GS]etPropertyFunc usable [#728]
- gio-2.0: Add CancellableSource ctor and update PollableSource ctors
- glib-2.0: Add Queue.clear_full() since 2.60
- gstreamer: Update from 1.15+ git master
- gdk-3.0,gtk+-3.0: Update to 3.24.3+9c8f1478
- gtk+-4.0: Update to 3.94.0+9b15c690
- libsoup-2.4: Fix Message.add_*_handler() [#731]
- vapi: Update GIR-based bindings
Vala 0.43.4
===========
* Various improvements and bug fixes:
- vala:
+ Array with fixed length don't require explicit instantiation (#720)
+ Add GenericType.get_actual_type()
+ Allow get_actual_type() to be used for expected failures
+ Add Method.compatible_no_error()
+ Don't just guess and check for a matching base_interface_method (#548)
+ Search in all interfaces for an implementation match (#548)
+ Allow explicit interface methods to be virtual (#548)
+ Report invalid instance member access to property (#605)
- codegen:
+ Use properly checked implicit interface implementations (#548)
+ Use temp-var for MethodCall with out/ref arguments (#722)
+ Use temp-vars for ellipsis out-arguments to fix memory management (#722)
+ Add default_value for CType to initialize variables if needed (#724)
+ Cast instance parameter for property access in object-initializer
+ Don't check boolean values for (in)equality in GTask API (#726)
+ Add missing data parameter to GTypeInfo callbacks
+ Properly set annotations field of GDBus*Info struct to NULL
+ Cast instance and result of g_async_initable_new_finish() call
- valadoc: Drop duplicated code to add source files and use CodeContext API
- libvaladoc: Skip empty Version.replacement attribute to avoid critical
- build: Don't leak libvalaccode symbols to libvaladoc
- Add a basic CONTRIBUTING.md file that links to the relevant Wiki page
- tests:
+ Fix try_parse() tests to not compare to already free'd memory
+ Warnings and criticals should be fatal on compile time too
* Bindings:
- glib-2.0: Use correct array-length-type for returned arrays (#171)
- glib-2.0: Add RecMutexLocker since 2.60
- gio-2.0: Fix File.replace_contents_bytes_async() (!37)
- gobject-2.0: Use correct array-length-type for returned arrays
- poppler-glib: Update to 0.71
- gstreamer: Update from 1.15+ git master
- gtk+-3.0: Update to 3.24.2+a8e07254
- gtk+-4.0: Update to 3.94.0+4404afc9
- sqlite3: Correct return C type of Statement.column_text & Value.to_text
- webkitgtk-4.0: Update to 2.23.1
- vapi: Update GIR-based bindings
Vala 0.43.2
===========
* Various improvements and bug fixes:
- codegen:
+ GType classes and interfaces require including "glib-object.h"
+ Handle non-default AsyncResult parameter position [#709]
and regenerate GIR-based bindings to fix non-standard async methods
+ Always emit constants with initializer-list [#81]
+ Emit delegate/enum typedefs to type-declaration section [#318]
- Break possible endless loop in SymbolResolver.get_type_for_struct() [#444]
* Bindings:
- gobject-introspection-1.0: Pick up version attribute fixes
Vala 0.43.1
===========
* Highlights:
- Emit G_DEFINE_AUTOPTR_CLEANUP_FUNC() for classes (requires glib 2.44) [#670]
- Enforce "return yield ..." syntax to be expected [#675]
- Drop deprecated syntax support of += and -= for signals [#676]
- Drop deprecated syntax support of # modifier and operator [#677]
- Allow disabling the build of valadoc [#596]
- Add support for SingleInstance attribute for GObject classes [#647]
- Don't allow to declare array parameters with "type array[]" [#163]
- Collect error_types on demand to allow transformations
- Check for matching ownership of type-arguments [#696]
- Add profile specific delegate target/destroy types
- Don't explicitly add glib headers, the use of symbols will do that [#623]
- Add --enable-debug configure option
- Move setting of default defines for VALA_0_XX and GLIB_2_XX to CodeContext
- Add support for delegate parameters in signals [#205]
- Admit that structs are emtpy even with a static property [#446]
* Various improvements and bug fixes:
- codegen:
+ Fix method pointer cast if instance isn't at first position
+ Transfer ownership of compact class to DestroysInstance method [#645]
+ Add destroy function for GLib.Array [#572]
+ Fix canonical string for quark of error domains
+ Make sure to include declarations for delegate typed parameters
+ Don't emit type_id for enum in non GOBJECT profile
+ Don't emit unused temp variable for element access assignments
+ Actually create method cast for base interface method as needed
+ Mark needle parameter of internal array-contains methods as const [#504]
+ Emit initializer for enum-value into wanted declaration space [#167]
+ Add void to delegate typedef declarations without parameters
+ Deprecate "finish_function" and "ctype" ccode-attribute
+ Fix get_ccode_name() for properties
+ Add ccode getters for GType functions of Classes and Interfaces
+ Don't allow more than one consecutive empty lines in generated code
- vala:
+ Copy instance_pos argument from virtual/abstract base methods [#540483]
+ Compact classes don't allow private/class fields and to lock fields
+ Use comment which was already retrieved in parse_declaration()
+ Add missing re-check guards for Do/For/WhileStatement and SwitchLabel
+ Type check for errors require an error expression [#362]
+ Make check_arguments() more verbose and don't bail on first error [#438]
+ Don't emit member access of assignments on static properties [#573]
+ Use clearer error message for automatic properties in interfaces [#656]
+ Admit that structs are emtpy even with a static property [#684]
+ Let UsingDirective hold reference to UnresolvedSymbol instances only
+ Add ArrayType.length_type and ArrayCreationExpression.length_type [#607]
+ Remove hardcoded "int" length type and use ArrayType.length_type [#607]
+ Use is_weak() for type-arguments in DataType.to_qualified_string()
- girwriter: Write glib-type attributes for Enums/Structs with type_id
- girparser: Skip "source-position" elements and docs in transparent union
- valadoc:
+ Match property signature with vala's codewriter
+ Sort symbols and members where possible
+ Actually assign type_id of Api.Structs
+ Add type_id to Api.Enum/Interface
+ Skip package dependency if target directory already exists
+ Fix a few errors and warnings in stylesheet
+ Adjust stylesheet to unbreak Epiphany [#644]
+ Several API clean ups
+ Add --fatal-warnings command line option
- docs: Use Markdown for README and include build instructions
- testrunner: Compile and run tests separately and pass buildsystem's CC
through to valac, add various -Werror=* build cflags
* Bindings:
- gio-2.0: Add missing File.new_build_filename()
- glib-2.0: Add missing Array.set_clear_func() binding
- glib-2.0: Avoid double-free in GLib.Array if clear_func is set
- glib-2.0: Drop g_object_unref which is part of gobject-2.0
- gobject-2.0: Attribute all symbols with cheader_filename = "glib-object.h"
- gdk-x11-3.0,gtk+-3.0: Update to 3.24.1+356f1f59
- gtk+-3.0: Treat Gtk.IconInfo as GLib.Object which it is since 3.8 [#663]
- gtk+-4.0: Update to 3.94.0+8de1ba2c
- gstreamer: Update from 1.15+ git master
- posix: Add CommandPipe as a sub-type of FILE [#645]
Also apply similar ifdefs for NetBSD as FreeBSD and OpenBSD.
Now nodejs binary won't fail during lang/npm and www/firefox builds
on NetBSD/i386 8.0.
Bump PKGREVISION.
No particular comments on pkgsrc-bug@:
http://mail-index.netbsd.org/pkgsrc-bugs/2019/03/19/msg066102.html
Should close PR pkg/53497, PR pkg/53758, PR pkg/53792, and PR pkg/53794.
Python 3.4.10 final
Security
bpo-36216: Changes urlsplit() to raise ValueError when the URL contains characters that decompose under IDNA encoding (NFKC-normalization) into characters that affect how the URL is parsed.
bpo-35121: Don’t send cookies of domain A without Domain attribute to domain B when domain A is a suffix match of domain B while using a cookiejar with http.cookiejar.DefaultCookiePolicy policy.
Library
bpo-35121: Don’t set cookie for a request when the request path is a prefix match of the cookie’s path attribute but doesn’t end with “/”.
Python 3.4.10 release candidate 1
Security
bpo-35746: [CVE-2019-5010] Fix a NULL pointer deref in ssl module. The cert parser did not handle CRL distribution points with empty DP or URI correctly. A malicious or buggy certificate can result into segfault. Vulnerability (TALOS-2018-0758).
bpo-34791: The xml.sax and xml.dom.domreg no longer use environment variables to override parser implementations when sys.flags.ignore_environment is set by -E or -I arguments.
bpo-34623: CVE-2018-14647: The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat’s default CSPRNG.
Library
bpo-33329: Fix multiprocessing regression on newer glibcs
Python 3.5.7 final
Security
bpo-36216: Changes urlsplit() to raise ValueError when the URL contains characters that decompose under IDNA encoding (NFKC-normalization) into characters that affect how the URL is parsed.
bpo-35121: Don’t send cookies of domain A without Domain attribute to domain B when domain A is a suffix match of domain B while using a cookiejar with http.cookiejar.DefaultCookiePolicy policy.
Library
bpo-35121: Don’t set cookie for a request when the request path is a prefix match of the cookie’s path attribute but doesn’t end with “/”.
Python 3.5.7 release candidate 1
Security
bpo-35746: [CVE-2019-5010] Fix a NULL pointer deref in ssl module. The cert parser did not handle CRL distribution points with empty DP or URI correctly. A malicious or buggy certificate can result into segfault. Vulnerability (TALOS-2018-0758).
bpo-34791: The xml.sax and xml.dom.domreg no longer use environment variables to override parser implementations when sys.flags.ignore_environment is set by -E or -I arguments.
bpo-34623: CVE-2018-14647: The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat’s default CSPRNG.
Library
bpo-33329: Fix multiprocessing regression on newer glibcs
bpo-33127: The ssl module now compiles with LibreSSL 2.7.1.
Changes since previous version (2.2.0):
pkgsrc: use the included Makefile.cmdline to build duktape, rather
than custom command in pkgsrc Makefile. Don't assume ${CC} is gcc
while doing so
XXX - it looks like the ABI has changed (silently) from 2.2.0 without
a corresponding libtool version bump from upstream. caveat buildor
2.3.0 (2018-08-04)
+ When C++ exception support is enabled use a separate
duk_fatal_exception (inherits from std::runtime_error) to propagate
fatal errors (uncaught errors, assertions) out of Duktape when using
the default fatal error handler (GH-1915)
+ Update UnicodeData.txt and SpecialCasing.txt used for building
internal Unicode control data to Unicode version 10.0.0 (GH-1851)
+ Add support for Symbol.hasInstance (@@hasInstance) check for
'instanceof' operator and duk_instanceof() API call; also add
Symbol.hasInstance and Function.prototype[@@hasInstance] (GH-1821)
+ Add support for Symbol.toStringTag (@@toStringTag) in
Object.prototype.toString() (GH-1822)
+ Add support for Symbol.isConcatSpreadable (@@isConcatSpreadable) in
Array.prototype.concat() (GH-1823)
+ Add support for Symbol.toPrimitive (@@toPrimitive) in ToPrimitive()
internal algorithm and duk_to_primitive() API call (GH-1825)
+ Invoke Proxy 'has' trap in Array.prototype.concat() when inspecting
the elements of the Proxy target (GH-1823)
+ Remove DUK_USE_NONSTD_ARRAY_CONCAT_TRAILER because the underlying
ES5.1 specification "bug" was fixed in ES2015 (GH-1823)
+ Remove DUK_USE_NONSTD_ARRAY_MAP_TRAILER because ES5.0/ES5.1 behavior
actually did match the "non-standard" behavior provided by the option
(GH-1823)
+ Add duk_random() to allow C code access to the same random number
source as ECMAScript code (GH-1815)
+ Add duk_push_new_target() to allow C code to access new.target; at
present this is for completeness because without actual class support
it's only useful to detect constructor calls which can already be done
using duk_is_constructor_call() (GH-1745)
+ Add experimental API call variants for plain C literals, for example
duk_push_literal(ctx, "key") and duk_get_prop_literal(ctx,
"propname"), which allow e.g. better performance; calls added:
duk_push_literal(), duk_get_prop_literal(), duk_put_prop_literal(),
duk_has_prop_literal(), duk_del_prop_literal(),
duk_get_global_literal(), duk_put_global_literal() (GH-1805)
+ Add duk_get_global_heapptr() and duk_put_global_heapptr() for
completeness (GH-1805)
+ Automatically pin strings accessed using the C literal API call
variants such as duk_get_prop_literal(ctx, "propname") between
mark-and-sweep rounds to facilitate literal caching and to reduce
string table traffic; this behavior can be disabled by disabling
DUK_USE_LITCACHE_SIZE in configure.py (GH-1813)
+ Add a lookup cache for C literals to speed up string table lookups
when using API call variants such as duk_get_prop_literal(ctx,
"propname"); the cache relies on literals being pinned between
mark-and-sweep rounds, and can be disabled by disabling
DUK_USE_LITCACHE_SIZE in configure.py (GH-1813)
+ ES2015 Number constructor properties: EPSILON, MIN_SAFE_INTEGER,
MAX_SAFE_INTEGER, isFinite(), isInteger(), isNaN(), isSafeInteger(),
parseInt(), parseFloat() (GH-1756, GH-1761)
+ Assume only natural alignment (DUK_USE_ALIGN_BY=8) on all platforms
to minimize compiler assumptions regarding unaligned accesses (which
can be an issue even on x86); applications working with a low memory
target may want to force DUK_USE_ALIGN_BY in configuration (GH-1783,
GH-1784)
+ Base64 decoder is now more lenient for padding: accepts missing
padding ('Zm'), partial padding ('Zm='), standard padding ('Zm=='),
and extra padding ('Zm===' etc), also for concatenated documents
('Zm===Zm' decodes to 'ff' for example) (GH-1789)
+ Base64 encoder and decoder performance improvements for both fast
path and slow path variants (GH-1789)
+ Make base64 support optional and drop it from lowmem base
configuration; define DUK_USE_BASE64_SUPPORT to enable it (GH-1789)
+ Make hex support optional and drop it from lowmem base
configuration; define DUK_USE_BASE64_SUPPORT to enable it (GH-1789)
+ Add C++ name mangling wrappers (extern "C") for extras (GH-1780,
GH-1782)
+ Add a duk_uint64_t to duk_hbuffer_fixed forced alignment union trick
just in case double and uint64_t alignment requirements differ
(GH-1799)
+ Add a CBOR encoder/decoder as an extra (GH-1781, GH-1800, GH-1801)
+ Add a minimal ES2015 Promise polyfill into the distribution
(GH-1865)
+ Include <exception> only when compiling as C++ with C++ exception
support enabled (GH-1838, GH-1839)
+ Allow undefined timeout in eventloop example setTimeout() and
setInterval() bindings, minor cleanups and improvements (GH-1866,
GH-1879, GH-1884)
+ Revise Number.prototype.toFixed() 'this' binding and fractionDigits
argument validation order to match ES2015 where the 'this' binding is
validated first (GH-1887)
+ Add Makefile.jsoncbor to the distributable (GH-1885)
+ Makefile.sharedlibrary portability improvements (GH-1922, GH-1923)
+ Change spelling from ECMAScript to ECMAScript throughout the
internal source code; as far as external behavior is concerned this
only affects a few debug prints (GH-1894)
+ Fix NULL pointer dereference in error augmentation when
DUK_USE_TRACEBACKS was disabled (GH-1909)
+ Fix potential dangling pointer use in Duktape thread termination
handling; the dangling pointer could cause unsafe memory behavior
(GH-1845, GH-1868)
+ Fix performance.now() property attributes to 'wec' (earlier 'wc')
(GH-1821)
+ Fix debugger StepOver behavior when a tailcall happens in a nested
function (not the function where stepping started from) (GH-1786,
GH-1787)
+ Fix trailing single line comment handling for Function constructor;
new Function('return "foo" //') previously failed with SyntaxError
(GH-1757)
+ Fix some lexer bugs related to parsing in RegExp mode (interpret
leading '/' as part of a RegExp) or not (interpret '/' as division)
(GH-1779)
+ Fix DUK_BOOL_{MIN,MAX} defines for unsigned duk_bool_t (GH-1769)
+ Fix 'defined but not used' warning for Windows (GH-1775)
+ Fix potential uninitialized data use when Windows Date provider
FileTimeToSystemTime() or FileTimeToLocalFileTime() failed (GH-1953)
+ Fix some Clang warnings by avoiding undefined behavior by default,
define DUK_USE_ALLOW_UNDEFINED_BEHAVIOR to reduce the explicit
undefined behavior checks for better footprint/performance (GH-1777,
GH-1795, GH-1796, GH-1797, GH-1798)
+ Fix some compilation warnings triggered when DUK_NORETURN is not
defined; the internal DUK_WO_NORETURN() is used to include unreachable
dummy statements when the noreturn attribute is not available, e.g.
DUK_WO_NORETURN(return 0;); (GH-1790)
+ Fix a few casts in duk_trans_socket_windows.c to avoid errors in a
C++ build (GH-1773)
+ Fix harmless -Wcast-align warnings on armhf (GH-1793)
+ Various compiler warning fixes (GH-1788, GH-1932, GH-1924, GH-1950,
GH-1951, etc)
+ Add automatic workaround for union aliasing issues with FreeBSD +
-m32 + Clang prior to 5.0; the aliasing issues cause packed duk_tval
to work incorrectly (see
https://github.com/svaarala/duktape/blob/master/misc/clang_aliasing.c),
and the workaround is to use unpacked duk_tval prior to Clang 5.0
(GH-1764)
2.2.1 (2018-04-26)
+ Fix trailing single line comment handling for Function constructor;
new Function('return "foo" //') previously failed with SyntaxError
(GH-1757)
+ Fix DUK_BOOL_{MIN,MAX} defines for unsigned duk_bool_t (GH-1769)
+ Fix debugger StepOver behavior when a tailcall happens in a nested
function (not the function where stepping started from) (GH-1786,
GH-1787)
+ Fix potential dangling pointer use in Duktape thread termination
handling; the dangling pointer could cause unsafe memory behavior
(GH-1845, GH-1868)