head	1.8;
access;
symbols
	libarchive-3-8-10:1.1.1.7
	pkgsrc-2026Q3:1.7.0.2
	pkgsrc-2026Q3-base:1.7
	libarchive-3-8-9:1.1.1.6
	libarchive-3-8-8:1.1.1.5
	pkgsrc-2026Q2:1.6.0.6
	pkgsrc-2026Q2-base:1.6
	libarchive-3-8-7:1.1.1.5
	libarchive-3-8-6:1.1.1.5
	pkgsrc-2026Q1:1.6.0.4
	pkgsrc-2026Q1-base:1.6
	libarchive-3-8-5:1.1.1.5
	libarchive-3-8-4:1.1.1.5
	pkgsrc-2025Q4:1.6.0.2
	pkgsrc-2025Q4-base:1.6
	libarchive-3-8-3:1.1.1.5
	libarchive-3-8-2:1.1.1.5
	pkgsrc-2025Q3:1.5.0.4
	pkgsrc-2025Q3-base:1.5
	libarchive-3-8-1:1.1.1.4
	pkgsrc-2025Q2:1.5.0.2
	pkgsrc-2025Q2-base:1.5
	libarchive-3-8-0:1.1.1.4
	libarchive-3-7-9:1.1.1.3
	pkgsrc-2025Q1:1.4.0.4
	pkgsrc-2025Q1-base:1.4
	pkgsrc-2024Q4:1.4.0.2
	pkgsrc-2024Q4-base:1.4
	libarchive-3-7-7:1.1.1.3
	pkgsrc-2024Q3:1.3.0.68
	pkgsrc-2024Q3-base:1.3
	libarchive-3-7-5:1.1.1.2
	pkgsrc-2024Q2:1.3.0.66
	pkgsrc-2024Q2-base:1.3
	libarchive-3-7-4:1.1.1.2
	libarchive-3-7-3:1.1.1.2
	pkgsrc-2024Q1:1.3.0.64
	pkgsrc-2024Q1-base:1.3
	libarchive-3-7-2:1.1.1.2
	pkgsrc-2023Q4:1.3.0.62
	pkgsrc-2023Q4-base:1.3
	pkgsrc-2023Q3:1.3.0.60
	pkgsrc-2023Q3-base:1.3
	pkgsrc-2023Q2:1.3.0.58
	pkgsrc-2023Q2-base:1.3
	pkgsrc-2023Q1:1.3.0.56
	pkgsrc-2023Q1-base:1.3
	pkgsrc-2022Q4:1.3.0.54
	pkgsrc-2022Q4-base:1.3
	pkgsrc-2022Q3:1.3.0.52
	pkgsrc-2022Q3-base:1.3
	pkgsrc-2022Q2:1.3.0.50
	pkgsrc-2022Q2-base:1.3
	pkgsrc-2022Q1:1.3.0.48
	pkgsrc-2022Q1-base:1.3
	pkgsrc-2021Q4:1.3.0.46
	pkgsrc-2021Q4-base:1.3
	pkgsrc-2021Q3:1.3.0.44
	pkgsrc-2021Q3-base:1.3
	pkgsrc-2021Q2:1.3.0.42
	pkgsrc-2021Q2-base:1.3
	pkgsrc-2021Q1:1.3.0.40
	pkgsrc-2021Q1-base:1.3
	pkgsrc-2020Q4:1.3.0.38
	pkgsrc-2020Q4-base:1.3
	pkgsrc-2020Q3:1.3.0.36
	pkgsrc-2020Q3-base:1.3
	pkgsrc-2020Q2:1.3.0.32
	pkgsrc-2020Q2-base:1.3
	pkgsrc-2020Q1:1.3.0.12
	pkgsrc-2020Q1-base:1.3
	pkgsrc-2019Q4:1.3.0.34
	pkgsrc-2019Q4-base:1.3
	pkgsrc-2019Q3:1.3.0.30
	pkgsrc-2019Q3-base:1.3
	libarchive-3-4-0:1.1.1.2
	libarchive-3-3-3:1.1.1.2
	pkgsrc-2019Q2:1.3.0.28
	pkgsrc-2019Q2-base:1.3
	pkgsrc-2019Q1:1.3.0.26
	pkgsrc-2019Q1-base:1.3
	pkgsrc-2018Q4:1.3.0.24
	pkgsrc-2018Q4-base:1.3
	pkgsrc-2018Q3:1.3.0.22
	pkgsrc-2018Q3-base:1.3
	pkgsrc-2018Q2:1.3.0.20
	pkgsrc-2018Q2-base:1.3
	pkgsrc-2018Q1:1.3.0.18
	pkgsrc-2018Q1-base:1.3
	pkgsrc-2017Q4:1.3.0.16
	pkgsrc-2017Q4-base:1.3
	pkgsrc-2017Q3:1.3.0.14
	pkgsrc-2017Q3-base:1.3
	libarchive-3-3-2:1.1.1.2
	pkgsrc-2017Q2:1.3.0.10
	pkgsrc-2017Q2-base:1.3
	pkgsrc-2017Q1:1.3.0.8
	pkgsrc-2017Q1-base:1.3
	libarchive-3-3-1:1.1.1.2
	pkgsrc-2016Q4:1.3.0.6
	pkgsrc-2016Q4-base:1.3
	pkgsrc-2016Q3:1.3.0.4
	pkgsrc-2016Q3-base:1.3
	pkgsrc-2016Q2:1.3.0.2
	pkgsrc-2016Q2-base:1.3
	libarchive-3-2-1:1.1.1.2
	pkgsrc-2016Q1:1.2.0.10
	pkgsrc-2016Q1-base:1.2
	pkgsrc-2015Q4:1.2.0.8
	pkgsrc-2015Q4-base:1.2
	pkgsrc-2015Q3:1.2.0.6
	pkgsrc-2015Q3-base:1.2
	pkgsrc-2015Q2:1.2.0.4
	pkgsrc-2015Q2-base:1.2
	pkgsrc-2015Q1:1.2.0.2
	pkgsrc-2015Q1-base:1.2
	pkgsrc-2014Q4:1.1.1.1.0.40
	pkgsrc-2014Q4-base:1.1.1.1
	pkgsrc-2014Q3:1.1.1.1.0.38
	pkgsrc-2014Q3-base:1.1.1.1
	pkgsrc-2014Q2:1.1.1.1.0.36
	pkgsrc-2014Q2-base:1.1.1.1
	pkgsrc-2014Q1:1.1.1.1.0.34
	pkgsrc-2014Q1-base:1.1.1.1
	pkgsrc-2013Q4:1.1.1.1.0.32
	pkgsrc-2013Q4-base:1.1.1.1
	pkgsrc-2013Q3:1.1.1.1.0.30
	pkgsrc-2013Q3-base:1.1.1.1
	pkgsrc-2013Q2:1.1.1.1.0.28
	pkgsrc-2013Q2-base:1.1.1.1
	pkgsrc-2013Q1:1.1.1.1.0.26
	pkgsrc-2013Q1-base:1.1.1.1
	pkgsrc-2012Q4:1.1.1.1.0.24
	pkgsrc-2012Q4-base:1.1.1.1
	pkgsrc-2012Q3:1.1.1.1.0.22
	pkgsrc-2012Q3-base:1.1.1.1
	pkgsrc-2012Q2:1.1.1.1.0.20
	pkgsrc-2012Q2-base:1.1.1.1
	pkgsrc-2012Q1:1.1.1.1.0.18
	pkgsrc-2012Q1-base:1.1.1.1
	pkgsrc-2011Q4:1.1.1.1.0.16
	pkgsrc-2011Q4-base:1.1.1.1
	pkgsrc-2011Q3:1.1.1.1.0.14
	pkgsrc-2011Q3-base:1.1.1.1
	pkgsrc-2011Q2:1.1.1.1.0.12
	pkgsrc-2011Q2-base:1.1.1.1
	pkgsrc-2011Q1:1.1.1.1.0.10
	pkgsrc-2011Q1-base:1.1.1.1
	pkgsrc-2010Q4:1.1.1.1.0.8
	pkgsrc-2010Q4-base:1.1.1.1
	pkgsrc-2010Q3:1.1.1.1.0.6
	pkgsrc-2010Q3-base:1.1.1.1
	libarchive-2-8-4:1.1.1.1
	pkgsrc-2010Q2:1.1.1.1.0.4
	pkgsrc-2010Q2-base:1.1.1.1
	pkgsrc-2010Q1:1.1.1.1.0.2
	pkgsrc-2010Q1-base:1.1.1.1
	libarchive-2-8-3:1.1.1.1
	libarchive-2-8-2:1.1.1.1
	libarchive-2-8-0:1.1.1.1
	KIENTZLE:1.1.1;
locks; strict;
comment	@# @;


1.8
date	2026.10.19.12.05.21;	author adam;	state Exp;
branches;
next	1.7;
commitid	R3KJfVxz3NuPb50H;

1.7
date	2026.08.01.15.33.05;	author adam;	state Exp;
branches;
next	1.6;
commitid	OeG7s22aQguJSWPG;

1.6
date	2025.11.02.08.52.15;	author adam;	state Exp;
branches;
next	1.5;
commitid	hdaVwMAEUWR8pXgG;

1.5
date	2025.05.21.15.25.52;	author adam;	state Exp;
branches;
next	1.4;
commitid	6aTN21WjRYk8TMVF;

1.4
date	2024.10.19.05.40.00;	author adam;	state Exp;
branches;
next	1.3;
commitid	fYRSlpIWMYluweuF;

1.3
date	2016.06.20.17.24.58;	author joerg;	state Exp;
branches;
next	1.2;
commitid	ArUvympBjfBseebz;

1.2
date	2015.01.17.12.44.51;	author adam;	state Exp;
branches;
next	1.1;
commitid	yy7e1hLrfmA2pn6y;

1.1
date	2010.02.20.03.49.37;	author joerg;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2010.02.20.03.49.37;	author joerg;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2016.06.20.17.13.39;	author joerg;	state Exp;
branches;
next	1.1.1.3;
commitid	rRgm3BqbmbI8aebz;

1.1.1.3
date	2024.10.19.05.27.34;	author adam;	state Exp;
branches;
next	1.1.1.4;
commitid	v1iXM4j1Na52seuF;

1.1.1.4
date	2025.05.21.15.11.29;	author adam;	state Exp;
branches;
next	1.1.1.5;
commitid	Nzqt2UgtvkVXNMVF;

1.1.1.5
date	2025.11.02.08.32.34;	author adam;	state Exp;
branches;
next	1.1.1.6;
commitid	8C56Xg3dc0HriXgG;

1.1.1.6
date	2026.08.01.15.14.08;	author adam;	state Exp;
branches;
next	1.1.1.7;
commitid	G6lcb6OWxRjcMWPG;

1.1.1.7
date	2026.10.19.11.50.40;	author adam;	state Exp;
branches;
next	;
commitid	eS0MvMrTxXQX650H;


desc
@@


1.8
log
@libarchive: updated to 3.8.10

3.8.10

New features:

7z: add Delta, RISCV, ARMTHUMB and IA64 filters for non-lzma archives
libarchive: support digest with nettle 4 and mbedtls 3
tar: add --mode option

Security and Bug Fixes

see ChangeLog
@
text
@#
# SPDX-License-Identifier: BSD-2-Clause
#
############################################
#
# How to build bsdtar
#
############################################
IF(ENABLE_TAR)

  SET(bsdtar_SOURCES
    bsdtar.c
    bsdtar.h
    bsdtar_platform.h
    cmdline.c
    creation_set.c
    read.c
    subst.c
    util.c
    write.c
    ../libarchive_fe/lafe_err.c
    ../libarchive_fe/lafe_err.h
    ../libarchive_fe/lafe_explicit_bzero.c
    ../libarchive_fe/lafe_explicit_bzero.h
    ../libarchive_fe/lafe_platform.h
    ../libarchive_fe/lafe_setmode.c
    ../libarchive_fe/lafe_setmode.h
    ../libarchive_fe/line_reader.c
    ../libarchive_fe/line_reader.h
    ../libarchive_fe/passphrase.c
    ../libarchive_fe/passphrase.h
  )
  INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../libarchive_fe)
  IF(WIN32 AND NOT CYGWIN)
    LIST(APPEND bsdtar_SOURCES bsdtar_windows.c)
    LIST(APPEND bsdtar_SOURCES bsdtar_windows.h)
    IF(NOT MSVC)
      # The GNU toolchains (MinGW/Clang) do not generate an application
      # manifest, so we embed one through a resource script.
      ENABLE_LANGUAGE(RC)
      INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
      LIST(APPEND bsdtar_SOURCES bsdtar.rc)
      SET_SOURCE_FILES_PROPERTIES(bsdtar.rc PROPERTIES
        OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bsdtar.exe.manifest)
    ENDIF(NOT MSVC)
  ENDIF(WIN32 AND NOT CYGWIN)

  # bsdtar documentation
  SET(bsdtar_MANS bsdtar.1)

  # How to build bsdtar
  ADD_EXECUTABLE(bsdtar ${bsdtar_SOURCES})
  IF(ENABLE_TAR_SHARED)
    TARGET_LINK_LIBRARIES(bsdtar archive ${ADDITIONAL_LIBS})
  ELSE(ENABLE_TAR_SHARED)
    TARGET_LINK_LIBRARIES(bsdtar archive_static ${ADDITIONAL_LIBS})
    SET_TARGET_PROPERTIES(bsdtar PROPERTIES COMPILE_DEFINITIONS
    				 LIBARCHIVE_STATIC)
  ENDIF(ENABLE_TAR_SHARED)
  IF(WIN32 AND NOT CYGWIN AND MSVC)
    # MSVC merges .manifest sources into the linker's default manifest
    TARGET_SOURCES(bsdtar PRIVATE bsdtar.exe.manifest)
  ENDIF(WIN32 AND NOT CYGWIN AND MSVC)

  # Installation rules
  IF(ENABLE_INSTALL)
    INSTALL(TARGETS bsdtar RUNTIME DESTINATION bin)
    INSTALL_MAN(${bsdtar_MANS})
  ENDIF(ENABLE_INSTALL)
ENDIF(ENABLE_TAR)

add_subdirectory(test)
@


1.7
log
@libarchive: updated to 3.8.9

Libarchive 3.8.9 is a security, bugfix and minor feature release.
@
text
@d23 2
d26 2
@


1.6
log
@libarchive: updated to 3.8.2

Libarchive 3.8.2 is a bugfix and security release.

Security fixes:

7zip: Fix out of boundary access
tar reader: fix checking the result of the strftime

Notable bugfixes:

bsdtar: Allow filename to have CRLF endings
lib: archive_read_data: handle sparse holes at end of file correctly
lib: improve filter process handling
lib: fix error checking in writing files
lib: handle possible errors from system calls
lib: avoid leaking file descriptors into subprocesses
lib: parse_date: handle dates in 2038 and beyond if time_t is big enough
RAR5 reader: fix multiple issues in extra field parsing function
RAR5 reader: early fail when file declares data for a dir entry
tar writer: fix replacing a regular file with a dir for ARCHIVE_EXTRACT_SAFE_WRITES
tar reader (Windows): check WCS pathname in header_gnutar before overwriting
tar reader: fix an infinite loop when parsing V headers
zip writer: fix a memory leak if write callback error early
zip writer: fix writing with ZSTD compression
zstd write filter: enable Zstandard's checksum feature
@
text
@d33 9
d56 4
@


1.5
log
@libarchive bsdtar: updated to 3.8.0

Libarchive 3.8.0 is a feature and bugfix release.

New features:
bsdtar: support --mtime and --clamp-mtime
lib: mbedtls 3.x compatibility
7-zip reader: improve self-extracting archive detection
xar: xmllite support for the XAR reader and writer
zip writer: added XZ, LZMA, ZSTD and BZIP2 support
zip writer: added LZMA + RISCV BCJ filter

Notable security fixes:
rar: do not skip past EOF while reading
rar: fix double free with over 4 billion nodes
rar: fix heap-buffer-overflow
warc: prevent signed integer overflow
tar: fix overflow in build_ustar_entry

Notable bugfixes:
bsdtar: don't hardlink negative inode files together
gz: allow setting the original filename for gzip compressed files
lib: improve lseek handling
lib: support @@-prefixed Unix epoch timestamps as date strings
rar: support large headers on 32 bit systems
tar reader: Improve LFS support on 32 bit systems
@
text
@d21 2
a22 2
    ../libarchive_fe/err.c
    ../libarchive_fe/err.h
@


1.4
log
@libarchive: updated to 3.7.7

Libarchive 3.7.7 is a bugfix and security release

Security fixes:

gzip: prevent a hang when processing a malformed gzip inside a gzip
tar: don't crash on truncated tar archives
tar: fix two leaks in tar header parsing

Important bugfixes:

7-zip: read/write symlink paths as UTF-8
cpio: exit with an error code if an entry could not be extracted
rar5: report encrypted entries
tar: fix truncation of entry pathnames in specific archives
windows: fix ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS


Libarchive 3.7.6 is a bugfix and security release.
This release fixes a tar regression introduced in libarchive 3.7.5

Important bugfixes.

tar: clean up linkpath between entries
tar: fix memory leaks when processing symlinks or parsing pax headers
iso: be more cautious about parsing ISO-9660 timestamps
@
text
@d49 4
a52 2
  INSTALL(TARGETS bsdtar RUNTIME DESTINATION bin)
  INSTALL_MAN(${bsdtar_MANS})
@


1.3
log
@Update for libarchive 3.2.1.
@
text
@d1 3
@


1.2
log
@Changes 3.1.2:
This is a maintenance update to fix issues with the new RAR seeking
feature. This new release also contains fixes for build failures when
building libarchive using Visual Studio 2012 and MinGW.
@
text
@d23 2
a43 1
  GET_TARGET_PROPERTY(BSDTAR bsdtar LOCATION)
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
IF (ENABLE_TAR)
d13 1
a13 1
    getdate.c
a15 2
    tree.c
    tree.h
a22 4
    ../libarchive_fe/matching.c
    ../libarchive_fe/matching.h
    ../libarchive_fe/pathmatch.c
    ../libarchive_fe/pathmatch.h
@


1.1.1.1
log
@Import libarchive 2.8.0:
- Infrastructure:
  - Allow command line tools as fallback for missing compression
    libraries. If compiled without gzip for example, gunzip will
    be used automatically.
  - Improved support for a number of platforms like high-resolution
    timestamps and Extended Attributes on various Unix systems
  - New convience interface for creating archives based on disk content,
    complement of the archive_write_disk interface.
- Frontends:
  - bsdcpio ready for public consumption
  - hand-written date parser replaces the yacc code
- Filter system:
  - Simplified read filter chains
  - Option support for filters
  - LZMA, XZ, uudecode handled
- Format support:
  - Write support for mtree files based on file system or archive
    content
  - Basic read support for Joliet
  - Write support for zip files
  - Write support for shar archives, both text-only and binary-safe
@
text
@@


1.1.1.2
log
@Import libarchive-3.2.1:
- security fixes and other bugfixes
- support for multhreading in xz 5.2+
@
text
@d6 1
a6 1
IF(ENABLE_TAR)
d13 1
a13 1
    creation_set.c
d16 2
d25 4
a28 2
    ../libarchive_fe/passphrase.c
    ../libarchive_fe/passphrase.h
d48 1
@


1.1.1.3
log
@libarchove: import version 3.7.7
@
text
@a0 3
#
# SPDX-License-Identifier: BSD-2-Clause
#
@


1.1.1.4
log
@libarchive: import version 3.8.0

Libarchive 3.8.0 is a feature and bugfix release.

New features:
bsdtar: support --mtime and --clamp-mtime
lib: mbedtls 3.x compatibility
7-zip reader: improve self-extracting archive detection
xar: xmllite support for the XAR reader and writer
zip writer: added XZ, LZMA, ZSTD and BZIP2 support
zip writer: added LZMA + RISCV BCJ filter

Notable security fixes:
rar: do not skip past EOF while reading
rar: fix double free with over 4 billion nodes
rar: fix heap-buffer-overflow
warc: prevent signed integer overflow
tar: fix overflow in build_ustar_entry

Notable bugfixes:
bsdtar: don't hardlink negative inode files together
gz: allow setting the original filename for gzip compressed files
lib: improve lseek handling
lib: support @@-prefixed Unix epoch timestamps as date strings
rar: support large headers on 32 bit systems
tar reader: Improve LFS support on 32 bit systems
@
text
@d49 2
a50 4
  IF(ENABLE_INSTALL)
    INSTALL(TARGETS bsdtar RUNTIME DESTINATION bin)
    INSTALL_MAN(${bsdtar_MANS})
  ENDIF(ENABLE_INSTALL)
@


1.1.1.5
log
@libarchive: imported version 3.8.2
@
text
@d21 2
a22 2
    ../libarchive_fe/lafe_err.c
    ../libarchive_fe/lafe_err.h
@


1.1.1.6
log
@libarchive: imported version 3.8.9
@
text
@a32 9
    IF(NOT MSVC)
      # The GNU toolchains (MinGW/Clang) do not generate an application
      # manifest, so we embed one through a resource script.
      ENABLE_LANGUAGE(RC)
      INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
      LIST(APPEND bsdtar_SOURCES bsdtar.rc)
      SET_SOURCE_FILES_PROPERTIES(bsdtar.rc PROPERTIES
        OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bsdtar.exe.manifest)
    ENDIF(NOT MSVC)
a46 4
  IF(WIN32 AND NOT CYGWIN AND MSVC)
    # MSVC merges .manifest sources into the linker's default manifest
    TARGET_SOURCES(bsdtar PRIVATE bsdtar.exe.manifest)
  ENDIF(WIN32 AND NOT CYGWIN AND MSVC)
@


1.1.1.7
log
@libarchive: import version 3.8.10
@
text
@a22 2
    ../libarchive_fe/lafe_explicit_bzero.c
    ../libarchive_fe/lafe_explicit_bzero.h
a23 2
    ../libarchive_fe/lafe_setmode.c
    ../libarchive_fe/lafe_setmode.h
@


