Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package duktape for openSUSE:Factory checked in at 2023-04-23 22:43:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/duktape (Old) and /work/SRC/openSUSE:Factory/.duktape.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "duktape" Sun Apr 23 22:43:39 2023 rev:10 rq:1082116 version:2.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/duktape/duktape.changes 2022-12-04 14:58:04.584174184 +0100 +++ /work/SRC/openSUSE:Factory/.duktape.new.1533/duktape.changes 2023-04-23 22:44:26.377686296 +0200 @@ -1,0 +2,23 @@ +Wed Apr 12 03:45:45 UTC 2023 - Bjørn Lie <[email protected]> + +- Update to version 2.7.0: + * Fix memory unsafe behavior when valstack size limit hit in + call setup + * Fix a realloc() memory leak triggered when (1) previous + allocation exists, (2) new realloc size is 0, (3) GC is + triggered before first realloc() attempt + * Fix void pointer arithmetic in duk_alloc_pool.c, caused + problems with MSVC + * Fix broken bytecode dump on big endian architectures + * Fix DUK_USE_GET_RANDOM_DOUBLE() argument handling + * Use yaml.safe_load() instead of yaml.load() in Py2 tooling + * Dist makefile and pkg-config improvements + * Fix Makefile.jsoncbor build + * Reformat source with clang-format-12 +- Bump sover define following upstream changes. +- Rebase duktape-link-m.patch with quilt. +- Drop pc.in file, no longer needed. +- Pass the needed prefixes etc to make_build and make_install. +- Use ldconfig_scriptlets macro. + +------------------------------------------------------------------- Old: ---- duktape-2.6.0.tar.xz duktape.pc.in New: ---- duktape-2.7.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ duktape.spec ++++++ --- /var/tmp/diff_new_pack.EE4V5A/_old 2023-04-23 22:44:27.889694839 +0200 +++ /var/tmp/diff_new_pack.EE4V5A/_new 2023-04-23 22:44:27.893694862 +0200 @@ -1,7 +1,7 @@ # # spec file for package duktape # -# 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,16 +16,15 @@ # -%define sover 206 +%define sover 207 Name: duktape -Version: 2.6.0 +Version: 2.7.0 Release: 0 Summary: Embeddable Javascript engine License: MIT Group: Development/Libraries/C and C++ URL: https://duktape.org/ Source0: https://duktape.org/%{name}-%{version}.tar.xz -Source1: duktape.pc.in Patch0: duktape-link-m.patch BuildRequires: gcc BuildRequires: pkgconfig @@ -55,30 +54,15 @@ application that use %{name}. %prep -%setup -q -%patch0 -p1 - -sed -e's|@prefix@|%{_prefix}|' \ - -e's|@libdir@|%{_lib}|' \ - -e's|@PACKAGE_VERSION@|%{version}|' \ - < %{SOURCE1} > %{name}.pc.in +%autosetup -p1 %build -sed -e '/^INSTALL_PREFIX/s|[^=]*$|%{_prefix}|' \ - -e 's/\(-o.*\)/%{optflags} \1/' \ - -e '/install\:/a\\tinstall -d $(DESTDIR)$(INSTALL_PREFIX)/%{_lib}\n\tinstall -d $(DESTDIR)$(INSTALL_PREFIX)/include' \ - -e 's/\(\$.INSTALL_PREFIX.\)/$(DESTDIR)\1/' \ - -e 's/\/lib\b/\/%{_lib}/g' \ - < Makefile.sharedlibrary > Makefile -%make_build +%make_build -f Makefile.sharedlibrary INSTALL_PREFIX=%{_prefix} LIBDIR=/%{_lib} %install -%make_install - -install -Dm0644 %{name}.pc.in %{buildroot}%{_libdir}/pkgconfig/%{name}.pc +%make_install -f Makefile.sharedlibrary INSTALL_PREFIX=%{_prefix} LIBDIR=/%{_lib} -%post -n lib%{name}%{sover} -p /sbin/ldconfig -%postun -n lib%{name}%{sover} -p /sbin/ldconfig +%ldconfig_scriptlets -n lib%{name}%{sover} %files -n lib%{name}%{sover} %doc AUTHORS.rst ++++++ duktape-2.6.0.tar.xz -> duktape-2.7.0.tar.xz ++++++ ++++ 191943 lines of diff (skipped) ++++++ duktape-link-m.patch ++++++ --- /var/tmp/diff_new_pack.EE4V5A/_old 2023-04-23 22:44:28.625698998 +0200 +++ /var/tmp/diff_new_pack.EE4V5A/_new 2023-04-23 22:44:28.629699021 +0200 @@ -1,19 +1,19 @@ -Index: duktape-2.6.0/Makefile.sharedlibrary +Index: duktape-2.7.0/Makefile.sharedlibrary =================================================================== ---- duktape-2.6.0.orig/Makefile.sharedlibrary -+++ duktape-2.6.0/Makefile.sharedlibrary -@@ -63,11 +63,11 @@ all: libduktape.$(SO_REALNAME_SUFFIX) li +--- duktape-2.7.0.orig/Makefile.sharedlibrary ++++ duktape-2.7.0/Makefile.sharedlibrary +@@ -71,11 +71,11 @@ all: libduktape.$(SO_REALNAME_SUFFIX) li libduktape.$(SO_REALNAME_SUFFIX): - $(CC) -shared -fPIC -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) \ + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -fPIC -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) \ - -o $@ $(DUKTAPE_SRCDIR)/duktape.c + -o $@ $(DUKTAPE_SRCDIR)/duktape.c -lm libduktaped.$(SO_REALNAME_SUFFIX): - $(CC) -shared -fPIC -g -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktaped.$(SO_SONAME_SUFFIX) \ + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -fPIC -g -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktaped.$(SO_SONAME_SUFFIX) \ - -o $@ $(DUKTAPE_SRCDIR)/duktape.c + -o $@ $(DUKTAPE_SRCDIR)/duktape.c -lm - # Symlinks depend on platform conventions. - .PHONY: install + duktape.pc: + sed -e "s|@PREFIX@|$(INSTALL_PREFIX)|" \
