Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package drpm for openSUSE:Factory checked in at 2023-11-08 22:16:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/drpm (Old) and /work/SRC/openSUSE:Factory/.drpm.new.17445 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "drpm" Wed Nov 8 22:16:39 2023 rev:7 rq:1123933 version:0.5.2 Changes: -------- --- /work/SRC/openSUSE:Factory/drpm/drpm.changes 2022-12-05 18:00:31.020358047 +0100 +++ /work/SRC/openSUSE:Factory/.drpm.new.17445/drpm.changes 2023-11-08 22:16:48.793157047 +0100 @@ -1,0 +2,7 @@ +Tue Nov 7 11:59:23 CET 2023 - m...@suse.de + +- update to 0.5.2: + * Initialize comp_data to NULL in drpm_apply() + * Avoid long obsolete librpm API use + +------------------------------------------------------------------- Old: ---- drpm-0.5.1.tar.bz2 New: ---- drpm-0.5.2.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ drpm.spec ++++++ --- /var/tmp/diff_new_pack.AY7pNE/_old 2023-11-08 22:16:50.189208333 +0100 +++ /var/tmp/diff_new_pack.AY7pNE/_new 2023-11-08 22:16:50.193208480 +0100 @@ -1,7 +1,7 @@ # # spec file for package drpm # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # Copyright (c) 2019 Neal Gompa <ngomp...@gmail.com>. # # All modifications and additions to the file contributed by third parties @@ -36,7 +36,7 @@ %endif Name: drpm -Version: 0.5.1 +Version: 0.5.2 Release: 0 Summary: A small library for fetching information from DeltaRPM packages License: LGPL-2.1-or-later ++++++ drpm-0.5.1.tar.bz2 -> drpm-0.5.2.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/drpm-0.5.1/CMakeLists.txt new/drpm-0.5.2/CMakeLists.txt --- old/drpm-0.5.1/CMakeLists.txt 2022-03-08 14:12:56.000000000 +0100 +++ new/drpm-0.5.2/CMakeLists.txt 2023-05-15 12:38:49.000000000 +0200 @@ -4,7 +4,7 @@ set(DRPM_MAJOR_VERSION 0) set(DRPM_MINOR_VERSION 5) -set(DRPM_PATCH_VERSION 1) +set(DRPM_PATCH_VERSION 2) set(DRPM_VERSION ${DRPM_MAJOR_VERSION}.${DRPM_MINOR_VERSION}.${DRPM_PATCH_VERSION}) include(GNUInstallDirs) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/drpm-0.5.1/drpm.spec new/drpm-0.5.2/drpm.spec --- old/drpm-0.5.1/drpm.spec 2022-03-08 14:12:56.000000000 +0100 +++ new/drpm-0.5.2/drpm.spec 2023-05-15 12:38:49.000000000 +0200 @@ -1,5 +1,3 @@ -%define __cmake_in_source_build 1 - # Do not build with zstd for RHEL < 8 %if (0%{?rhel} && 0%{?rhel} < 8) || (0%{?suse_version} && 0%{?suse_version} < 1500) %bcond_with zstd @@ -8,7 +6,7 @@ %endif Name: drpm -Version: 0.5.1 +Version: 0.5.2 Release: 1%{?dist} Summary: A library for making, reading and applying deltarpm packages # the entire source code is LGPLv2+, except src/drpm_diff.c and src/drpm_search.c which are BSD @@ -51,25 +49,18 @@ The drpm-devel package provides a C interface (drpm.h) for the drpm library. %prep -%autosetup -mkdir build +%autosetup -p1 %build -pushd build -%cmake .. -DWITH_ZSTD:BOOL=%{?with_zstd:ON}%{!?with_zstd:OFF} -DHAVE_LZLIB_DEVEL:BOOL=%{?suse_version:ON}%{!?suse_version:OFF} -%make_build -make doc -popd +%cmake -DWITH_ZSTD:BOOL=%{?with_zstd:ON}%{!?with_zstd:OFF} -DHAVE_LZLIB_DEVEL:BOOL=%{?suse_version:ON}%{!?suse_version:OFF} +%cmake_build +%cmake_build --target doc %install -pushd build -%make_install -popd +%cmake_install %check -pushd build -ctest -VV -popd +%ctest %if (0%{?rhel} && 0%{?rhel} < 8) || 0%{?suse_version} %post -p /sbin/ldconfig @@ -82,12 +73,16 @@ %license COPYING LICENSE.BSD %files devel -%doc build/doc/html/ +%doc %{_vpath_builddir}/doc/html/ %{_libdir}/lib%{name}.so %{_includedir}/%{name}.h %{_libdir}/pkgconfig/%{name}.pc %changelog +* Mon May 15 2023 Jan Kolarik <jkola...@redhat.com> - 0.5.2-1 +- Avoid using obsolete RPM API +- Small memory and compatibility fixes + * Tue Mar 08 2022 Pavla Kratochvilova <pkrat...@redhat.com> - 0.5.1-1 - Fix SIGSEGV when an errors occurs in `rpm_get_file_info` (RhBug:1968594) - For rpms without any files return file count 0 (RhBug:1968594) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/drpm-0.5.1/src/drpm.c new/drpm-0.5.2/src/drpm.c --- old/drpm-0.5.1/src/drpm.c 2022-03-08 14:12:56.000000000 +0100 +++ new/drpm-0.5.2/src/drpm.c 2023-05-15 12:38:49.000000000 +0200 @@ -536,7 +536,7 @@ uint32_t ext_copies_todo; size_t ext_copies_done = 0; size_t blk_id; - unsigned char *comp_data; + unsigned char *comp_data = NULL; size_t comp_data_len; if (deltarpm_name == NULL || new_rpm_name == NULL) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/drpm-0.5.1/src/drpm_rpm.c new/drpm-0.5.2/src/drpm_rpm.c --- old/drpm-0.5.1/src/drpm_rpm.c 2022-03-08 14:12:56.000000000 +0100 +++ new/drpm-0.5.2/src/drpm_rpm.c 2023-05-15 12:38:49.000000000 +0200 @@ -156,7 +156,7 @@ rpmst->header = headerNew(); copy_td = rpmtdNew(); - hdr = headerCopyLoad(td->data); + hdr = headerImport(td->data, 0, HEADERIMPORT_COPY); hdr_iter = headerInitIterator(hdr); while (headerNext(hdr_iter, copy_td)) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/drpm-0.5.1/src/drpm_write.c new/drpm-0.5.2/src/drpm_write.c --- old/drpm-0.5.1/src/drpm_write.c 2022-03-08 14:12:56.000000000 +0100 +++ new/drpm-0.5.2/src/drpm_write.c 2023-05-15 12:38:49.000000000 +0200 @@ -23,6 +23,7 @@ #include <stdio.h> #include <stdint.h> +#include <string.h> #include <fcntl.h> #include <openssl/md5.h> #include <rpm/rpmlib.h>