Open cenit opened 3 years ago
the biggest hint might be
Could not find file "/mnt/src/vcpkg/packages/fontconfig_x64-linux/etc/fonts/conf.d/10-hinting-slight.conf"
Might be related with this issue from upstream? https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/274
cc @Neumann-A
Looks to me like a vcpkg-tool issue instead of a port issue. Maybe the binary cache is not handling symlinks correctly?
We ran into this issue ourselves and had to put a workaround within the portfile to hard copy and replace the symlinks that were being generated.
add
if(NOT VCPKG_TARGET_IS_WINDOWS)
list(APPEND OPTIONS "as_ln_s=ln -sr")
endif()
to the portfile before vcpkg_configure_make
and it should/will work.
thanks!! and on windows? any idea, since you did a lot of debug of this problem?
and on windows? any idea, since you did a lot of debug of this problem?
I don't now what happens on windows. If i run vcpkg export <port> --nuget
on it it runs fine. I have seen some issues in other ports like boost as well which seems to be not getting exported into the binary cache while running vcpkg export <port> --nuget
doesn't yield an error.
Ah maybe bumping nuget to 5.9.1 can help?
Ah maybe bumping nuget to 5.9.1 can help?
I will try updating nuget. I experienced similar error on linux and windows for fontconfig when exporting to nuget, so I need to fix it on both OS
I have currently the following error:
2021-06-14T15:28:21.4657457Z Pushing boost-build_x64-windows-llvm-release.1.75.0-vcpkg233247ad8deb84242f16b63ba987d3644f5bd092.nupkg to 'https://nuget.pkg.github.com/Neumann-A'...
2021-06-14T15:28:21.4659424Z
2021-06-14T15:28:21.4660064Z PUT https://nuget.pkg.github.com/Neumann-A/
2021-06-14T15:28:21.4660601Z
2021-06-14T15:28:21.4661405Z WARNING: Package "boost-build_x64-windows-llvm-release" is already associated with another repository.
2021-06-14T15:28:21.4662099Z
2021-06-14T15:28:21.4662732Z 422 https://nuget.pkg.github.com/Neumann-A/ 428ms
2021-06-14T15:28:21.4663265Z
2021-06-14T15:28:21.4663862Z Response status code does not indicate success: 422 (Unprocessable Entity).
2021-06-14T15:28:21.4664364Z
2021-06-14T15:28:21.4664908Z Pushing NuGet to GitHub failed. Use --debug for more information.
add
if(NOT VCPKG_TARGET_IS_WINDOWS) list(APPEND OPTIONS "as_ln_s=ln -sr") endif()
to the portfile before
vcpkg_configure_make
and it should/will work.
For reference, this is not compatible with macos
ln: illegal option -- r
usage: ln [-Ffhinsv] source_file [target_file]
ln [-Ffhinsv] source_file ... target_dir
link source_file target_file
Describe the bug Unable to package fontconfig as nupkg. Might be due to links from etc subfolder to share subfolder inside packages/fontconfig
Environment Log is for linux, but it happens also on windows
To Reproduce Steps to reproduce the behavior:
Expected behavior nuget package to be created
Failure logs