From 7e09a932e68e8914321a952aee430d5211dafa47 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Sat, 26 Nov 2022 16:58:18 +0100 Subject: dev-lang/gnucobol: add -g to avoid stripping Closes: https://bugs.gentoo.org/882763 Signed-off-by: Alfredo Tupone --- dev-lang/gnucobol/files/gnucobol-3.1.2-gentoo.patch | 10 ++++++++++ dev-lang/gnucobol/gnucobol-3.1.2.ebuild | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 dev-lang/gnucobol/files/gnucobol-3.1.2-gentoo.patch diff --git a/dev-lang/gnucobol/files/gnucobol-3.1.2-gentoo.patch b/dev-lang/gnucobol/files/gnucobol-3.1.2-gentoo.patch new file mode 100644 index 000000000000..64c33a2b1dee --- /dev/null +++ b/dev-lang/gnucobol/files/gnucobol-3.1.2-gentoo.patch @@ -0,0 +1,10 @@ +--- a/extras/Makefile.am 2022-11-26 16:51:38.799201541 +0100 ++++ b/extras/Makefile.am 2022-11-26 16:52:00.112873141 +0100 +@@ -30,6 +30,6 @@ + + SUFFIXES = .cob .$(COB_MODULE_EXT) + .cob.$(COB_MODULE_EXT): +- ("$(top_builddir)/pre-inst-env" $(COBC) -m -Wall -O2 -o "$@" "$<" || \ ++ ("$(top_builddir)/pre-inst-env" $(COBC) -m -Wall -O2 -g -o "$@" "$<" || \ + "$(top_builddir)/pre-inst-env" $(COBC) -m -Wall -o "$@" "$<" || \ + "$(top_builddir)/pre-inst-env" $(COBC) -m -Wall -vv -o "$@" "$<") diff --git a/dev-lang/gnucobol/gnucobol-3.1.2.ebuild b/dev-lang/gnucobol/gnucobol-3.1.2.ebuild index 8202373ea8e8..b6419a90cf82 100644 --- a/dev-lang/gnucobol/gnucobol-3.1.2.ebuild +++ b/dev-lang/gnucobol/gnucobol-3.1.2.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit autotools + DESCRIPTION="A free/libre COBOL compiler" HOMEPAGE="https://gnucobol.sourceforge.io/" SRC_URI="mirror://sourceforge/${PN}/$(ver_cut 1-2)/${P}.tar.xz" @@ -24,6 +26,13 @@ BDEPEND="sys-devel/libtool" DOCS=( AUTHORS ChangeLog NEWS README README.md ) +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_prepare() { + default + eautoreconf +} + src_configure() { econf \ $(use_with berkdb db) \ -- cgit v1.2.3-65-gdbad