From dbcb48dedd80e9453883ed9e0b0ed4561a534e57 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 14 Feb 2024 23:36:42 +0000 Subject: gentoo auto-resync : 14:02:2024 - 23:36:42 --- media-libs/fontconfig/Manifest | 5 +-- .../files/fontconfig-2.14.2-math-fabs.patch | 42 ++++++++++++++++++++++ media-libs/fontconfig/fontconfig-2.14.2-r3.ebuild | 3 +- media-libs/fontconfig/fontconfig-2.15.0.ebuild | 3 +- 4 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 media-libs/fontconfig/files/fontconfig-2.14.2-math-fabs.patch (limited to 'media-libs/fontconfig') diff --git a/media-libs/fontconfig/Manifest b/media-libs/fontconfig/Manifest index b9d8c5d41e64..d81a0b03f6ba 100644 --- a/media-libs/fontconfig/Manifest +++ b/media-libs/fontconfig/Manifest @@ -1,8 +1,9 @@ AUX fontconfig-2.14.0-latin-update.patch 1889 BLAKE2B 42a5faab884bb47e645a8ee6f052577bfd8f9becb4b3d0e22e28ee4ba9a03458dd54a4becf9e0e3c728f18db68f3a115be619469fee7dfb2a20e508ef320b14b SHA512 c96c6ba0b2ebf24d0669bb982672ac03b45e1413f68f50f2ad6556ef87014d3c42875d6094426e1b89e108b5f165a0040a3740fc37d94902224549e56bb3642a AUX fontconfig-2.14.0-skip-bubblewrap-tests.patch 408 BLAKE2B 911a87e91dcdf49088e9a684a9af753464211f18fd471989410a57363dd71b7cc0940c9a8e61095d901b4d7ee804536262ebc6afb1af3f470d8cd164d2fd2113 SHA512 8302a3ccf5918c8a4c3af3ab3601752c005c0361003281996eba469195127fab0e99c8d225dcb674a1bc198f2c15b982cce49c6bb3234307cf58e47c9206ff5a AUX fontconfig-2.14.2-fix-sysroot-fc-cache.patch 2007 BLAKE2B 91a43c8aec698a9733020031bfded6871d379b20535f6c1291d0d3fa38faaef9e367f0958f6df2b88003190184988dc99f7fa7f013f6837f24b617b83a0d5546 SHA512 73e41f2f19f61514a271141ddb4b640ed3b6060c4ccdcc79a4eefa6a6b4ece0e718012bee4b4b7312561e39ca02cd9663084298000d9cc9aa210c81a16945572 +AUX fontconfig-2.14.2-math-fabs.patch 3159 BLAKE2B e3472ed44efdc2ffff81410864c7c25f6e1403464b6bec98b84662522c760ff7cc372dbc886cea2a0108bada1ca1ed923c6646cede70b050a8eb87a7c28d9eb4 SHA512 4fc401a980ec63ba0de40de044408063fd0949f0022dfa4333e5aaaff78ba03f2c18ea369af16e4cc952703d25a1c3d1821047e194c4776e00bb90f7ec8cbcc1 DIST fontconfig-2.14.2.tar.xz 1440844 BLAKE2B 4efeeb7f9a6705d493128d00b60e681a20a47556f4c0d7787a5c7a6d2cbbc22f150cad7988a9836a9e72aeb61e2b6a196c00a071c7042c62283c7720cdbb743d SHA512 23483e0ae6aa7589fd37f9949a4cf951c5bff981739dbb446881e4cea86a208c0ab31e2358666eac724af1dc6a689a42733a7ce91cd3e76d8d91eacedb318085 DIST fontconfig-2.15.0.tar.xz 1447820 BLAKE2B 17c85fddc4ab84111c4f50afb89ecd8792c3aeaa2690b38fd39fca6f6cece69e9ce0cd3af8a2e54968c79ad1f9bee1e444699a13c068d9dfd3dfe1212ff37533 SHA512 754cd5fffa198fc07a39cf7df683e9adfa7f54ab41fdff8c0eacc078fd35d3e01069ba343f2b045e0b40df88d9f1fc1ee0f7565799f9cb194a59cf95b64c4417 -EBUILD fontconfig-2.14.2-r3.ebuild 7154 BLAKE2B 81361cf13b4f9308935d15333f50883e68fc271562ca0ec6baa0e404e17ae5e89554bfed3541876fba772193dbf0f79417acb10ff64786e1f9006c57c891248f SHA512 a6d69ebbf761748c5443f5475e08b79dd71f907bdd5d9ebaadee2c1d13d5063bdf3641b5d8a94b9969aa8ba813fb3c63be3f24690fb8f25b638a26e677a14592 -EBUILD fontconfig-2.15.0.ebuild 7115 BLAKE2B 33f065c716d3e29e2f0be364b2bcab67b49e145b3071f3f4d4456ca1056ad121552927789ddc31e54bf4a213d945d3ae0d331d336db66f4797290718f58f6976 SHA512 449fc14b6fd366f98f1e2cd9e1d6584c1bd550fd00e2868da8ae3c45a0ab3c5e29739071afa4515f8727767232f4f725ae3703fb513cb91a533cad3685308943 +EBUILD fontconfig-2.14.2-r3.ebuild 7198 BLAKE2B 0cec6c5a0d0fe0c9f289c3c137d57248a036da5a8ff9ffe53bf0f7f89f4c1ab9d9bb15d2500fd4c1037ed738e95a6c9094b0f93c5f8fe4498aa594d7d744f0ee SHA512 d1a3e613eaf7b36123475984d6b000a0185e0d1404451807327361089711b699409e6e309e447eb76785f0cb8c57d0678c9cd5331fd845fce3177affe793ed88 +EBUILD fontconfig-2.15.0.ebuild 7159 BLAKE2B 3a7d026e217fe16f1e182407c65e25cdf93146b89c8decc10bf761ac14f2cc1e183c01f4c2494b63b65353bf7b39c30e869d6e2c2b60503b0cd0394acea1ff57 SHA512 542dd22ab43cc1e5b7ca63d97e91b1564270638304c8fb8eaedec4e87eedba8f18b3db0fc7ab43c9dd1b771f45aaee3889dec6a08949c20f6033aeb7a190d69b MISC metadata.xml 672 BLAKE2B d23112b5d408aed97ad68bc9a141a570c22fd6bbf0022e979b7006817ae27bcba21be43558cb42df06f3c280cbed5570c62805bb69be8a64b1f41bd90b200bc0 SHA512 1ff9c1f22b9766127692eec4824ce966f7a7305ddfae0dd1d8b0e5b432926508dd7a898eada6c182e02c985e11c2f9a22f13eac195333ed32952af0e89015e9a diff --git a/media-libs/fontconfig/files/fontconfig-2.14.2-math-fabs.patch b/media-libs/fontconfig/files/fontconfig-2.14.2-math-fabs.patch new file mode 100644 index 000000000000..669e4ebbd65f --- /dev/null +++ b/media-libs/fontconfig/files/fontconfig-2.14.2-math-fabs.patch @@ -0,0 +1,42 @@ +https://gitlab.freedesktop.org/fontconfig/fontconfig/-/merge_requests/309 + +From 81d410310ffee8761819e72151ec25efde2f5b24 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Wed, 14 Feb 2024 18:12:46 +0000 +Subject: [PATCH] meson: detect-and-use `-lm` for `fabs` in fcmatch + +We had a bug report in Gentoo of a sparc64 build failure with -O0: +``` +FAILED: src/libfontconfig.so.1.13.0 +sparc64-unknown-linux-gnu-gcc -o src/libfontconfig.so.1.13.0 src/libfontconfig.so.1.13.0.p/fcatomic.c.o src/libfontconfig.so.1.13.0.p/fccache.c.o src/libfontconfig.so.1.13.0.p/fccfg.c.o src/libfontconfig.so.1.13.0.p/fccharset.c.o src/libfontconfig.so.1.13.0.p/fccompat.c.o src/libfontconfig.so.1.13.0.p/fcdbg.c.o src/libfontconfig.so.1.13.0.p/fcdefault.c.o src/libfontconfig.so.1.13.0.p/fcdir.c.o src/libfontconfig.so.1.13.0.p/fcformat.c.o src/libfontconfig.so.1.13.0.p/fcfreetype.c.o src/libfontconfig.so.1.13.0.p/fcfs.c.o src/libfontconfig.so.1.13.0.p/fcptrlist.c.o src/libfontconfig.so.1.13.0.p/fchash.c.o src/libfontconfig.so.1.13.0.p/fcinit.c.o src/libfontconfig.so.1.13.0.p/fclang.c.o src/libfontconfig.so.1.13.0.p/fclist.c.o src/libfontconfig.so.1.13.0.p/fcmatch.c.o src/libfontconfig.so.1.13.0.p/fcmatrix.c.o src/libfontconfig.so.1.13.0.p/fcname.c.o src/libfontconfig.so.1.13.0.p/fcobjs.c.o src/libfontconfig.so.1.13.0.p/fcpat.c.o src/libfontconfig.so.1.13.0.p/fcrange.c.o src/libfontconfig.so.1.13.0.p/fcserialize.c.o src/libfontconfig.so.1.13.0.p/fcstat.c.o src/libfontconfig.so.1.13.0.p/fcstr.c.o src/libfontconfig.so.1.13.0.p/fcweight.c.o src/libfontconfig.so.1.13.0.p/fcxml.c.o src/libfontconfig.so.1.13.0.p/ftglue.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libfontconfig.so.1 -m64 -g -O0 -mno-app-regs -mcpu=ultrasparc -mtune=ultrasparc -mno-vis -mno-vis2 -mno-vis3 -mno-vis4 -mno-vis4b -mno-cbcond -mno-fmaf -mno-fsmuld -mno-popc -mno-subxc -fno-builtin -fno-fast-math -Wl,-O1 -Wl,--as-needed -Wl,--no-keep-memory /usr/lib64/libfreetype.so /usr/lib64/libexpat.so -Wl,--end-group -pthread +/usr/lib/gcc/sparc64-unknown-linux-gnu/12/../../../../sparc64-unknown-linux-gnu/bin/ld: src/libfontconfig.so.1.13.0.p/fcmatch.c.o: in function `FcCompareRange': +/var/tmp/portage/media-libs/fontconfig-2.14.2-r3/work/fontconfig-2.14.2-.sparc64/../fontconfig-2.14.2/src/fcmatch.c:220: undefined reference to `fabs' +``` + +Ask Meson to detect `-lm` and add the missing `-lm` for `fabs` usage. + +Signed-off-by: Sam James +--- a/meson.build ++++ b/meson.build +@@ -23,7 +23,7 @@ freetype_req = '>= 21.0.15' + freetype_req_cmake = '>= 2.8.1' + + cc = meson.get_compiler('c') +- ++math_dep = cc.find_library('m', required: false) + + freetype_dep = dependency('freetype2', method: 'pkg-config', version: freetype_req, required: false) + +--- a/src/meson.build ++++ b/src/meson.build +@@ -65,7 +65,7 @@ libfontconfig = library('fontconfig', + fc_sources, alias_headers, ft_alias_headers, fclang_h, fccase_h, fcobjshash_h, + c_args: c_args + fc_extra_c_args, + include_directories: incbase, +- dependencies: deps, ++ dependencies: [deps, math_dep], + install: true, + soversion: soversion, + version: libversion, +-- +GitLab diff --git a/media-libs/fontconfig/fontconfig-2.14.2-r3.ebuild b/media-libs/fontconfig/fontconfig-2.14.2-r3.ebuild index 2d4a41d85739..1f3f04e3cc61 100644 --- a/media-libs/fontconfig/fontconfig-2.14.2-r3.ebuild +++ b/media-libs/fontconfig/fontconfig-2.14.2-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -66,6 +66,7 @@ PATCHES=( # Patches from upstream (can usually be removed with next version bump) "${FILESDIR}"/${P}-fix-sysroot-fc-cache.patch + "${FILESDIR}"/${PN}-2.14.2-math-fabs.patch ) DOC_CONTENTS="Please make fontconfig configuration changes using diff --git a/media-libs/fontconfig/fontconfig-2.15.0.ebuild b/media-libs/fontconfig/fontconfig-2.15.0.ebuild index 01f18ac3a8ab..87e30591256d 100644 --- a/media-libs/fontconfig/fontconfig-2.15.0.ebuild +++ b/media-libs/fontconfig/fontconfig-2.15.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -65,6 +65,7 @@ PATCHES=( "${FILESDIR}"/${PN}-2.14.0-skip-bubblewrap-tests.patch # Patches from upstream (can usually be removed with next version bump) + "${FILESDIR}"/${PN}-2.14.2-math-fabs.patch ) DOC_CONTENTS="Please make fontconfig configuration changes using -- cgit v1.2.3