diff options
Diffstat (limited to 'app-misc/delay')
-rw-r--r-- | app-misc/delay/Manifest | 2 | ||||
-rw-r--r-- | app-misc/delay/delay-1.6-r6.ebuild | 50 | ||||
-rw-r--r-- | app-misc/delay/files/delay-1.6-clang16.patch | 12 |
3 files changed, 64 insertions, 0 deletions
diff --git a/app-misc/delay/Manifest b/app-misc/delay/Manifest index 87a00de76025..985e13827b3f 100644 --- a/app-misc/delay/Manifest +++ b/app-misc/delay/Manifest @@ -1,5 +1,7 @@ +AUX delay-1.6-clang16.patch 176 BLAKE2B 2bb8a3f3a0b56f467689e5494dbb0b27aa8da512978e0953db3f73b39f2cbd039af69ca49722913b7f7e0fb057d20f18890e69bff7104c4609e3db521688a956 SHA512 b12150206bcd4a36d245b9edfc5cd065a296f09965e6c0a25e2e73e3a1132c9cf53f1fee94fc23150c3893f7c9096eb172a63c1692c2a7c13d820f1b440653ca AUX delay-1.6-headers.patch 156 BLAKE2B fa056fbf65029060d1d5291d78be65b8821d5fe4ef5f2e2b09abddd4dc0e28f35de97e8d7a01651c8c7eacc810cb093730b9a1ac81d0e784c26ebf0828ff6527 SHA512 5482c96f6c2f9ce5f0183751d36360a22b3bfc7e29c23ba13022e51f0f2569b77014be4544c95e7b76cb3947118b36ae5dd94afb26c1951bc7f4b0746d120ac1 AUX delay-1.6-tinfo.patch 352 BLAKE2B 9ca59090f3d6483201a8133b204fc5948f7584285050787737a2cb23444ceff6d223fa1eb7c6a6d5712b95dc457c080efe930f041d1d03e55e3a393c27cfc484 SHA512 462e098e1a03ad1743fc758ca7ffabaeea07c430c24e5db6daffb786494176f91b1e6d99a34e867237ecd97fa4be8def415a14db6c53c9ea7b6ab4af3cf600a2 DIST delay-1.6.tar.gz 69860 BLAKE2B f1823ff114279987c6ff2e7bb15634b27f0875fede7f879dfd69f6efee7f08f76f06673ad66853ea2e1e257174dde267455f92aadf2395dd5dd5aa731590aa51 SHA512 45d34b768082ff2e4a73f1af63239f6b9e418f1cb46e5945606c0e8830ba2b8c14eeb21d7e0776ef669d2834ed6dcc66c3ddb0225c182c77e85b18b5b28d5d43 EBUILD delay-1.6-r5.ebuild 669 BLAKE2B 8fd41f8597bde03a61c27ecec051f366dca4584541975cd7107aba04fe1da44dd97b1fb942c8a6c94fda39ab803ffd4f10a37295cf14262750ad24b9dd7118e7 SHA512 f13a3305f49d41cd3258938c71be36a469288fe1020065526a8647279434224de389301f2cc8907ca90a720a7cc45ce7302b7023aafa968bb06469810170b4a6 +EBUILD delay-1.6-r6.ebuild 1293 BLAKE2B 4ac7835518320091956a6615599810eb1dc185728847fb752117f242e0034a0f56f0d892806700ed4e112a19ceb9734e69e13348504fc1f4621856fbece6931e SHA512 27bd09f0672f105a78a0200bfe577deccfe3395e1376604c6c9201815c2b70ee8ddb132a3c11e8d82fd866fb719f66d0943b44d19163928cb9c3e8558b07b24d MISC metadata.xml 272 BLAKE2B a253052dbe7dfd2dea2cdc3692698a5a94d0e2414979a348d56448cee6329b7fe29a1f252146f9ff04c1ea3b270996631395ecea454ac901eb726dc0b4dd9f29 SHA512 247c1006dd352c3cc7ee07dee2f283394767bdc0f72f0438a6cc845ac53549c05b3741c64ffedb992f003759e67f24aaa7121561db97d1b095c11269115746dc 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..bab9eb2ea719 --- /dev/null +++ b/app-misc/delay/delay-1.6-r6.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools edo + +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 +} + +src_test() { + # No provided test suite, so let's add a smoketest which would've + # caught the segfault part of bug #881319. + edo ./delay 5 + edo ./delay until now + 1 minutes +} 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; |