Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ For short description of available commands, run `vcpkg help`.
* Slack: [https://cppalliance.org/slack/](https://cppalliance.org/slack/), the #vcpkg channel
* Docs: [Documentation](docs/index.md)

| Windows (x86, x64, arm, uwp) | MacOS | Linux |
| ------------- | ------------- | ------------- |
| [![Build Status](https://dev.azure.com/vcpkg/public/_apis/build/status/vcpkg-Windows-master-CI?branchName=master)](https://dev.azure.com/vcpkg/public/_build/latest?definitionId=9&branchName=master) | [![Build Status](https://dev.azure.com/vcpkg/public/_apis/build/status/vcpkg-osx-master-CI?branchName=master)](https://dev.azure.com/vcpkg/public/_build/latest?definitionId=11&branchName=master) | [![Build Status](https://dev.azure.com/vcpkg/public/_apis/build/status/vcpkg-Linux-master-CI?branchName=master)](https://dev.azure.com/vcpkg/public/_build/latest?definitionId=6&branchName=master) |
[![Build Status](https://dev.azure.com/vcpkg/public/_apis/build/status/microsoft.vcpkg?branchName=master)](https://dev.azure.com/vcpkg/public/_build/latest?definitionId=27&branchName=master)

## Quick Start
Prerequisites:
Expand Down
2 changes: 1 addition & 1 deletion ports/argh/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: argh
Version: 2018-12-18-1
Version: 2018-12-18-2
Description: Argh! A minimalist argument handler.
2 changes: 2 additions & 0 deletions ports/argh/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ vcpkg_from_github(
REF a1edee559757e076e570b8f6c2f555d8d00b373c
SHA512 a100c7ff20ef9ed39d53efeac5507a6ed59fb99ccba36ac4b5f8f5aaac6782f8e951b2f26b9b50f6c6fdbc53b5bceaabbb9dd9b9539f968fc1037733342e17a6
HEAD_REF master
PATCHES
remove_unnamespaced_license_file.patch # https://github.com/adishavit/argh/pull/51
)

vcpkg_configure_cmake(
Expand Down
67 changes: 67 additions & 0 deletions ports/argh/remove_unnamespaced_license_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
From 83f364a2eb1b137453772ae9fcf5d7973770637f Mon Sep 17 00:00:00 2001
From: Billy Robert O'Neal III <bion@microsoft.com>
Date: Wed, 29 Apr 2020 13:01:31 -0700
Subject: [PATCH] Don't install 'LICENSE' or 'README.md' directly to the
installation directory.

This change unconditionally uses GNUInstallDirs which will correctly 'namespace' these files with the 'argh' project name.

=========

The names 'LICENSE' and 'README.md' are extremely common and likely to be taken by other ports. This happened in a recent full vcpkg catalog rebuild:

Starting package 757/1254: qt-advanced-docking-system:x86-windows
Building package qt-advanced-docking-system[core]:x86-windows...
Could not locate cached archive: C:\agent\_work\1\s\archives\a1\a1507296ead5788137561997571557204aaac78f.zip
-- Downloading https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/archive/661d0c4356ab61d155b53718aa1bf6bab86dad13.tar.gz...
-- Extracting source C:/agent/_work/1/s/downloads/githubuser0xFFFF-Qt-Advanced-Docking-System-661d0c4356ab61d155b53718aa1bf6bab86dad13.tar.gz
-- Applying patch config_changes.patch
-- Using source at C:/agent/_work/1/s/buildtrees/qt-advanced-docking-system/src/bab86dad13-3088149a9b
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Installing: C:/agent/_work/1/s/packages/qt-advanced-docking-system_x86-windows/share/qt-advanced-docking-system/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: C:\agent\_work\1\s\archives\a1\a1507296ead5788137561997571557204aaac78f.zip
Building package qt-advanced-docking-system[core]:x86-windows... done
Installing package qt-advanced-docking-system[core]:x86-windows...
The following files are already installed in C:/agent/_work/1/s/installed/x86-windows and are in conflict with qt-advanced-docking-system:x86-windows

Installed by argh:x86-windows
license/LICENSE

Elapsed time for package qt-advanced-docking-system:x86-windows: 11.09 s
---
CMakeLists.txt | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 13bc879..f6264f3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,19 +36,17 @@ endif()

install(TARGETS argh EXPORT arghTargets)

+include(GNUInstallDirs)
+install(FILES "${CMAKE_CURRENT_LIST_DIR}/argh.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+install(FILES "${CMAKE_CURRENT_LIST_DIR}/LICENSE" DESTINATION ${CMAKE_INSTALL_DOCDIR})
+install(FILES "${CMAKE_CURRENT_LIST_DIR}/README.md" DESTINATION ${CMAKE_INSTALL_DOCDIR})
+
if(CMAKE_SYSTEM_NAME STREQUAL Linux)
# this might be a bit too restrictive, since for other (BSD, ...) this might apply also
# but this can be fixed later in extra pull requests from people on the platform
- include(GNUInstallDirs)
- install(FILES "${CMAKE_CURRENT_LIST_DIR}/argh.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
- install(FILES "${CMAKE_CURRENT_LIST_DIR}/LICENSE" DESTINATION ${CMAKE_INSTALL_DOCDIR})
- install(FILES "${CMAKE_CURRENT_LIST_DIR}/README.md" DESTINATION ${CMAKE_INSTALL_DOCDIR})
install(FILES argh-config.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/argh)
install(EXPORT arghTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/argh)
else()
- install(FILES "${CMAKE_CURRENT_LIST_DIR}/argh.h" DESTINATION include)
- install(FILES "${CMAKE_CURRENT_LIST_DIR}/LICENSE" DESTINATION license)
- install(FILES "${CMAKE_CURRENT_LIST_DIR}/README.md" DESTINATION .)
install(FILES argh-config.cmake DESTINATION CMake)
install(EXPORT arghTargets DESTINATION CMake)
endif()
3 changes: 1 addition & 2 deletions ports/ceres/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

set(MSVC_USE_STATIC_CRT_VALUE OFF)
if(VCPKG_CRT_LINKAGE STREQUAL "static")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
Expand Down Expand Up @@ -69,6 +67,7 @@ vcpkg_configure_cmake(
-DLAPACK=${LAPACK}
-DSUITESPARSE=${SUITESPARSE}
-DMSVC_USE_STATIC_CRT=${MSVC_USE_STATIC_CRT_VALUE}
-DLIB_SUFFIX=${LIB_SUFFIX}
)

vcpkg_install_cmake()
Expand Down
3 changes: 1 addition & 2 deletions ports/glad/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ vcpkg_from_github(
)

vcpkg_find_acquire_program(PYTHON3)
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
vcpkg_add_to_path("${PYTHON3_DIR}")

file(COPY
${CURRENT_INSTALLED_DIR}/include/KHR/khrplatform.h
Expand All @@ -32,6 +30,7 @@ vcpkg_configure_cmake(
-DGLAD_REPRODUCIBLE=ON
-DGLAD_SPEC="gl" # {gl,egl,glx,wgl}
-DGLAD_PROFILE="compatibility" # {core,compatibility}
-DPYTHON_EXECUTABLE=${PYTHON3}
OPTIONS_DEBUG
-DGLAD_GENERATOR="c-debug"
)
Expand Down
5 changes: 3 additions & 2 deletions ports/idevicerestore/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Source: idevicerestore
Version: 1.0.12-3
Version: 1.0.12-4
Description: Restore/upgrade firmware of iOS devices
Build-Depends: libimobiledevice, curl, libirecovery, libzip
Build-Depends: libimobiledevice, curl, libirecovery, libzip
Supports: !(windows)
2 changes: 1 addition & 1 deletion ports/openblas/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: openblas
Version: 0.3.7
Version: 0.3.9-1
Homepage: https://github.com/xianyi/OpenBLAS
Build-Depends: pthread (linux)
Description: OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
23 changes: 23 additions & 0 deletions ports/openblas/github_2481.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
From 21f6c4b5a972683f7228e5ad446bc940947c2d2b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D9=85=D9=87=D8=AF=D9=8A=20=D8=B4=D9=8A=D9=86=D9=88=D9=86?=
=?UTF-8?q?=20=28Mehdi=20Chinoune=29?= <chinoune.mehdi@gmail.com>
Date: Mon, 2 Mar 2020 17:22:28 +0100
Subject: [PATCH] fixes #2480

---
cmake/cc.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/cc.cmake b/cmake/cc.cmake
index 22217575c..d5551147c 100644
--- a/cmake/cc.cmake
+++ b/cmake/cc.cmake
@@ -99,7 +99,7 @@ endif ()
if (${CORE} STREQUAL "SKYLAKEX")
if (NOT DYNAMIC_ARCH)
if (NOT NO_AVX512)
- set (CCOMMON_OPT = "${CCOMMON_OPT} -march=skylake-avx512")
+ set (CCOMMON_OPT "${CCOMMON_OPT} -march=skylake-avx512")
endif ()
endif ()
endif ()
5 changes: 3 additions & 2 deletions ports/openblas/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO xianyi/OpenBLAS
REF 5f36f18148603facb6c3540e673610d6b24cbfbb # v0.3.7
SHA512 c1abcfd6fbf6ae3efa28053523ffb3d72aefaa279594347bfd9910c40f25778421b8d1d2d4dc6c934c9def40642942bb74fe76e06c2d96b1898ea61204a95540
REF v0.3.9
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably use a git hash

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is that?

SHA512 e34da25b3aaf959ec12826ac68c81e739e453d44f2dba28b15e57d7a827edc4d5f42988e9b6d98ac07999940be7b5876246cb3a980e590ae87f77f4c2f12f40a
HEAD_REF develop
PATCHES
uwp.patch
fix-space-path.patch
fix-redefinition-function.patch
github_2481.patch
)

find_program(GIT NAMES git git.cmd)
Expand Down
4 changes: 2 additions & 2 deletions ports/qt-advanced-docking-system/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: qt-advanced-docking-system
Version: 3.2.5
Version: 3.2.5-1
Build-Depends: qt5-base, zlib, bzip2
Description: Create customizable layouts using an advanced window docking system similar to what is found in many popular IDEs such as Visual Studio
Homepage: https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System
Homepage: https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System
2 changes: 2 additions & 0 deletions ports/qt-advanced-docking-system/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
config_changes.patch
skip_license_install.patch
)

vcpkg_configure_cmake(
Expand All @@ -17,6 +18,7 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()

file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL ${SOURCE_PATH}/gnu-lgpl-v2.1.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/license)
vcpkg_fixup_cmake_targets()
Expand Down
19 changes: 19 additions & 0 deletions ports/qt-advanced-docking-system/skip_license_install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a2cb47d..57a1cf5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -81,14 +81,8 @@ install(FILES ${ads_INSTALL_INCLUDE}
DESTINATION include
COMPONENT headers
)
-install(FILES
- "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE"
- "${CMAKE_CURRENT_SOURCE_DIR}/gnu-lgpl-v2.1.md"
- DESTINATION license
- COMPONENT license
-)
install(TARGETS qtadvanceddocking
EXPORT qt-advanced-docking-systemConfig
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
Empty file modified scripts/azure-pipelines/analyze-test-results.ps1
100644 → 100755
Empty file.
9 changes: 7 additions & 2 deletions scripts/azure-pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# SPDX-License-Identifier: MIT
#
variables:
windows-pool: 'PrWin-2020-04-22'
windows-pool: 'PrWin-2020-04-28'
linux-pool: 'PrLin-2020-04-30'

jobs:
- template: windows/azure-pipelines.yml
Expand Down Expand Up @@ -41,4 +42,8 @@ jobs:
jobName: arm_uwp
poolName: $(windows-pool)

- template: macos/azure-pipelines.yml
- template: osx/azure-pipelines.yml

- template: linux/azure-pipelines.yml
parameters:
poolName: $(linux-pool)
Empty file modified scripts/azure-pipelines/generate-skip-list.ps1
100644 → 100755
Empty file.
39 changes: 39 additions & 0 deletions scripts/azure-pipelines/linux/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: MIT
#

jobs:
- job: x64_linux
pool:
name: ${{ parameters.poolName }}

timeoutInMinutes: 1440 # 1 day

steps:
- task: Bash@3
displayName: 'Initialize Environment'
inputs:
filePath: scripts/azure-pipelines/linux/initialize-environment.sh
- task: Bash@3
displayName: 'Build vcpkg'
inputs:
filePath: bootstrap-vcpkg.sh
- powershell: |
$skipList = ./scripts/azure-pipelines/generate-skip-list.ps1 -Triplet "x64-linux" -BaselineFile "$(System.DefaultWorkingDirectory)/scripts/ci.baseline.txt"
mkdir $(System.ArtifactsDirectory)/xml-results
mkdir /ci/home
$env:HOME = '/ci/home'
./vcpkg ci x64-linux --x-xunit="$(System.ArtifactsDirectory)/xml-results/x64-linux.xml" --exclude=$skipList --binarycaching
displayName: '** Test Modified Ports **'
- task: PowerShell@2
displayName: 'Analyze results and prepare test logs'
inputs:
failOnStderr: true
filePath: 'scripts/azure-pipelines/analyze-test-results.ps1'
arguments: '-baselineFile $(System.DefaultWorkingDirectory)/scripts/ci.baseline.txt -logDir "$(System.ArtifactsDirectory)/xml-results" -outputDir "$(Build.ArtifactStagingDirectory)" -failurelogDir "archives/fail" -triplets "x64-linux" -errorOnRegression'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: x86-linux Build Failure Logs'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/failureLogs'
ArtifactName: 'x64-linux port build failure logs'
condition: failed()
Loading