commit nanopb for openSUSE:Factory
Hello community, here is the log from the commit of package nanopb for openSUSE:Factory checked in at 2020-09-30 19:55:18 Comparing /work/SRC/openSUSE:Factory/nanopb (Old) and /work/SRC/openSUSE:Factory/.nanopb.new.4249 (New) Package is "nanopb" Wed Sep 30 19:55:18 2020 rev:6 rq:838741 version:0.4.2 Changes: --- /work/SRC/openSUSE:Factory/nanopb/nanopb.changes2020-03-09 15:23:07.960191078 +0100 +++ /work/SRC/openSUSE:Factory/.nanopb.new.4249/nanopb.changes 2020-09-30 19:55:26.520841064 +0200 @@ -1,0 +2,37 @@ +Wed Sep 30 08:18:40 UTC 2020 - Dirk Mueller + +- update to 0.4.2: + * Fix buffer overflow when encoding bytes with size set to 65535 (#547, GHSA-3p39-mfxg-hrq4) + * Fix segfault with pointer fields and proto3_singular_msgs = true. (#504,#505) + * Fix Windows 10 temp file handling (#486) + * Fix macro name conflicts (ATMEGA32U4 UENUM and more) (#522) + * Fix generator error with nested messages and default values (#487) + * Fix nanopb_generator exception on enums with aliases (#535) + * Fix compile error when struct members are called X or a (#492) + * Fix sizeof(union ...) fallback not compiling with C++ (#415, #494) + * Fix "missing required field" error with submessage callback (#544) + * Fix field descriptor sizing with submsg_callback option (#545) + * Fix protoc calling on Python 2 (#503) + * Fix handling of varying NaN representations in PB_CONVERT_DOUBLE_FLOAT (#543) + * Fix clang undefined behavior sanitizer errors. + * Change generator to use Python 3 by default (#441, #509) + * Binary packages updated to use Python 3 and grpcio-tools + * Add support for infinity and nan floating-point defaults (#530, #538) + * Add generator option sort_by_tag (#542) + * Add type_override option to override type defined in .proto (#497) + * Set proto2 enum fields to first value when no default is given, even if nonzero (#532,#539) + * Include protoc-gen-nanopb in path in protoc wrapper script + * Properly pass error status from protoc wrapper when calling binary protoc + * Generator: pass --include_imports when calling protoc (#494) + * Create intermediate directories when writing files to relative path (#512) + * Add current directory to include path for protoc (#499) + * Update readme to use nanopb_generator.py directly + * Regression test for proto3 incorrectly considered empty (#504) + * CMake: change package name to Nanopb for cmake 3.17 compatibility (#506) + * CMake: remove find_package(PythonInterp) (#508) + * CMake: use split --nanopb_opt only on protoc >= 3.6 (#515) + * CMake: Relax python version spec, allowing Python3. (#534) + * Swift package manager (#549) + * Rename BUILD as BUILD.bazel (#537 + +--- Old: nanopb-0.4.1.tar.gz New: nanopb-0.4.2.tar.gz Other differences: -- ++ nanopb.spec ++ --- /var/tmp/diff_new_pack.HqM0kp/_old 2020-09-30 19:55:27.296841757 +0200 +++ /var/tmp/diff_new_pack.HqM0kp/_new 2020-09-30 19:55:27.300841761 +0200 @@ -19,7 +19,7 @@ %define sover 0 %define src_install_dir %{_prefix}/src/%{name} Name: nanopb -Version:0.4.1 +Version:0.4.2 Release:0 Summary:Protocol Buffers with small code size License:Zlib ++ nanopb-0.4.1.tar.gz -> nanopb-0.4.2.tar.gz ++ 3635 lines of diff (skipped)
commit nanopb for openSUSE:Factory
Hello community, here is the log from the commit of package nanopb for openSUSE:Factory checked in at 2020-03-09 15:23:02 Comparing /work/SRC/openSUSE:Factory/nanopb (Old) and /work/SRC/openSUSE:Factory/.nanopb.new.26092 (New) Package is "nanopb" Mon Mar 9 15:23:02 2020 rev:5 rq:782946 version:0.4.1 Changes: --- /work/SRC/openSUSE:Factory/nanopb/nanopb.changes2020-02-06 13:09:54.152390901 +0100 +++ /work/SRC/openSUSE:Factory/.nanopb.new.26092/nanopb.changes 2020-03-09 15:23:07.960191078 +0100 @@ -1,0 +2,8 @@ +Mon Mar 9 13:00:49 UTC 2020 - Michał Rostecki + +- Update to version 0.4.1: + * Fix for CVE-2020-5235 - porential exploitable out of memory +condition. + * Fixes for AVR builds and tests. + +--- Old: nanopb-0.4.0.tar.gz New: nanopb-0.4.1.tar.gz Other differences: -- ++ nanopb.spec ++ --- /var/tmp/diff_new_pack.RRobrY/_old 2020-03-09 15:23:08.524191332 +0100 +++ /var/tmp/diff_new_pack.RRobrY/_new 2020-03-09 15:23:08.528191333 +0100 @@ -19,7 +19,7 @@ %define sover 0 %define src_install_dir %{_prefix}/src/%{name} Name: nanopb -Version:0.4.0 +Version:0.4.1 Release:0 Summary:Protocol Buffers with small code size License:Zlib ++ nanopb-0.4.0.tar.gz -> nanopb-0.4.1.tar.gz ++ 4841 lines of diff (skipped)
commit nanopb for openSUSE:Factory
Hello community, here is the log from the commit of package nanopb for openSUSE:Factory checked in at 2020-02-06 13:09:43 Comparing /work/SRC/openSUSE:Factory/nanopb (Old) and /work/SRC/openSUSE:Factory/.nanopb.new.26092 (New) Package is "nanopb" Thu Feb 6 13:09:43 2020 rev:4 rq:770509 version:0.4.0 Changes: --- /work/SRC/openSUSE:Factory/nanopb/nanopb.changes2019-12-17 16:54:46.161344468 +0100 +++ /work/SRC/openSUSE:Factory/.nanopb.new.26092/nanopb.changes 2020-02-06 13:09:54.152390901 +0100 @@ -1,0 +2,16 @@ +Thu Jan 30 13:39:43 UTC 2020 - Tomáš Chvátal + +- As we download the tags directly no need for services and we + can fetch it using URL paths +- Do not build generators as those require python2 and we are + removing that from the dsitribution +- Update to 0.4.0: + * Make nanopb_generator automatically compile .proto files (#462) + * Allow installing as Python package from pip (#460) + * Use protoc from grpcio-tools Python package if available (#463) + * Change proto3 message types to be optional (#308, #452) + * Add pb_decode_ex(), pb_encode_ex() functions. + * Automatically rebuild nanopb_pb2.py + * Use plugin.proto that comes with python-protobuf (#234) + +--- Old: _service _servicedata nanopb-0.3.9.4.tar.xz New: nanopb-0.4.0.tar.gz Other differences: -- ++ nanopb.spec ++ --- /var/tmp/diff_new_pack.Z4zPvU/_old 2020-02-06 13:09:55.280391514 +0100 +++ /var/tmp/diff_new_pack.Z4zPvU/_new 2020-02-06 13:09:55.280391514 +0100 @@ -1,7 +1,7 @@ # # spec file for package nanopb # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,21 +17,17 @@ %define sover 0 -%define src_install_dir /usr/src/%{name} - +%define src_install_dir %{_prefix}/src/%{name} Name: nanopb -Version:0.3.9.4 +Version:0.4.0 Release:0 Summary:Protocol Buffers with small code size License:Zlib -Group: Development/Libraries/C and C++ -Url:https://jpa.kapsi.fi/nanopb/ -Source: %{name}-%{version}.tar.xz +URL:https://jpa.kapsi.fi/nanopb/ +Source: https://github.com/nanopb/nanopb/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: fdupes BuildRequires: protobuf-devel -BuildRequires: python-devel -BuildRequires: python-rpm-macros %description Nanopb is a C implementation of Google's Protocol Buffers data format. It is @@ -40,7 +36,6 @@ %package -n libprotobuf-nanopb%{sover} Summary:Shared library for nanopb -Group: System/Libraries %description -n libprotobuf-nanopb%{sover} Shared library for nanopb - a C implementation of Google's Protocol Buffers @@ -48,7 +43,6 @@ %package devel Summary:Development files for nanopb -Group: Development/Libraries/C and C++ Requires: libprotobuf-nanopb%{sover} = %{version} %description devel @@ -57,7 +51,6 @@ %package source Summary:Source code of nanopb -Group: Development/Sources BuildArch: noarch %description source @@ -70,18 +63,18 @@ sed -i 's|/\* #define PB_FIELD_16BIT 1 \*/|#define PB_FIELD_16BIT 1|' ./pb.h %build -%cmake -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF -%make_jobs +# nanopb_BUILD_GENERATOR - requires python2 +%cmake \ + -Dnanopb_BUILD_GENERATOR=OFF +%cmake_build %install %cmake_install -rm %{buildroot}%{python_sitelib}/nanopb_pb2.py -rm %{buildroot}%{python_sitelib}/plugin_pb2.py mkdir -p %{buildroot}%{src_install_dir} tar -xf %{SOURCE0} --strip-components=1 -C %{buildroot}%{src_install_dir} # Fix env-script-interpreter rpmlint error -find %{buildroot}%{src_install_dir} -type f -name "*.py" -exec sed -i 's|#!/usr/bin/env python|#!/usr/bin/python|' "{}" + +find %{buildroot}%{src_install_dir} -type f -name "*.py" -exec sed -i 's|#!%{_bindir}/env python|#!%{_bindir}/python|' "{}" + # Add support for tag numbers > 255 and fields larger than 255 bytes. sed -i 's|/\* #define PB_FIELD_16BIT 1 \*/|#define PB_FIELD_16BIT 1|' %{buildroot}%{src_install_dir}/pb.h
commit nanopb for openSUSE:Factory
Hello community, here is the log from the commit of package nanopb for openSUSE:Factory checked in at 2019-12-17 16:54:44 Comparing /work/SRC/openSUSE:Factory/nanopb (Old) and /work/SRC/openSUSE:Factory/.nanopb.new.4691 (New) Package is "nanopb" Tue Dec 17 16:54:44 2019 rev:3 rq:757558 version:0.3.9.4 Changes: --- /work/SRC/openSUSE:Factory/nanopb/nanopb.changes2019-01-15 09:16:40.766218529 +0100 +++ /work/SRC/openSUSE:Factory/.nanopb.new.4691/nanopb.changes 2019-12-17 16:54:46.161344468 +0100 @@ -1,0 +2,26 @@ +Tue Dec 17 13:41:21 UTC 2019 - mroste...@opensuse.org + +- Update to version 0.3.9.4: + * Publishing nanopb-0.3.9.4 + * Update changelog + * Add test for PB_ENCODE_ARRAYS_UNPACKED + * Fix "unused variable" warning when using PB_ENCODE_ARRAYS_UNPACKED + * Fix undefined behavior with bool fields (#434) + * Make fuzztest detect invalid bool values (#434) + * .gitignore: don't ignore generator-bin files (#419) + * Don't call stream callback with count=0 (#421) + * network_server example: Detect count=0 in read_callback() (#421) + * Add scons package to travis rules, for build automation + * Introduce new compile time flag: PB_ENCODE_ARRAYS_UNPACKED + * Add migration note about enum min/max + * Use min/max enum value for min/max + * Publishing nanopb-0.3.9.3 + * Fix generator error with mangle_names option (#380) + * Add testcase for #380 + * Fix incorrect PB_STATIC_ASSERT for bytes inside oneof (#363) + * Add testcase for #363 + * Generator: Allow comma separated options in plugin mode (#343) + * Fix encoding of fixed size arrays inside proto3 submessages (#376) + * Add regression test for issue #376 + +--- Old: nanopb-0.3.9.2.tar.xz New: nanopb-0.3.9.4.tar.xz Other differences: -- ++ nanopb.spec ++ --- /var/tmp/diff_new_pack.FCNOwA/_old 2019-12-17 16:54:46.785344691 +0100 +++ /var/tmp/diff_new_pack.FCNOwA/_new 2019-12-17 16:54:46.785344691 +0100 @@ -20,7 +20,7 @@ %define src_install_dir /usr/src/%{name} Name: nanopb -Version:0.3.9.2 +Version:0.3.9.4 Release:0 Summary:Protocol Buffers with small code size License:Zlib ++ _service ++ --- /var/tmp/diff_new_pack.FCNOwA/_old 2019-12-17 16:54:46.805344698 +0100 +++ /var/tmp/diff_new_pack.FCNOwA/_new 2019-12-17 16:54:46.805344698 +0100 @@ -6,7 +6,7 @@ nanopb @PARENT_TAG@ nanopb(.*) -refs/tags/nanopb-0.3.9.2 +refs/tags/nanopb-0.3.9.4 *.tar ++ _servicedata ++ --- /var/tmp/diff_new_pack.FCNOwA/_old 2019-12-17 16:54:46.821344704 +0100 +++ /var/tmp/diff_new_pack.FCNOwA/_new 2019-12-17 16:54:46.825344705 +0100 @@ -1,4 +1,4 @@ https://github.com/nanopb/nanopb - 3626b5c40e2457629ac60a563dde523be7c10bb4 \ No newline at end of file + 493adf3616bee052649c63c473f8355630c2797f \ No newline at end of file ++ nanopb-0.3.9.2.tar.xz -> nanopb-0.3.9.4.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanopb-0.3.9.2/.travis.yml new/nanopb-0.3.9.4/.travis.yml --- old/nanopb-0.3.9.2/.travis.yml 2018-11-10 12:10:04.0 +0100 +++ new/nanopb-0.3.9.4/.travis.yml 2019-10-13 14:06:05.0 +0200 @@ -27,6 +27,7 @@ - g++-4.9 - gcc-5 - g++-5 +- scons before_install: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanopb-0.3.9.2/AUTHORS.txt new/nanopb-0.3.9.4/AUTHORS.txt --- old/nanopb-0.3.9.2/AUTHORS.txt 2018-11-10 12:10:04.0 +0100 +++ new/nanopb-0.3.9.4/AUTHORS.txt 2019-10-13 14:06:05.0 +0200 @@ -50,3 +50,6 @@ Amarnath Michal Rostecki Pei Wang +Noah Pendleton <2538614+no...@users.noreply.github.com> +Pavol Rusnak + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanopb-0.3.9.2/CHANGELOG.txt new/nanopb-0.3.9.4/CHANGELOG.txt --- old/nanopb-0.3.9.2/CHANGELOG.txt2018-11-10 12:10:04.0 +0100 +++ new/nanopb-0.3.9.4/CHANGELOG.txt2019-10-13 14:06:05.0 +0200 @@ -1,3 +1,16 @@ +nanopb-0.3.9.4 (2019-10-13) + Fix undefined behavior with bool fields (#434) + Fix enum min/max defines when values are not in order (#405) + Fix network_server socket example with zero-length strings (#421) + Don't call stream read callback with count=0 (#421) + Add compile time flag PB_ENCODE_ARRAYS_UNPACKED (#427) + +nanopb-0.3.9.3 (2019-03-08) + Fix fixed size and callback repeated fields inside proto3 submessages (#376, #382, #386) + Fix incorrect PB_STATIC_ASSERT for bytes inside oneof (#363) + Fix
commit nanopb for openSUSE:Factory
Hello community, here is the log from the commit of package nanopb for openSUSE:Factory checked in at 2019-01-15 09:16:39 Comparing /work/SRC/openSUSE:Factory/nanopb (Old) and /work/SRC/openSUSE:Factory/.nanopb.new.28833 (New) Package is "nanopb" Tue Jan 15 09:16:39 2019 rev:2 rq:664676 version:0.3.9.2 Changes: --- /work/SRC/openSUSE:Factory/nanopb/nanopb.changes2018-12-13 19:48:50.968669513 +0100 +++ /work/SRC/openSUSE:Factory/.nanopb.new.28833/nanopb.changes 2019-01-15 09:16:40.766218529 +0100 @@ -1,0 +2,13 @@ +Mon Jan 7 15:47:22 UTC 2019 - Michał Rostecki + +- Enable PB_FIELD_16BIT setting to add support for tag numbers > + 255 and fields larger than 255 bytes. + +--- +Mon Jan 7 14:32:19 UTC 2019 - Michał Rostecki + +- Add nanopb-source package - some Go programs using gRPC need + protobuf definitions which are included inside the source code, + but are not included in the devel package. + +--- Other differences: -- ++ nanopb.spec ++ --- /var/tmp/diff_new_pack.HpXhV2/_old 2019-01-15 09:16:41.150218171 +0100 +++ /var/tmp/diff_new_pack.HpXhV2/_new 2019-01-15 09:16:41.154218168 +0100 @@ -1,7 +1,7 @@ # # spec file for package nanopb # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,11 +12,12 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define sover 0 +%define src_install_dir /usr/src/%{name} Name: nanopb Version:0.3.9.2 @@ -27,6 +28,7 @@ Url:https://jpa.kapsi.fi/nanopb/ Source: %{name}-%{version}.tar.xz BuildRequires: cmake +BuildRequires: fdupes BuildRequires: protobuf-devel BuildRequires: python-devel BuildRequires: python-rpm-macros @@ -53,8 +55,19 @@ Development files for nanopb - a C implementation of Google's Protocol Buffers data format. +%package source +Summary:Source code of nanopb +Group: Development/Sources +BuildArch: noarch + +%description source +Source code of nanopb - a C implementation of Google's Protocol Buffers data +format. + %prep %setup -q +# Add support for tag numbers > 255 and fields larger than 255 bytes. +sed -i 's|/\* #define PB_FIELD_16BIT 1 \*/|#define PB_FIELD_16BIT 1|' ./pb.h %build %cmake -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF @@ -65,6 +78,15 @@ rm %{buildroot}%{python_sitelib}/nanopb_pb2.py rm %{buildroot}%{python_sitelib}/plugin_pb2.py +mkdir -p %{buildroot}%{src_install_dir} +tar -xf %{SOURCE0} --strip-components=1 -C %{buildroot}%{src_install_dir} +# Fix env-script-interpreter rpmlint error +find %{buildroot}%{src_install_dir} -type f -name "*.py" -exec sed -i 's|#!/usr/bin/env python|#!/usr/bin/python|' "{}" + +# Add support for tag numbers > 255 and fields larger than 255 bytes. +sed -i 's|/\* #define PB_FIELD_16BIT 1 \*/|#define PB_FIELD_16BIT 1|' %{buildroot}%{src_install_dir}/pb.h + +%fdupes %{buildroot}%{src_install_dir} + %post -n libprotobuf-nanopb%{sover} -p /sbin/ldconfig %postun -n libprotobuf-nanopb%{sover} -p /sbin/ldconfig @@ -85,4 +107,7 @@ %{_libdir}/cmake/nanopb/nanopb-targets.cmake %{_libdir}/libprotobuf-nanopb.so +%files source +%{src_install_dir} + %changelog