Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 081ff7a

Browse files
committed
UPDATE depedns
1 parent d9bdb88 commit 081ff7a

File tree

208 files changed

+29368
-29094
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+29368
-29094
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Author: Force Charlie Copyright (C) 2022. Force Charlie. All Rights Reserved.
2-
cmake_minimum_required(VERSION 3.20)
2+
cmake_minimum_required(VERSION 3.29)
33
project(uncia)
44

55
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE)
@@ -14,7 +14,7 @@ Please delete them.")
1414
endif()
1515

1616
set(CMAKE_C_STANDARD 17)
17-
set(CMAKE_CXX_STANDARD 20)
17+
set(CMAKE_CXX_STANDARD 23)
1818
set(CMAKE_CXX_STANDARD_REQUIRED YES)
1919

2020
set(UNCIA_ENABLE_LTO OFF)
@@ -72,8 +72,8 @@ else()
7272
endif()
7373

7474
set(UNCIA_VERSION_MAJOR 2)
75-
set(UNCIA_VERSION_MINOR 0)
76-
set(UNCIA_VERSION_PATCH 6)
75+
set(UNCIA_VERSION_MINOR 1)
76+
set(UNCIA_VERSION_PATCH 0)
7777
set(PACKAGE_VERSION "${UNCIA_VERSION_MAJOR}.${UNCIA_VERSION_MINOR}.${UNCIA_VERSION_PATCH}")
7878

7979
string(TOLOWER "${CMAKE_C_COMPILER_ARCHITECTURE_ID}" UNCIA_ARCH_NAME)

lib/libarchive/CMakeLists.txt

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
#
66
############################################
77

8+
if (ANDROID)
9+
include_directories(${PROJECT_SOURCE_DIR}/contrib/android/include)
10+
endif()
11+
812
# Public headers
913
SET(include_HEADERS
1014
archive.h
@@ -78,6 +82,7 @@ SET(libarchive_SOURCES
7882
archive_read_set_format.c
7983
archive_read_set_options.c
8084
archive_read_support_filter_all.c
85+
archive_read_support_filter_by_code.c
8186
archive_read_support_filter_bzip2.c
8287
archive_read_support_filter_compress.c
8388
archive_read_support_filter_gzip.c
@@ -238,24 +243,33 @@ ELSEIF(ARCHIVE_ACL_SUNOS)
238243
ENDIF()
239244

240245
# Libarchive is a shared library
241-
ADD_LIBRARY(archive SHARED ${libarchive_SOURCES} ${include_HEADERS})
242-
TARGET_INCLUDE_DIRECTORIES(archive PUBLIC .)
243-
TARGET_LINK_LIBRARIES(archive ${ADDITIONAL_LIBS})
244-
SET_TARGET_PROPERTIES(archive PROPERTIES SOVERSION ${SOVERSION})
246+
IF(BUILD_SHARED_LIBS)
247+
ADD_LIBRARY(archive SHARED ${libarchive_SOURCES} ${include_HEADERS})
248+
TARGET_INCLUDE_DIRECTORIES(archive PUBLIC .)
249+
TARGET_LINK_LIBRARIES(archive ${ADDITIONAL_LIBS})
250+
SET_TARGET_PROPERTIES(archive PROPERTIES SOVERSION ${SOVERSION})
251+
ENDIF(BUILD_SHARED_LIBS)
245252

246253
# archive_static is a static library
247254
ADD_LIBRARY(archive_static STATIC ${libarchive_SOURCES} ${include_HEADERS})
255+
TARGET_INCLUDE_DIRECTORIES(archive_static PUBLIC .)
248256
TARGET_LINK_LIBRARIES(archive_static ${ADDITIONAL_LIBS})
249257
SET_TARGET_PROPERTIES(archive_static PROPERTIES COMPILE_DEFINITIONS
250258
LIBARCHIVE_STATIC)
251259
# On Posix systems, libarchive.so and libarchive.a can co-exist.
252-
IF(NOT WIN32 OR CYGWIN)
260+
IF(NOT WIN32 OR CYGWIN OR NOT BUILD_SHARED_LIBS)
253261
SET_TARGET_PROPERTIES(archive_static PROPERTIES OUTPUT_NAME archive)
254-
ENDIF(NOT WIN32 OR CYGWIN)
262+
ENDIF(NOT WIN32 OR CYGWIN OR NOT BUILD_SHARED_LIBS)
255263

256264
IF(ENABLE_INSTALL)
257265
# How to install the libraries
258-
INSTALL(TARGETS archive archive_static
266+
IF(BUILD_SHARED_LIBS)
267+
INSTALL(TARGETS archive
268+
RUNTIME DESTINATION bin
269+
LIBRARY DESTINATION lib
270+
ARCHIVE DESTINATION lib)
271+
ENDIF(BUILD_SHARED_LIBS)
272+
INSTALL(TARGETS archive_static
259273
RUNTIME DESTINATION bin
260274
LIBRARY DESTINATION lib
261275
ARCHIVE DESTINATION lib)

lib/libarchive/archive.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2222
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2323
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24-
*
25-
* $FreeBSD: src/lib/libarchive/archive.h.in,v 1.50 2008/05/26 17:00:22 kientzle Exp $
2624
*/
2725

2826
#ifndef ARCHIVE_H_INCLUDED
@@ -36,7 +34,7 @@
3634
* assert that ARCHIVE_VERSION_NUMBER >= 2012108.
3735
*/
3836
/* Note: Compiler will complain if this does not match archive_entry.h! */
39-
#define ARCHIVE_VERSION_NUMBER 3007003
37+
#define ARCHIVE_VERSION_NUMBER 3007004
4038

4139
#include <sys/stat.h>
4240
#include <stddef.h> /* for wchar_t */
@@ -157,7 +155,7 @@ __LA_DECL int archive_version_number(void);
157155
/*
158156
* Textual name/version of the library, useful for version displays.
159157
*/
160-
#define ARCHIVE_VERSION_ONLY_STRING "3.7.3dev"
158+
#define ARCHIVE_VERSION_ONLY_STRING "3.7.4"
161159
#define ARCHIVE_VERSION_STRING "libarchive " ARCHIVE_VERSION_ONLY_STRING
162160
__LA_DECL const char * archive_version_string(void);
163161

@@ -535,6 +533,10 @@ __LA_DECL int archive_read_open_filenames(struct archive *,
535533
const char **_filenames, size_t _block_size);
536534
__LA_DECL int archive_read_open_filename_w(struct archive *,
537535
const wchar_t *_filename, size_t _block_size);
536+
#if defined(_WIN32) && !defined(__CYGWIN__)
537+
__LA_DECL int archive_read_open_filenames_w(struct archive *,
538+
const wchar_t **_filenames, size_t _block_size);
539+
#endif
538540
/* archive_read_open_file() is a deprecated synonym for ..._open_filename(). */
539541
__LA_DECL int archive_read_open_file(struct archive *,
540542
const char *_filename, size_t _block_size) __LA_DEPRECATED;
@@ -893,7 +895,7 @@ __LA_DECL int archive_write_set_options(struct archive *_a,
893895
const char *opts);
894896

895897
/*
896-
* Set a encryption passphrase.
898+
* Set an encryption passphrase.
897899
*/
898900
__LA_DECL int archive_write_set_passphrase(struct archive *_a, const char *p);
899901
__LA_DECL int archive_write_set_passphrase_callback(struct archive *,

lib/libarchive/archive_acl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
*/
2626

2727
#include "archive_platform.h"
28-
__FBSDID("$FreeBSD$");
2928

3029
#ifdef HAVE_ERRNO_H
3130
#include <errno.h>

lib/libarchive/archive_acl_private.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2222
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2323
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24-
*
25-
* $FreeBSD$
2624
*/
2725

2826
#ifndef ARCHIVE_ACL_PRIVATE_H_INCLUDED

lib/libarchive/archive_check_magic.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
*/
2525

2626
#include "archive_platform.h"
27-
__FBSDID("$FreeBSD: head/lib/libarchive/archive_check_magic.c 201089 2009-12-28 02:20:23Z kientzle $");
2827

2928
#ifdef HAVE_SYS_TYPES_H
3029
#include <sys/types.h>
@@ -62,7 +61,7 @@ errmsg(const char *m)
6261
}
6362
}
6463

65-
static __LA_DEAD void
64+
static __LA_NORETURN void
6665
diediedie(void)
6766
{
6867
#if defined(_WIN32) && !defined(__CYGWIN__) && defined(_DEBUG)
@@ -99,13 +98,12 @@ archive_handle_type_name(unsigned m)
9998
}
10099
}
101100

102-
103-
static char *
101+
static void
104102
write_all_states(char *buff, unsigned int states)
105103
{
106104
unsigned int lowbit;
107105

108-
buff[0] = '\0';
106+
*buff = '\0';
109107

110108
/* A trick for computing the lowest set bit. */
111109
while ((lowbit = states & (1 + ~states)) != 0) {
@@ -114,7 +112,6 @@ write_all_states(char *buff, unsigned int states)
114112
if (states != 0)
115113
strcat(buff, "/");
116114
}
117-
return buff;
118115
}
119116

120117
/*
@@ -160,16 +157,19 @@ __archive_check_magic(struct archive *a, unsigned int magic,
160157

161158
if ((a->state & state) == 0) {
162159
/* If we're already FATAL, don't overwrite the error. */
163-
if (a->state != ARCHIVE_STATE_FATAL)
160+
if (a->state != ARCHIVE_STATE_FATAL) {
161+
write_all_states(states1, a->state);
162+
write_all_states(states2, state);
164163
archive_set_error(a, -1,
165164
"INTERNAL ERROR: Function '%s' invoked with"
166165
" archive structure in state '%s',"
167166
" should be in state '%s'",
168167
function,
169-
write_all_states(states1, a->state),
170-
write_all_states(states2, state));
168+
states1,
169+
states2);
170+
}
171171
a->state = ARCHIVE_STATE_FATAL;
172172
return (ARCHIVE_FATAL);
173173
}
174-
return ARCHIVE_OK;
174+
return (ARCHIVE_OK);
175175
}

lib/libarchive/archive_cmdline.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525

2626
#include "archive_platform.h"
2727

28-
__FBSDID("$FreeBSD$");
29-
3028
#ifdef HAVE_STRING_H
3129
# include <string.h>
3230
#endif

lib/libarchive/archive_cmdline_private.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2222
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2323
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24-
*
25-
* $FreeBSD$
2624
*/
2725

2826
#ifndef ARCHIVE_CMDLINE_PRIVATE_H

lib/libarchive/archive_crc32.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2222
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2323
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24-
*
25-
* $FreeBSD: head/lib/libarchive/archive_crc32.h 201102 2009-12-28 03:11:36Z kientzle $
2624
*/
2725

2826
#ifndef ARCHIVE_CRC32_H

lib/libarchive/archive_cryptor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,8 @@ static int
424424
aes_ctr_release(archive_crypto_ctx *ctx)
425425
{
426426
EVP_CIPHER_CTX_free(ctx->ctx);
427-
memset(ctx->key, 0, ctx->key_len);
428-
memset(ctx->nonce, 0, sizeof(ctx->nonce));
427+
OPENSSL_cleanse(ctx->key, ctx->key_len);
428+
OPENSSL_cleanse(ctx->nonce, sizeof(ctx->nonce));
429429
return 0;
430430
}
431431

0 commit comments

Comments
 (0)