Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/watchpid/, sys-process/watchpid/files/
Date: Wed, 05 May 2021 11:29:35
Message-Id: 1620214153.789c97e456fa86b20fd886cc1593ba067f1d93b5.soap@gentoo
1 commit: 789c97e456fa86b20fd886cc1593ba067f1d93b5
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Wed May 5 11:29:13 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed May 5 11:29:13 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=789c97e4
7
8 sys-process/watchpid: Respect CFLAGS
9
10 Closes: https://github.com/gentoo/gentoo/pull/20606
11 Closes: https://bugs.gentoo.org/726054
12 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 .../watchpid/files/watchpid-0.1-cflags.patch | 11 ++++++++++
16 sys-process/watchpid/metadata.xml | 8 +++----
17 sys-process/watchpid/watchpid-0.1-r2.ebuild | 25 +++++++++-------------
18 3 files changed, 25 insertions(+), 19 deletions(-)
19
20 diff --git a/sys-process/watchpid/files/watchpid-0.1-cflags.patch b/sys-process/watchpid/files/watchpid-0.1-cflags.patch
21 new file mode 100644
22 index 00000000000..c82e5607f5a
23 --- /dev/null
24 +++ b/sys-process/watchpid/files/watchpid-0.1-cflags.patch
25 @@ -0,0 +1,11 @@
26 +https://bugs.gentoo.org/726054
27 +--- a/src/Makefile.in
28 ++++ b/src/Makefile.in
29 +@@ -64,7 +64,6 @@ VERSION = @VERSION@
30 +
31 + bin_PROGRAMS = watchpid
32 + watchpid_SOURCES = watchpid.c
33 +-CFLAGS = -Wall -Werror -O3
34 + man_MANS = watchpid.1
35 + EXTRA_DIST = $(man_MANS)
36 + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
37
38 diff --git a/sys-process/watchpid/metadata.xml b/sys-process/watchpid/metadata.xml
39 index 56c12441305..4eb20a048df 100644
40 --- a/sys-process/watchpid/metadata.xml
41 +++ b/sys-process/watchpid/metadata.xml
42 @@ -1,8 +1,8 @@
43 <?xml version="1.0" encoding="UTF-8"?>
44 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
45 <pkgmetadata>
46 -<maintainer type="project">
47 - <email>base-system@g.o</email>
48 - <name>Gentoo Base System</name>
49 -</maintainer>
50 + <maintainer type="project">
51 + <email>base-system@g.o</email>
52 + <name>Gentoo Base System</name>
53 + </maintainer>
54 </pkgmetadata>
55
56 diff --git a/sys-process/watchpid/watchpid-0.1-r2.ebuild b/sys-process/watchpid/watchpid-0.1-r2.ebuild
57 index 93e680eadf2..e190ab0d69d 100644
58 --- a/sys-process/watchpid/watchpid-0.1-r2.ebuild
59 +++ b/sys-process/watchpid/watchpid-0.1-r2.ebuild
60 @@ -1,28 +1,23 @@
61 -# Copyright 1999-2016 Gentoo Foundation
62 +# Copyright 1999-2021 Gentoo Authors
63 # Distributed under the terms of the GNU General Public License v2
64
65 -EAPI=6
66 +EAPI=7
67
68 -inherit multilib-minimal
69 +inherit multilib-minimal toolchain-funcs
70
71 DESCRIPTION="Watches a process for termination"
72 -SRC_URI="mirror://gentoo/${PN}_${PV}.tar.gz"
73 HOMEPAGE="http://www.codepark.org/"
74 -KEYWORDS="amd64 ppc x86"
75 +SRC_URI="mirror://gentoo/${PN}_${PV}.tar.gz"
76
77 -SLOT="0"
78 LICENSE="GPL-2"
79 +SLOT="0"
80 +KEYWORDS="amd64 ppc x86"
81
82 -DOCS=( README AUTHORS )
83 +PATCHES=(
84 + "${FILESDIR}"/${P}-cflags.patch
85 +)
86
87 multilib_src_configure() {
88 + tc-export CC
89 ECONF_SOURCE="${S}" econf
90 }
91 -
92 -src_compile() {
93 - multilib-minimal_src_compile
94 -}
95 -
96 -src_install() {
97 - multilib-minimal_src_install
98 -}