archive_r_ruby 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +21 -21
- data/NOTICE +116 -116
- data/README.md +106 -106
- data/VERSION +1 -1
- data/ext/archive_r/archive_r_ext.cc +1098 -1098
- data/ext/archive_r/extconf.rb +125 -125
- data/ext/archive_r/vendor/archive_r/LICENSE +21 -21
- data/ext/archive_r/vendor/archive_r/NOTICE +116 -116
- data/ext/archive_r/vendor/archive_r/include/archive_r/data_stream.h +42 -42
- data/ext/archive_r/vendor/archive_r/include/archive_r/entry.h +180 -180
- data/ext/archive_r/vendor/archive_r/include/archive_r/entry_fault.h +34 -34
- data/ext/archive_r/vendor/archive_r/include/archive_r/entry_metadata.h +56 -56
- data/ext/archive_r/vendor/archive_r/include/archive_r/multi_volume_stream_base.h +46 -46
- data/ext/archive_r/vendor/archive_r/include/archive_r/path_hierarchy.h +92 -92
- data/ext/archive_r/vendor/archive_r/include/archive_r/path_hierarchy_utils.h +36 -36
- data/ext/archive_r/vendor/archive_r/include/archive_r/platform_compat.h +34 -34
- data/ext/archive_r/vendor/archive_r/include/archive_r/traverser.h +156 -156
- data/ext/archive_r/vendor/archive_r/src/archive_stack_cursor.cc +300 -300
- data/ext/archive_r/vendor/archive_r/src/archive_stack_cursor.h +110 -110
- data/ext/archive_r/vendor/archive_r/src/archive_stack_orchestrator.cc +161 -161
- data/ext/archive_r/vendor/archive_r/src/archive_stack_orchestrator.h +53 -53
- data/ext/archive_r/vendor/archive_r/src/archive_type.cc +545 -545
- data/ext/archive_r/vendor/archive_r/src/archive_type.h +77 -77
- data/ext/archive_r/vendor/archive_r/src/data_stream.cc +35 -35
- data/ext/archive_r/vendor/archive_r/src/entry.cc +238 -238
- data/ext/archive_r/vendor/archive_r/src/entry_fault.cc +26 -26
- data/ext/archive_r/vendor/archive_r/src/entry_fault_error.cc +54 -54
- data/ext/archive_r/vendor/archive_r/src/entry_fault_error.h +32 -32
- data/ext/archive_r/vendor/archive_r/src/entry_impl.h +56 -56
- data/ext/archive_r/vendor/archive_r/src/multi_volume_manager.cc +76 -76
- data/ext/archive_r/vendor/archive_r/src/multi_volume_manager.h +39 -39
- data/ext/archive_r/vendor/archive_r/src/multi_volume_stream_base.cc +208 -208
- data/ext/archive_r/vendor/archive_r/src/path_hierarchy.cc +127 -127
- data/ext/archive_r/vendor/archive_r/src/path_hierarchy_utils.cc +251 -251
- data/ext/archive_r/vendor/archive_r/src/simple_profiler.h +109 -109
- data/ext/archive_r/vendor/archive_r/src/system_file_stream.cc +294 -294
- data/ext/archive_r/vendor/archive_r/src/system_file_stream.h +46 -46
- data/ext/archive_r/vendor/archive_r/src/traverser.cc +295 -295
- data/lib/archive_r.rb +120 -120
- metadata +3 -6
data/ext/archive_r/extconf.rb
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
# SPDX-License-Identifier: MIT
|
|
2
|
-
# Copyright (c) 2025 archive_r Team
|
|
3
|
-
|
|
4
|
-
require 'mkmf'
|
|
5
|
-
|
|
6
|
-
def archive_r_core_root
|
|
7
|
-
candidates = []
|
|
8
|
-
|
|
9
|
-
env_root = ENV['ARCHIVE_R_CORE_ROOT']
|
|
10
|
-
candidates << File.expand_path(env_root) if env_root && !env_root.empty?
|
|
11
|
-
|
|
12
|
-
repo_root = File.expand_path('../../../..', __dir__)
|
|
13
|
-
candidates << repo_root
|
|
14
|
-
|
|
15
|
-
vendor_root = File.expand_path('vendor/archive_r', __dir__)
|
|
16
|
-
candidates << vendor_root
|
|
17
|
-
|
|
18
|
-
candidates.each do |root|
|
|
19
|
-
next unless root
|
|
20
|
-
include_dir = File.join(root, 'include')
|
|
21
|
-
src_dir = File.join(root, 'src')
|
|
22
|
-
return root if Dir.exist?(include_dir) && Dir.exist?(src_dir)
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
nil
|
|
26
|
-
end
|
|
27
|
-
archive_r_root = archive_r_core_root
|
|
28
|
-
|
|
29
|
-
unless archive_r_root
|
|
30
|
-
abort <<~MSG
|
|
31
|
-
archive_r core library not found.
|
|
32
|
-
Please set ARCHIVE_R_CORE_ROOT to a repository checkout or use the vendored gem package.
|
|
33
|
-
MSG
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
vendor_root = File.expand_path('vendor/archive_r', __dir__)
|
|
37
|
-
|
|
38
|
-
if archive_r_root == vendor_root
|
|
39
|
-
puts 'Using vendored archive_r core sources'
|
|
40
|
-
elsif ENV['ARCHIVE_R_CORE_ROOT'] && File.expand_path(ENV['ARCHIVE_R_CORE_ROOT']) == archive_r_root
|
|
41
|
-
puts "Using archive_r core from #{archive_r_root} (ARCHIVE_R_CORE_ROOT)"
|
|
42
|
-
else
|
|
43
|
-
puts "Using archive_r core from #{archive_r_root}"
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
archive_r_include = File.join(archive_r_root, 'include')
|
|
47
|
-
archive_r_src = File.join(archive_r_root, 'src')
|
|
48
|
-
archive_r_lib_dir = File.join(archive_r_root, 'build')
|
|
49
|
-
archive_r_local_libs = File.expand_path('.libs', __dir__)
|
|
50
|
-
glue_source = File.join(__dir__, 'archive_r_ext.cc')
|
|
51
|
-
|
|
52
|
-
# Ensure make can locate vendored sources via VPATH
|
|
53
|
-
$VPATH ||= ''
|
|
54
|
-
unless $VPATH.empty?
|
|
55
|
-
$VPATH << File::PATH_SEPARATOR
|
|
56
|
-
end
|
|
57
|
-
$VPATH << archive_r_src
|
|
58
|
-
|
|
59
|
-
# Add include paths
|
|
60
|
-
$INCFLAGS << " -I#{archive_r_include}"
|
|
61
|
-
$INCFLAGS << " -I#{archive_r_src}"
|
|
62
|
-
$LIBPATH.unshift(archive_r_local_libs)
|
|
63
|
-
|
|
64
|
-
unless Gem.win_platform?
|
|
65
|
-
$LDFLAGS << ' -Wl,-rpath,$ORIGIN/.libs'
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
# C++17 standard
|
|
69
|
-
$CXXFLAGS << " -std=c++17"
|
|
70
|
-
|
|
71
|
-
# Configure libarchive paths from environment variables
|
|
72
|
-
if ENV['LIBARCHIVE_ROOT']
|
|
73
|
-
root = File.expand_path(ENV['LIBARCHIVE_ROOT'])
|
|
74
|
-
$INCFLAGS << " -I#{File.join(root, 'include')}"
|
|
75
|
-
$LIBPATH.unshift(File.join(root, 'lib'))
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
if ENV['LIBARCHIVE_INCLUDE_DIRS']
|
|
79
|
-
ENV['LIBARCHIVE_INCLUDE_DIRS'].split(File::PATH_SEPARATOR).each do |dir|
|
|
80
|
-
$INCFLAGS << " -I#{dir}"
|
|
81
|
-
end
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
if ENV['LIBARCHIVE_LIBRARY_DIRS']
|
|
85
|
-
ENV['LIBARCHIVE_LIBRARY_DIRS'].split(File::PATH_SEPARATOR).each do |dir|
|
|
86
|
-
$LIBPATH.unshift(dir)
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
# Check for libarchive
|
|
91
|
-
unless have_library('archive') || have_library('libarchive')
|
|
92
|
-
abort "libarchive is required but not found"
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
shared_candidates = [
|
|
96
|
-
File.join(archive_r_lib_dir, 'libarchive_r_core.so'),
|
|
97
|
-
File.join(archive_r_lib_dir, 'libarchive_r_core.dylib'),
|
|
98
|
-
File.join(archive_r_lib_dir, 'archive_r_core.dll'),
|
|
99
|
-
File.join(archive_r_lib_dir, 'archive_r_core.lib'),
|
|
100
|
-
File.join(archive_r_lib_dir, 'Release', 'archive_r_core.dll'),
|
|
101
|
-
File.join(archive_r_lib_dir, 'Release', 'archive_r_core.lib'),
|
|
102
|
-
File.join(archive_r_local_libs, 'libarchive_r_core.so'),
|
|
103
|
-
File.join(archive_r_local_libs, 'libarchive_r_core.dylib'),
|
|
104
|
-
File.join(archive_r_local_libs, 'archive_r_core.dll'),
|
|
105
|
-
]
|
|
106
|
-
|
|
107
|
-
found_shared = shared_candidates.find { |path| File.exist?(path) }
|
|
108
|
-
|
|
109
|
-
if found_shared
|
|
110
|
-
$LIBPATH.unshift(File.dirname(found_shared))
|
|
111
|
-
$libs = "-larchive_r_core #{$libs}"
|
|
112
|
-
puts "Using pre-built shared archive_r core: #{found_shared}"
|
|
113
|
-
else
|
|
114
|
-
puts "Pre-built shared library not found, will build from source"
|
|
115
|
-
srcs = [glue_source] + Dir.glob(File.join(archive_r_src, '*.cc'))
|
|
116
|
-
$srcs = srcs
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
# Guarantee the Ruby glue source is part of the compilation list when $srcs is set
|
|
120
|
-
if defined?($srcs) && $srcs
|
|
121
|
-
$srcs.unshift(glue_source) unless $srcs.include?(glue_source)
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
# Create Makefile
|
|
125
|
-
create_makefile('archive_r/archive_r')
|
|
1
|
+
# SPDX-License-Identifier: MIT
|
|
2
|
+
# Copyright (c) 2025 archive_r Team
|
|
3
|
+
|
|
4
|
+
require 'mkmf'
|
|
5
|
+
|
|
6
|
+
def archive_r_core_root
|
|
7
|
+
candidates = []
|
|
8
|
+
|
|
9
|
+
env_root = ENV['ARCHIVE_R_CORE_ROOT']
|
|
10
|
+
candidates << File.expand_path(env_root) if env_root && !env_root.empty?
|
|
11
|
+
|
|
12
|
+
repo_root = File.expand_path('../../../..', __dir__)
|
|
13
|
+
candidates << repo_root
|
|
14
|
+
|
|
15
|
+
vendor_root = File.expand_path('vendor/archive_r', __dir__)
|
|
16
|
+
candidates << vendor_root
|
|
17
|
+
|
|
18
|
+
candidates.each do |root|
|
|
19
|
+
next unless root
|
|
20
|
+
include_dir = File.join(root, 'include')
|
|
21
|
+
src_dir = File.join(root, 'src')
|
|
22
|
+
return root if Dir.exist?(include_dir) && Dir.exist?(src_dir)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
nil
|
|
26
|
+
end
|
|
27
|
+
archive_r_root = archive_r_core_root
|
|
28
|
+
|
|
29
|
+
unless archive_r_root
|
|
30
|
+
abort <<~MSG
|
|
31
|
+
archive_r core library not found.
|
|
32
|
+
Please set ARCHIVE_R_CORE_ROOT to a repository checkout or use the vendored gem package.
|
|
33
|
+
MSG
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
vendor_root = File.expand_path('vendor/archive_r', __dir__)
|
|
37
|
+
|
|
38
|
+
if archive_r_root == vendor_root
|
|
39
|
+
puts 'Using vendored archive_r core sources'
|
|
40
|
+
elsif ENV['ARCHIVE_R_CORE_ROOT'] && File.expand_path(ENV['ARCHIVE_R_CORE_ROOT']) == archive_r_root
|
|
41
|
+
puts "Using archive_r core from #{archive_r_root} (ARCHIVE_R_CORE_ROOT)"
|
|
42
|
+
else
|
|
43
|
+
puts "Using archive_r core from #{archive_r_root}"
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
archive_r_include = File.join(archive_r_root, 'include')
|
|
47
|
+
archive_r_src = File.join(archive_r_root, 'src')
|
|
48
|
+
archive_r_lib_dir = File.join(archive_r_root, 'build')
|
|
49
|
+
archive_r_local_libs = File.expand_path('.libs', __dir__)
|
|
50
|
+
glue_source = File.join(__dir__, 'archive_r_ext.cc')
|
|
51
|
+
|
|
52
|
+
# Ensure make can locate vendored sources via VPATH
|
|
53
|
+
$VPATH ||= ''
|
|
54
|
+
unless $VPATH.empty?
|
|
55
|
+
$VPATH << File::PATH_SEPARATOR
|
|
56
|
+
end
|
|
57
|
+
$VPATH << archive_r_src
|
|
58
|
+
|
|
59
|
+
# Add include paths
|
|
60
|
+
$INCFLAGS << " -I#{archive_r_include}"
|
|
61
|
+
$INCFLAGS << " -I#{archive_r_src}"
|
|
62
|
+
$LIBPATH.unshift(archive_r_local_libs)
|
|
63
|
+
|
|
64
|
+
unless Gem.win_platform?
|
|
65
|
+
$LDFLAGS << ' -Wl,-rpath,$ORIGIN/.libs'
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# C++17 standard
|
|
69
|
+
$CXXFLAGS << " -std=c++17"
|
|
70
|
+
|
|
71
|
+
# Configure libarchive paths from environment variables
|
|
72
|
+
if ENV['LIBARCHIVE_ROOT']
|
|
73
|
+
root = File.expand_path(ENV['LIBARCHIVE_ROOT'])
|
|
74
|
+
$INCFLAGS << " -I#{File.join(root, 'include')}"
|
|
75
|
+
$LIBPATH.unshift(File.join(root, 'lib'))
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if ENV['LIBARCHIVE_INCLUDE_DIRS']
|
|
79
|
+
ENV['LIBARCHIVE_INCLUDE_DIRS'].split(File::PATH_SEPARATOR).each do |dir|
|
|
80
|
+
$INCFLAGS << " -I#{dir}"
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if ENV['LIBARCHIVE_LIBRARY_DIRS']
|
|
85
|
+
ENV['LIBARCHIVE_LIBRARY_DIRS'].split(File::PATH_SEPARATOR).each do |dir|
|
|
86
|
+
$LIBPATH.unshift(dir)
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Check for libarchive
|
|
91
|
+
unless have_library('archive') || have_library('libarchive')
|
|
92
|
+
abort "libarchive is required but not found"
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
shared_candidates = [
|
|
96
|
+
File.join(archive_r_lib_dir, 'libarchive_r_core.so'),
|
|
97
|
+
File.join(archive_r_lib_dir, 'libarchive_r_core.dylib'),
|
|
98
|
+
File.join(archive_r_lib_dir, 'archive_r_core.dll'),
|
|
99
|
+
File.join(archive_r_lib_dir, 'archive_r_core.lib'),
|
|
100
|
+
File.join(archive_r_lib_dir, 'Release', 'archive_r_core.dll'),
|
|
101
|
+
File.join(archive_r_lib_dir, 'Release', 'archive_r_core.lib'),
|
|
102
|
+
File.join(archive_r_local_libs, 'libarchive_r_core.so'),
|
|
103
|
+
File.join(archive_r_local_libs, 'libarchive_r_core.dylib'),
|
|
104
|
+
File.join(archive_r_local_libs, 'archive_r_core.dll'),
|
|
105
|
+
]
|
|
106
|
+
|
|
107
|
+
found_shared = shared_candidates.find { |path| File.exist?(path) }
|
|
108
|
+
|
|
109
|
+
if found_shared
|
|
110
|
+
$LIBPATH.unshift(File.dirname(found_shared))
|
|
111
|
+
$libs = "-larchive_r_core #{$libs}"
|
|
112
|
+
puts "Using pre-built shared archive_r core: #{found_shared}"
|
|
113
|
+
else
|
|
114
|
+
puts "Pre-built shared library not found, will build from source"
|
|
115
|
+
srcs = [glue_source] + Dir.glob(File.join(archive_r_src, '*.cc'))
|
|
116
|
+
$srcs = srcs
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Guarantee the Ruby glue source is part of the compilation list when $srcs is set
|
|
120
|
+
if defined?($srcs) && $srcs
|
|
121
|
+
$srcs.unshift(glue_source) unless $srcs.include?(glue_source)
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Create Makefile
|
|
125
|
+
create_makefile('archive_r/archive_r')
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 archive_r Team
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 archive_r Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
archive_r Notices
|
|
2
|
-
|
|
3
|
-
This file contains third-party notices and licensing information for bundled or
|
|
4
|
-
linked components. It does not replace the project license.
|
|
5
|
-
|
|
6
|
-
For full license texts, see the files under the LICENSES/ directory in this
|
|
7
|
-
repository. Python wheels include these texts under the *.dist-info/licenses/
|
|
8
|
-
directory.
|
|
9
|
-
|
|
10
|
-
----------------------------------------
|
|
11
|
-
Third-Party Notices
|
|
12
|
-
----------------------------------------
|
|
13
|
-
|
|
14
|
-
This distribution (notably the Python wheels) bundles and/or dynamically links
|
|
15
|
-
against the following third-party components. Their respective license terms
|
|
16
|
-
apply in addition to the MIT License.
|
|
17
|
-
|
|
18
|
-
1. libarchive
|
|
19
|
-
- Purpose: core archive reading and writing functionality for the C++
|
|
20
|
-
library and language bindings.
|
|
21
|
-
- Version (manylinux wheels): 3.7.5
|
|
22
|
-
- License: New BSD License (https://www.libarchive.org/)
|
|
23
|
-
- Full license text and notices: LICENSES/libarchive-COPYING
|
|
24
|
-
|
|
25
|
-
2. pybind11
|
|
26
|
-
- Purpose: header-only binding generator for the Python extension module.
|
|
27
|
-
- License: BSD-style License (https://github.com/pybind/pybind11)
|
|
28
|
-
- Notes: used at build time; not redistributed as a runtime library.
|
|
29
|
-
|
|
30
|
-
The following components are redistributed only because libarchive (bundled in
|
|
31
|
-
some artifacts such as Python wheels) depends on them at runtime:
|
|
32
|
-
|
|
33
|
-
3. zlib
|
|
34
|
-
- Purpose: libarchive dependency providing DEFLATE compression.
|
|
35
|
-
- License: zlib License (https://zlib.net/zlib_license.html)
|
|
36
|
-
- Notes: typically provided by the platform runtime (not bundled in wheels).
|
|
37
|
-
|
|
38
|
-
4. bzip2
|
|
39
|
-
- Purpose: libarchive dependency providing bzip2 compression support; distributed with archive_r artifacts.
|
|
40
|
-
- Version (manylinux wheels): 1.0.8
|
|
41
|
-
- License: BSD-style license (https://sourceware.org/bzip2/)
|
|
42
|
-
- Full license text and notices: LICENSES/bzip2-LICENSE
|
|
43
|
-
|
|
44
|
-
5. liblzma (XZ Utils)
|
|
45
|
-
- Purpose: libarchive dependency providing LZMA/XZ compression; included with archive_r packages.
|
|
46
|
-
- Version (manylinux wheels): 5.6.2
|
|
47
|
-
- License: BSD Zero Clause License (0BSD) for liblzma (https://tukaani.org/xz/)
|
|
48
|
-
- Full license texts and notices: LICENSES/xz-COPYING, LICENSES/xz-COPYING.0BSD
|
|
49
|
-
|
|
50
|
-
6. libxml2
|
|
51
|
-
- Purpose: libarchive dependency used for archive formats such as xar; distributed alongside archive_r.
|
|
52
|
-
- Version (manylinux wheels): 2.13.4
|
|
53
|
-
- License: MIT-style License (http://xmlsoft.org/)
|
|
54
|
-
- Full license text and notices: LICENSES/libxml2-Copyright
|
|
55
|
-
|
|
56
|
-
7. zstd
|
|
57
|
-
- Purpose: libarchive dependency providing Zstandard compression; shipped within archive_r binaries.
|
|
58
|
-
- Version (manylinux wheels): 1.5.5
|
|
59
|
-
- License: BSD License (https://github.com/facebook/zstd)
|
|
60
|
-
- Full license text and notices: LICENSES/zstd-LICENSE
|
|
61
|
-
|
|
62
|
-
8. Nettle
|
|
63
|
-
- Purpose: libarchive dependency providing cryptographic support (macOS/Linux); bundled with archive_r binaries.
|
|
64
|
-
- Version (manylinux wheels): 3.9.1
|
|
65
|
-
- License: GNU LGPLv3+ or GNU GPLv2+ (https://www.lysator.liu.se/~nisse/nettle/)
|
|
66
|
-
- Full license texts and notices: LICENSES/nettle-COPYING.LESSERv3, LICENSES/nettle-COPYINGv2
|
|
67
|
-
|
|
68
|
-
9. mini-gmp
|
|
69
|
-
- Purpose: Nettle dependency for arithmetic operations (macOS/Linux); bundled with archive_r binaries.
|
|
70
|
-
- License: GNU LGPLv3+ or GNU GPLv2+ (https://gmplib.org/)
|
|
71
|
-
|
|
72
|
-
10. OpenSSL 3
|
|
73
|
-
- Purpose: libarchive dependency providing cryptographic support (Windows); bundled with archive_r Windows wheels.
|
|
74
|
-
- License: Apache License 2.0 with OpenSSL exception (https://www.openssl.org/source/license.html)
|
|
75
|
-
|
|
76
|
-
11. lz4
|
|
77
|
-
- Purpose: libarchive dependency providing LZ4 compression; shipped with archive_r artifacts when required.
|
|
78
|
-
- Version (manylinux wheels): 1.10.0
|
|
79
|
-
- License: BSD 2-Clause (https://github.com/lz4/lz4)
|
|
80
|
-
- Full license text and notices: LICENSES/lz4-LICENSE
|
|
81
|
-
|
|
82
|
-
12. libb2 (BLAKE2)
|
|
83
|
-
- Purpose: libarchive dependency providing BLAKE2 hashing; bundled when archive formats require it.
|
|
84
|
-
- Version (manylinux wheels): 0.98.1
|
|
85
|
-
- License: CC0 1.0 Universal (https://github.com/BLAKE2/libb2)
|
|
86
|
-
- Full license text and notices: LICENSES/libb2-COPYING
|
|
87
|
-
|
|
88
|
-
13. libattr
|
|
89
|
-
- Purpose: libarchive dependency providing extended attribute support on POSIX platforms; included in POSIX builds only.
|
|
90
|
-
- Version (manylinux wheels): 2.5.2
|
|
91
|
-
- License: LGPL-2.1-or-later for the library (https://savannah.nongnu.org/projects/attr)
|
|
92
|
-
- Full license text and notices: LICENSES/attr-COPYING.LGPL
|
|
93
|
-
|
|
94
|
-
14. libacl
|
|
95
|
-
- Purpose: libarchive dependency providing POSIX ACL support; included in POSIX builds only.
|
|
96
|
-
- Version (manylinux wheels): 2.3.2
|
|
97
|
-
- License: LGPL-2.1-or-later for the library (https://savannah.nongnu.org/projects/acl)
|
|
98
|
-
- Full license text and notices: LICENSES/acl-COPYING.LGPL
|
|
99
|
-
|
|
100
|
-
15. LLVM OpenMP runtime (libomp)
|
|
101
|
-
- Purpose: runtime dependency that can be bundled into Linux wheels depending on toolchain and binary dependencies.
|
|
102
|
-
- License: Apache License 2.0 with LLVM Exceptions (https://llvm.org/)
|
|
103
|
-
- Full license text and notices: LICENSES/libomp-LICENSE.TXT
|
|
104
|
-
|
|
105
|
-
----------------------------------------
|
|
106
|
-
Source Availability
|
|
107
|
-
----------------------------------------
|
|
108
|
-
|
|
109
|
-
For the components redistributed in binary form, the corresponding source code
|
|
110
|
-
can be obtained from the upstream project release pages listed above.
|
|
111
|
-
|
|
112
|
-
For the manylinux wheel build, exact dependency versions are recorded in:
|
|
113
|
-
- bindings/python/tools/build-deps-manylinux.sh
|
|
114
|
-
|
|
115
|
-
Full license texts copied from upstream release archives are stored under:
|
|
116
|
-
- LICENSES/
|
|
1
|
+
archive_r Notices
|
|
2
|
+
|
|
3
|
+
This file contains third-party notices and licensing information for bundled or
|
|
4
|
+
linked components. It does not replace the project license.
|
|
5
|
+
|
|
6
|
+
For full license texts, see the files under the LICENSES/ directory in this
|
|
7
|
+
repository. Python wheels include these texts under the *.dist-info/licenses/
|
|
8
|
+
directory.
|
|
9
|
+
|
|
10
|
+
----------------------------------------
|
|
11
|
+
Third-Party Notices
|
|
12
|
+
----------------------------------------
|
|
13
|
+
|
|
14
|
+
This distribution (notably the Python wheels) bundles and/or dynamically links
|
|
15
|
+
against the following third-party components. Their respective license terms
|
|
16
|
+
apply in addition to the MIT License.
|
|
17
|
+
|
|
18
|
+
1. libarchive
|
|
19
|
+
- Purpose: core archive reading and writing functionality for the C++
|
|
20
|
+
library and language bindings.
|
|
21
|
+
- Version (manylinux wheels): 3.7.5
|
|
22
|
+
- License: New BSD License (https://www.libarchive.org/)
|
|
23
|
+
- Full license text and notices: LICENSES/libarchive-COPYING
|
|
24
|
+
|
|
25
|
+
2. pybind11
|
|
26
|
+
- Purpose: header-only binding generator for the Python extension module.
|
|
27
|
+
- License: BSD-style License (https://github.com/pybind/pybind11)
|
|
28
|
+
- Notes: used at build time; not redistributed as a runtime library.
|
|
29
|
+
|
|
30
|
+
The following components are redistributed only because libarchive (bundled in
|
|
31
|
+
some artifacts such as Python wheels) depends on them at runtime:
|
|
32
|
+
|
|
33
|
+
3. zlib
|
|
34
|
+
- Purpose: libarchive dependency providing DEFLATE compression.
|
|
35
|
+
- License: zlib License (https://zlib.net/zlib_license.html)
|
|
36
|
+
- Notes: typically provided by the platform runtime (not bundled in wheels).
|
|
37
|
+
|
|
38
|
+
4. bzip2
|
|
39
|
+
- Purpose: libarchive dependency providing bzip2 compression support; distributed with archive_r artifacts.
|
|
40
|
+
- Version (manylinux wheels): 1.0.8
|
|
41
|
+
- License: BSD-style license (https://sourceware.org/bzip2/)
|
|
42
|
+
- Full license text and notices: LICENSES/bzip2-LICENSE
|
|
43
|
+
|
|
44
|
+
5. liblzma (XZ Utils)
|
|
45
|
+
- Purpose: libarchive dependency providing LZMA/XZ compression; included with archive_r packages.
|
|
46
|
+
- Version (manylinux wheels): 5.6.2
|
|
47
|
+
- License: BSD Zero Clause License (0BSD) for liblzma (https://tukaani.org/xz/)
|
|
48
|
+
- Full license texts and notices: LICENSES/xz-COPYING, LICENSES/xz-COPYING.0BSD
|
|
49
|
+
|
|
50
|
+
6. libxml2
|
|
51
|
+
- Purpose: libarchive dependency used for archive formats such as xar; distributed alongside archive_r.
|
|
52
|
+
- Version (manylinux wheels): 2.13.4
|
|
53
|
+
- License: MIT-style License (http://xmlsoft.org/)
|
|
54
|
+
- Full license text and notices: LICENSES/libxml2-Copyright
|
|
55
|
+
|
|
56
|
+
7. zstd
|
|
57
|
+
- Purpose: libarchive dependency providing Zstandard compression; shipped within archive_r binaries.
|
|
58
|
+
- Version (manylinux wheels): 1.5.5
|
|
59
|
+
- License: BSD License (https://github.com/facebook/zstd)
|
|
60
|
+
- Full license text and notices: LICENSES/zstd-LICENSE
|
|
61
|
+
|
|
62
|
+
8. Nettle
|
|
63
|
+
- Purpose: libarchive dependency providing cryptographic support (macOS/Linux); bundled with archive_r binaries.
|
|
64
|
+
- Version (manylinux wheels): 3.9.1
|
|
65
|
+
- License: GNU LGPLv3+ or GNU GPLv2+ (https://www.lysator.liu.se/~nisse/nettle/)
|
|
66
|
+
- Full license texts and notices: LICENSES/nettle-COPYING.LESSERv3, LICENSES/nettle-COPYINGv2
|
|
67
|
+
|
|
68
|
+
9. mini-gmp
|
|
69
|
+
- Purpose: Nettle dependency for arithmetic operations (macOS/Linux); bundled with archive_r binaries.
|
|
70
|
+
- License: GNU LGPLv3+ or GNU GPLv2+ (https://gmplib.org/)
|
|
71
|
+
|
|
72
|
+
10. OpenSSL 3
|
|
73
|
+
- Purpose: libarchive dependency providing cryptographic support (Windows); bundled with archive_r Windows wheels.
|
|
74
|
+
- License: Apache License 2.0 with OpenSSL exception (https://www.openssl.org/source/license.html)
|
|
75
|
+
|
|
76
|
+
11. lz4
|
|
77
|
+
- Purpose: libarchive dependency providing LZ4 compression; shipped with archive_r artifacts when required.
|
|
78
|
+
- Version (manylinux wheels): 1.10.0
|
|
79
|
+
- License: BSD 2-Clause (https://github.com/lz4/lz4)
|
|
80
|
+
- Full license text and notices: LICENSES/lz4-LICENSE
|
|
81
|
+
|
|
82
|
+
12. libb2 (BLAKE2)
|
|
83
|
+
- Purpose: libarchive dependency providing BLAKE2 hashing; bundled when archive formats require it.
|
|
84
|
+
- Version (manylinux wheels): 0.98.1
|
|
85
|
+
- License: CC0 1.0 Universal (https://github.com/BLAKE2/libb2)
|
|
86
|
+
- Full license text and notices: LICENSES/libb2-COPYING
|
|
87
|
+
|
|
88
|
+
13. libattr
|
|
89
|
+
- Purpose: libarchive dependency providing extended attribute support on POSIX platforms; included in POSIX builds only.
|
|
90
|
+
- Version (manylinux wheels): 2.5.2
|
|
91
|
+
- License: LGPL-2.1-or-later for the library (https://savannah.nongnu.org/projects/attr)
|
|
92
|
+
- Full license text and notices: LICENSES/attr-COPYING.LGPL
|
|
93
|
+
|
|
94
|
+
14. libacl
|
|
95
|
+
- Purpose: libarchive dependency providing POSIX ACL support; included in POSIX builds only.
|
|
96
|
+
- Version (manylinux wheels): 2.3.2
|
|
97
|
+
- License: LGPL-2.1-or-later for the library (https://savannah.nongnu.org/projects/acl)
|
|
98
|
+
- Full license text and notices: LICENSES/acl-COPYING.LGPL
|
|
99
|
+
|
|
100
|
+
15. LLVM OpenMP runtime (libomp)
|
|
101
|
+
- Purpose: runtime dependency that can be bundled into Linux wheels depending on toolchain and binary dependencies.
|
|
102
|
+
- License: Apache License 2.0 with LLVM Exceptions (https://llvm.org/)
|
|
103
|
+
- Full license text and notices: LICENSES/libomp-LICENSE.TXT
|
|
104
|
+
|
|
105
|
+
----------------------------------------
|
|
106
|
+
Source Availability
|
|
107
|
+
----------------------------------------
|
|
108
|
+
|
|
109
|
+
For the components redistributed in binary form, the corresponding source code
|
|
110
|
+
can be obtained from the upstream project release pages listed above.
|
|
111
|
+
|
|
112
|
+
For the manylinux wheel build, exact dependency versions are recorded in:
|
|
113
|
+
- bindings/python/tools/build-deps-manylinux.sh
|
|
114
|
+
|
|
115
|
+
Full license texts copied from upstream release archives are stored under:
|
|
116
|
+
- LICENSES/
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
// Copyright (c) 2025 archive_r Team
|
|
3
|
-
|
|
4
|
-
#pragma once
|
|
5
|
-
|
|
6
|
-
#include "archive_r/path_hierarchy.h"
|
|
7
|
-
#include "archive_r/platform_compat.h"
|
|
8
|
-
|
|
9
|
-
#include <cstdint>
|
|
10
|
-
#include <functional>
|
|
11
|
-
#include <memory>
|
|
12
|
-
|
|
13
|
-
namespace archive_r {
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @brief Abstract stream interface used by the archive traversal stack
|
|
17
|
-
*/
|
|
18
|
-
class IDataStream {
|
|
19
|
-
public:
|
|
20
|
-
virtual ~IDataStream() = default;
|
|
21
|
-
virtual ssize_t read(void *buffer, size_t size) = 0;
|
|
22
|
-
virtual void rewind() = 0;
|
|
23
|
-
virtual bool at_end() const = 0;
|
|
24
|
-
virtual int64_t seek(int64_t offset, int whence) { return -1; }
|
|
25
|
-
virtual int64_t tell() const { return -1; }
|
|
26
|
-
virtual bool can_seek() const { return false; }
|
|
27
|
-
virtual PathHierarchy source_hierarchy() const = 0;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
using RootStreamFactory = std::function<std::shared_ptr<IDataStream>(const PathHierarchy &)>;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @brief Register the default factory used for root PathHierarchy streams
|
|
34
|
-
*/
|
|
35
|
-
void set_root_stream_factory(RootStreamFactory factory);
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @brief Retrieve the currently registered root stream factory
|
|
39
|
-
*/
|
|
40
|
-
RootStreamFactory get_root_stream_factory();
|
|
41
|
-
|
|
42
|
-
} // namespace archive_r
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Copyright (c) 2025 archive_r Team
|
|
3
|
+
|
|
4
|
+
#pragma once
|
|
5
|
+
|
|
6
|
+
#include "archive_r/path_hierarchy.h"
|
|
7
|
+
#include "archive_r/platform_compat.h"
|
|
8
|
+
|
|
9
|
+
#include <cstdint>
|
|
10
|
+
#include <functional>
|
|
11
|
+
#include <memory>
|
|
12
|
+
|
|
13
|
+
namespace archive_r {
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @brief Abstract stream interface used by the archive traversal stack
|
|
17
|
+
*/
|
|
18
|
+
class IDataStream {
|
|
19
|
+
public:
|
|
20
|
+
virtual ~IDataStream() = default;
|
|
21
|
+
virtual ssize_t read(void *buffer, size_t size) = 0;
|
|
22
|
+
virtual void rewind() = 0;
|
|
23
|
+
virtual bool at_end() const = 0;
|
|
24
|
+
virtual int64_t seek(int64_t offset, int whence) { return -1; }
|
|
25
|
+
virtual int64_t tell() const { return -1; }
|
|
26
|
+
virtual bool can_seek() const { return false; }
|
|
27
|
+
virtual PathHierarchy source_hierarchy() const = 0;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
using RootStreamFactory = std::function<std::shared_ptr<IDataStream>(const PathHierarchy &)>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @brief Register the default factory used for root PathHierarchy streams
|
|
34
|
+
*/
|
|
35
|
+
void set_root_stream_factory(RootStreamFactory factory);
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @brief Retrieve the currently registered root stream factory
|
|
39
|
+
*/
|
|
40
|
+
RootStreamFactory get_root_stream_factory();
|
|
41
|
+
|
|
42
|
+
} // namespace archive_r
|