Skip to content

Commit

Permalink
Merge pull request #220 from microsoft/master
Browse files Browse the repository at this point in the history
[VCPKG baseline] Fix many ports (microsoft#11559)
  • Loading branch information
Jimmy-Hu authored May 26, 2020
2 parents 5f40870 + b271aef commit dab6636
Show file tree
Hide file tree
Showing 20 changed files with 38 additions and 56 deletions.
2 changes: 1 addition & 1 deletion ports/apr-util/CONTROL
Original file line number Diff line number Diff line change
@@ -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
5 changes: 1 addition & 4 deletions ports/apr-util/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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}
Expand Down Expand Up @@ -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}
Expand All @@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion ports/bond/CONTROL
Original file line number Diff line number Diff line change
@@ -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
11 changes: 4 additions & 7 deletions ports/bond/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
Expand All @@ -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"
Expand Down Expand Up @@ -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)
2 changes: 1 addition & 1 deletion ports/ccfits/CONTROL
Original file line number Diff line number Diff line change
@@ -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
4 changes: 1 addition & 3 deletions ports/ccfits/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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)
2 changes: 1 addition & 1 deletion ports/geographiclib/CONTROL
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 0 additions & 2 deletions ports/geographiclib/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ports/libaiff/CONTROL
Original file line number Diff line number Diff line change
@@ -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
7 changes: 3 additions & 4 deletions ports/libaiff/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_download_distfile(ARCHIVE
Expand All @@ -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()
Expand All @@ -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)
2 changes: 1 addition & 1 deletion ports/ois/CONTROL
Original file line number Diff line number Diff line change
@@ -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/
3 changes: 0 additions & 3 deletions ports/ois/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
2 changes: 1 addition & 1 deletion ports/opencc/CONTROL
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion ports/opencc/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
3 changes: 1 addition & 2 deletions ports/wtl/CONTROL
Original file line number Diff line number Diff line change
@@ -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:
2 changes: 0 additions & 2 deletions ports/wtl/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 2 additions & 1 deletion ports/xmsh/CONTROL
Original file line number Diff line number Diff line change
@@ -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
28 changes: 12 additions & 16 deletions ports/xmsh/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -29,13 +25,13 @@ 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)

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)
7 changes: 6 additions & 1 deletion scripts/azure-pipelines/linux/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
displayName: 'Initialize Environment'
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'
Expand All @@ -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
Expand Down
3 changes: 0 additions & 3 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dab6636

Please sign in to comment.