From nobody Sat Jun 17 15:25:05 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qk0Ft2bb2z4fKZn; Sat, 17 Jun 2023 15:25:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qk0Ft10fbz43j5; Sat, 17 Jun 2023 15:25:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687015506; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6GgzFfRwHIPuMysCqksKzYkuNxNJVT+yezSS730DGr4=; b=qDmQQYJoWzw9PTrUyoVjradA+WCTOVQ6ZBvf7/N7Kgp+GRl3T9Uv5XUnCslltEYJVlpSXM Okq8WyAVsoZAyLlizaE9i/9Wsmw2z/u5iNNNWKsUQLoStIPXrKavDmCPeFEJFxE91gDp12 cGKAQ4nL2z0UjMEOPTqmJK8BtuJBNFKDHMK4KU4Ty3mPEDjPd4o7xO4Zqo/B4cM3y0P8Uy X+Oo7BeK7LrQ496klodKcLDGBdiG69WHYoBPZn7J+qHOhfIQ3KNfD+ppm1KucNgQJc0fwO WFRk0Zk5Bq15gGUHxk0qhQbe4rYuXnMWpX3WW4arE9hwwliQba5lMiDw6meaaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687015506; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6GgzFfRwHIPuMysCqksKzYkuNxNJVT+yezSS730DGr4=; b=uLVannSNsOSRNrJH0Y5OIYKcvRc7QesOndJEXfpw8W9Spwotzr7LNejCC45dcarogz4WBy /znLTqbukrm0daoKii7VN7MKltmZ7POW1rDEWfcNtgAJuk4rWmORIIsy680WzyX4yMxs0k QShYluJDkxTDajti0XcpTEYVpXs7yHo5QEwriaCVev89sUfa1fSmRc1tn/N9fxqZe5Ovmw 4a4A2OEpDcMwLc5gV1d8OUiL85z6yTJu2Kv/T9TiTb7oeXSvX7uKGvk4IWyOgpm0B1MeoN dNblDna4rstI+kgg3gTLNC+tBT/yXoP6tHolCLW9XttjVQxYzPyOSB3LBLEBzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687015506; a=rsa-sha256; cv=none; b=PSf/XI4zRAbRJuA7TpNTzdJxjVzSUP+HsO14Lbwv6TvP1sZhXUdH9CB+oqg1lpanb+QWrH P9E9GONUoyh7We8ZBwvg8emF6Yrl5VTVggojkjM5QByb5TZgIOyuLiF6HGfJBhtmsQVGVo zlsvu+RLiudobP9FND0QcvHwCAynTtQBsL0ANpcxYAcCEVZR8XijVvr7jzIjOCQjXK8RTY reXnlTxwvwBGWPBLOXq9CW8vjKsHfbWfcMltm5q+SrzXfJ6FtqE4I8v1u2l9XxOxtx0zdw DXbyLFLyTQ6G3ZExyZDi2M+R45yPZYdkSqQ91Uvsl/EsFfZkBf78v2sW6CH/lQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Qk0Fs743tz1DwG; Sat, 17 Jun 2023 15:25:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35HFP5PI017227; Sat, 17 Jun 2023 15:25:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35HFP5Fx017226; Sat, 17 Jun 2023 15:25:05 GMT (envelope-from git) Date: Sat, 17 Jun 2023 15:25:05 GMT Message-Id: <202306171525.35HFP5Fx017226@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: 2cfe4f64726f - main - sysutils/tracker3: fix meson configuration on i386 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2cfe4f64726fc29828d85528541007d68047bc22 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=2cfe4f64726fc29828d85528541007d68047bc22 commit 2cfe4f64726fc29828d85528541007d68047bc22 Author: Dimitry Andric AuthorDate: 2023-06-17 15:16:45 +0000 Commit: Dimitry Andric CommitDate: 2023-06-17 15:24:55 +0000 sysutils/tracker3: fix meson configuration on i386 Tracker's meson script has a check for "4-digit year modifier for strftime", but it semi-intentially uses a date which does not work on i386, due to its 32-bit time_t. Since we will never fix the Y2038 problem on i386, work around the bad test by using 1970-01-01 instead. PR: 272017 Reported by: jbeich MFH: 2023Q2 --- sysutils/tracker3/files/patch-meson.build | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/sysutils/tracker3/files/patch-meson.build b/sysutils/tracker3/files/patch-meson.build new file mode 100644 index 000000000000..e74a60d0e1b9 --- /dev/null +++ b/sysutils/tracker3/files/patch-meson.build @@ -0,0 +1,19 @@ +--- meson.build.orig 2023-05-31 21:18:27 UTC ++++ meson.build +@@ -210,14 +210,14 @@ 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 */ ++ time_t timestamp = 0; /* 1970-01-01T00:00:00Z */ + 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) { ++ if (strcmp (&buf, "1970") == 0) { + printf ("%s", modifiers[i]); + return 0; + }