Commit Graph

39 Commits

Author SHA1 Message Date
Robert Marko
af419864e3 libarchive: pass CMAKE_INSTALL_LIBDIR
libarchive changed the pkgconfig install logic in 3.8.1, so that it now
installs the pkgconfig file in ${CMAKE_INSTALL_LIBDIR}/pkgconfig instead
of the previous lib/pkgconfig.

While this is a bug[1] in libarchive as this was unintended change, until
that is fixed upstream lets pass -DCMAKE_INSTALL_LIBDIR=lib to restore
previous behaviour in order for InstallDev step to install the .pc file so
other packages can find libarchive and link against it.

[1] https://github.com/libarchive/libarchive/issues/2667

Fixes: d77931df5d ("libarchive: bump to 3.8.1")
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-06-10 21:41:35 +02:00
John Audia
d77931df5d libarchive: bump to 3.8.1
This is a feaure and bugfix release.

New features:
bsdtar: support --mtime and --clamp-mtime (#2601)
lib: mbedtls 3.x compatibility (#2602)
7-zip reader: improve self-extracting archive detection (#2088)
xar: xmllite support for the XAR reader and writer (#2388)
zip writer: added XZ, LZMA, ZSTD and BZIP2 support (#2137, #2284, #2391)
zip writer: added LZMA + RISCV BCJ filter (#2403)

Notable security fixes:
rar: do not skip past EOF while reading (#2584)
rar: fix double free with over 4 billion nodes (#2598)
rar: fix heap-buffer-overflow (#2599)
warc: prevent signed integer overflow (#2568)
tar: fix overflow in build_ustar_entry (#2588)

Notable bugfixes:
ibarchive: fix FILE_skip regression (#2642)
compress: Prevent call stack overflow (#2649)
iso9660: always check archive_string_ensure return value (#2651)
tar: Support negative time values with pax (#2634)
tar: Reset accumulated header state after reading macOS metadata blob (#2636)
tar: Keep block alignment after pax error (#2637)
tar: Handle extra bytes after sparse entries (#2643)
windows: check archive_wstring_ensure return value (#2652)
bsdtar: don't hardlink negative inode files together (#2587)
gz: allow setting the original filename for gzip compressed files (#2544)
lib: improve lseek handling (#2564)
lib: support @-prefixed Unix epoch timestamps as date strings (#2606)
rar: support large headers on 32 bit systems (#2596)
tar reader: Improve LFS support on 32 bit systems (#2582)

Full changelog: https://github.com/libarchive/libarchive/compare/v3.7.9...v3.8.1

Build system: x86/64
Build-tested: x86/64
Run-tested: x86/64

Signed-off-by: John Audia <therealgraysky@proton.me>
2025-06-07 11:57:04 +02:00
Petr Štetiar
4803944c5a libarchive: bump to 3.7.9 fixing CVE-2025-25724, CVE-2025-1632, CVE-2024-57970
Libarchive 3.7.9 is a bugfix release, fixing a regression in libarchive
3.7.8 regarding GNU sparse entries was fixed.

Libarchive 3.7.8 is a bugfix and security release:

  Security fixes:

    * tar reader: Handle truncation in the middle of a GNU long linkname (CVE-2024-57970)
    * unzip: fix null pointer dereference (CVE-2025-1632)
    * tar reader: fix unchecked return value in list_item_verbose() (CVE-2025-25724)

  Important bugfixes:

    * 7zip reader: add SPARC and POWERPC filter support for non-LZMA compressors
    * tar reader: Ignore ustar size when pax size is present
    * tar writer: Fix bug when -s/a/b/ used more than once with b flag
    * cpio: Fix a Y2038 bug on Windows
    * libarchive: Handle ARCHIVE_FILTER_LZOP in archive_read_append_filter
    * libarchive: Adding missing seeker function to archive_read_open_FILE()

Full Changelog: https://github.com/libarchive/libarchive/compare/v3.7.7...v3.7.8

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2025-04-14 10:41:40 +02:00
Matthias Franck
39b1179bd6 libarchive: bump to 3.7.7 fixing a lot of security issues
libarchive fixed a lot of security issues in the last few releases, listing only
notable changes,

libarchive 3.7.5:

   * rar4: protect copy_from_lzss_window_to_unp()  CVE-2024-20696
   * rar4: fix CVE-2024-26256

libarchive 3.7.6:

   * this release fixes a tar regression introduced in libarchive 3.7.5

libarchive 3.7.7:

   * gzip: prevent a hang when processing a malformed gzip inside a gzip (OSS-Fuzz)
   * tar: don't crash on truncated tar archives (OSS-Fuzz)
   * tar: fix two leaks in tar header parsing

Link: https://github.com/libarchive/libarchive/releases

Signed-off-by: Matthias Franck <matthias.franck@softathome.com>
2025-04-13 16:43:29 +08:00
Matthias FRANCK
9cd39fbf89 libarchive: disable linking with pcre2
Looks like libarchive v3.7.3 adds support for pcre2 (d1231a7ea7).

Because of this, the following build error is observed (in the case pcre2 is compiled before libarchive):
Package libarchive is missing dependencies for the following libraries:
libpcre2-8.so.0
libpcre2-posix.so.3

So let's disable linking with pcre2, just like linking with pcre was disabled before.

Signed-off-by: Matthias FRANCK <matthias.franck@softathome.com>
2024-09-17 05:18:11 -07:00
krant
c87b846cac libarchive: update to 3.7.4
Signed-off-by: krant <aleksey.vasilenko@gmail.com>
2024-06-01 17:28:51 -07:00
krant
8d4b72c53b libarchive: update to 3.7.3
Signed-off-by: krant <aleksey.vasilenko@gmail.com>
2024-04-10 16:13:35 -07:00
krant
935e6e0160 libarchive: update to 3.7.2
- Don't set CMake options matching the defaults

Signed-off-by: krant <aleksey.vasilenko@gmail.com>
2024-02-07 13:52:21 -08:00
Michal Vasilek
256f8f76a6 libarchive: add missing CONFLICT
Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
2022-12-23 10:25:32 -08:00
Michal Vasilek
85aed680be libarchive: update to 3.6.2
* fixes CVE-2022-36227
* drop upstreamed patch
* removed deprecated AUTORELEASE

Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
2022-12-23 10:25:32 -08:00
Hauke Mehrtens
cfb4767098 libarchive: Backport build fix for glibc 2.36
This backports a build fix for libarchive when compiling against
glibc 2.36.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-11-06 12:54:03 -08:00
Rosen Penev
0a92b8c1ab libarchive: update to 3.6.1
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-11-04 12:56:54 -07:00
Petr Štetiar
797945dfaa libarchive: fix ext2fs build race error condition
libarchive looks for ext2fs headers during configure, and if it finds
them it will expect to find them during compile, or on the rare occasion
when they aren't it will fail:

 libarchive/archive_entry.c:59:55: fatal error: ext2fs/ext2_fs.h: No such file or directory

As we just need headers for some type constants, let's re-use headers
from tools/e2fsprogs package which are always available.

Reported-by: Adam Dov <adov@maxlinear.com>
Suggested-by: Paul Eggleton <paul.eggleton@linux.intel.com>
References: https://git.yoctoproject.org/poky/commit/?id=f0b9a7cf9f80be1917e45266fa201f464a28c1e5
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-07-05 23:00:30 -07:00
Josef Schlehofer
eb8e8ea4db libarchive: add conflict to bsdtar/bsdtar-noopenssl
Fixes:
Packages 'bsdtar' and 'bsdtar-noopenssl' do not conflict while providing same file: /usr/bin/bsdtar

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-03-16 19:53:14 -07:00
Rosen Penev
537f743c49 libarchive: update to 3.5.2
Switch to AUTORELEASE for simplicity.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-09-27 11:07:15 -07:00
Rosen Penev
2e654b19f3 treewide: back to cmake.mk
Ninja was merged to base and therefore we can now use normal cmake.mk

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-06-12 21:05:01 -07:00
Rosen Penev
a31b732007 treewide: build CMake projects with Ninja
faster to compile.

A small selection of packages was tested going from:

Executed in  696.30 secs   fish           external
   usr time   82.98 mins  395.00 micros   82.98 mins
   sys time    9.02 mins    0.00 micros    9.02 mins

to:

Executed in  592.20 secs   fish           external
   usr time   84.84 mins  361.00 micros   84.84 mins
   sys time    8.85 mins   57.00 micros    8.85 mins

Tested by running make -j 12 and wiping staging/build_dir/target_x

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-03-27 21:51:50 -07:00
Johannes Morgenroth
777f85ed21 libarchive: update to 3.5.1
Signed-off-by: Johannes Morgenroth <jm@m-network.de>
2021-01-31 12:28:02 +01:00
Rosen Penev
5bef73d4a5 libarchive: update to 2.5.0
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-13 16:15:51 -08:00
Rosen Penev
c2e05926c6 libarchive: switch to CMake
Allows simplifying the Makefile. Also faster compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-04 15:25:36 -07:00
Rosen Penev
6442630ace libarchive: update to 3.4.3
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-06 16:38:40 -07:00
Rosen Penev
c22dd1bf74 libarchive: update to 3.4.2
Switch to normal tarballs. Remove autoreconf as a result.

Several Makefile cleanups for consistency.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-02-23 20:55:16 -08:00
Jan Pavlinec
df634dcc92 libarchive: update to version 3.4.1 (security fix)
Fixes CVE-2019-19221

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2020-01-16 15:58:25 +01:00
Jan Pavlinec
8f3378e86d libarchive: update to version 3.4.0
Changes:
remove backported patches
add bsdtar libopenssl variant
switch to github codeload
polish tab/spaces

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-07-23 17:27:38 +02:00
Jan Pavlinec
8f1f0ec9ab libarchive: patch security issues
Fixes
CVE-2019-1000019
CVE-2019-1000020

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-02-12 11:53:04 +01:00
Rosen Penev
25f520fb43 libarchive: Update configure arguments
Some of these were introduced after the Makefile was written. Adding them
guarentees fewer issues down the road.

Also did some small reorganization for consistency between packages.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-01-14 12:51:47 -08:00
Jan Pavlinec
37850cdd54 libarchive: patch multiple CVEs
Fixes
CVE-2018-1000880
CVE-2018-1000879
CVE-2018-1000878
CVE-2018-1000877

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-01-08 08:55:29 +01:00
Rosen Penev
7a024a8f54 libarchive: Update to 3.3.3
Added HTTPS.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-10-21 18:10:32 -07:00
Daniel Engberg
eb66f08055 libarchive: Update to 3.3.2
Update libarchive to 3.3.2

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2017-07-20 07:53:14 +02:00
Daniel Engberg
4a2cf8ed79 libs/libarchive: Update to 3.3.1
Update libarchive to 3.3.1 and make use of PKG_HASH variable.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2017-03-23 10:46:05 +01:00
Stijn Tintel
f82287cf5c treewide: use name in define and eval lines
For consistency, use full name instead of $(PKG_NAME) in define and eval
lines for all packages.

I've seen reviews that asked to do this before, and I am asking the same
during reviews now. To avoid this in the future, fix this treewide so
when people use existing packages as example, we will not have to
request this change anymore.

This makes all packages consistent with both LEDE and OpenWrt base
repositories.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2017-03-08 21:15:20 +01:00
Daniel Engberg
2057d7c790 libs/libarchive: Fix unintended linking of liblz4
Fixes unintended linking of liblz4
Thanks to hnyman for making me aware of this issue.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2016-12-03 02:33:09 +01:00
Daniel Engberg
2121d6595e libs/libarchive: Update to 3.2.2 and add bsdtar
Updates libarchive to 3.2.2
Adds bsdtar aswell as usable archive/compression support

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2016-12-01 14:20:27 -06:00
Daniel Golle
df1df03a2f libarchive: add build-variant without libopenssl
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-06-21 15:28:24 +02:00
Nicolas Thill
df9f3b7b72 libarchive: cleanup & fixes
Disable unused stuff explicitely, cleanup package def, only install useful devel stuff

Signed-off-by: Nicolas Thill <nico@openwrt.org>
2014-08-26 10:00:12 +02:00
Johannes Morgenroth
1dc00a2b0a libarchive: Reduce dependencies by disabling them using configure args
In order to reduce the dependencies, this patch disables following features:
 * Extended Attributes
 * ACL support
 * bzip2 through bz2lib
 * lzop through liblzo2
 * crypto support from Nettle
 * xar through libxml2

Signed-off-by: Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>
2014-08-23 15:53:12 +02:00
Johannes Morgenroth
4af4395e2d libarchive: Add missing dependencies
Dependencies to libacl, libattr, libbz2, liblzo, and libnettle added.
PKG_BUILD_DEPENDS is removed since it is already defined by DEPENDS.

Signed-off-by: Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>
2014-08-22 14:35:35 +02:00
Johannes Morgenroth
2c28b81816 libarchive: Fix install target
This commit replaces the command with a more generic one.

Signed-off-by: Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>
2014-08-22 14:08:01 +02:00
Johannes Morgenroth
a4e21e7216 libarchive: add new package
Multi-format archive and compression library

Signed-off-by: Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>
2014-08-20 12:43:30 +02:00