mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 09:59:07 +08:00
[libzip] Fix patch not applying (#8918)
* [libzip]Update patch to avoid patch failure. * [libzip]Fix the version in CONTROL file.
This commit is contained in:
commit
c53db2c90c
@ -1,5 +1,5 @@
|
||||
Source: libzip
|
||||
Version: rel-1-5-2
|
||||
Version: rel-1-5-2--1
|
||||
Homepage: https://github.com/nih-at/libzip
|
||||
Build-Depends: zlib
|
||||
Default-Features: openssl, bzip2
|
||||
|
@ -1,13 +1,13 @@
|
||||
diff --git a/lib/zip_source_winzip_aes_encode.c b/lib/zip_source_winzip_aes_encode.c
|
||||
|
||||
--- a/lib/zip_source_winzip_aes_encode.c
|
||||
+++ b/lib/zip_source_winzip_aes_encode.c
|
||||
@@ -163,7 +163,7 @@ winzip_aes_encrypt(zip_source_t *src, void *ud, void *data, zip_uint64_t length,
|
||||
/* TODO: return partial read? */
|
||||
return -1;
|
||||
}
|
||||
- buffer_n += _zip_buffer_read(ctx->buffer, data + ret, length - (zip_uint64_t)ret);
|
||||
+ buffer_n += _zip_buffer_read(ctx->buffer, (zip_uint8_t *)data + ret, length - (zip_uint64_t)ret);
|
||||
}
|
||||
|
||||
return (zip_int64_t)(buffer_n + (zip_uint64_t)ret);
|
||||
diff --git a/lib/zip_source_winzip_aes_encode.c b/lib/zip_source_winzip_aes_encode.c
|
||||
index c428c9a..4e5f753 100644
|
||||
--- a/lib/zip_source_winzip_aes_encode.c
|
||||
+++ b/lib/zip_source_winzip_aes_encode.c
|
||||
@@ -163,7 +163,7 @@ winzip_aes_encrypt(zip_source_t *src, void *ud, void *data, zip_uint64_t length,
|
||||
/* TODO: return partial read? */
|
||||
return -1;
|
||||
}
|
||||
- buffer_n += _zip_buffer_read(ctx->buffer, data + ret, length - (zip_uint64_t)ret);
|
||||
+ buffer_n += _zip_buffer_read(ctx->buffer, (zip_uint8_t *)data + ret, length - (zip_uint64_t)ret);
|
||||
}
|
||||
|
||||
return (zip_int64_t)(buffer_n + (zip_uint64_t)ret);
|
||||
|
@ -1,4 +1,3 @@
|
||||
include(vcpkg_common_functions)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO nih-at/libzip
|
||||
@ -33,6 +32,7 @@ vcpkg_configure_cmake(
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
# Remove include directories from lib
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/libzip ${CURRENT_PACKAGES_DIR}/debug/lib/libzip)
|
||||
@ -41,6 +41,4 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/libzip ${CURRENT_PACKAGES_DIR}/d
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# Copy copright information
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libzip RENAME copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
Loading…
Reference in New Issue
Block a user