Accepting request 201402 from GNOME:Factory
Add patch to fix untaring of tar files + some other minor modifications. Wanted for 13.1 (forwarded request 201399 from dimstar) OBS-URL: https://build.opensuse.org/request/show/201402 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file-roller?expand=0&rev=101
This commit is contained in:
commit
0bbcde1403
43
file-roller-fix-tar-extraction.patch
Normal file
43
file-roller-fix-tar-extraction.patch
Normal file
@ -0,0 +1,43 @@
|
||||
From d05bdc3b60d928f1f40338208419f0ffa41195f6 Mon Sep 17 00:00:00 2001
|
||||
From: Paolo Bacchilega <paobac@src.gnome.org>
|
||||
Date: Sun, 29 Sep 2013 16:30:29 +0000
|
||||
Subject: libarchive: fixed failure when extracting some tar archives
|
||||
|
||||
do not try to restore the creation time;
|
||||
do not set the G_FILE_ATTRIBUTE_TIME_CREATED_USEC attribute
|
||||
|
||||
[bug #709035]
|
||||
---
|
||||
diff --git a/src/fr-archive-libarchive.c b/src/fr-archive-libarchive.c
|
||||
index 42673df..44aaad2 100644
|
||||
--- a/src/fr-archive-libarchive.c
|
||||
+++ b/src/fr-archive-libarchive.c
|
||||
@@ -428,15 +428,8 @@ _g_file_info_create_from_entry (struct archive_entry *entry,
|
||||
|
||||
/* times */
|
||||
|
||||
- if (archive_entry_ctime_is_set (entry)) {
|
||||
- g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_CREATED, archive_entry_ctime (entry));
|
||||
- g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_TIME_CREATED_USEC, archive_entry_ctime_nsec (entry));
|
||||
- }
|
||||
-
|
||||
- if (archive_entry_mtime_is_set (entry)) {
|
||||
+ if (archive_entry_mtime_is_set (entry))
|
||||
g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED, archive_entry_mtime (entry));
|
||||
- g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC, archive_entry_mtime_nsec (entry));
|
||||
- }
|
||||
|
||||
/* username */
|
||||
|
||||
@@ -529,7 +522,8 @@ restore_modification_time (GHashTable *created_folders,
|
||||
|
||||
info = g_file_info_new ();
|
||||
g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED, g_file_info_get_attribute_uint64 (original_info, G_FILE_ATTRIBUTE_TIME_MODIFIED));
|
||||
- g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC, g_file_info_get_attribute_uint32 (original_info, G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC));
|
||||
+ if (g_file_info_get_attribute_status (original_info, G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC) == G_FILE_ATTRIBUTE_STATUS_SET)
|
||||
+ g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC, g_file_info_get_attribute_uint32 (original_info, G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC));
|
||||
result = _g_file_set_attributes_from_info (file, info, cancellable, error);
|
||||
|
||||
g_object_unref (info);
|
||||
--
|
||||
cgit v0.9.2
|
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 29 13:06:25 UTC 2013 - zaitor@opensuse.org
|
||||
|
||||
- Add file-roller-fix-tar-extraction.patch, fixes untaring that
|
||||
failed on some tar files (bgo#697756, bgo#709035).
|
||||
- Remove V=1 from make as it only fills up the obs buildlog to no
|
||||
use, debugging is done locally anyway.
|
||||
- Add lzip and lzop to suggested packages, as these are now
|
||||
available in openSUSE.
|
||||
- Stop passing --disable-scrollkeeper to configure, neither
|
||||
recognized nor needed anymore.
|
||||
- Remove %if conditional for obsolete versions of openSUSE, those
|
||||
are out of support a long time ago.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 23 20:12:10 UTC 2013 - dimstar@opensuse.org
|
||||
|
||||
|
@ -28,6 +28,8 @@ Source: http://download.gnome.org/sources/file-roller/3.10/%{name}-%{ver
|
||||
Patch0: file-roller-3.4-change-archiver-priority.patch
|
||||
# PATCH-FEATURE-OPENSUSE file-roller-pkg-match.patch bnc#696530 dimstar@opensuse.org -- List package match names for automatic installation using PK.
|
||||
Patch1: file-roller-pkg-match.patch
|
||||
# PATCH-FIX-UPSTREAM file-roller-fix-tar-extraction.patch bgo#697756, bgo#709035 zaitor@opensuse.org -- Fix untaring of that failed for tar files. Taken from upstream git.
|
||||
Patch2: file-roller-fix-tar-extraction.patch
|
||||
# Needed for directory ownership
|
||||
BuildRequires: dbus-1
|
||||
BuildRequires: fdupes
|
||||
@ -59,6 +61,8 @@ Recommends: xz
|
||||
Recommends: zip
|
||||
# Additional formats that are supported
|
||||
Suggests: lha
|
||||
Suggests: lzip
|
||||
Suggests: lzop
|
||||
Suggests: rzip
|
||||
Suggests: zoo
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@ -67,8 +71,6 @@ DocDir: %{_defaultdocdir}
|
||||
# we could package.
|
||||
#Suggests: arj
|
||||
#Suggests: lrzip
|
||||
#Suggests: lzip
|
||||
#Suggests: lzop
|
||||
#Suggests: ncompress
|
||||
#Suggests: rar
|
||||
#Suggests: theunarchiver
|
||||
@ -100,19 +102,16 @@ This package contains a plugin to integrate File Roller into Nautilus.
|
||||
%setup -q
|
||||
%patch0
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
translation-update-upstream
|
||||
|
||||
%build
|
||||
%configure\
|
||||
--disable-scrollkeeper \
|
||||
--enable-magic
|
||||
make %{?_smp_mflags} V=1
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%if 0%{?suse_version} <= 1120
|
||||
rm %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
|
||||
%endif
|
||||
%suse_update_desktop_file %{name}
|
||||
%find_lang %{name} %{?no_lang_C}
|
||||
rm %{buildroot}%{_libdir}/*/*/*.*a
|
||||
|
Loading…
Reference in New Issue
Block a user