From 8b12abfe595b629a6148068e157a4d59eb0bfa89 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 10 2022 07:17:15 +0000 Subject: import librepo-1.14.2-1.el8 --- diff --git a/.gitignore b/.gitignore index d5eca14..e33fbd3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/librepo-1.14.0.tar.gz +SOURCES/librepo-1.14.2.tar.gz diff --git a/.librepo.metadata b/.librepo.metadata index fcd9ed5..10c6055 100644 --- a/.librepo.metadata +++ b/.librepo.metadata @@ -1 +1 @@ -b09cf9ac3751e3c513e1c30a527d1a5e460853b7 SOURCES/librepo-1.14.0.tar.gz +c9f39d7497d310ae220df2dfbd8e95f347e2bc8c SOURCES/librepo-1.14.2.tar.gz diff --git a/SOURCES/0001-Recover-from-fsync-fail-on-read-only-filesystem-RhBu.patch b/SOURCES/0001-Recover-from-fsync-fail-on-read-only-filesystem-RhBu.patch deleted file mode 100644 index 637f081..0000000 --- a/SOURCES/0001-Recover-from-fsync-fail-on-read-only-filesystem-RhBu.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 33be80700bc594f34818ce697493c17e70430390 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= -Date: Mon, 17 May 2021 08:50:25 +0200 -Subject: [PATCH] Recover from fsync fail on read-only filesystem - (RhBug:1956361) - -When `fsync` fails due to the file not supporting synchronization just log -the problem instead of failing the whole dnf run. This happens for -example with filesystems mounted read-only in which case there is no -point to `fsync` anyway. - -Currently we also ignore return values from `FSETXATTR` which also fails -on read-only filesystem (so no checksum cache is set). This is fine however -since the checksum is recomputed when needed, dnf is just a bit slower. - -https://bugzilla.redhat.com/show_bug.cgi?id=1956361 ---- - librepo/checksum.c | 10 +++++++--- - 1 file changed, 7 insertions(+), 3 deletions(-) - -diff --git a/librepo/checksum.c b/librepo/checksum.c -index db37040..6bba53c 100644 ---- a/librepo/checksum.c -+++ b/librepo/checksum.c -@@ -266,9 +266,13 @@ lr_checksum_fd_compare(LrChecksumType type, - *matches = (strcmp(expected, checksum)) ? FALSE : TRUE; - - if (fsync(fd) != 0) { -- g_set_error(err, LR_CHECKSUM_ERROR, LRE_FILE, -- "fsync failed: %s", strerror(errno)); -- return FALSE; -+ if (errno == EROFS || errno == EINVAL) { -+ g_debug("fsync failed: %s", strerror(errno)); -+ } else { -+ g_set_error(err, LR_CHECKSUM_ERROR, LRE_FILE, -+ "fsync failed: %s", strerror(errno)); -+ return FALSE; -+ } - } - - if (caching && *matches && timestamp != -1) { --- -2.31.1 - diff --git a/SPECS/librepo.spec b/SPECS/librepo.spec index 08cc06b..e2c0caf 100644 --- a/SPECS/librepo.spec +++ b/SPECS/librepo.spec @@ -11,16 +11,14 @@ %global dnf_conflict 2.8.8 Name: librepo -Version: 1.14.0 -Release: 2%{?dist} +Version: 1.14.2 +Release: 1%{?dist} Summary: Repodata downloading library License: LGPLv2+ URL: https://github.com/rpm-software-management/librepo Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz -Patch1: 0001-Recover-from-fsync-fail-on-read-only-filesystem-RhBu.patch - BuildRequires: cmake BuildRequires: gcc BuildRequires: check-devel @@ -53,7 +51,6 @@ Summary: Python 3 bindings for the librepo library %{?python_provide:%python_provide python3-%{name}} BuildRequires: python3-devel BuildRequires: python3-gpg -BuildRequires: python3-flask BuildRequires: python3-pyxattr BuildRequires: python3-requests BuildRequires: python3-sphinx @@ -99,6 +96,12 @@ Python 3 bindings for the librepo library. %{python3_sitearch}/%{name}/ %changelog +* Tue Nov 09 2021 Pavla Kratochvilova - 1.14.2-1 +- Update to 1.14.2 +- Reduce time to load metadata +- Fix resource leaks and memory leaks +- Remove build dependency on python3-flask + * Fri Jun 25 2021 Marek Blaha - 1.14.0-2 - Recover from fsync fail on read-only filesystem (RhBug:1956361)