commit: ce74c55992aec2610226e83a99eb8b56ce3ca32c Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Sep 27 21:51:27 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Sep 27 21:51:27 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce74c559
games-misc/sex: fix implicit function decls Closes: https://bugs.gentoo.org/871414 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/sex-1.0-Add-missing-string.h-for-strcmp.patch | 15 +++++++++++++++ games-misc/sex/{sex-1.0-r2.ebuild => sex-1.0-r3.ebuild} | 9 +++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/games-misc/sex/files/sex-1.0-Add-missing-string.h-for-strcmp.patch b/games-misc/sex/files/sex-1.0-Add-missing-string.h-for-strcmp.patch new file mode 100644 index 000000000000..19070d43815b --- /dev/null +++ b/games-misc/sex/files/sex-1.0-Add-missing-string.h-for-strcmp.patch @@ -0,0 +1,15 @@ +From: Sam James <[email protected]> +Date: Tue, 27 Sep 2022 22:50:12 +0100 +Subject: [PATCH] Add missing <string.h> for strcmp + +Bug: https://bugs.gentoo.org/871414 +--- a/sex.c ++++ b/sex.c +@@ -10,6 +10,7 @@ + + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> + #include <time.h> + #include <ctype.h> + diff --git a/games-misc/sex/sex-1.0-r2.ebuild b/games-misc/sex/sex-1.0-r3.ebuild similarity index 79% rename from games-misc/sex/sex-1.0-r2.ebuild rename to games-misc/sex/sex-1.0-r3.ebuild index d76e5fcc9923..fddaf87ed5f3 100644 --- a/games-misc/sex/sex-1.0-r2.ebuild +++ b/games-misc/sex/sex-1.0-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -15,9 +15,14 @@ KEYWORDS="~alpha ~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" RDEPEND="!sci-astronomy/sextractor" +PATCHES=( + "${FILESDIR}"/${PN}-1.0-Add-missing-string.h-for-strcmp.patch +) + src_prepare() { default - rm -f Makefile + + rm -f Makefile || die } src_compile() {
