Your message dated Tue, 10 Apr 2018 05:28:40 +0000
with message-id <e1f5lpg-000dl5...@fasolo.debian.org>
and subject line Bug#891530: fixed in openrc 0.34-2
has caused the Debian Bug report #891530,
regarding openrc: FTBFS on hurd-i386
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
891530: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891530
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: openrc
Version: 0.34-1
Severity: important
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd

Hi,

openrc FTBFS on GNU/Hurd due to some minor issues, see below:
  * 0009-build-on-hurd.patch: Fix FTBFS on GNU/Hurd
    - src/rc/supervise-daemon.c: Add check for SIGPWR
    - mk/os-GNU.mk: Add CFLAGS
    - src/lsb2rcconf/GNUmakefile: Use CFLAGS
    - src/lsb2rcconf/main.c: Replace error() with fprintf() and exit()

The patch is attached.

Thanks!
Index: openrc-0.34/src/rc/supervise-daemon.c
===================================================================
--- openrc-0.34.orig/src/rc/supervise-daemon.c
+++ openrc-0.34/src/rc/supervise-daemon.c
@@ -446,7 +446,9 @@ static void supervisor(char *exec, char
 	signal_setup_restart(SIGEMT, handle_signal);
 #endif
 	signal_setup_restart(SIGIO, handle_signal);
+#ifdef SIGPWR
 	signal_setup_restart(SIGPWR, handle_signal);
+#endif
 #ifdef SIGUNUSED
 	signal_setup_restart(SIGUNUSED, handle_signal);
 #endif
Index: openrc-0.34/mk/os-GNU.mk
===================================================================
--- openrc-0.34.orig/mk/os-GNU.mk
+++ openrc-0.34/mk/os-GNU.mk
@@ -12,4 +12,5 @@ SFX=		.GNU.in
 PKG_PREFIX?=	/usr
 
 CPPFLAGS+=	-D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DMAXPATHLEN=4096 -DPATH_MAX=4096
+CFLAGS+=	-DPATH_MAX=4096
 LIBDL=		-Wl,-Bdynamic -ldl
Index: openrc-0.34/src/lsb2rcconf/GNUmakefile
===================================================================
--- openrc-0.34.orig/src/lsb2rcconf/GNUmakefile
+++ openrc-0.34/src/lsb2rcconf/GNUmakefile
@@ -5,9 +5,12 @@ COMPRESS_MAN ?= yes
 STRIP_BINARY ?= yes
 #EXAMPLES ?= yes
 
-STDFLAG ?= -D_BSD_SOURCE
+MK= ../../mk
+include ${MK}/os.mk
+
+STDFLAG ?= -D_DEFAULT_SOURCE
 CSECFLAGS ?= -fstack-protector-all -Wall --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fstack-check -DPARANOID
-CFLAGS ?= -march=native -pipe -O2 -std=c99
+CFLAGS += -march=native -pipe -O2 -std=c99
 CFLAGS += $(CSECFLAGS) $(STDFLAG)
 DEBUGCFLAGS ?= -pipe -Wall -Werror -ggdb3 -Wno-error=unused-variable $(CSECFLAGS)
 
Index: openrc-0.34/src/lsb2rcconf/main.c
===================================================================
--- openrc-0.34.orig/src/lsb2rcconf/main.c
+++ openrc-0.34/src/lsb2rcconf/main.c
@@ -39,9 +39,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 #define hsearch_data_t struct hsearch_data
 #endif
 
-#include <stdio.h>	/* fprintf()	*/
+#include <stdio.h>	/* fprintf(), perror() */
 #include <stdlib.h>	/* exit()	*/
-#include <string.h>	/* strcmp()	*/
+#include <string.h>	/* strcmp(), strerror()	*/
 #include <errno.h>	/* ENVAL	*/
 #include <libgen.h>	/* basename()	*/
 #include <search.h>	/* hsearch_r()	*/
@@ -337,6 +337,9 @@ void parse_insserv_parse_service(char *s
 	*(buf->ptr++) = ' ';
 }
 
+/* Forward declaration */
+void parse_insserv_file(const char *restrict file);
+
 void parse_insserv()
 {
 	parse_insserv_file(PATH_INSSERV);
@@ -355,8 +358,10 @@ void parse_insserv()
 	    int r;
 
 	    r = snprintf(&buf[0], sizeof(buf), "%s/%s", PATH_INSSERV".d", namelist[n]->d_name);
-	    if (r >= (int)sizeof(buf) || r < 0)
-			error("snprintf(): %s\n", strerror(errno));
+	    if (r >= (int)sizeof(buf) || r < 0) {
+			fprintf(stderr, "snprintf(): %s\n", strerror(errno));
+			exit(errno);
+		}
 	    parse_insserv_file(buf);
 
 		free(namelist[n]);

--- End Message ---
--- Begin Message ---
Source: openrc
Source-Version: 0.34-2

We believe that the bug you reported is fixed in the latest version of
openrc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 891...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adam Borowski <kilob...@angband.pl> (supplier of updated openrc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 10 Apr 2018 00:24:56 +0200
Source: openrc
Binary: openrc librc1 librc-dev libeinfo1 libeinfo-dev
Architecture: source
Version: 0.34-2
Distribution: unstable
Urgency: medium
Maintainer: OpenRC Debian Maintainers <openrc-de...@lists.alioth.debian.org>
Changed-By: Adam Borowski <kilob...@angband.pl>
Description:
 libeinfo-dev - dependency based service manager (pretty console display 
developm
 libeinfo1  - dependency based service manager (pretty console display library)
 librc-dev  - dependency based service manager (runtime development)
 librc1     - dependency based service manager (runtime library)
 openrc     - dependency based service manager (runlevel change mechanism)
Closes: 891530
Changes:
 openrc (0.34-2) unstable; urgency=medium
 .
   [ Benda Xu ]
   * Set priority to optional as per standard recommendation.
   * Move libeinfo and librc to the "libs" section.
   * Update git fields to salsa.d.o pages.
 .
   [ Svante Signell ]
   * Fix FTBFS on hurd. (Closes: #891530)
 .
   [ Adam Borowski ]
   * Add bogus LSB headers to savecache to silence an insserv warning.
   * Don't use -march=native.
   * Fix FTBFS on riscv64.
   * Put the global wildcard first in debian/copyright.
   * Switch Vcs to unauthenticated.
   * Set libraries as M-A: same, main package as M-A: foreign.
   * Rules-Requires-Root: no.
Checksums-Sha1:
 edbb88b345380b9905b1989530a2dc1bb2852983 2244 openrc_0.34-2.dsc
 48c69447c558125e26ef2fcfe95623b6d49729c4 27352 openrc_0.34-2.debian.tar.xz
 daf6d62e972bb1141961aa9365c88a8bc4f99e6e 5702 openrc_0.34-2_source.buildinfo
Checksums-Sha256:
 4a9ef921363b8cca81550b6af9633b47975718bf4c670c58711088df0bec155e 2244 
openrc_0.34-2.dsc
 87d51c9a246e5d3c0ebebfcb20d93225cf834b9b5d2192fa17022b638b71588b 27352 
openrc_0.34-2.debian.tar.xz
 96f6c896aa955fbb3f091b284caed1d5177f99f55735a66a8ea77ca21d924825 5702 
openrc_0.34-2_source.buildinfo
Files:
 144be428423a16ef85938b1624127f1a 2244 admin optional openrc_0.34-2.dsc
 3a626e4c45415d340f5066d062221bd2 27352 admin optional 
openrc_0.34-2.debian.tar.xz
 514e2f1da1970e040017f9d232332ccb 5702 admin optional 
openrc_0.34-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEkjZVexcMh/iCHArDweDZLphvfH4FAlrL6WUUHGtpbG9ieXRl
QGFuZ2JhbmQucGwACgkQweDZLphvfH7HWxAA3brup6pOOmWZL+ZyL7MloYfIvqwT
tSuaUnLb+30dYgjoq0COzwVb2DQymsFeIEW+Yqbe9PbT+5xqec/t8su5KCGm3sEC
cp7/GNytwpDPKGoFlID10Lg7t0TsJvpoc16f+LsJJ/3k1oNEPi6MA8x37fEpu8K7
8+LX/fQOMmyZg49fQ4OsQPVATXO1QKyXxE/275CQrA8RF1r1H8ELPPb6VKGCz8cJ
0LSc3ateAg2c0PUwTc7semSxEQottpVtVYAc5Q5Bg6gymhMn6e5r73psATdklwXS
0UhY8rz9nluqD8Ej/x3fD3Wi3okpms9yb15Gj28hwVWy96vZpeU7qKnewiSHMAo+
w8Sjx1eSyHQ7R5JSspruY0LvwUHoy4er9qFJKZLLML2ayiveO0wzaOMYQEO2B+X7
iYknefzQ9mhHBpTQgtuIGgq52Ta376uZcd9aGYD2zHoueiUGI23T+Erc7W/3A0+o
g0gGOd0d5KdXhaAte59pFZaBP+AQlTLEJjaYrsLKDCwWy6DWTX8YOlRCM47FjeiV
ALZr8Wm/LRPa7LQpyvh86Nr7GgeCKkAGNpkE8EebwOD1+4kSu3ryl2p6/4AWg2vk
iGaiTGyAyblnwS/7Jq9Tt8X2e6BrdVpl3SnJ9C7chQ0etM8z0E4lP0Zk1JOGJjoV
p9AHMqhPqxngpgI=
=akiH
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to