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 5F88E15800F for ; Sun, 12 Feb 2023 02:04:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80F97E0876; Sun, 12 Feb 2023 02:04:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 66E4DE0876 for ; Sun, 12 Feb 2023 02:04:40 +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 74F5A340D68 for ; Sun, 12 Feb 2023 02:04:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2F6478AA for ; Sun, 12 Feb 2023 02:04:37 +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: <1676167454.bee5b20ba22f21c8b3ae0fd0d6282717456605c3.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/delay/, app-misc/delay/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/delay/delay-1.6-r6.ebuild app-misc/delay/files/delay-1.6-clang16.patch X-VCS-Directories: app-misc/delay/files/ app-misc/delay/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: bee5b20ba22f21c8b3ae0fd0d6282717456605c3 X-VCS-Branch: master Date: Sun, 12 Feb 2023 02:04:37 +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: fe5f14f1-29c8-48c6-8394-e6728de809d2 X-Archives-Hash: 404ad82de4958738c120c5bf2a03adbb commit: bee5b20ba22f21c8b3ae0fd0d6282717456605c3 Author: Sam James gentoo org> AuthorDate: Sat Feb 11 23:45:17 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sun Feb 12 02:04:14 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bee5b20b app-misc/delay: fix clang 16 (again) We reverted the previous fix (19c56f45a25af6da76133b2e27beb40fd5ad78df) in 6c7fb619c8661e72230fe3669d6e238288132430 as it led to a segfault at runtime, but not for the reason I expected. Our clang16 patch forces regeneration of the yacc files and going from an ancient bison to a modern one makes 'delay until now + 5 minutes' segfault. It happens even if the patch is empty, as the regeneration is the breaking part. So, just force byacc, as it seems to work, and this is a package with no active upstream. Closes: https://bugs.gentoo.org/881319 See: 19c56f45a25af6da76133b2e27beb40fd5ad78df See: 6c7fb619c8661e72230fe3669d6e238288132430 Signed-off-by: Sam James gentoo.org> app-misc/delay/delay-1.6-r6.ebuild | 43 ++++++++++++++++++++++++++++ app-misc/delay/files/delay-1.6-clang16.patch | 12 ++++++++ 2 files changed, 55 insertions(+) diff --git a/app-misc/delay/delay-1.6-r6.ebuild b/app-misc/delay/delay-1.6-r6.ebuild new file mode 100644 index 000000000000..056c0f45b6a2 --- /dev/null +++ b/app-misc/delay/delay-1.6-r6.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Sleeplike program that counts down the number of seconds specified" +HOMEPAGE="https://onegeek.org/~tom/software/delay/" +SRC_URI="https://onegeek.org/~tom/software/delay/dl/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" + +RDEPEND="sys-libs/ncurses:=" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/byacc + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${P}-headers.patch + "${FILESDIR}"/${P}-tinfo.patch + "${FILESDIR}"/${P}-clang16.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # Our clang16 patch forces regeneration of the yacc files and going from + # an ancient bison to a modern one makes 'delay until now + 5 minutes' + # segfault. It happens even if the patch is empty, as the regeneration + # is the breaking part. So, just force byacc, as it seems to work, and + # this is a package with no active upstream. + export YACC=byacc + + econf +} diff --git a/app-misc/delay/files/delay-1.6-clang16.patch b/app-misc/delay/files/delay-1.6-clang16.patch new file mode 100644 index 000000000000..5deec4ea5194 --- /dev/null +++ b/app-misc/delay/files/delay-1.6-clang16.patch @@ -0,0 +1,12 @@ +--- a/parsetimey.y ++++ b/parsetimey.y +@@ -7,6 +7,9 @@ + + #define YYDEBUG 1 + ++int yyerror(char *s); ++int yylex(void); ++ + time_t currtime; + struct tm exectm; + static int isgmt;