* [gentoo-commits] repo/gentoo:master commit in: dev-util/btyacc/files/, dev-util/btyacc/
@ 2021-11-13 10:52 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2021-11-13 10:52 UTC (permalink / raw
To: gentoo-commits
commit: 63a644e25059fee0a3054e673e11e4e3ba037a45
Author: James Beddek <telans <AT> posteo <DOT> de>
AuthorDate: Sat Nov 13 10:33:26 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 13 10:52:39 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63a644e2
dev-util/btyacc: update patch, remove static linking
Signed-off-by: James Beddek <telans <AT> posteo.de>
Closes: https://github.com/gentoo/gentoo/pull/22928
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-util/btyacc/{btyacc-3.0-r3.ebuild => btyacc-3.0-r4.ebuild} | 4 ----
dev-util/btyacc/files/btyacc-3.0-makefile.patch | 2 +-
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/dev-util/btyacc/btyacc-3.0-r3.ebuild b/dev-util/btyacc/btyacc-3.0-r4.ebuild
similarity index 86%
rename from dev-util/btyacc/btyacc-3.0-r3.ebuild
rename to dev-util/btyacc/btyacc-3.0-r4.ebuild
index 8949c4f6fe1..750243f2275 100644
--- a/dev-util/btyacc/btyacc-3.0-r3.ebuild
+++ b/dev-util/btyacc/btyacc-3.0-r4.ebuild
@@ -26,10 +26,6 @@ src_prepare() {
default
# fix memory issue/glibc corruption
sed -i -e "s|len + 13|len + 14|" main.c || die "Could not fix main.c"
- # Darwin doesn't do static binaries
- if [[ ${CHOST} == *-darwin* ]]; then
- sed -i -e 's/-static//' Makefile || die
- fi
}
src_compile() {
diff --git a/dev-util/btyacc/files/btyacc-3.0-makefile.patch b/dev-util/btyacc/files/btyacc-3.0-makefile.patch
index 60187256d1a..d55ff431765 100644
--- a/dev-util/btyacc/files/btyacc-3.0-makefile.patch
+++ b/dev-util/btyacc/files/btyacc-3.0-makefile.patch
@@ -10,7 +10,7 @@ Respect CC, append to CFLAGS (but not -g), append to LDFLAGS, use system LD -jer
+CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes
-LDFLAGS = -static
-+LDFLAGS += -static
++LDFLAGS +=
LIBS =
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/btyacc/files/, dev-util/btyacc/
@ 2025-03-14 21:00 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2025-03-14 21:00 UTC (permalink / raw
To: gentoo-commits
commit: 42c15a2f99997bf8fa6197519c28cb1a3e470232
Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Tue Mar 11 18:34:46 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 14 20:59:53 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42c15a2f
dev-util/btyacc: update EAPI 7 -> 8, port to C99, wire tests
Closes: https://bugs.gentoo.org/880971
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/41023
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-util/btyacc/btyacc-3.0-r5.ebuild | 39 ++++++++++++++++++++++++++
dev-util/btyacc/files/btyacc-3.0-c99.patch | 45 ++++++++++++++++++++++++++++++
2 files changed, 84 insertions(+)
diff --git a/dev-util/btyacc/btyacc-3.0-r5.ebuild b/dev-util/btyacc/btyacc-3.0-r5.ebuild
new file mode 100644
index 000000000000..c211b39e8295
--- /dev/null
+++ b/dev-util/btyacc/btyacc-3.0-r5.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+MY_P="${PN}-3-0"
+DESCRIPTION="Backtracking YACC - modified from Berkeley YACC"
+HOMEPAGE="https://www.siber.com/btyacc"
+SRC_URI="https://www.siber.com/btyacc/${MY_P}.tar.gz"
+S="${WORKDIR}"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~ppc-macos"
+
+PATCHES=(
+ "${FILESDIR}/${P}-includes.patch"
+ "${FILESDIR}/${P}-makefile.patch"
+ "${FILESDIR}/${P}-c99.patch"
+)
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_test() {
+ for file in "${S}"/test/*.y;
+ do "${S}"/btyacc "${file}" || die
+ rm y_tab.c || die
+ done
+}
+
+src_install() {
+ dobin btyacc
+ dodoc README README.BYACC
+ newman manpage btyacc.1
+}
diff --git a/dev-util/btyacc/files/btyacc-3.0-c99.patch b/dev-util/btyacc/files/btyacc-3.0-c99.patch
new file mode 100644
index 000000000000..f34a78949e96
--- /dev/null
+++ b/dev-util/btyacc/files/btyacc-3.0-c99.patch
@@ -0,0 +1,45 @@
+Fold sed that fixed https://bugs.gentoo.org/361013 into patch
+Correct type for signal handler that ignores argument.
+https://bugs.gentoo.org/880971
+--- a/defs.h
++++ b/defs.h
+@@ -391,7 +391,7 @@
+
+ /* main.c */
+ void done(int);
+-void onintr(void);
++void onintr(int);
+ void set_signals(void);
+ void usage(void);
+ void getargs(int, char **);
+--- a/main.c
++++ b/main.c
+@@ -76,7 +76,7 @@
+ }
+
+
+-void onintr()
++void onintr(int ignored) //signal handler
+ {
+ done(1);
+ }
+@@ -264,7 +264,7 @@
+ if (tmpdir == 0) tmpdir = DEFAULT_TMPDIR;
+
+ len = strlen(tmpdir);
+- i = len + 13;
++ i = len + 14;
+ if (len && tmpdir[len-1] != DIR_CHAR)
+ ++i;
+
+--- a/reader.c
++++ b/reader.c
+@@ -291,7 +291,7 @@
+ cachec(NUL);
+
+ if ((key = bsearch(cache, keywords, sizeof(keywords)/sizeof(*key),
+- sizeof(*key), strcmp)))
++ sizeof(*key), (int (*)(const void*, const void*))strcmp)))
+ return key->token;
+ } else {
+ ++cptr;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-14 21:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-14 21:00 [gentoo-commits] repo/gentoo:master commit in: dev-util/btyacc/files/, dev-util/btyacc/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2021-11-13 10:52 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox