Commit Graph

835 Commits

Author SHA1 Message Date
Timofei Zhakov
6480b0fa85
[serf] new port (build using scons) (#41043) 2024-11-11 00:11:29 -08:00
jim wang
6dbc951463
[vcpkg-script] vcpkg_copy_pdbs() modify the regular matching of the pdb file path (#41609) 2024-11-07 01:43:56 -08:00
Javier Matos Denizac
7fd612ee1c
Revert msiexec dependency by adding using vcpkg.exe to unpack 7z.exe #41604 (#41973) 2024-11-05 21:29:42 +00:00
Javier Matos Denizac
2964ea8e32
Remove msiexec dependency by adding using vcpkg.exe to unpack 7z.exe (#41604)
Co-authored-by: Javier Matos <javiermatos@Javiers-Laptop.local>
2024-11-04 14:24:25 -05:00
Kai Pastor
359a5bb0ce
[scripts] Update msys2 packages (#41665) 2024-10-24 22:01:19 -07:00
Osyotr
7dcb4ca95b
[python3] Update port to 3.11.10, tools to 3.12.7 (#41232) 2024-10-17 22:25:41 -07:00
Stefano Sinigardi
1059769c51
[vcpkg scripts] enable patchelf on windows for cross-compiling toolchains (#41578) 2024-10-17 02:55:22 -07:00
autoantwort
c45ac46dcc
z_vcpkg_fixup_rpath_macho.cmake: Fix empty list check (#41443) 2024-10-09 15:57:18 -07:00
Kai Pastor
d0d081b3fc
[vcpkg_find_acquire_program] Fix extraction, cleanup (#40916) 2024-10-09 15:46:43 -04:00
Osyotr
ee08875bfb
[qt5] Update to 5.15.15 (#40809) 2024-09-08 11:46:15 -07:00
Nikita Fediuchin
05f7a52d9e
[vcpkg scripts] Update Strawberry Perl version (#40662)
Co-authored-by: Jon <v-zhli17@microsoft.com>
2024-09-03 13:40:08 -07:00
Lily Wang
b0b544f4e6
[7zip] Update to 24.08 (#40440)
Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
2024-08-14 15:56:52 -07:00
derekcyruschow-catapult
8babf36466
[vcpkg] fix find_library suffix/prefix definitions for iOS (#39972)
Co-authored-by: Derek Cyrus-Chow <derek.chow@catapult.com>
2024-07-27 01:18:48 -07:00
autoantwort
a68201b181
[vcpkg-scripts] z_vcpkg_fixup_macho_rpath_in_dir: Call install_name_tool only once (#39995) 2024-07-27 01:13:32 -07:00
Landry Norris
a2938d0e28
[vcpkg-scripts] Exclude .a files from patchelf (#40048) 2024-07-26 14:09:56 -07:00
Kai Pastor
5a5242aee4
[world rebuild][vcpkg scripts] Test, fix, extend vcpkg_execute_required_process (#39445)
Fixes `OUTPUT_VARIABLE`, `ERROR_VARIABLE`. 

vcpkg always wants logfiles. CMake (`execute_process`) doesn't send
stdout/stderr to files and variables at the same time, and even "the
precedence is not specified". So simultaneous output has to be handled
in `vcpkg_execute_required_process`.

At this occasion, port the arguments for stripping trailing whitespace.

`tensorflow-common` implicitly relied on the broken behavior. I chose
the minimal fix: drop the pointless calls, just set the empty value.
2024-06-28 22:21:10 -07:00
Alexander Neumann
1b72637922
[scripts] Fix wasm builds (#39106) 2024-06-28 17:28:34 -07:00
Matthias Kuhn
874fff8a6a
Fixup Macho-O rpath for osx-dynamic (#39313) 2024-06-27 14:26:23 -07:00
gerard-ryan-immersaview
6db51d86a9
[vcpkg_replace_string] warn unchanged by call (#34719)
If a call to `vcpkg_replace_string` makes no changes i.e doesn't
effectively replace a string, A warning is logged.

This should also help identify ports that no longer need these calls to
fix things in `.pc` files etc.
2024-06-19 14:07:05 -07:00
Kai Pastor
47633daa65
[vcpkg-scripts] Catch use of ambiguous cmake vars (#34546)
Avoid wrong use of popular but ambiguous variables (`WIN32` etc.) in
scripts and portfiles by detection in CI.

Sometimes the variables are used wrongly, and sometimes this isn't
caught in PR review. This PR tries to catch those variables (when in the
active code path in script mode). [This can happen to every
contributor](https://github.com/microsoft/vcpkg/pull/34356#discussion_r1360074122),
even if he/she knows the rules ... vcpkg is raising the bar higher than
usual, having to deal with targets and hosts even in script mode.

(`b2-options.cmake` (boost fragment) shows where we get if we don't pay
attention: the same code being used in script mode (`WIN32` meaning
host) and in project mode (`WIN32` meaning target).)

The new check doesn't break any user builds because it relies on command
line options. However it changes the ABI hashes.
2024-06-14 11:40:01 -07:00
Nathan Baird
027b48d217
Minor updates to comments for some verbiage that gets flagged by political correctness tools (#38719)
Replaces two terms used in comments with some more politically correct
alternatives.
2024-06-14 11:35:12 -07:00
Kai Pastor
94a50e8c13
[vcpkg_fixup_pkgconfig] Fix lib names starting with debug/optimized/general (#39227)
Thanks for the fix and the tests!
2024-06-13 00:37:56 -07:00
MonicaLiu
a193e8fb4e
[7zip] Update to 24.06 (#38790)
Fixes #38764, update `7zip` to 24.06.

No feature needs to be tested, the usage test passed on
`x64-windows`(header files found):
```
7zip provides CMake targets:

  # this is heuristically generated, and may not be correct
  find_package(7zip CONFIG REQUIRED)
  target_link_libraries(main PRIVATE 7zip::7zip)
```
2024-06-11 12:16:41 -07:00
Kai Pastor
856cd497b0
[vcpkg scripts] Update msys2 (#39088)
msys2-runtime no longer supports Windows 7 since version 3.5.
msys2-runtime-3.4 is the replacement for user who cannot upgrade. YMMV.

autoconf-wrapper is not updated, cf. #36774.

pkgconf is not updated, waiting for 2.2.
2024-06-10 15:38:54 -07:00
Javier Matos Denizac
7ebd64e6bb
[vcpkg_find_acquire(NASM).cmake] add nasm mirror (#38597)
depends on https://github.com/vcpkg/vcpkg.github.io/pull/161

Co-authored-by: Javier Matos <javiermatos@Javiers-Laptop.local>
2024-05-09 13:07:20 -07:00
Kai Pastor
a59ba45e60
[vcpkg-scripts] Fix rpath fixup; add test (#37964)
Fix fixup for debug tools,
https://github.com/microsoft/vcpkg/pull/37736#issuecomment-2035415913.
Fix fixup for paths with regex chars,
https://github.com/microsoft/vcpkg/issues/37984.
2024-04-23 15:09:16 -04:00
Alexander Neumann
9224b3bbd8
[vcpkg/scripts] Only add pkgconfig_path if it is not already on PATH (#38239)
closes #37213
2024-04-20 16:20:27 -04:00
Kai Pastor
8455223c87
[vcpkg scripts] Update msys2 pkgconf to 2.2.0 (#37844)
Should fix #37213.
2024-04-01 13:37:39 -07:00
Alexander Neumann
56db88cd3b
[scripts] fix vcpkg_configure_meson (#37396) 2024-03-15 18:20:05 -07:00
Alexander Neumann
a664e41ee5
[vcpkg-tool-meson] Update meson to 1.3.2 (#28084) 2024-03-11 14:09:15 -07:00
Billy O'Neal
e38b936343
Allow uname calls in download mode + Fix handling of files without RPATH (#37129)
... and don't fetch patchelf unless we actually need it. For example
cmake helper ports have no need to fetch patchelf.

In https://github.com/microsoft/vcpkg/pull/36056 , things were changed
to unconditionally patchelf when targeting Linux. Unfortunately that
broke --only-downloads a lot of the time. This fixes that.

Also contains @Osyotr 's fixes from
https://github.com/microsoft/vcpkg/pull/37190 to coalesce world rebuilds
a bit, so repeating comments from there:

Fixes https://github.com/microsoft/vcpkg/issues/37183
Towards https://github.com/microsoft/vcpkg/issues/25668
2024-03-07 15:19:17 -08:00
Billy O'Neal
d816079874
[vcpkg_from_git] Improve diagnostics. (#36539)
While authoring vcpkg_from_git to authenticated servers documentation,
@JavierMatosD and I discovered some failure modes that are not clear in
the output.

Example with REF set to a branch name:

```console
The port under test is:
vcpkg_from_git(
    OUT_SOURCE_PATH out
    URL https://github.com/microsoft/vcpkg
    REF 2024.01.12
)
========== BEFORE ===============
Computing installation plan...
The following packages will be built and installed:
    test-port:x64-windows@1 -- D:\test\test-port
Detecting compiler hash for triplet x64-windows...
Installing 1/1 test-port:x64-windows@1...
Building test-port:x64-windows@1...
-- Installing port from location: D:\test\test-port
-- Fetching https://github.com/microsoft/vcpkg 2024.01.12...
CMake Error at scripts/cmake/vcpkg_from_git.cmake:141 (message):
  unable to rev-parse 2024.01.12 after fetching git repository
Call Stack (most recent call first):
  D:/test/test-port/portfile.cmake:1 (vcpkg_from_git)
  scripts/ports.cmake:170 (include)

error: building test-port:x64-windows failed with: BUILD_FAILED
Elapsed time to handle test-port:x64-windows: 1.8 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+test-port
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[test-port]+Build+error+on+x64-windows&body=Copy+issue+body+from+D%3A%2Fvcpkg2%2Finstalled%2Fvcpkg%2Fissue_body.md

========== AFTER ================
Computing installation plan...
The following packages will be built and installed:
    test-port:x64-windows@1 -- D:\test\test-port
Detecting compiler hash for triplet x64-windows...
Installing 1/1 test-port:x64-windows@1...
Building test-port:x64-windows@1...
-- Installing port from location: D:\test\test-port
-- Fetching https://github.com/microsoft/vcpkg 2024.01.12...
CMake Error at scripts/cmake/vcpkg_from_git.cmake:142 (message):
  After fetching 2024.01.12, the target ref 2024.01.12 appears inaccessible.
  A common cause of this failure is setting REF to a named branch or tag
  rather than a commit SHA.  REF must be a commit SHA.  If the git server
  does not advertise commit SHAs (uploadpack.allowReachableSHA1InWant is
  false), you can set FETCH_REF to a named branch in which the desired commit
  SHA is in the history.  For example, you may be able to fix this error by
  changing "REF 2024.01.12" to "REF a-commit-sha FETCH_REF 2024.01.12".  (git
  rev-parse 2024.01.12 failed)
Call Stack (most recent call first):
  D:/test/test-port/portfile.cmake:1 (vcpkg_from_git)
  scripts/ports.cmake:170 (include)

error: building test-port:x64-windows failed with: BUILD_FAILED
Elapsed time to handle test-port:x64-windows: 1.9 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+test-port
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[test-port]+Build+error+on+x64-windows&body=Copy+issue+body+from+D%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
```

Example with REF ste to a branch name with FETCH_REF set:

```console
PS D:\test> run-test
The following packages are not installed:
    test-port:x64-windows
The following packages are not installed:
    test-port:x64-windows
The port under test is:
vcpkg_from_git(
    OUT_SOURCE_PATH out
    URL https://github.com/microsoft/vcpkg
    REF 2024.01.12
    FETCH_REF master
)
========== BEFORE ===============
Computing installation plan...
The following packages will be built and installed:
    test-port:x64-windows@1 -- D:\test\test-port
Detecting compiler hash for triplet x64-windows...
Installing 1/1 test-port:x64-windows@1...
Building test-port:x64-windows@1...
-- Installing port from location: D:\test\test-port
-- Fetching https://github.com/microsoft/vcpkg master...
CMake Error at scripts/cmake/vcpkg_from_git.cmake:141 (message):
  unable to rev-parse 2024.01.12 after fetching git repository
Call Stack (most recent call first):
  D:/test/test-port/portfile.cmake:1 (vcpkg_from_git)
  scripts/ports.cmake:170 (include)

error: building test-port:x64-windows failed with: BUILD_FAILED
Elapsed time to handle test-port:x64-windows: 1.6 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+test-port
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[test-port]+Build+error+on+x64-windows&body=Copy+issue+body+from+D%3A%2Fvcpkg2%2Finstalled%2Fvcpkg%2Fissue_body.md

========== AFTER ================
Computing installation plan...
The following packages will be built and installed:
    test-port:x64-windows@1 -- D:\test\test-port
Detecting compiler hash for triplet x64-windows...
Installing 1/1 test-port:x64-windows@1...
Building test-port:x64-windows@1...
-- Installing port from location: D:\test\test-port
-- Fetching https://github.com/microsoft/vcpkg master...
CMake Error at scripts/cmake/vcpkg_from_git.cmake:138 (message):
  After fetching master, the target ref 2024.01.12 appears inaccessible.  A
  common cause of this failure is setting REF to a named branch or tag rather
  than a commit SHA.  REF must be a commit SHA.  (git rev-parse 2024.01.12
  failed)
Call Stack (most recent call first):
  D:/test/test-port/portfile.cmake:1 (vcpkg_from_git)
  scripts/ports.cmake:170 (include)

error: building test-port:x64-windows failed with: BUILD_FAILED
Elapsed time to handle test-port:x64-windows: 1.5 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+test-port
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[test-port]+Build+error+on+x64-windows&body=Copy+issue+body+from+D%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
```

---------

Co-authored-by: Thomas1664 <46387399+Thomas1664@users.noreply.github.com>
2024-03-06 11:28:35 -08:00
Osyotr
e76d097722
[python3] Update to 3.11.8 (#36755)
Fixes #36736

Changes: https://github.com/python/cpython/compare/v3.11.5...v3.11.8
2024-03-05 01:29:47 -08:00
Kai Pastor
215a253559
[z_vcpkg_setup_pkgconfig_path] debug needs share/pkgconfig (#36151)
Pass `share/pkgconfig` instead of `debug/share/pkgconfig`: The `share`
location is for config-independent data.
Integrate `CURRENT_PACKAGES_DIR` locations.
Change the function interface to take a CONFIG parameter instead of
prefix list (suggested below).
Use `z_vcpkg_setup_pkgconfig_path` also for `vcpkg_fixup_pkgconfig`
(which already had proper handling of `CURRENT_PACKAGES_DIR` and
`share`).
Remove redundant trailing slash.
Extend unit test.

Fixes consuming `wayland-protocols` and similar.
2024-03-01 16:35:37 -08:00
Alexander Neumann
2ac6ba173b
Refine rpath fixup to inspect already existing rpaths (#36056)
Reason:
```
-- Adjusting original rpath of: '/mnt/e/all/vcpkg/installed/x64-linux-release/lib/pkgconfig/../../lib/intel64/'
-- Fixed rpath in: '/mnt/e/all/vcpkg/packages/numpy_x64-linux-release/lib/python3.11/site-packages/numpy/linalg/lapack_lite.cpython-311-x86_64-linux-gnu.so' ('$ORIGIN:$ORIGIN/../../../../:$ORIGIN/../../../../intel64/')

```
needed `$ORIGIN/../../../../intel64/` in there which came from a pc file
via `-Wl,-rpath='${libdir}'`

---------

Co-authored-by: Osyotr <Osyotr@users.noreply.github.com>
2024-02-28 18:24:48 -08:00
Kai Pastor
523d1b4811
[vcpkg baseline][vcpkg scripts] Drop ${pc_sysrootdir} (#36843)
Fixes xcb-util-errors baseline regression.
2024-02-21 21:59:11 -08:00
Kai Pastor
eb1696a7f9
[vcpkg scripts] Rollback msys2 autoconf 2.71 (#36774)
Fix gmp regression.
Fixes #36639.
Fixes #36651.
2024-02-16 13:42:32 -08:00
Kai Pastor
212d57331c
[vcpkg baseline][vcpkg-ci-msys2] Update msys2 (#36548)
* Limit CI

* Update msys2

* Declare msys packages for pkgconfig and fortran...

... with explicit DEPS and PROVIDES, instead of using DIRECT_PACKAGES.
This change makes it possible to notice changed dependencies
in `vcpkg-ci-msys2` update checks. (Current case: zstd.)
It also enables reuse of general declarations from `vcpkg_acquire_msys`
in specialized cases (`vpckg_find_fortran`).

Last not least, using the the Z_DECLARE_EXTRA_PACKAGES_COMMAND
simplifies the implementation of `vcpkg-ci-msys2`, in particular for
checks across platform boundaries.

* Revert "Limit CI"
2024-02-06 13:13:41 -08:00
MonicaLiu
984698f5f0
[7zip] Switch download source to github (#36228)
* Switch download source to github

* update version

* add both urls

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
Co-authored-by: Javier Matos Denizac <javiermat@microsoft.com>
2024-01-24 09:57:01 -08:00
Kai Pastor
b2f8426094
[vcpkg_configure_make] Misc fixes (#31228)
* Fix lib suffix matching

* Preserve flags when transforming standard libs

* Use separate_arguments

* Fix transform

* [vcpkg_configure_make] Fix SKIP_CONFIGURE

* Update linker flags

* Update linker flags

* Fix regex substitution

* Restore full CI

* Reuse configure's linker flags setup

* Handle ldflags separately from linker flags

* Factor out common definitions

* Control docdir and mandir for debug

* Use vcpkg_list APPEND

* Don't pass -avoid-version into configure

* Restore lost escaping

* Copy --target from LDFLAGS to CC/CXX

* Consolidate macros into one function

* Elaborate ABI flags

* Elaborate flag processing

* Update warnings for embedded space

* Update windows tool path fixup

* [libudns] No cross builds

* [vcpkg_find_acquire_program] Add VSCLANG

Find VS's clang without fallback to the giant LLVM download.

* [gmp] Update CCAS setup

* [nettle] Update CCAS setup

* Fix VSCLANG

* WIP

* Restore processing of isysroot

* [nettle] Fix assembler option

* [liburing] Adjust

* Variable name changes

* Remove redundant separate arguments

* Move -m32/-m64 to ABI flags

* Unify ABIFLAGS spelling

* CI

* Revert VSCLANG

* Use GNU Make to build autotools ports on FreeBSD (microsoft/vcpkg#32282)

* Fix flag removal

* Drop separation of ABI flags

* Handle '-arch=...'

* Revert "Control docdir and mandir for debug"

This reverts commit d8293a1997.

* [icu] Pass uwp option to pkgdata

* Restore old osx flags hook

* Add triplet variable to make libtool pass --target to linker

---------

Co-authored-by: Schaich, Alonso <alonsoschaich@fastmail.fm>
2024-01-23 13:27:46 -08:00
Alexander Neumann
02286a84c7
Run python in isolate mode (#35990)
* Run python in isolate mode.

* v db
2024-01-11 15:32:36 -08:00
autoantwort
62a471f006
vcpkg_find_acquire_program(BISON).cmake: Also search default brew installation on arm64-osx (#35765) 2023-12-19 16:49:46 -08:00
Paweł Wegner
7fb97764bc
[scripts] Download arm64 python when host is arm64 on windows. (#34354) 2023-12-08 01:25:03 -08:00
Kai Pastor
11817569c0
[vcpkg-scripts] Update msys2, add x64 PKGCONFIG (#35331)
* [vcpkg-scripts] Update msys2

* Don't update to pkgconf 2.0

* Missed SHA

* Limit CI

* [vcpkg_find_acquire_program] Update PKGCONFIG to 2.1.0

* Update msys2

* Fixup

* Revert "Limit CI"

This reverts commit aa270376df.

* Fix PKGCONFIG program version

* Add x64 pkgconf
2023-11-28 22:45:03 -08:00
Kai Pastor
516147648a
[vcpkg_find_acquire_program] Find pkg-config in /opt/homebrew/bin (#34776)
* [vcpkg_find_acquire_program(PKGCONFIG)] /opt/homebrew/bin

* PREPEND arm osx path
2023-11-27 16:54:46 -08:00
Billy O'Neal
83712a6060
Improve and extract internals of vcpkg_find_acquire_program. (#34881)
* Extract vcpkg_extract_archive from vcpkg_find_acquire_program.

* Extract vcpkg_download_sourceforge from vcpkg_from_sourceforge.

This allows vcpkg_find_acquire_program to download from SourceForge without needing to temporarily change _VCPKG_EDITABLE.

* Use whether a URI is known for an entity to decide whether to downloads it rather than checking a separate supported_on_unix boolean.

* Add unparsed arguments check to vcpkg_extract_archive
2023-11-14 14:01:08 -08:00
Victor Nivet
9f03078bdc
[vcpkg_configure_make] fix case sensitive comparison in PATH system d… (#34791)
* [vcpkg_configure_make] fix case sensitive comparison in PATH system dir search

* Fixes after code review

---------

Co-authored-by: Victor NIVET <vnivet@invoke.fr>
2023-11-03 11:01:20 -07:00
LE GARREC Vincent
681e510ff1
[vcpkg] Fix GitLab authentication token (#34151) 2023-10-06 16:47:19 -07:00
Kai Pastor
366ebd7726
Update jom to 1.1.4 (#34090) 2023-10-02 21:01:36 -07:00
Henrik Gaßmann
9648982d40
[find_acquire_program(GO)] Update to version 1.21.1 (#34011) 2023-09-25 13:44:52 -07:00