aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2020-05-26 02:52:48 +0800
committerGitHub <noreply@github.com>2020-05-25 11:52:48 -0700
commitb271aeffa25c53f3750f58ad6209f3fa7c528716 (patch)
treee2d85c56570965e26803b629502e9bcb7efa648d
parent2ac2b5f3da6b46ff2ae900550bd7c44f39c57dcd (diff)
downloadvcpkg-b271aeffa25c53f3750f58ad6209f3fa7c528716.tar.gz
vcpkg-b271aeffa25c53f3750f58ad6209f3fa7c528716.zip
[VCPKG baseline] Fix many ports (#11559)
-rw-r--r--ports/apr-util/CONTROL2
-rw-r--r--ports/apr-util/portfile.cmake5
-rw-r--r--ports/bond/CONTROL2
-rw-r--r--ports/bond/portfile.cmake11
-rw-r--r--ports/ccfits/CONTROL2
-rw-r--r--ports/ccfits/portfile.cmake4
-rw-r--r--ports/geographiclib/CONTROL2
-rw-r--r--ports/geographiclib/portfile.cmake2
-rw-r--r--ports/libaiff/CONTROL2
-rw-r--r--ports/libaiff/portfile.cmake7
-rw-r--r--ports/ois/CONTROL2
-rw-r--r--ports/ois/portfile.cmake3
-rw-r--r--ports/opencc/CONTROL2
-rw-r--r--ports/opencc/portfile.cmake2
-rw-r--r--ports/wtl/CONTROL3
-rw-r--r--ports/wtl/portfile.cmake2
-rw-r--r--ports/xmsh/CONTROL3
-rw-r--r--ports/xmsh/portfile.cmake28
-rw-r--r--scripts/azure-pipelines/linux/azure-pipelines.yml7
-rw-r--r--scripts/ci.baseline.txt3
20 files changed, 38 insertions, 56 deletions
diff --git a/ports/apr-util/CONTROL b/ports/apr-util/CONTROL
index c20e232bb..766aeb919 100644
--- a/ports/apr-util/CONTROL
+++ b/ports/apr-util/CONTROL
@@ -1,5 +1,5 @@
Source: apr-util
-Version: 1.6.1
+Version: 1.6.1-1
Homepage: https://apr.apache.org/
Description: Apache Portable Runtime (APR) project mission is to create and maintain software libraries that provide a predictable and consistent interface to underlying platform-specific implementation
Build-Depends: expat, apr, openssl
diff --git a/ports/apr-util/portfile.cmake b/ports/apr-util/portfile.cmake
index 15b74d363..1065bdb72 100644
--- a/ports/apr-util/portfile.cmake
+++ b/ports/apr-util/portfile.cmake
@@ -1,4 +1,3 @@
-
vcpkg_download_distfile(ARCHIVE
URLS "http://archive.apache.org/dist/apr/apr-util-1.6.1.tar.bz2"
FILENAME "apr-util-1.6.1.tar.bz2"
@@ -7,7 +6,6 @@ vcpkg_download_distfile(ARCHIVE
)
if(VCPKG_TARGET_IS_WINDOWS)
-
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
@@ -46,7 +44,6 @@ if(VCPKG_TARGET_IS_WINDOWS)
file(WRITE ${CURRENT_PACKAGES_DIR}/include/apu.h "${APU_H}")
else(VCPKG_TARGET_IS_WINDOWS)
-
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
@@ -70,7 +67,7 @@ else(VCPKG_TARGET_IS_WINDOWS)
NO_DEBUG
OPTIONS
"--prefix=${CURRENT_INSTALLED_DIR}"
- "--with-apr=${CURRENT_INSTALLED_DIR}"
+ "--with-apr=${CURRENT_INSTALLED_DIR}/tools/apr"
"--with-openssl=${CURRENT_INSTALLED_DIR}"
"-with-expat=${CURRENT_INSTALLED_DIR}"
"${CONFIGURE_PARAMETER_1}"
diff --git a/ports/bond/CONTROL b/ports/bond/CONTROL
index 9a6e00f6d..b0a2a9a75 100644
--- a/ports/bond/CONTROL
+++ b/ports/bond/CONTROL
@@ -1,5 +1,5 @@
Source: bond
-Version: 8.1.0-3
+Version: 8.1.0-4
Description: Bond is a cross-platform framework for working with schematized data. It supports cross-language de/serialization and powerful generic mechanisms for efficiently manipulating data. Bond is broadly used at Microsoft in high scale services.
Homepage: https://github.com/Microsoft/bond
Build-Depends: rapidjson, boost-config, boost-utility, boost-assign
diff --git a/ports/bond/portfile.cmake b/ports/bond/portfile.cmake
index f21d2e7f8..47e2b782d 100644
--- a/ports/bond/portfile.cmake
+++ b/ports/bond/portfile.cmake
@@ -1,5 +1,3 @@
-include(vcpkg_common_functions)
-
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
@@ -11,7 +9,7 @@ vcpkg_from_github(
PATCHES fix-install-path.patch
)
-if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "windows" OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+if (VCPKG_TARGET_IS_WINDOWS)
vcpkg_download_distfile(GBC_ARCHIVE
URLS "https://github.com/microsoft/bond/releases/download/8.1.0/gbc-8.1.0-amd64.zip"
FILENAME "gbc-8.1.0-amd64.zip"
@@ -50,13 +48,12 @@ vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/bond TARGET_PATH share/bond)
-# Put the license file where vcpkg expects it
-file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/bond)
-file(RENAME ${CURRENT_PACKAGES_DIR}/share/bond/LICENSE ${CURRENT_PACKAGES_DIR}/share/bond/copyright)
+vcpkg_copy_pdbs()
# There's no way to supress installation of the headers in the debug build,
# so we just delete them.
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
-vcpkg_copy_pdbs()
+# Put the license file where vcpkg expects it
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/ccfits/CONTROL b/ports/ccfits/CONTROL
index f2603b80e..02234c94e 100644
--- a/ports/ccfits/CONTROL
+++ b/ports/ccfits/CONTROL
@@ -1,5 +1,5 @@
Source: ccfits
-Version: 2.5-4
+Version: 2.5-5
Homepage: https://heasarc.gsfc.nasa.gov/fitsio/ccfits
Description: CCfits is an object oriented interface to the cfitsio library. It is designed to make the capabilities of cfitsio available to programmers working in C++.
Build-Depends: cfitsio
diff --git a/ports/ccfits/portfile.cmake b/ports/ccfits/portfile.cmake
index e5f280944..6c33b383b 100644
--- a/ports/ccfits/portfile.cmake
+++ b/ports/ccfits/portfile.cmake
@@ -1,5 +1,3 @@
-include(vcpkg_common_functions)
-
vcpkg_download_distfile(ARCHIVE
URLS "https://heasarc.gsfc.nasa.gov/fitsio/ccfits/CCfits-2.5.tar.gz"
FILENAME "CCfits-2.5.tar.gz"
@@ -40,4 +38,4 @@ foreach(HEADER IN LISTS HEADERS)
endforeach()
# Handle copyright
-file(INSTALL ${SOURCE_PATH}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/ccfits RENAME copyright)
+file(INSTALL ${SOURCE_PATH}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/geographiclib/CONTROL b/ports/geographiclib/CONTROL
index 2738c3d74..3144c33f0 100644
--- a/ports/geographiclib/CONTROL
+++ b/ports/geographiclib/CONTROL
@@ -1,4 +1,4 @@
Source: geographiclib
-Version: 1.47-patch1-10
+Version: 1.47-patch1-11
Homepage: https://sourceforge.net/projects/geographiclib/
Description: a small set of C++ classes for performing conversions between geographic, UTM, UPS, MGRS, geocentric, and local cartesian coordinates, for gravity (e.g., EGM2008), geoid height, and geomagnetic field (e.g., WMM2010) calculations, and for solving geodesic problems.
diff --git a/ports/geographiclib/portfile.cmake b/ports/geographiclib/portfile.cmake
index e4fe5ad7a..4c7e9ce45 100644
--- a/ports/geographiclib/portfile.cmake
+++ b/ports/geographiclib/portfile.cmake
@@ -1,5 +1,3 @@
-include(vcpkg_common_functions)
-
vcpkg_download_distfile(ARCHIVE
URLS "https://jaist.dl.sourceforge.net/project/geographiclib/distrib/archive/GeographicLib-1.47-patch1.zip"
FILENAME "geographiclib-1.47-patch1.zip"
diff --git a/ports/libaiff/CONTROL b/ports/libaiff/CONTROL
index 490e53a7c..20113f1d3 100644
--- a/ports/libaiff/CONTROL
+++ b/ports/libaiff/CONTROL
@@ -1,4 +1,4 @@
Source: libaiff
-Version: 5.0-2
+Version: 5.0-3
Homepage: https://sourceforge.net/projects/aifftools
Description: LibAiff is an open-source library, providing C applications transparent read & write operations for Audio Interchange File Format (AIFF) files, with the goal of supporting all of its features
diff --git a/ports/libaiff/portfile.cmake b/ports/libaiff/portfile.cmake
index ad8e7b7db..034f05719 100644
--- a/ports/libaiff/portfile.cmake
+++ b/ports/libaiff/portfile.cmake
@@ -1,5 +1,3 @@
-include(vcpkg_common_functions)
-
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_download_distfile(ARCHIVE
@@ -22,7 +20,8 @@ file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h DESTINATION ${SOURCE_PATH}/libaiff)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
- OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
+ OPTIONS_DEBUG
+ -DDISABLE_INSTALL_HEADERS=ON
)
vcpkg_install_cmake()
@@ -38,4 +37,4 @@ foreach(HEADER ${HEADERS})
endforeach()
# Handle copyright
-file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libaiff RENAME copyright)
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/ois/CONTROL b/ports/ois/CONTROL
index 2759167a7..b43ed59dd 100644
--- a/ports/ois/CONTROL
+++ b/ports/ois/CONTROL
@@ -1,4 +1,4 @@
Source: ois
-Version: 1.5
+Version: 1.5-1
Description: Cross Platform Object Oriented Input Lib System. Meant to be very robust and compatiable with many systems and operating systems.
Homepage: https://wgois.github.io/OIS/ \ No newline at end of file
diff --git a/ports/ois/portfile.cmake b/ports/ois/portfile.cmake
index 526cdb6b8..f35d3d537 100644
--- a/ports/ois/portfile.cmake
+++ b/ports/ois/portfile.cmake
@@ -26,6 +26,3 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
-
-# CMake integration test
-# vcpkg_test_cmake(PACKAGE_NAME ${PORT})
diff --git a/ports/opencc/CONTROL b/ports/opencc/CONTROL
index beb57b0e8..7b6ee7df4 100644
--- a/ports/opencc/CONTROL
+++ b/ports/opencc/CONTROL
@@ -1,5 +1,5 @@
Source: opencc
-Version: 2020-04-26-2
+Version: 2020-04-26-3
Description: A project for conversion between Traditional and Simplified Chinese
Homepage: https://github.com/BYVoid/OpenCC
Supports: !(arm|arm64|uwp)
diff --git a/ports/opencc/portfile.cmake b/ports/opencc/portfile.cmake
index 0bac137e9..0d6b2a439 100644
--- a/ports/opencc/portfile.cmake
+++ b/ports/opencc/portfile.cmake
@@ -47,4 +47,4 @@ endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
-file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/wtl/CONTROL b/ports/wtl/CONTROL
index f5fb51483..07b11c3c9 100644
--- a/ports/wtl/CONTROL
+++ b/ports/wtl/CONTROL
@@ -1,5 +1,4 @@
Source: wtl
-Version: 10.0-4
+Version: 10.0-5
Homepage: https://sourceforge.net/projects/wtl/
Description: Windows Template Library (WTL) is a C++ library for developing Windows applications and UI components.
-Build-Depends:
diff --git a/ports/wtl/portfile.cmake b/ports/wtl/portfile.cmake
index 81ae30bb5..586d96ba2 100644
--- a/ports/wtl/portfile.cmake
+++ b/ports/wtl/portfile.cmake
@@ -1,5 +1,3 @@
-include(vcpkg_common_functions)
-
vcpkg_download_distfile(ARCHIVE
URLS "https://downloads.sourceforge.net/project/wtl/WTL%2010/WTL%2010.0.9163/WTL10_9163.zip"
FILENAME "WTL10_9163.zip"
diff --git a/ports/xmsh/CONTROL b/ports/xmsh/CONTROL
index 771abe76f..758a54ba3 100644
--- a/ports/xmsh/CONTROL
+++ b/ports/xmsh/CONTROL
@@ -1,4 +1,5 @@
Source: xmsh
-Version: 0.5.2
+Version: 0.5.2-1
Description: Reference Implementation of XMSH Library
Build-Depends: tl-expected, nlohmann-json
+Homepage: https://gitlab.com/libxmsh/xmsh \ No newline at end of file
diff --git a/ports/xmsh/portfile.cmake b/ports/xmsh/portfile.cmake
index 615f8fa9a..7d74e7da9 100644
--- a/ports/xmsh/portfile.cmake
+++ b/ports/xmsh/portfile.cmake
@@ -1,19 +1,15 @@
-include(vcpkg_common_functions)
-
vcpkg_find_acquire_program(PYTHON3)
-if (NOT VCPKG_TARGET_IS_WINDOWS)
- message("Building with a gcc version less than 7.1.0 is not supported.")
-else()
- message(FATAL_ERROR "xmsh only support Linux/OSX.")
-endif()
+vcpkg_fail_port_install(ON_TARGET "Windows")
+message("Building with a gcc version less than 7.1.0 is not supported.")
-vcpkg_from_github(
- OUT_SOURCE_PATH SOURCE_PATH
- REPO libxmsh/xmsh
- REF e1900845b796ef977db70519b2ac08eebd788236 #v0.5.2
- SHA512 643c6c94956de9b6fae635b6528e8ba756f4a2bc38de71613c2dd8d47f4a043aee7b6e7fec1870b306be3bea9f5c0c81d1d343bfc27883b3fba986fbc5b15406
- HEAD_REF master
+vcpkg_from_gitlab(
+ GITLAB_URL https://gitlab.com
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO libxmsh/xmsh
+ REF e1900845b796ef977db70519b2ac08eebd788236
+ SHA512 643c6c94956de9b6fae635b6528e8ba756f4a2bc38de71613c2dd8d47f4a043aee7b6e7fec1870b306be3bea9f5c0c81d1d343bfc27883b3fba986fbc5b15406
+ HEAD_REF master
)
vcpkg_configure_cmake(
@@ -29,6 +25,8 @@ set(ENV{PATH} "$ENV{PATH};${PYPATH}")
vcpkg_install_cmake()
+vcpkg_copy_pdbs()
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
@@ -36,6 +34,4 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
-file(INSTALL ${SOURCE_PATH}/copyright.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/xmsh RENAME copyright)
-
-vcpkg_copy_pdbs()
+file(INSTALL ${SOURCE_PATH}/copyright.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/scripts/azure-pipelines/linux/azure-pipelines.yml b/scripts/azure-pipelines/linux/azure-pipelines.yml
index 67e9945a7..c51515148 100644
--- a/scripts/azure-pipelines/linux/azure-pipelines.yml
+++ b/scripts/azure-pipelines/linux/azure-pipelines.yml
@@ -19,6 +19,11 @@ jobs:
inputs:
filePath: scripts/azure-pipelines/linux/initialize-environment.sh
- bash: |
+ sudo mkdir /home/agent -m=777
+ sudo chown `id -u` /home/agent
+ exit 0
+ displayName: 'Create /home/agent'
+ - bash: |
df -h
displayName: 'Report on Disk Space After Environment'
condition: always()
@@ -32,7 +37,7 @@ jobs:
- powershell: |
$skipList = ./scripts/azure-pipelines/generate-skip-list.ps1 -Triplet "x64-linux" -BaselineFile "$(System.DefaultWorkingDirectory)/scripts/ci.baseline.txt"
mkdir $(System.ArtifactsDirectory)/xml-results
- $env:HOME = '/home/root'
+ $env:HOME = '/home/agent'
./vcpkg ci x64-linux --x-xunit="$(System.ArtifactsDirectory)/xml-results/x64-linux.xml" --exclude=$skipList --binarycaching
displayName: '** Test Modified Ports **'
- task: PowerShell@2
diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt
index 5d6ada674..9cb540ae6 100644
--- a/scripts/ci.baseline.txt
+++ b/scripts/ci.baseline.txt
@@ -76,9 +76,6 @@ anyrpc:x86-windows=ignore
anyrpc:x64-windows-static=ignore
apr:arm-uwp=fail
apr:x64-uwp=fail
-# Static builds fail beacuase apr-1-config is installed in bin
-apr:x64-linux=fail
-apr:x64-osx=fail
# Cross compiling CI machine cannot run gen_test_char to generate apr_escape_test_char.h
apr:arm64-windows=fail
argtable2:arm-uwp=fail