mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-apps/daemonize: fix build w/ c23
Thanks to Robert Schultz. Closes: https://bugs.gentoo.org/880439 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
26
sys-apps/daemonize/daemonize-1.7.8-r2.ebuild
Normal file
26
sys-apps/daemonize/daemonize-1.7.8-r2.ebuild
Normal file
@@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Runs a command as a Unix daemon"
|
||||
HOMEPAGE="https://software.clapper.org/daemonize/"
|
||||
SRC_URI="https://github.com/bmc/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-release-${PV}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DOCS=( {CHANGELOG,README}.md )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.7.8-c23.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i \
|
||||
-e 's:\($(CC)\) $(CFLAGS) \(.*\.o\):\1 $(LDFLAGS) \2:' \
|
||||
Makefile.in || die
|
||||
}
|
||||
14
sys-apps/daemonize/files/daemonize-1.7.8-c23.patch
Normal file
14
sys-apps/daemonize/files/daemonize-1.7.8-c23.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
https://bugs.gentoo.org/880439#c10
|
||||
--- a/getopt.c
|
||||
+++ b/getopt.c
|
||||
@@ -43,9 +43,9 @@
|
||||
#include <stdio.h>
|
||||
/* We're ANSI now; we're guaranteed to have strchr(). */
|
||||
#include <string.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
#define ERR(s, c) if(x_opterr){\
|
||||
- extern int write();\
|
||||
char errbuf[2];\
|
||||
errbuf[0] = c; errbuf[1] = '\n';\
|
||||
(void) write(2, argv[0], (unsigned)strlen(argv[0]));\
|
||||
Reference in New Issue
Block a user