Accepting request 489082 from Archiving

version update

OBS-URL: https://build.opensuse.org/request/show/489082
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libarchive?expand=0&rev=28
This commit is contained in:
Dominique Leuenberger 2017-04-25 06:57:55 +00:00 committed by Git OBS Bridge
commit 10d3f3e619
6 changed files with 15 additions and 100 deletions

View File

@ -1,23 +0,0 @@
--- a/libarchive/archive_write_disk_posix.c.orig 2016-12-02 13:13:57.433550535 +0000
+++ a/libarchive/archive_write_disk_posix.c 2016-12-02 13:16:36.770020356 +0000
@@ -2051,12 +2051,14 @@ create_filesystem_object(struct archive_
/* EPERM is more appropriate than error_number for our callers */
return (EPERM);
}
- r = check_symlinks_fsobj(linkname_copy, &error_number, &error_string, a->flags);
- if (r != ARCHIVE_OK) {
- archive_set_error(&a->archive, error_number, "%s", error_string.s);
- free(linkname_copy);
- /* EPERM is more appropriate than error_number for our callers */
- return (EPERM);
+ if (a->flags & ARCHIVE_EXTRACT_SECURE_SYMLINKS) {
+ r = check_symlinks_fsobj(linkname_copy, &error_number, &error_string, a->flags);
+ if (r != ARCHIVE_OK) {
+ archive_set_error(&a->archive, error_number, "%s", error_string.s);
+ free(linkname_copy);
+ /* EPERM is more appropriate than error_number for our callers */
+ return (EPERM);
+ }
}
free(linkname_copy);
r = link(linkname, a->name) ? errno : 0;

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:691c194ee132d1f0f7a42541f091db811bc2e56f7107e9121be2bc8c04f1060f
size 5458241

3
libarchive-3.3.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:29ca5bd1624ca5a007aa57e16080262ab4379dbf8797f5c52f7ea74a3b0424e7
size 6219943

View File

@ -1,64 +0,0 @@
Index: libarchive/archive_digest.c
===================================================================
--- libarchive/archive_digest.c.orig
+++ libarchive/archive_digest.c
@@ -207,6 +207,7 @@ __archive_nettle_md5final(archive_md5_ct
static int
__archive_openssl_md5init(archive_md5_ctx *ctx)
{
+ OPENSSL_config(NULL);
EVP_DigestInit(ctx, EVP_md5());
return (ARCHIVE_OK);
}
@@ -359,6 +360,7 @@ __archive_nettle_ripemd160final(archive_
static int
__archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
{
+ OPENSSL_config(NULL);
EVP_DigestInit(ctx, EVP_ripemd160());
return (ARCHIVE_OK);
}
@@ -509,6 +511,7 @@ __archive_nettle_sha1final(archive_sha1_
static int
__archive_openssl_sha1init(archive_sha1_ctx *ctx)
{
+ OPENSSL_config(NULL);
EVP_DigestInit(ctx, EVP_sha1());
return (ARCHIVE_OK);
}
@@ -733,6 +736,7 @@ __archive_nettle_sha256final(archive_sha
static int
__archive_openssl_sha256init(archive_sha256_ctx *ctx)
{
+ OPENSSL_config(NULL);
EVP_DigestInit(ctx, EVP_sha256());
return (ARCHIVE_OK);
}
@@ -928,6 +932,7 @@ __archive_nettle_sha384final(archive_sha
static int
__archive_openssl_sha384init(archive_sha384_ctx *ctx)
{
+ OPENSSL_config(NULL);
EVP_DigestInit(ctx, EVP_sha384());
return (ARCHIVE_OK);
}
@@ -1147,6 +1152,7 @@ __archive_nettle_sha512final(archive_sha
static int
__archive_openssl_sha512init(archive_sha512_ctx *ctx)
{
+ OPENSSL_config(NULL);
EVP_DigestInit(ctx, EVP_sha512());
return (ARCHIVE_OK);
}
Index: libarchive/archive_cryptor_private.h
===================================================================
--- libarchive/archive_cryptor_private.h.orig
+++ libarchive/archive_cryptor_private.h
@@ -100,6 +100,7 @@ typedef struct {
#elif defined(HAVE_LIBCRYPTO)
#include <openssl/evp.h>
+#include <openssl/conf.h>
#define AES_BLOCK_SIZE 16
#define AES_MAX_KEY_SIZE 32

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Apr 3 14:44:27 UTC 2017 - adrian@suse.de
- update to version 3.3.1
* Security & Feature release
Details are not documented from upstream yet
fix-extract-over-links.patch and libarchive-openssl.patch obsoleted
-------------------------------------------------------------------
Fri Dec 2 13:37:54 UTC 2016 - adrian@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package libarchive
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -33,7 +33,7 @@
%define libname libarchive%{somajor}
Name: libarchive
Version: 3.2.2
Version: 3.3.1
Release: 0
Summary: Creates and reads several different streaming archive formats
License: BSD-2-Clause
@ -41,8 +41,6 @@ Group: Productivity/Archiving/Compression
Url: http://www.libarchive.org/
Source0: http://www.libarchive.org/downloads/libarchive-%{version}.tar.gz
Source1: baselibs.conf
# PATCH-FIX-OPENSUSE the problem is solved upstream different, but git master is too different atm.
Patch0: fix-extract-over-links.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libacl-devel
BuildRequires: libbz2-devel
@ -57,7 +55,6 @@ BuildRequires: libxml2-devel
BuildRequires: pkg-config
BuildRequires: xz-devel
BuildRequires: zlib-devel
Patch1: libarchive-openssl.patch
%description
Libarchive is a programming library that can create and read several
@ -164,10 +161,6 @@ static library for libarchive
%prep
%setup -q
%patch0 -p1
%if %{with openssl}
%patch1 -p0
%endif
%build
%if !0%{?skip_autoreconf}
@ -187,7 +180,8 @@ sed -i -e "/HAVE_LZMA_STREAM_ENCODER_MT/d" config.h
make %{?_smp_mflags}
%check
make check
# test suite is a bit racy unfortunatly, so give it three attempts
make check || make check || make check
%install
%makeinstall