!11 Upgrade to 1.4
From: @weijin-deng Reviewed-by: @zhang__3125 Signed-off-by: @zhang__3125
This commit is contained in:
commit
e5121eb3d3
@ -1,51 +0,0 @@
|
|||||||
From 3365b4bd58dd7f13e786caf3c7234cf8116263d9 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>
|
|
||||||
Date: Wed, 25 Jul 2018 12:45:24 +0200
|
|
||||||
Subject: [PATCH] gcab: Fix regression from commit a15d91073fd5d6be25
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
Apparently, rewinding should reset the CDATA state.
|
|
||||||
|
|
||||||
See also:
|
|
||||||
https://bugzilla.redhat.com/show_bug.cgi?id=1608301
|
|
||||||
|
|
||||||
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
||||||
---
|
|
||||||
libgcab/gcab-folder.c | 5 ++++-
|
|
||||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/libgcab/gcab-folder.c b/libgcab/gcab-folder.c
|
|
||||||
index 1b09fa3..c0d6600 100644
|
|
||||||
--- a/libgcab/gcab-folder.c
|
|
||||||
+++ b/libgcab/gcab-folder.c
|
|
||||||
@@ -423,6 +423,7 @@ gcab_folder_extract (GCabFolder *self,
|
|
||||||
g_autoptr(GSList) files = NULL;
|
|
||||||
g_autoptr(cdata_t) cdata = g_new0 (cdata_t, 1);
|
|
||||||
guint32 nubytes = 0;
|
|
||||||
+ guint8 *reserved;
|
|
||||||
|
|
||||||
/* never loaded from a stream */
|
|
||||||
g_assert (self->cfolder != NULL);
|
|
||||||
@@ -433,7 +434,7 @@ gcab_folder_extract (GCabFolder *self,
|
|
||||||
files = g_slist_sort (g_slist_copy (self->files), (GCompareFunc)sort_by_offset);
|
|
||||||
|
|
||||||
/* this is allocated for every block, but currently unused */
|
|
||||||
- cdata->reserved = g_malloc (res_data);
|
|
||||||
+ cdata->reserved = reserved = g_malloc (res_data);
|
|
||||||
|
|
||||||
for (f = files; f != NULL; f = f->next) {
|
|
||||||
GCabFile *file = f->data;
|
|
||||||
@@ -454,6 +455,8 @@ gcab_folder_extract (GCabFolder *self,
|
|
||||||
if (!g_seekable_seek (G_SEEKABLE (data), self->cfolder->offsetdata,
|
|
||||||
G_SEEK_SET, cancellable, error))
|
|
||||||
return FALSE;
|
|
||||||
+ bzero(cdata, sizeof(cdata_t));
|
|
||||||
+ cdata->reserved = reserved;
|
|
||||||
nubytes = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
--
|
|
||||||
2.18.0.321.gffc6fa0e39
|
|
||||||
|
|
||||||
BIN
gcab-1.1.tar.xz
BIN
gcab-1.1.tar.xz
Binary file not shown.
BIN
gcab-1.4.tar.xz
Normal file
BIN
gcab-1.4.tar.xz
Normal file
Binary file not shown.
21
gcab.spec
21
gcab.spec
@ -1,19 +1,17 @@
|
|||||||
Name: gcab
|
Name: gcab
|
||||||
Version: 1.1
|
Version: 1.4
|
||||||
Release: 5
|
Release: 1
|
||||||
Summary: A GObject library to create cabinet files
|
Summary: A GObject library to create cabinet files
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://ftp.gnome.org/pub/GNOME/sources/gcab
|
URL: http://ftp.gnome.org/pub/GNOME/sources/gcab
|
||||||
Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{version}/%{name}-%{version}.tar.xz
|
Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{version}/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
Patch1: 0001-gcab-Fix-regression-from-commit-a15d91073fd5d6be25.patch
|
|
||||||
|
|
||||||
BuildRequires: meson zlib-devel gobject-introspection-devel glib2-devel
|
BuildRequires: meson zlib-devel gobject-introspection-devel glib2-devel
|
||||||
BuildRequires: gettext gtk-doc vala
|
BuildRequires: gettext gtk-doc vala
|
||||||
BuildRequires: git
|
BuildRequires: git
|
||||||
|
|
||||||
Obsoletes: libgcab1 < %{version}-%{release}
|
Obsoletes: gcab < %{version}-%{release}
|
||||||
Provides: libgcab1 = %{version}-%{release}
|
Provides: gcab = %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Gcab is a gobject library to create cabinet files.
|
Gcab is a gobject library to create cabinet files.
|
||||||
@ -23,8 +21,8 @@ Summary: Development files for %{name}
|
|||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: glib2-devel pkgconfig
|
Requires: glib2-devel pkgconfig
|
||||||
|
|
||||||
Obsoletes: libgcab1-devel
|
Obsoletes: gcab-devel < %{version}-%{release}
|
||||||
Provides: libgcab1-devel
|
Provides: gcab-devel
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains the development files for %{name}.
|
This package contains the development files for %{name}.
|
||||||
@ -32,7 +30,7 @@ This package contains the development files for %{name}.
|
|||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%meson
|
%meson
|
||||||
@ -67,6 +65,11 @@ This package contains the development files for %{name}.
|
|||||||
%{_mandir}/man1/gcab.1*
|
%{_mandir}/man1/gcab.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 24 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 1.4-1
|
||||||
|
- Upgrade to 1.4
|
||||||
|
- Update Version, Release, Obsoletes, Provides, stage %prep
|
||||||
|
- Delete patches
|
||||||
|
|
||||||
* Tue May 18 2021 lin.zhang <lin.zhang@turbolinux.com.cn> - 1.1-5
|
* Tue May 18 2021 lin.zhang <lin.zhang@turbolinux.com.cn> - 1.1-5
|
||||||
- add BuildRequires git
|
- add BuildRequires git
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user