[bzip2] Update to 1.0.8. (#13178)

Fixes #12960
This commit is contained in:
Matthew Oliver 2020-08-29 08:39:29 +10:00 committed by GitHub
parent 62a64f09a1
commit f3f329a048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 24 deletions

View File

@ -1,5 +1,4 @@
Source: bzip2
Version: 1.0.6
Port-Version: 7
Version: 1.0.8
Homepage: http://www.bzip.org/
Description: High-quality data compressor.

View File

@ -1,12 +0,0 @@
diff -urN bzip2-1.0.6-orig/bzip2.c bzip2-1.0.6/bzip2.c
--- bzip2-1.0.6-orig/bzip2.c 2010-09-11 02:04:53.000000000 +0300
+++ bzip2-1.0.6/bzip2.c 2019-11-04 11:40:52.230652175 +0200
@@ -128,7 +128,7 @@
#if BZ_LCCWIN32
# include <io.h>
# include <fcntl.h>
-# include <sys\stat.h>
+# include <sys/stat.h>
# define NORETURN /**/
# define PATH_SEP '\\'

View File

@ -1,16 +1,9 @@
set(BZIP2_VERSION 1.0.6) # TODO: Update to 1.0.8
vcpkg_download_distfile(ARCHIVE # TODO: switch to vcpkg_from_git with https://sourceware.org/git/?p=bzip2.git;a=summary
URLS "https://github.com/past-due/bzip2-mirror/releases/download/v${BZIP2_VERSION}/bzip2-${BZIP2_VERSION}.tar.gz"
FILENAME "bzip2-${BZIP2_VERSION}.tar.gz"
SHA512 00ace5438cfa0c577e5f578d8a808613187eff5217c35164ffe044fbafdfec9e98f4192c02a7d67e01e5a5ccced630583ad1003c37697219b0f147343a3fdd12)
vcpkg_extract_source_archive_ex(
vcpkg_from_git(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
REF ${BZIP2_VERSION}
URL https://sourceware.org/git/bzip2.git
REF 75a94bea3918e612b879d6a11ca64b8689526147
PATCHES
fix-import-export-macros.patch
fix-windows-include.patch
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")