Change-Id: Icbcb8df32bb23513b85ebab264cc0d9b21fcef26
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/19053
Reviewed-by: Tapas Kundu <tkundu@vmware.com>
Tested-by: Tapas Kundu <tkundu@vmware.com>
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Creates a common metadata repository |
| 2 | 2 |
Name: createrepo_c |
| 3 | 3 |
Version: 0.20.1 |
| 4 |
-Release: 1%{?dist}
|
|
| 4 |
+Release: 2%{?dist}
|
|
| 5 | 5 |
License: GPLv2+ |
| 6 | 6 |
Group: System Environment/Base |
| 7 | 7 |
Vendor: VMware, Inc. |
| ... | ... |
@@ -86,6 +86,8 @@ rm -rf %{buildroot}
|
| 86 | 86 |
%{_libdir}/pkgconfig/%{name}.pc
|
| 87 | 87 |
|
| 88 | 88 |
%changelog |
| 89 |
+* Tue Jan 03 2023 Shreenidhi Shedi <sshedi@vmware.com> 0.20.1-2 |
|
| 90 |
+- Bump version as a part of rpm upgrade |
|
| 89 | 91 |
* Wed Sep 28 2022 Shreenidhi Shedi <sshedi@vmware.com> 0.20.1-1 |
| 90 | 92 |
- Upgrade to v0.20.1 |
| 91 | 93 |
* Sat Jul 30 2022 Shreenidhi Shedi <sshedi@vmware.com> 0.16.0-7 |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Name: drpm |
| 2 | 2 |
Summary: A library for making, reading and applying deltarpm packages |
| 3 | 3 |
Version: 0.5.1 |
| 4 |
-Release: 3%{?dist}
|
|
| 4 |
+Release: 4%{?dist}
|
|
| 5 | 5 |
License: LGPLv2+ and BSD |
| 6 | 6 |
URL: https://github.com/rpm-software-management/%{name}
|
| 7 | 7 |
Vendor: VMware, Inc. |
| ... | ... |
@@ -67,6 +67,8 @@ cd %{__cmake_builddir}
|
| 67 | 67 |
%{_libdir}/pkgconfig/%{name}.pc
|
| 68 | 68 |
|
| 69 | 69 |
%changelog |
| 70 |
+* Tue Jan 03 2023 Shreenidhi Shedi <sshedi@vmware.com> 0.5.1-4 |
|
| 71 |
+- Bump version as a part of rpm upgrade |
|
| 70 | 72 |
* Thu Jul 07 2022 Shreenidhi Shedi <sshedi@vmware.com> 0.5.1-3 |
| 71 | 73 |
- Bump version as a part of rpm upgrade |
| 72 | 74 |
* Mon Jun 20 2022 Shreenidhi Shedi <sshedi@vmware.com> 0.5.1-2 |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Module manipulating metadata files |
| 2 | 2 |
Name: libmodulemd |
| 3 | 3 |
Version: 2.14.0 |
| 4 |
-Release: 2%{?dist}
|
|
| 4 |
+Release: 3%{?dist}
|
|
| 5 | 5 |
License: MIT |
| 6 | 6 |
URL: https://github.com/fedora-modularity/libmodulemd |
| 7 | 7 |
Group: Applications/System |
| ... | ... |
@@ -77,6 +77,8 @@ rm -rf %{buildroot}/*
|
| 77 | 77 |
%{_includedir}/modulemd-2.0/*.h
|
| 78 | 78 |
|
| 79 | 79 |
%changelog |
| 80 |
+* Tue Jan 03 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.14.0-3 |
|
| 81 |
+- Bump version as a part of rpm upgrade |
|
| 80 | 82 |
* Tue Dec 06 2022 Prashant S Chauhan <psinghchauha@vmware.com> 2.14.0-2 |
| 81 | 83 |
- Update release to compile with python 3.11 |
| 82 | 84 |
* Fri Oct 07 2022 Shreenidhi Shedi <sshedi@vmware.com> 2.14.0-1 |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: A free package dependency solver |
| 2 | 2 |
Name: libsolv |
| 3 | 3 |
Version: 0.7.22 |
| 4 |
-Release: 2%{?dist}
|
|
| 4 |
+Release: 3%{?dist}
|
|
| 5 | 5 |
License: BSD |
| 6 | 6 |
URL: https://github.com/openSUSE/libsolv |
| 7 | 7 |
Group: Development/Tools |
| ... | ... |
@@ -76,6 +76,8 @@ make %{?_smp_mflags} test
|
| 76 | 76 |
%{_mandir}/man3/*
|
| 77 | 77 |
|
| 78 | 78 |
%changelog |
| 79 |
+* Tue Jan 03 2023 Shreenidhi Shedi <sshedi@vmware.com> 0.7.22-3 |
|
| 80 |
+- Bump version as a part of rpm upgrade |
|
| 79 | 81 |
* Tue Oct 04 2022 Shreenidhi Shedi <sshedi@vmware.com> 0.7.22-2 |
| 80 | 82 |
- Bump version as a part of zstd upgrade |
| 81 | 83 |
* Wed Sep 28 2022 Shreenidhi Shedi <sshedi@vmware.com> 0.7.22-1 |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Open Source Security Compliance Solution |
| 2 | 2 |
Name: openscap |
| 3 | 3 |
Version: 1.3.6 |
| 4 |
-Release: 9%{?dist}
|
|
| 4 |
+Release: 10%{?dist}
|
|
| 5 | 5 |
License: GPL2+ |
| 6 | 6 |
URL: https://www.open-scap.org |
| 7 | 7 |
Group: System Environment/Libraries |
| ... | ... |
@@ -11,6 +11,8 @@ Distribution: Photon |
| 11 | 11 |
Source0: https://github.com/OpenSCAP/openscap/releases/download/%{version}/openscap-%{version}.tar.gz
|
| 12 | 12 |
%define sha512 %{name}=5e4d6c4addc15b2a0245b5caef80fda3020f1cac83ed4aa436ef3f1703d1d761060c931c2536fa68de7ad5bab002b79c8b2d1e5f7695d46249f4562f5a1569a0
|
| 13 | 13 |
|
| 14 |
+Patch0: use-correct-includes.patch |
|
| 15 |
+ |
|
| 14 | 16 |
BuildRequires: xmlsec1-devel |
| 15 | 17 |
BuildRequires: swig |
| 16 | 18 |
BuildRequires: libxml2-devel |
| ... | ... |
@@ -120,6 +122,8 @@ Python bindings. |
| 120 | 120 |
%{_libdir}/python%{python3_version}/*
|
| 121 | 121 |
|
| 122 | 122 |
%changelog |
| 123 |
+* Tue Jan 03 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.3.6-10 |
|
| 124 |
+- Bump version as a part of rpm upgrade |
|
| 123 | 125 |
* Tue Dec 06 2022 Ashwin Dayanand Kamat <kashwindayan@vmware.com> 1.3.6-9 |
| 124 | 126 |
- Bump version as a part of xmlsec1 upgrade |
| 125 | 127 |
* Mon Oct 24 2022 Prashant S Chauhan <psinghchauha@vmware.com> 1.3.6-8 |
| 126 | 128 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,58 @@ |
| 0 |
+From 8dec1bb5e9546e75ae6e7b7cf94cf00197ce3e5d Mon Sep 17 00:00:00 2001 |
|
| 1 |
+From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= <jcerny@redhat.com> |
|
| 2 |
+Date: Tue, 24 May 2022 12:15:44 +0200 |
|
| 3 |
+Subject: [PATCH] Use correct includes |
|
| 4 |
+ |
|
| 5 |
+rpmvercmp is defined in rpm/rpmver.h |
|
| 6 |
+risdigit is defined in rpm/rpmstring.h |
|
| 7 |
+ |
|
| 8 |
+Resolves: rhbz#2080210 |
|
| 9 |
+--- |
|
| 10 |
+ cmake/FindRPM.cmake | 3 +++ |
|
| 11 |
+ config.h.in | 1 + |
|
| 12 |
+ src/OVAL/results/oval_cmp_evr_string.c | 5 +++++ |
|
| 13 |
+ 3 files changed, 9 insertions(+) |
|
| 14 |
+ |
|
| 15 |
+diff --git a/cmake/FindRPM.cmake b/cmake/FindRPM.cmake |
|
| 16 |
+index a666942eae..369d153fcc 100644 |
|
| 17 |
+--- a/cmake/FindRPM.cmake |
|
| 18 |
+@@ -30,6 +30,9 @@ set(RPM_VERSION ${RPM_PKGCONF_VERSION})
|
|
| 19 |
+ if(RPM_VERSION) |
|
| 20 |
+ string(COMPARE GREATER "4.6" ${RPM_VERSION} RPM46_FOUND)
|
|
| 21 |
+ string(COMPARE GREATER "4.7" ${RPM_VERSION} RPM47_FOUND)
|
|
| 22 |
++ if(NOT (RPM_VERSION VERSION_LESS "4.18")) |
|
| 23 |
++ set(RPM418_FOUND 1) |
|
| 24 |
++ endif() |
|
| 25 |
+ endif() |
|
| 26 |
+ |
|
| 27 |
+ # Set the include dir variables and the libraries and let libfind_process do the rest. |
|
| 28 |
+diff --git a/config.h.in b/config.h.in |
|
| 29 |
+index 1b72855822..bb1428afc8 100644 |
|
| 30 |
+--- a/config.h.in |
|
| 31 |
+@@ -44,6 +44,7 @@ |
|
| 32 |
+ #cmakedefine HAVE_RPMVERCMP |
|
| 33 |
+ #cmakedefine RPM46_FOUND |
|
| 34 |
+ #cmakedefine RPM47_FOUND |
|
| 35 |
++#cmakedefine RPM418_FOUND |
|
| 36 |
+ |
|
| 37 |
+ #cmakedefine BZIP2_FOUND |
|
| 38 |
+ |
|
| 39 |
+diff --git a/src/OVAL/results/oval_cmp_evr_string.c b/src/OVAL/results/oval_cmp_evr_string.c |
|
| 40 |
+index 3bfc8ce5f9..3ba0fa0cbd 100644 |
|
| 41 |
+--- a/src/OVAL/results/oval_cmp_evr_string.c |
|
| 42 |
+@@ -37,7 +37,12 @@ |
|
| 43 |
+ #include "common/_error.h" |
|
| 44 |
+ |
|
| 45 |
+ #ifdef HAVE_RPMVERCMP |
|
| 46 |
++#ifdef RPM418_FOUND |
|
| 47 |
++#include <rpm/rpmver.h> |
|
| 48 |
++#include <rpm/rpmstring.h> |
|
| 49 |
++#else |
|
| 50 |
+ #include <rpm/rpmlib.h> |
|
| 51 |
++#endif |
|
| 52 |
+ #else |
|
| 53 |
+ #ifdef OS_WINDOWS |
|
| 54 |
+ #include <malloc.h> |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Commit RPMs to an OSTree repository |
| 2 | 2 |
Name: rpm-ostree |
| 3 | 3 |
Version: 2022.13 |
| 4 |
-Release: 3%{?dist}
|
|
| 4 |
+Release: 4%{?dist}
|
|
| 5 | 5 |
License: LGPLv2+ |
| 6 | 6 |
Group: Applications/System |
| 7 | 7 |
URL: https://github.com/projectatomic/rpm-ostree |
| ... | ... |
@@ -162,6 +162,8 @@ rm -rf %{buildroot}/*
|
| 162 | 162 |
%{_bindir}/rpm-ostree-server/mkostreerepo
|
| 163 | 163 |
|
| 164 | 164 |
%changelog |
| 165 |
+* Tue Jan 03 2023 Shreenidhi Shedi <sshedi@vmware.com> 2022.13-4 |
|
| 166 |
+- Bump version as a part of rpm upgrade |
|
| 165 | 167 |
* Thu Nov 03 2022 Ankit Jain <ankitja@vmware.com> 2022.13-3 |
| 166 | 168 |
- Fix build issue after glib update |
| 167 | 169 |
* Fri Oct 07 2022 Shreenidhi Shedi <sshedi@vmware.com> 2022.13-2 |
| ... | ... |
@@ -2,16 +2,16 @@ |
| 2 | 2 |
|
| 3 | 3 |
Summary: Package manager |
| 4 | 4 |
Name: rpm |
| 5 |
-Version: 4.17.1 |
|
| 6 |
-Release: 5%{?dist}
|
|
| 5 |
+Version: 4.18.0 |
|
| 6 |
+Release: 1%{?dist}
|
|
| 7 | 7 |
License: GPLv2+ |
| 8 | 8 |
URL: http://rpm.org |
| 9 | 9 |
Group: Applications/System |
| 10 | 10 |
Vendor: VMware, Inc. |
| 11 | 11 |
Distribution: Photon |
| 12 | 12 |
|
| 13 |
-Source0: https://github.com/rpm-software-management/rpm/archive/%{name}-%{version}.tar.bz2
|
|
| 14 |
-%define sha512 %{name}=d0429510140f25a25b6c9441abe2027d27c485bbd4969752f69e1c843435c9508b9f85e5bb68085dd64b7da533801aa5c04d8c9d962e08d2ddd3199d0265cc85
|
|
| 13 |
+Source0: https://github.com/rpm-software-management/rpm/archive/%{name}-%{version}.tar.bz2
|
|
| 14 |
+%define sha512 %{name}=c218b811c0c2db368a2919f60742904a4a5abf09dc20804d649eb42f1853d1c21d121086d6014cd210b2040643c37b5d86b53052958cf702ae2e54fe65f1c0ec
|
|
| 15 | 15 |
|
| 16 | 16 |
Source1: macros |
| 17 | 17 |
Source2: macros.php |
| ... | ... |
@@ -89,6 +89,7 @@ Conflicts: libsolv < 0.7.19 |
| 89 | 89 |
Shared libraries librpm and librpmio |
| 90 | 90 |
|
| 91 | 91 |
%package build |
| 92 |
+Summary: Binaries, scripts and libraries needed to build rpms. |
|
| 92 | 93 |
Requires: perl |
| 93 | 94 |
Requires: lua |
| 94 | 95 |
Requires: %{name}-devel = %{version}-%{release}
|
| ... | ... |
@@ -98,7 +99,6 @@ Requires: systemd-rpm-macros |
| 98 | 98 |
Requires: python3-macros |
| 99 | 99 |
Requires: dwz |
| 100 | 100 |
Requires: debugedit |
| 101 |
-Summary: Binaries, scripts and libraries needed to build rpms. |
|
| 102 | 101 |
|
| 103 | 102 |
%description build |
| 104 | 103 |
Binaries, libraries and scripts to build rpms. |
| ... | ... |
@@ -157,7 +157,7 @@ sh autogen.sh --noconfigure |
| 157 | 157 |
--with-lua \ |
| 158 | 158 |
--enable-nls |
| 159 | 159 |
|
| 160 |
-%make_build %{?_smp_mflags}
|
|
| 160 |
+%make_build |
|
| 161 | 161 |
|
| 162 | 162 |
gcc -Wall -o lock %{SOURCE11}
|
| 163 | 163 |
chmod 700 lock |
| ... | ... |
@@ -166,12 +166,6 @@ pushd python |
| 166 | 166 |
%py3_build |
| 167 | 167 |
popd |
| 168 | 168 |
|
| 169 |
-%check |
|
| 170 |
-%if 0%{?with_check}
|
|
| 171 |
-make check TESTSUITEFLAGS=%{?_smp_mflags} || (cat tests/rpmtests.log; exit 1)
|
|
| 172 |
-make clean %{?_smp_mflags}
|
|
| 173 |
-%endif |
|
| 174 |
- |
|
| 175 | 169 |
%install |
| 176 | 170 |
%make_install %{?_smp_mflags}
|
| 177 | 171 |
find %{buildroot} -name '*.la' -delete
|
| ... | ... |
@@ -191,8 +185,8 @@ install -vm755 %{SOURCE6} %{buildroot}%{_libdir}/rpm
|
| 191 | 191 |
install -vm755 %{SOURCE7} %{buildroot}%{_libdir}/rpm
|
| 192 | 192 |
|
| 193 | 193 |
mkdir -p %{buildroot}%{_unitdir}
|
| 194 |
-install -vm644 %{SOURCE8} %{buildroot}/%{_unitdir}
|
|
| 195 |
-install -vm644 %{SOURCE9} %{buildroot}/%{_unitdir}
|
|
| 194 |
+install -vm644 %{SOURCE8} %{buildroot}%{_unitdir}
|
|
| 195 |
+install -vm644 %{SOURCE9} %{buildroot}%{_unitdir}
|
|
| 196 | 196 |
|
| 197 | 197 |
mkdir -p %{buildroot}%{_sysconfdir}/tdnf/minversions.d
|
| 198 | 198 |
install -vm644 %{SOURCE10} %{buildroot}%{_sysconfdir}/tdnf/minversions.d
|
| ... | ... |
@@ -202,6 +196,12 @@ pushd python |
| 202 | 202 |
%py3_install |
| 203 | 203 |
popd |
| 204 | 204 |
|
| 205 |
+%check |
|
| 206 |
+%if 0%{?with_check}
|
|
| 207 |
+make check TESTSUITEFLAGS=%{?_smp_mflags} || (cat tests/rpmtests.log; exit 1)
|
|
| 208 |
+make clean %{?_smp_mflags}
|
|
| 209 |
+%endif |
|
| 210 |
+ |
|
| 205 | 211 |
%post libs -p /sbin/ldconfig |
| 206 | 212 |
%postun libs -p /sbin/ldconfig |
| 207 | 213 |
|
| ... | ... |
@@ -291,9 +291,11 @@ rm -rf %{buildroot}
|
| 291 | 291 |
%config(noreplace) %{_sysconfdir}/tdnf/minversions.d/%{name}.conf
|
| 292 | 292 |
|
| 293 | 293 |
%files build |
| 294 |
+%defattr(-,root,root) |
|
| 294 | 295 |
%{_bindir}/rpmbuild
|
| 295 | 296 |
%{_bindir}/rpmsign
|
| 296 | 297 |
%{_bindir}/rpmspec
|
| 298 |
+%{_bindir}/rpmlua
|
|
| 297 | 299 |
%{_libdir}/librpmbuild.so
|
| 298 | 300 |
%{_libdir}/librpmbuild.so.*
|
| 299 | 301 |
%{rpmhome}/macros.d/*
|
| ... | ... |
@@ -316,12 +318,14 @@ rm -rf %{buildroot}
|
| 316 | 316 |
%{rpmhome}/*.prov
|
| 317 | 317 |
%{rpmhome}/rpmdeps
|
| 318 | 318 |
%{rpmhome}/find-debuginfo.sh
|
| 319 |
- |
|
| 319 |
+%{rpmhome}/rpm_macros_provides.sh
|
|
| 320 |
+%{rpmhome}/rpmuncompress
|
|
| 320 | 321 |
%{_mandir}/man1/gendiff.1*
|
| 321 | 322 |
%{_mandir}/man8/rpmbuild.8*
|
| 322 | 323 |
%{_mandir}/man8/rpmdeps.8*
|
| 323 | 324 |
%{_mandir}/man8/rpmspec.8*
|
| 324 | 325 |
%{_mandir}/man8/rpmsign.8.gz
|
| 326 |
+%{_mandir}/man8/rpmlua.8.gz
|
|
| 325 | 327 |
|
| 326 | 328 |
%files devel |
| 327 | 329 |
%defattr(-,root,root) |
| ... | ... |
@@ -340,10 +344,13 @@ rm -rf %{buildroot}
|
| 340 | 340 |
%{python3_sitelib}/*
|
| 341 | 341 |
|
| 342 | 342 |
%files plugin-systemd-inhibit |
| 343 |
+%defattr(-,root,root) |
|
| 343 | 344 |
%{_libdir}/rpm-plugins/systemd_inhibit.so
|
| 344 | 345 |
%{_mandir}/man8/rpm-plugin-systemd-inhibit.8*
|
| 345 | 346 |
|
| 346 | 347 |
%changelog |
| 348 |
+* Tue Jan 03 2023 Shreenidhi Shedi <sshedi@vmware.com> 4.18.0-1 |
|
| 349 |
+- Upgrade to v4.18.0 |
|
| 347 | 350 |
* Mon Oct 10 2022 Prashant S Chauhan <psinghchauha@vmware.com> 4.17.1-5 |
| 348 | 351 |
- Bump up to compile with python 3.11 |
| 349 | 352 |
* Tue Oct 04 2022 Shreenidhi Shedi <sshedi@vmware.com> 4.17.1-4 |
| ... | ... |
@@ -1,4 +1,4 @@ |
| 1 |
-From 1f42872d9902c93d66f0494f6ab3a07b0864cc64 Mon Sep 17 00:00:00 2001 |
|
| 1 |
+From cdabb35460f45aa657707d3a8f4fec9a798c42dd Mon Sep 17 00:00:00 2001 |
|
| 2 | 2 |
From: Shreenidhi Shedi <sshedi@vmware.com> |
| 3 | 3 |
Date: Mon, 13 Dec 2021 16:41:52 +0530 |
| 4 | 4 |
Subject: [PATCH] lib/rpmdb.c: use a fallback method for renaming directories |
| ... | ... |
@@ -34,12 +34,46 @@ https://github.com/torvalds/linux/blob/master/Documentation/filesystems/overlayf |
| 34 | 34 |
|
| 35 | 35 |
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com> |
| 36 | 36 |
--- |
| 37 |
- lib/rpmdb.c | 304 ++++++++++++++++++++++++++++++++++++++++++++++++---- |
|
| 38 |
- lib/rpmdb.h | 23 ++++ |
|
| 37 |
+ include/rpm/rpmdb.h | 23 ++++ |
|
| 38 |
+ lib/rpmdb.c | 304 +++++++++++++++++++++++++++++++++++++++++--- |
|
| 39 | 39 |
2 files changed, 306 insertions(+), 21 deletions(-) |
| 40 | 40 |
|
| 41 |
+diff --git a/include/rpm/rpmdb.h b/include/rpm/rpmdb.h |
|
| 42 |
+index afd0b85cc..55416e99d 100644 |
|
| 43 |
+--- a/include/rpm/rpmdb.h |
|
| 44 |
+@@ -251,6 +251,29 @@ int rpmdbStat(const char *prefix, struct stat *statbuf); |
|
| 45 |
+ */ |
|
| 46 |
+ int rpmdbFStat(rpmdb db, struct stat *statbuf); |
|
| 47 |
+ |
|
| 48 |
++/** \ingroup rpmdb |
|
| 49 |
++ * Recursively remove a directory |
|
| 50 |
++ * @param directory path |
|
| 51 |
++ * @return 0 on success, -1 on error |
|
| 52 |
++ */ |
|
| 53 |
++int removedir(const char *path); |
|
| 54 |
++ |
|
| 55 |
++/** \ingroup rpmdb |
|
| 56 |
++ * Copy file from source to destination |
|
| 57 |
++ * @param src source file name |
|
| 58 |
++ * @param dst destination file name |
|
| 59 |
++ * @return 0 on success, -1 on error |
|
| 60 |
++ */ |
|
| 61 |
++int copy_file(const char *src, const char *dst); |
|
| 62 |
++ |
|
| 63 |
++/** \ingroup rpmdb |
|
| 64 |
++ * Rename/Move directory from source to destination |
|
| 65 |
++ * @param src source directory path |
|
| 66 |
++ * @param dst destination directory path |
|
| 67 |
++ * @return 0 on success, -1 on error |
|
| 68 |
++ */ |
|
| 69 |
++int rename_dir(const char *src, const char *dst); |
|
| 70 |
++ |
|
| 71 |
+ #ifdef __cplusplus |
|
| 72 |
+ } |
|
| 73 |
+ #endif |
|
| 41 | 74 |
diff --git a/lib/rpmdb.c b/lib/rpmdb.c |
| 42 |
-index 2fa1f00fa..60867119b 100644 |
|
| 75 |
+index b3c5da62d..b9831db60 100644 |
|
| 43 | 76 |
--- a/lib/rpmdb.c |
| 44 | 77 |
+++ b/lib/rpmdb.c |
| 45 | 78 |
@@ -9,6 +9,15 @@ |
| ... | ... |
@@ -58,7 +92,7 @@ index 2fa1f00fa..60867119b 100644 |
| 58 | 58 |
|
| 59 | 59 |
#ifndef DYING /* XXX already in "system.h" */ |
| 60 | 60 |
#include <fnmatch.h> |
| 61 |
-@@ -53,6 +62,247 @@ |
|
| 61 |
+@@ -52,6 +61,247 @@ |
|
| 62 | 62 |
|
| 63 | 63 |
static rpmdb rpmdbUnlink(rpmdb db); |
| 64 | 64 |
|
| ... | ... |
@@ -306,7 +340,7 @@ index 2fa1f00fa..60867119b 100644 |
| 306 | 306 |
static int buildIndexes(rpmdb db) |
| 307 | 307 |
{
|
| 308 | 308 |
int rc = 0; |
| 309 |
-@@ -492,7 +742,7 @@ static int openDatabase(const char * prefix, |
|
| 309 |
+@@ -456,7 +706,7 @@ static int openDatabase(const char * prefix, |
|
| 310 | 310 |
|
| 311 | 311 |
if (dbp) |
| 312 | 312 |
*dbp = NULL; |
| ... | ... |
@@ -315,7 +349,7 @@ index 2fa1f00fa..60867119b 100644 |
| 315 | 315 |
return 1; |
| 316 | 316 |
|
| 317 | 317 |
db = newRpmdb(prefix, dbpath, mode, perms, flags); |
| 318 |
-@@ -570,7 +820,7 @@ int rpmdbVerify(const char * prefix) |
|
| 318 |
+@@ -526,7 +776,7 @@ int rpmdbVerify(const char * prefix) |
|
| 319 | 319 |
|
| 320 | 320 |
if (db != NULL) {
|
| 321 | 321 |
int xx; |
| ... | ... |
@@ -324,7 +358,7 @@ index 2fa1f00fa..60867119b 100644 |
| 324 | 324 |
if (db->db_pkgs) |
| 325 | 325 |
rc += dbiVerify(db->db_pkgs, 0); |
| 326 | 326 |
rc += dbiForeach(db->db_indexes, db->db_ndbi, dbiVerify, 0); |
| 327 |
-@@ -583,7 +833,7 @@ int rpmdbVerify(const char * prefix) |
|
| 327 |
+@@ -539,7 +789,7 @@ int rpmdbVerify(const char * prefix) |
|
| 328 | 328 |
} |
| 329 | 329 |
|
| 330 | 330 |
Header rpmdbGetHeaderAt(rpmdb db, unsigned int offset) |
| ... | ... |
@@ -333,7 +367,7 @@ index 2fa1f00fa..60867119b 100644 |
| 333 | 333 |
rpmdbMatchIterator mi = rpmdbInitIterator(db, RPMDBI_PACKAGES, |
| 334 | 334 |
&offset, sizeof(offset)); |
| 335 | 335 |
Header h = headerLink(rpmdbNextIterator(mi)); |
| 336 |
-@@ -755,7 +1005,7 @@ static rpmRC dbiFindMatches(rpmdb db, dbiIndex dbi, |
|
| 336 |
+@@ -711,7 +961,7 @@ static rpmRC dbiFindMatches(rpmdb db, dbiIndex dbi, |
|
| 337 | 337 |
/* No matches on the name, anything else wont match either */ |
| 338 | 338 |
if (rc != RPMRC_OK) |
| 339 | 339 |
goto exit; |
| ... | ... |
@@ -342,7 +376,7 @@ index 2fa1f00fa..60867119b 100644 |
| 342 | 342 |
/* If we got matches on name and nothing else was specified, we're done */ |
| 343 | 343 |
if (epoch < 0 && version == NULL && release == NULL && arch == NULL) |
| 344 | 344 |
goto exit; |
| 345 |
-@@ -1300,7 +1550,7 @@ int rpmdbSetIteratorRE(rpmdbMatchIterator mi, rpmTagVal tag, |
|
| 345 |
+@@ -1246,7 +1496,7 @@ int rpmdbSetIteratorRE(rpmdbMatchIterator mi, rpmTagVal tag, |
|
| 346 | 346 |
mi->mi_re = xrealloc(mi->mi_re, (mi->mi_nre + 1) * sizeof(*mi->mi_re)); |
| 347 | 347 |
mire = mi->mi_re + mi->mi_nre; |
| 348 | 348 |
mi->mi_nre++; |
| ... | ... |
@@ -351,7 +385,7 @@ index 2fa1f00fa..60867119b 100644 |
| 351 | 351 |
mire->tag = tag; |
| 352 | 352 |
mire->mode = mode; |
| 353 | 353 |
mire->pattern = allpat; |
| 354 |
-@@ -1752,7 +2002,7 @@ static rpmdbMatchIterator indexIterInit(rpmdb db, rpmDbiTagVal rpmtag, |
|
| 354 |
+@@ -1694,7 +1944,7 @@ static rpmdbMatchIterator indexIterInit(rpmdb db, rpmDbiTagVal rpmtag, |
|
| 355 | 355 |
} |
| 356 | 356 |
} |
| 357 | 357 |
} |
| ... | ... |
@@ -360,7 +394,7 @@ index 2fa1f00fa..60867119b 100644 |
| 360 | 360 |
return mi; |
| 361 | 361 |
} |
| 362 | 362 |
|
| 363 |
-@@ -1811,9 +2061,9 @@ rpmdbMatchIterator rpmdbInitPrefixIterator(rpmdb db, rpmDbiTagVal rpmtag, |
|
| 363 |
+@@ -1749,9 +1999,9 @@ rpmdbMatchIterator rpmdbInitPrefixIterator(rpmdb db, rpmDbiTagVal rpmtag, |
|
| 364 | 364 |
* Convert current tag data to db key |
| 365 | 365 |
* @param tagdata Tag data container |
| 366 | 366 |
* @param[out] keylen Length of key |
| ... | ... |
@@ -372,7 +406,7 @@ index 2fa1f00fa..60867119b 100644 |
| 372 | 372 |
{
|
| 373 | 373 |
const void * data = NULL; |
| 374 | 374 |
unsigned int size = 0; |
| 375 |
-@@ -1961,7 +2211,7 @@ int rpmdbIndexIteratorNextTd(rpmdbIndexIterator ii, rpmtd keytd) |
|
| 375 |
+@@ -1893,7 +2143,7 @@ int rpmdbIndexIteratorNextTd(rpmdbIndexIterator ii, rpmtd keytd) |
|
| 376 | 376 |
break; |
| 377 | 377 |
} |
| 378 | 378 |
} |
| ... | ... |
@@ -381,7 +415,7 @@ index 2fa1f00fa..60867119b 100644 |
| 381 | 381 |
return rc; |
| 382 | 382 |
} |
| 383 | 383 |
|
| 384 |
-@@ -2039,11 +2289,11 @@ static void logAddRemove(const char *dbiname, int removing, rpmtd tagdata) |
|
| 384 |
+@@ -1960,11 +2210,11 @@ static void logAddRemove(const char *dbiname, int removing, rpmtd tagdata) |
|
| 385 | 385 |
rpm_count_t c = rpmtdCount(tagdata); |
| 386 | 386 |
if (c == 1 && rpmtdType(tagdata) == RPM_STRING_TYPE) {
|
| 387 | 387 |
rpmlog(RPMLOG_DEBUG, "%s \"%s\" %s %s index.\n", |
| ... | ... |
@@ -395,7 +429,7 @@ index 2fa1f00fa..60867119b 100644 |
| 395 | 395 |
removing ? "from" : "to", dbiname); |
| 396 | 396 |
} |
| 397 | 397 |
} |
| 398 |
-@@ -2316,7 +2566,7 @@ int rpmdbAdd(rpmdb db, Header h) |
|
| 398 |
+@@ -2237,7 +2487,7 @@ int rpmdbAdd(rpmdb db, Header h) |
|
| 399 | 399 |
ret = pkgdbOpen(db, 0, &dbi); |
| 400 | 400 |
if (ret) |
| 401 | 401 |
goto exit; |
| ... | ... |
@@ -404,7 +438,7 @@ index 2fa1f00fa..60867119b 100644 |
| 404 | 404 |
rpmsqBlock(SIG_BLOCK); |
| 405 | 405 |
dbCtrl(db, DB_CTRL_LOCK_RW); |
| 406 | 406 |
|
| 407 |
-@@ -2326,7 +2576,7 @@ int rpmdbAdd(rpmdb db, Header h) |
|
| 407 |
+@@ -2247,7 +2497,7 @@ int rpmdbAdd(rpmdb db, Header h) |
|
| 408 | 408 |
dbiCursorFree(dbi, dbc); |
| 409 | 409 |
|
| 410 | 410 |
/* Add associated data to secondary indexes */ |
| ... | ... |
@@ -413,7 +447,7 @@ index 2fa1f00fa..60867119b 100644 |
| 413 | 413 |
for (int dbix = 0; dbix < db->db_ndbi; dbix++) {
|
| 414 | 414 |
rpmDbiTag rpmtag = db->db_tags[dbix]; |
| 415 | 415 |
|
| 416 |
-@@ -2372,7 +2622,7 @@ static int rpmdbRemoveFiles(char * pattern) |
|
| 416 |
+@@ -2293,7 +2543,7 @@ static int rpmdbRemoveFiles(char * pattern) |
|
| 417 | 417 |
|
| 418 | 418 |
static int rpmdbRemoveDatabase(const char *dbpath) |
| 419 | 419 |
{
|
| ... | ... |
@@ -422,7 +456,7 @@ index 2fa1f00fa..60867119b 100644 |
| 422 | 422 |
char *pattern; |
| 423 | 423 |
|
| 424 | 424 |
pattern = rpmGetPath(dbpath, "/*", NULL); |
| 425 |
-@@ -2381,11 +2631,23 @@ static int rpmdbRemoveDatabase(const char *dbpath) |
|
| 425 |
+@@ -2302,11 +2552,23 @@ static int rpmdbRemoveDatabase(const char *dbpath) |
|
| 426 | 426 |
pattern = rpmGetPath(dbpath, "/.??*", NULL); |
| 427 | 427 |
rc += rpmdbRemoveFiles(pattern); |
| 428 | 428 |
free(pattern); |
| ... | ... |
@@ -447,7 +481,7 @@ index 2fa1f00fa..60867119b 100644 |
| 447 | 447 |
static int rpmdbMoveDatabase(const char * prefix, const char * srcdbpath, |
| 448 | 448 |
const char * dbpath, const char * tmppath) |
| 449 | 449 |
{
|
| 450 |
-@@ -2398,14 +2660,14 @@ static int rpmdbMoveDatabase(const char * prefix, const char * srcdbpath, |
|
| 450 |
+@@ -2319,14 +2581,14 @@ static int rpmdbMoveDatabase(const char * prefix, const char * srcdbpath, |
|
| 451 | 451 |
char * oldkeys = rpmGetPath(old, "/", "pubkeys", NULL); |
| 452 | 452 |
char * destkeys = rpmGetPath(dest, "/", "pubkeys", NULL); |
| 453 | 453 |
|
| ... | ... |
@@ -465,7 +499,7 @@ index 2fa1f00fa..60867119b 100644 |
| 465 | 465 |
if (xx) {
|
| 466 | 466 |
rpmlog(RPMLOG_ERR, _("could also not restore old database from %s\n"),
|
| 467 | 467 |
old); |
| 468 |
-@@ -2416,7 +2678,7 @@ static int rpmdbMoveDatabase(const char * prefix, const char * srcdbpath, |
|
| 468 |
+@@ -2337,7 +2599,7 @@ static int rpmdbMoveDatabase(const char * prefix, const char * srcdbpath, |
|
| 469 | 469 |
} |
| 470 | 470 |
|
| 471 | 471 |
if (access(oldkeys, F_OK ) != -1) {
|
| ... | ... |
@@ -474,7 +508,7 @@ index 2fa1f00fa..60867119b 100644 |
| 474 | 474 |
if (xx) {
|
| 475 | 475 |
rpmlog(RPMLOG_ERR, _("Could not get public keys from %s\n"), oldkeys);
|
| 476 | 476 |
goto exit; |
| 477 |
-@@ -2447,7 +2709,7 @@ static int rpmdbSetPermissions(char * src, char * dest) |
|
| 477 |
+@@ -2368,7 +2630,7 @@ static int rpmdbSetPermissions(char * src, char * dest) |
|
| 478 | 478 |
struct stat st; |
| 479 | 479 |
int xx, rc = -1; |
| 480 | 480 |
char * filepath; |
| ... | ... |
@@ -483,7 +517,7 @@ index 2fa1f00fa..60867119b 100644 |
| 483 | 483 |
if (stat(dest, &st) < 0) |
| 484 | 484 |
goto exit; |
| 485 | 485 |
if (stat(src, &st) < 0) |
| 486 |
-@@ -2580,7 +2842,7 @@ int rpmdbRebuild(const char * prefix, rpmts ts, |
|
| 486 |
+@@ -2501,7 +2763,7 @@ int rpmdbRebuild(const char * prefix, rpmts ts, |
|
| 487 | 487 |
rpmdbClose(newdb); |
| 488 | 488 |
|
| 489 | 489 |
if (failed) {
|
| ... | ... |
@@ -492,40 +526,6 @@ index 2fa1f00fa..60867119b 100644 |
| 492 | 492 |
_("failed to rebuild database: original database "
|
| 493 | 493 |
"remains in place\n")); |
| 494 | 494 |
|
| 495 |
-diff --git a/lib/rpmdb.h b/lib/rpmdb.h |
|
| 496 |
-index c8f838cac..bd91060ac 100644 |
|
| 497 |
-+++ b/lib/rpmdb.h |
|
| 498 |
-@@ -251,6 +251,29 @@ int rpmdbStat(const char *prefix, struct stat *statbuf); |
|
| 499 |
- */ |
|
| 500 |
- int rpmdbFStat(rpmdb db, struct stat *statbuf); |
|
| 501 |
- |
|
| 502 |
-+/** \ingroup rpmdb |
|
| 503 |
-+ * Recursively remove a directory |
|
| 504 |
-+ * @param directory path |
|
| 505 |
-+ * @return 0 on success, -1 on error |
|
| 506 |
-+ */ |
|
| 507 |
-+int removedir(const char *path); |
|
| 508 |
-+ |
|
| 509 |
-+/** \ingroup rpmdb |
|
| 510 |
-+ * Copy file from source to destination |
|
| 511 |
-+ * @param src source file name |
|
| 512 |
-+ * @param dst destination file name |
|
| 513 |
-+ * @return 0 on success, -1 on error |
|
| 514 |
-+ */ |
|
| 515 |
-+int copy_file(const char *src, const char *dst); |
|
| 516 |
-+ |
|
| 517 |
-+/** \ingroup rpmdb |
|
| 518 |
-+ * Rename/Move directory from source to destination |
|
| 519 |
-+ * @param src source directory path |
|
| 520 |
-+ * @param dst destination directory path |
|
| 521 |
-+ * @return 0 on success, -1 on error |
|
| 522 |
-+ */ |
|
| 523 |
-+int rename_dir(const char *src, const char *dst); |
|
| 524 |
-+ |
|
| 525 |
- #ifdef __cplusplus |
|
| 526 |
- } |
|
| 527 |
- #endif |
|
| 528 | 495 |
-- |
| 529 |
-2.25.1 |
|
| 496 |
+2.39.0 |
|
| 530 | 497 |
|
| ... | ... |
@@ -8,7 +8,7 @@ |
| 8 | 8 |
|
| 9 | 9 |
Name: systemtap |
| 10 | 10 |
Version: 4.8 |
| 11 |
-Release: 3%{?dist}
|
|
| 11 |
+Release: 4%{?dist}
|
|
| 12 | 12 |
Summary: Programmable system-wide instrumentation system |
| 13 | 13 |
Group: Development/System |
| 14 | 14 |
Vendor: VMware, Inc. |
| ... | ... |
@@ -390,6 +390,8 @@ fi |
| 390 | 390 |
%{_libexecdir}/systemtap/python/stap-resolve-module-function.py
|
| 391 | 391 |
|
| 392 | 392 |
%changelog |
| 393 |
+* Tue Jan 03 2023 Shreenidhi Shedi <sshedi@vmware.com> 4.8-4 |
|
| 394 |
+- Bump version as a part of rpm upgrade |
|
| 393 | 395 |
* Thu Dec 08 2022 Dweep Advani <dadvani@vmware.com> 4.8-3 |
| 394 | 396 |
- Rebuild for perl version upgrade to 5.36.0 |
| 395 | 397 |
* Tue Dec 06 2022 Prashant S Chauhan <psinghchauha@vmware.com> 4.8-2 |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: dnf/yum equivalent using C libs |
| 2 | 2 |
Name: tdnf |
| 3 | 3 |
Version: 3.4.4 |
| 4 |
-Release: 1%{?dist}
|
|
| 4 |
+Release: 2%{?dist}
|
|
| 5 | 5 |
Vendor: VMware, Inc. |
| 6 | 6 |
Distribution: Photon |
| 7 | 7 |
License: LGPLv2.1,GPLv2 |
| ... | ... |
@@ -258,6 +258,8 @@ systemctl try-restart %{name}-cache-updateinfo.timer >/dev/null 2>&1 || :
|
| 258 | 258 |
%{_unitdir}/%{name}-automatic-notifyonly.service
|
| 259 | 259 |
|
| 260 | 260 |
%changelog |
| 261 |
+* Tue Jan 03 2023 Shreenidhi Shedi <sshedi@vmware.com> 3.4.4-2 |
|
| 262 |
+- Bump version as a part of rpm upgrade |
|
| 261 | 263 |
* Fri Dec 09 2022 Oliver Kurth <okurth@vmware.com> 3.4.4-1 |
| 262 | 264 |
- update to 3.4.4 |
| 263 | 265 |
* Fri Dec 02 2022 Prashant S Chauhan <psinghchauha@vmware.com> 3.4.3-2 |