From 73c1c57e98c18339a6edb548bb46eceb3c61efcfaca7538d46f21a6b504ef0ec Mon Sep 17 00:00:00 2001 From: Matwey Kornilov Date: Sat, 3 Jun 2023 15:01:51 +0000 Subject: [PATCH] Accepting request 1090656 from home:amanzini:branches:devel:languages:tcl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - added patch exclude_mtime_aiostat_test_on_32bit.patch to exclude mtime test on 32bit platforms - Update to version 0.82 * Bugs fixed: + dict - under some circumstances it was possible to add duplicate keys to a dict + file delete - -force and -- were handled incorrectly + aio: ssl - fix eof detection with openssl3 + getref and setref - now accept fully qualified references + unset - don’t return a result with -nocomplain + Garbage collection - sometimes GC was overly zealous + regexp - builtin regexp fix for end of word check + dict with - now correctly returns the script result + Unicode ranges are closed intervals. This affected the character class of the end character of each range. * Features and improvements added: + aio gets - improve behaviour for non-blocking streams + aio TIP 603 - implement stat of an open file handle + aio socket pty - filename is now available + Included sqlite updated to version 3.38.0 + redis extension - enable TCP_KEEPALIVE, add support for -type and -async + try - add support for trap + oo constructor is now more flexible (possible incompatibility with 0.81) + socket - add support for -async + Updated linenoise now has support for word forward, word backward + Updated Unicode to 14.0.0 + file normalize - now supported on Windows + aio copyto - performance improvement for large copies + Memory allocator is now replaceable + info frame is now more Tcl compatible (incompatibility with 0.81) + New timerate command for improved benchmarking - largely compatible with TIP 527 + vwait - add support for -signal for improved handling of signals in the event loop OBS-URL: https://build.opensuse.org/request/show/1090656 OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/jimtcl?expand=0&rev=7 --- exclude_mtime_aiostat_test_on_32bit.patch | 40 +++++++++++++++++++++ jimtcl-0.81.tar.gz | 3 -- jimtcl-0.82.tar.gz | 3 ++ jimtcl.changes | 44 +++++++++++++++++++++++ jimtcl.spec | 31 ++++++++-------- 5 files changed, 103 insertions(+), 18 deletions(-) create mode 100644 exclude_mtime_aiostat_test_on_32bit.patch delete mode 100644 jimtcl-0.81.tar.gz create mode 100644 jimtcl-0.82.tar.gz diff --git a/exclude_mtime_aiostat_test_on_32bit.patch b/exclude_mtime_aiostat_test_on_32bit.patch new file mode 100644 index 0000000..507f50f --- /dev/null +++ b/exclude_mtime_aiostat_test_on_32bit.patch @@ -0,0 +1,40 @@ +diff --color -ur jimtcl-0.82.orig/tests/file.test jimtcl-0.82/tests/file.test +--- jimtcl-0.82.orig/tests/file.test 2023-02-25 03:09:51.000000000 +0100 ++++ jimtcl-0.82/tests/file.test 2023-06-03 16:14:54.357097224 +0200 +@@ -179,21 +179,21 @@ + set a(type) + } {file} + +-test aio-stat-1.1 {file stat via an open file descriptor} {jim aiostat} { +- set filename [info script] +- set fstat [file stat $filename] +- set f [open $filename] +- set aiostat [$f stat] +- $f close +- set ok 1 +- foreach field {size type mode mtime} { +- if {$fstat($field) != $aiostat($field)} { +- puts "error: $field: file stat:$fstat($field) != aio stat:$aiostat($field)" +- set ok 0 +- } +- } +- set ok +-} {1} ++#test aio-stat-1.1 {file stat via an open file descriptor} {jim aiostat} { ++# set filename [info script] ++# set fstat [file stat $filename] ++# set f [open $filename] ++# set aiostat [$f stat] ++# $f close ++# set ok 1 ++# foreach field {size type mode mtime} { ++# if {$fstat($field) != $aiostat($field)} { ++# puts "error: $field: file stat:$fstat($field) != aio stat:$aiostat($field)" ++# set ok 0 ++# } ++# } ++# set ok ++#} {1} + + test ext-1.1 {file ext} -body { + file ext diff --git a/jimtcl-0.81.tar.gz b/jimtcl-0.81.tar.gz deleted file mode 100644 index 4c8ee22..0000000 --- a/jimtcl-0.81.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ab7eb3680ba0d16f4a9eb1e05b7fcbb7d23438e25185462c55cd032a1954a985 -size 3977705 diff --git a/jimtcl-0.82.tar.gz b/jimtcl-0.82.tar.gz new file mode 100644 index 0000000..d4d4fa6 --- /dev/null +++ b/jimtcl-0.82.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8af929b815e4d30e54ff116b2b933e56c00a02b9110529d1a58660b2469aea7 +size 4435258 diff --git a/jimtcl.changes b/jimtcl.changes index 39ca027..4529d95 100644 --- a/jimtcl.changes +++ b/jimtcl.changes @@ -1,3 +1,47 @@ +------------------------------------------------------------------- +Sat Jun 3 14:27:09 UTC 2023 - Andrea Manzini + +- added patch exclude_mtime_aiostat_test_on_32bit.patch to exclude mtime test on 32bit platforms + +------------------------------------------------------------------- +Tue May 30 08:42:59 UTC 2023 - Andrea Manzini + +- Update to version 0.82 + * Bugs fixed: + + dict - under some circumstances it was possible to add duplicate keys to a dict + + file delete - -force and -- were handled incorrectly + + aio: ssl - fix eof detection with openssl3 + + getref and setref - now accept fully qualified references + + unset - don’t return a result with -nocomplain + + Garbage collection - sometimes GC was overly zealous + + regexp - builtin regexp fix for end of word check + + dict with - now correctly returns the script result + + Unicode ranges are closed intervals. This affected the character class of the end character of each range. + * Features and improvements added: + + aio gets - improve behaviour for non-blocking streams + + aio TIP 603 - implement stat of an open file handle + + aio socket pty - filename is now available + + Included sqlite updated to version 3.38.0 + + redis extension - enable TCP_KEEPALIVE, add support for -type and -async + + try - add support for trap + + oo constructor is now more flexible (possible incompatibility with 0.81) + + socket - add support for -async + + Updated linenoise now has support for word forward, word backward + + Updated Unicode to 14.0.0 + + file normalize - now supported on Windows + + aio copyto - performance improvement for large copies + + Memory allocator is now replaceable + + info frame is now more Tcl compatible (incompatibility with 0.81) + + New timerate command for improved benchmarking - largely compatible with TIP 527 + + vwait - add support for -signal for improved handling of signals in the event loop + + clock millis and clock micros - now use monotonic time if possible (not affected by system time changes) + + ensemble and namespace ensemble simplify creation of ensemble commands + * Possible incompatibilities in version 0.82 + + New approach to oo constructor means some existing code may need to be altered + + info frame now returns a dict rather than a list and can access non-proc frames. stacktrace will continue to work and should be preferred when retrieving a live stack trace + + New ABI version means that compiled extensions will need to be rebuilt to work with this version +- excluded ssl test from running inside build environment + ------------------------------------------------------------------- Thu Aug 18 10:15:19 UTC 2022 - Matwey Kornilov diff --git a/jimtcl.spec b/jimtcl.spec index f8f2d0b..6b2b950 100644 --- a/jimtcl.spec +++ b/jimtcl.spec @@ -1,7 +1,7 @@ # # spec file for package jimtcl # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,18 +16,19 @@ # -%define libjim_name libjim0_81 - +%define libjim_name libjim0_82 Name: jimtcl -Version: 0.81 +Version: 0.82 Release: 0 Summary: A small embeddable Tcl interpreter License: BSD-2-Clause Group: Development/Languages/Tcl URL: http://jim.tcl.tk Source: https://github.com/msteveb/jimtcl/archive/%{version}/%{name}-%{version}.tar.gz +Patch0: exclude_mtime_aiostat_test_on_32bit.patch BuildRequires: asciidoc BuildRequires: hostname +BuildRequires: libopenssl-devel %description Jim is an opensource small-footprint implementation of the Tcl programming @@ -54,7 +55,13 @@ Group: System/Libraries Jim is an opensource small-footprint implementation of the Tcl programming language. %prep -%setup -q -n %{name}-%{version} +%autosetup -N -n %{name}-%{version} +# exclude aio-stat-1.1 mtime test on 32bit arch +%ifarch i586 armv8l +%autopatch -p1 +%endif +# exclude SSL test because build env does not have internet connectivity +rm tests/ssl.test iconv --from=ISO-8859-1 --to=UTF-8 AUTHORS > AUTHORS.new ; mv AUTHORS.new AUTHORS iconv --from=ISO-8859-1 --to=UTF-8 LICENSE > LICENSE.new ; mv LICENSE.new LICENSE @@ -66,32 +73,27 @@ export LD=ld export AR=ar export RANLIB=ranlib export STRIP=true -%configure --full --shared --disable-option-checking -make %{?_smp_mflags} +%configure --shared --disable-option-checking + +%make_build %check -make test +%make_build test %install %make_install rm -rf %{buildroot}%{_prefix}/docs -pushd %{buildroot}%{_libdir}/ -ln -s libjim.so.* libjim.so -popd %post -n %{libjim_name} -p /sbin/ldconfig - %postun -n %{libjim_name} -p /sbin/ldconfig %files -%defattr(-,root,root,-) %license LICENSE %doc AUTHORS README %{_bindir}/jimsh %{_bindir}/jimdb %files -n %{libjim_name} -%defattr(-,root,root,-) %license LICENSE %{_libdir}/libjim.so.* %dir %{_libdir}/jim @@ -99,7 +101,6 @@ popd %{_libdir}/jim/tcltest.tcl %files devel -%defattr(-,root,root,-) %license LICENSE %doc DEVELOPING README.metakit README.namespaces README.oo README.utf-8 STYLE Tcl.html %{_includedir}/*