From d7665b9dae37c3b9a1c72157fdf49c101bd6495e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 16 May 2023 04:05:53 +0100 Subject: gentoo auto-resync : 16:05:2023 - 04:05:52 --- app-misc/Manifest.gz | Bin 49791 -> 49793 bytes app-misc/tracker/Manifest | 3 +- ...5.2-build-Define-_GNU_SOURCE-for-gmtime_r.patch | 46 +++++++++++++++++++++ app-misc/tracker/tracker-3.5.2.ebuild | 4 ++ 4 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 app-misc/tracker/files/3.5.2-build-Define-_GNU_SOURCE-for-gmtime_r.patch (limited to 'app-misc') diff --git a/app-misc/Manifest.gz b/app-misc/Manifest.gz index b04e3df0023a..5c0311383b85 100644 Binary files a/app-misc/Manifest.gz and b/app-misc/Manifest.gz differ diff --git a/app-misc/tracker/Manifest b/app-misc/tracker/Manifest index 503cca5cc71c..cd4e504cf681 100644 --- a/app-misc/tracker/Manifest +++ b/app-misc/tracker/Manifest @@ -1,3 +1,4 @@ +AUX 3.5.2-build-Define-_GNU_SOURCE-for-gmtime_r.patch 2031 BLAKE2B 5c284833ea33cb54ee86b377ff17a303ccd575f1125267a31815cf1221f435ca2db89ef69d38b09fd4cfccbb41427f774ec358e3317b1c2a5a31db7597f04ab7 SHA512 4fa809f499d667c3e53fd436504db67eb6958c10e1339b337da0fceefd4104320bb7b2b51603aa0f179b4e1ecb933b25af8b53e0a3e8c8867798b4149a587ff3 DIST tracker-3.4.2.tar.xz 1865236 BLAKE2B 31cdb33de38d9251fc60a71b31c539e3f045748fb5dc160656dd5187dce109da858bad5390864cda8b63466a5113e0a193e0799b662ec250a31cfdff79467e6e SHA512 2214bce7cdbaf1039b11986cf101f615337bbc450331ee703edcfd7ad62dee6e1db831c2c89bf341663cadcdaae6ee9e5a15f49a8087acaafd58b389292ef480 DIST tracker-3.5.0.tar.xz 2568708 BLAKE2B d3154e262ffa52890f98b0d00d3e2ddf69ca62e4d18a890a076fd1774bea97625a03180e058bebb1928536232f986e5f63c0990b162c73e69b534362b81cac09 SHA512 2c6d4f1c2c9d7687884052ae2ebc68e588cf91c56f98012ee138fc2020c66accb40f021c699d102b7634a936692341bd7ea28f3adfdb3c63c82ed9f837f97ba5 DIST tracker-3.5.1.tar.xz 2566076 BLAKE2B 5abb45c7cc5f9b7dca0fda90388c110448a3e22b092a00f5d97024d0273419b7ea869b51eef08b09038e6e89b9c42108170668c5e6962992b03f796898eb2548 SHA512 eb28213aed487eec2906f2f5bd2c31dc9766f50085fd1124085eeeb23a2db7b1ab7ba60b96540f9087512b957328596e92bc3267cc0e6cb33059eb7fe049897a @@ -5,5 +6,5 @@ DIST tracker-3.5.2.tar.xz 2566540 BLAKE2B 53b8e26bf3f11c202b03a181b8817e931130b7 EBUILD tracker-3.4.2.ebuild 2719 BLAKE2B fa701f0dc1306fc893e0125bd8502c2724213f4084c902608cffc3f69de3ebb9ba474e8038213d1c847d013cf918bda4ddbc5049e62a21433e2e508308fc8d89 SHA512 0f917521e0e083765cba5ca5e64cad9a98e1b13735523217bee2f97e15a9c27899d675deefa9779e0664fa7ba573c31ed58967a753bb8b26c15a921b62d8cc95 EBUILD tracker-3.5.0.ebuild 2464 BLAKE2B 2c39451a320e30f348d57eefcd665bad07b29161fa5dc2f3feb3ad1ff678ef7fcabb7c4a40192e78688f72fb89f92e9930f1c68b3f0a7b73da578fa498f714a6 SHA512 dcc5f8c761ec4588b0c0aa5cf85284e29a75e29df0c88a24ebb157ad82f5a0fc1db212f46250aa725c03ffae7d38cf76861cccc9e22c8056d8024638c89a3170 EBUILD tracker-3.5.1.ebuild 2462 BLAKE2B 0dfa199cd395c7d92c3665c3b5ffa888298bb44d2992d00ac7e8cb007d46aaafdfe07d050c0a45cb01c1070827829a7d3a187b98e48888097bb1dbc6ae10c63a SHA512 c3b63de9f4071b035a9be78d6ede1822324d1c181150b9c40fc415b6760a720017b097c550154d8f46f4c4728404513cd9252271365819a0a34c8a96c016ac18 -EBUILD tracker-3.5.2.ebuild 2465 BLAKE2B 0964aa9c58c5788897d76f7fcc6dd69aa1d9bcdcf14e47cff27373dc1ee66310fd7c69ba4a781400374adc2c5f1dddc9943bb3681174f73320c4d6d62d35da09 SHA512 bdbb921cb76db51066cab441ab361ec0bee01b6ae605a32304b1a525e99ae8bef56d0b0eedccd53c1d72f6813a3fe91849a3772e0f662c0709787cb4774b07c1 +EBUILD tracker-3.5.2.ebuild 2543 BLAKE2B 335ec012526796c705e0d0c0161761bc34578e2cd9072868e00c3cadc4759c198deb451eddc39a7d039c358b4fc613cb416be486f39c5b5735a4b063cafbccea SHA512 8d2b31d8c163f6631536bb0a355685985073ed5327248e9dc29a849170afe9a0abbda80dd45d194c8d707e2fdcb02491bc50da6dc216aabbaa9a507e3d5e4dfb MISC metadata.xml 586 BLAKE2B 8244e6f8d9491a0c224ed84f17ee6ad64b22e0c373243a319e7911739a7db6223ce47693ed5b31053b4465f35d20108db1469d74afcebb36b4516a53cbd7f98a SHA512 0a60b0e4b077bb03d02b7990511041695c5dff7a8a0972fa80abe9968b643ad5c2ba65182c079e8d5f3d1ef72a2c4dcc659d6ec283bf80813135c94cab2dddef diff --git a/app-misc/tracker/files/3.5.2-build-Define-_GNU_SOURCE-for-gmtime_r.patch b/app-misc/tracker/files/3.5.2-build-Define-_GNU_SOURCE-for-gmtime_r.patch new file mode 100644 index 000000000000..f60d86c0513a --- /dev/null +++ b/app-misc/tracker/files/3.5.2-build-Define-_GNU_SOURCE-for-gmtime_r.patch @@ -0,0 +1,46 @@ +https://gitlab.gnome.org/GNOME/tracker/-/merge_requests/596 + +From 4fc04fea1755c3c4f8913877c2c1889779d3d4d1 Mon Sep 17 00:00:00 2001 +From: Brahmajit Das +Date: Sun, 14 May 2023 09:59:58 +0530 +Subject: [PATCH] build: Define _GNU_SOURCE for gmtime_r + +Found while building tracker 3.5.2 with clang 16, which enable +Wimplicit-function-declaration by default. + +Without _GNU_SOURCE defined, tracker would fail in the configure phase +with Checking if "strftime 4-digit year modifier" runs: DID NOT +COMPILE error. And investigating the meson log we see + +Compiler stderr: + /var/tmp/portage/app-misc/tracker-3.5.2/work/tracker-3.5.2-build/meson-private/tmplr2vm6b0/testfile.c:12:5: error: call to undeclared function 'gmtime_r'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + gmtime_r (×tamp, &tm); + +And a little further up + +Command line: clang /var/tmp/portage/app-misc/tracker-3.5.2/work/tracker-3.5.2-build/meson-private/tmplr2vm6b0/testfile.c -o /var/tmp/portage/app-misc/tracker-3.5.2/work/tracker-3.5.2-build/meson-private/tmplr2vm6b0/output.exe -O2 -pipe -march=native -DTRACKER_DEBUG -DG_DISABLE_CAST_CHECKS -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -std=c99 -Wl,-O1 -Wl,--as-needed -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed + +Seems like cc.run() doesn't pick up the general compiler args we set +earlier. We have already set it for the main build, so adding it just +for the configure test should be fine. + +Signed-off-by: Brahmajit Das +--- + meson.build | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/meson.build b/meson.build +index 7b22cb1f9..00af07e6e 100644 +--- a/meson.build ++++ b/meson.build +@@ -202,6 +202,7 @@ endif + # Get an appropriate 4-digit year modifier for strftime + ################################################################## + result = cc.run(''' ++ #define _GNU_SOURCE + #include + #include + #include +-- +2.39.3 + diff --git a/app-misc/tracker/tracker-3.5.2.ebuild b/app-misc/tracker/tracker-3.5.2.ebuild index 69a65b9a77e5..584798e5fc46 100644 --- a/app-misc/tracker/tracker-3.5.2.ebuild +++ b/app-misc/tracker/tracker-3.5.2.ebuild @@ -45,6 +45,10 @@ BDEPEND=" " PDEPEND="miners? ( >=app-misc/tracker-miners-${PV_SERIES} )" +PATCHES=( + "${FILESDIR}/${PV}-build-Define-_GNU_SOURCE-for-gmtime_r.patch" +) + python_check_deps() { python_has_version -b \ "dev-python/pygobject[${PYTHON_USEDEP}]" \ -- cgit v1.2.3