Skip to content

Commit

Permalink
[fontconfig] Do not create symlinks (#23735) (#23736)
Browse files Browse the repository at this point in the history
* [fontconfig] Do not create symlinks (#23735)

* [fontconfig] Add a license identifier

* Regenerate versions file
  • Loading branch information
SchaichAlonso committed Mar 24, 2022
1 parent 933d718 commit a76eb00
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
19 changes: 19 additions & 0 deletions ports/fontconfig/no-etc-symlinks.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--- a/conf.d/link_confs.py 2022-03-24 04:13:59.000982000 +0900
+++ b/conf.d/link_confs.py 2022-03-24 04:14:46.271964000 +0900
@@ -4,6 +4,7 @@
import sys
import argparse
import platform
+import shutil

if __name__=='__main__':
parser = argparse.ArgumentParser()
@@ -32,7 +33,7 @@
except FileNotFoundError:
pass
try:
- os.symlink(src, dst)
+ shutil.copyfile(src, dst)
except NotImplementedError:
# Not supported on this version of Windows
break
2 changes: 2 additions & 0 deletions ports/fontconfig/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ vcpkg_from_gitlab(
REF ${FONTCONFIG_VERSION}
SHA512 815f999146970c7f0e6c15a21f218d4b3f75b26d4ef14d36711bc0a1de19e59cc62d6a2c53993dd38b963ae30820c4db29f103380d5001886d55b6a7df361154
HEAD_REF master
PATCHES
no-etc-symlinks.patch
)

vcpkg_find_acquire_program(GPERF)
Expand Down
3 changes: 2 additions & 1 deletion ports/fontconfig/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "fontconfig",
"version": "2.13.94",
"port-version": 5,
"port-version": 6,
"description": "Library for configuring and customizing font access.",
"homepage": "https://www.freedesktop.org/wiki/Software/fontconfig",
"license": "MIT",
"dependencies": [
"dirent",
"expat",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2262,7 +2262,7 @@
},
"fontconfig": {
"baseline": "2.13.94",
"port-version": 5
"port-version": 6
},
"foonathan-memory": {
"baseline": "2019-07-21",
Expand Down
5 changes: 5 additions & 0 deletions versions/f-/fontconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8f782f79dc3a2c6834a7e5de4a941b11822067dd",
"version": "2.13.94",
"port-version": 6
},
{
"git-tree": "2f32046747209c234e60dc297b48d5bdc7ee4494",
"version": "2.13.94",
Expand Down

0 comments on commit a76eb00

Please sign in to comment.