commit: 789c97e456fa86b20fd886cc1593ba067f1d93b5 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> AuthorDate: Wed May 5 11:29:13 2021 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Wed May 5 11:29:13 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=789c97e4
sys-process/watchpid: Respect CFLAGS Closes: https://github.com/gentoo/gentoo/pull/20606 Closes: https://bugs.gentoo.org/726054 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> Signed-off-by: David Seifert <soap <AT> gentoo.org> .../watchpid/files/watchpid-0.1-cflags.patch | 11 ++++++++++ sys-process/watchpid/metadata.xml | 8 +++---- sys-process/watchpid/watchpid-0.1-r2.ebuild | 25 +++++++++------------- 3 files changed, 25 insertions(+), 19 deletions(-) diff --git a/sys-process/watchpid/files/watchpid-0.1-cflags.patch b/sys-process/watchpid/files/watchpid-0.1-cflags.patch new file mode 100644 index 00000000000..c82e5607f5a --- /dev/null +++ b/sys-process/watchpid/files/watchpid-0.1-cflags.patch @@ -0,0 +1,11 @@ +https://bugs.gentoo.org/726054 +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -64,7 +64,6 @@ VERSION = @VERSION@ + + bin_PROGRAMS = watchpid + watchpid_SOURCES = watchpid.c +-CFLAGS = -Wall -Werror -O3 + man_MANS = watchpid.1 + EXTRA_DIST = $(man_MANS) + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs diff --git a/sys-process/watchpid/metadata.xml b/sys-process/watchpid/metadata.xml index 56c12441305..4eb20a048df 100644 --- a/sys-process/watchpid/metadata.xml +++ b/sys-process/watchpid/metadata.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer type="project"> - <email>base-sys...@gentoo.org</email> - <name>Gentoo Base System</name> -</maintainer> + <maintainer type="project"> + <email>base-sys...@gentoo.org</email> + <name>Gentoo Base System</name> + </maintainer> </pkgmetadata> diff --git a/sys-process/watchpid/watchpid-0.1-r2.ebuild b/sys-process/watchpid/watchpid-0.1-r2.ebuild index 93e680eadf2..e190ab0d69d 100644 --- a/sys-process/watchpid/watchpid-0.1-r2.ebuild +++ b/sys-process/watchpid/watchpid-0.1-r2.ebuild @@ -1,28 +1,23 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit multilib-minimal +inherit multilib-minimal toolchain-funcs DESCRIPTION="Watches a process for termination" -SRC_URI="mirror://gentoo/${PN}_${PV}.tar.gz" HOMEPAGE="http://www.codepark.org/" -KEYWORDS="amd64 ppc x86" +SRC_URI="mirror://gentoo/${PN}_${PV}.tar.gz" -SLOT="0" LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" -DOCS=( README AUTHORS ) +PATCHES=( + "${FILESDIR}"/${P}-cflags.patch +) multilib_src_configure() { + tc-export CC ECONF_SOURCE="${S}" econf } - -src_compile() { - multilib-minimal_src_compile -} - -src_install() { - multilib-minimal_src_install -}