From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3E87215803E for ; Fri, 5 Jan 2024 13:37:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 863D82BC1D2; Fri, 5 Jan 2024 13:37:44 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6C9B02BC1D2 for ; Fri, 5 Jan 2024 13:37:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B2AB43430FA for ; Fri, 5 Jan 2024 13:37:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4F9E11300 for ; Fri, 5 Jan 2024 13:37:42 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1704461851.c77e5ff9a69d6d93d4bc9f8e3bdda1c61288c368.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/tracker/, app-misc/tracker/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/tracker/files/3.6.0-configure-c99.patch app-misc/tracker/tracker-3.6.0.ebuild X-VCS-Directories: app-misc/tracker/ app-misc/tracker/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: c77e5ff9a69d6d93d4bc9f8e3bdda1c61288c368 X-VCS-Branch: master Date: Fri, 5 Jan 2024 13:37:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3e2cbc3e-9c2c-482f-ada3-f2ba56372c5d X-Archives-Hash: 17bf582171c3bd43a2740b19d2847ba6 commit: c77e5ff9a69d6d93d4bc9f8e3bdda1c61288c368 Author: Sam James gentoo org> AuthorDate: Fri Jan 5 13:34:12 2024 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jan 5 13:37:31 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c77e5ff9 app-misc/tracker: fix configure issue w/ C99 No revbump as it completely fails without it, thankfully. Closes: https://bugs.gentoo.org/919095 Signed-off-by: Sam James gentoo.org> app-misc/tracker/files/3.6.0-configure-c99.patch | 52 ++++++++++++++++++++++++ app-misc/tracker/tracker-3.6.0.ebuild | 6 ++- 2 files changed, 57 insertions(+), 1 deletion(-) diff --git a/app-misc/tracker/files/3.6.0-configure-c99.patch b/app-misc/tracker/files/3.6.0-configure-c99.patch new file mode 100644 index 000000000000..f5de3e2746ce --- /dev/null +++ b/app-misc/tracker/files/3.6.0-configure-c99.patch @@ -0,0 +1,52 @@ +https://bugs.gentoo.org/919095 +https://gitlab.gnome.org/GNOME/tracker/-/merge_requests/638 +https://gitlab.gnome.org/GNOME/tracker/-/commit/f7393d61803815b19a1f210b197cce423ae3cc01 + +From f7393d61803815b19a1f210b197cce423ae3cc01 Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich +Date: Sun, 3 Dec 2023 12:10:27 +0000 +Subject: [PATCH] build: Fix "4-digit year modifier" test + +Upcoming `gcc-14` enabled a few warnings into errors, like +`-Wincompatible-pointer-types`. This caused `tracker` configure to +fail as: + + $ ../meson + ... + Checking if "strftime 4-digit year modifier" runs: DID NOT COMPILE + + ../meson.build:235:2: ERROR: Problem encountered: Libc implementation has broken 4-digit years implementation. + +This happens because char buffer had an unusual type: + + testfile.c: In function 'main': + testfile.c:16:17: error: passing argument 1 of 'strftime' from incompatible pointer type + [-Wincompatible-pointer-types] + 16 | strftime (&buf, sizeof buf, modifiers[i], &tm); + | ^~~~ + | | + | char * (*)[100] +--- a/meson.build ++++ b/meson.build +@@ -215,15 +215,15 @@ result = cc.run(''' + int main (int argc, char *argv[]) { + char *modifiers[] = { "%Y", "%C%y", "%4Y", "%2C%y", NULL }; + time_t timestamp = -58979923200; /* 0101-01-01T01:01:01Z */ +- char *buf[100]; ++ char buf[100]; + struct tm tm; + int i; + gmtime_r (×tamp, &tm); + for (i = 0; modifiers[i]; i++) { +- strftime (&buf, sizeof buf, modifiers[i], &tm); +- if (strcmp (&buf, "0101") == 0) { ++ strftime (buf, sizeof buf, modifiers[i], &tm); ++ if (strcmp (buf, "0101") == 0) { + printf ("%s", modifiers[i]); +- return 0; ++ return 0; + } + } + return -1; +-- +GitLab diff --git a/app-misc/tracker/tracker-3.6.0.ebuild b/app-misc/tracker/tracker-3.6.0.ebuild index 4df7c34a6c95..c98269f998af 100644 --- a/app-misc/tracker/tracker-3.6.0.ebuild +++ b/app-misc/tracker/tracker-3.6.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 @@ -45,6 +45,10 @@ BDEPEND=" " PDEPEND="miners? ( >=app-misc/tracker-miners-3.6_rc )" +PATCHES=( + "${FILESDIR}"/3.6.0-configure-c99.patch +) + python_check_deps() { python_has_version -b \ "dev-python/pygobject[${PYTHON_USEDEP}]" \