Your message dated Tue, 9 Feb 2016 22:50:51 +0100
with message-id <[email protected]>
and subject line Fixed in qstat_2.15-3 (unstable)
has caused the Debian Bug report #814237,
regarding qstat: 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 [email protected]
immediately.)


-- 
814237: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814237
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: qstat
Version: 2.15-2
Severity: important
Tags: patch
Usertags: hurd
User: [email protected]

Hello,

Attached is a small patch to fix the GNU/Hurd build by avoiding using PATH_MAX,
since it is not defined.

Thanks!
Index: qstat-2.15/debug.c
===================================================================
--- qstat-2.15.orig/debug.c
+++ qstat-2.15/debug.c
@@ -103,11 +103,15 @@ void malformed_packet(const struct qserv
 static unsigned count = 0;
 static void _dump_packet(const char* tag, const char* buf, int buflen)
 {
-	char fn[PATH_MAX] = {0};
-	int fd;
-	sprintf(fn, "%03u_%s.pkt", count++, tag);
+	char *fn = NULL;
+	int fd, len;
+	len = 3 + 1 + strlen(tag) + 4 + 1;
+	fn = malloc(len);
+	if(!fn) { perror("malloc"); return; }
+	snprintf(fn, len, "%03u_%s.pkt", count++, tag);
 	fprintf(stderr, "dumping to %s\n", fn);
 	fd = open(fn, O_WRONLY|O_CREAT|O_EXCL, 0644);
+	free(fn);
 	if(fd == -1) { perror("open"); return; }
 	if(write(fd, buf, buflen) == -1)
 		perror("write");

--- End Message ---
--- Begin Message ---
Version: 2.15-3

Hi Svante,

I forgot to add a bug closer to the changelog, but your patch was included
in 2.15-3 and qstat should now build for hurd-i386. Thank you!

Attached is the changelog for the upload.

-- 
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
[email protected]     [email protected]     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/
--- Begin Message ---

Accepted:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 09 Feb 2016 13:44:28 +0100
Source: qstat
Binary: qstat
Architecture: source amd64
Version: 2.15-3
Distribution: unstable
Urgency: medium
Maintainer: Jordi Mallach <[email protected]>
Changed-By: Jordi Mallach <[email protected]>
Description:
 qstat      - Command-line tool for querying quake (and other) servers
Changes:
 qstat (2.15-3) unstable; urgency=medium
 .
   * Add path_max.patch: Fix build on the Hurd by avoiding the usage of
     PATH_MAX definitions. Many thanks to Svante Signel.
Checksums-Sha1:
 0c5300c5f4c7210467d04176bd74e4a1cfebf974 1891 qstat_2.15-3.dsc
 d796367e9a9bd7f4be88cc852f8b22fc5bfadc94 12000 qstat_2.15-3.debian.tar.xz
 89adcf6ce19384736f9d28997438b23f4538f130 282914 qstat-dbgsym_2.15-3_amd64.deb
 609907f75732cc84e14b9d2dc5325878e86582ba 178128 qstat_2.15-3_amd64.deb
Checksums-Sha256:
 ee3929448e93180ca9082fa427bd8476c6c8d5aa2ff94f4d64dc1fe5ce8426b1 1891 
qstat_2.15-3.dsc
 154047d214bd57ebdf1c51b40ea8c79695fe0dedf6a7eb8058f9e1f281b7bf0b 12000 
qstat_2.15-3.debian.tar.xz
 9af0eba802c9eaa561398ebc48863704f121de36f62371b634368f6ebbdb12b1 282914 
qstat-dbgsym_2.15-3_amd64.deb
 cfa379236c07655e1fc0cd2eb029f8e39d056ef81f0825ffea459f80471cfb65 178128 
qstat_2.15-3_amd64.deb
Files:
 7a78d601bafd42d6b6ec0776373c5713 1891 games optional qstat_2.15-3.dsc
 d44bb710583ef61c6f4e2362ec5eaec0 12000 games optional 
qstat_2.15-3.debian.tar.xz
 1727f75d46224550fa2af92001c055aa 282914 debug extra 
qstat-dbgsym_2.15-3_amd64.deb
 15b05b5a1702a0e2a669cd0016c36a4e 178128 games optional qstat_2.15-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJWud+UAAoJECVQL2/L48sEeqoQAJIXV8rcrv8Jvh9+a+3F45X8
AzlK+xeb65C/kYCErZp3FrJHKsJPGJlsWu2IwY4d3IOJFzbpvJtd5MTV7Bd61Ua1
FHNF3+IIofyQ6gS+RC7Xm/PF68XPS5e4/2Qpu6uHct1yazJkvZ2vzIXjKrJ5JLKe
Jrz5EvJbjzcCbLjDW3X/sawUK214lyOKAyQPwUP7zyUA/oLgUQBJaijiDVI5adYp
30lSV3RgpJ/8Bx3Q4kXPAF8Z5Rwc8v9Shcoo77nHQ6asFFwXZvI7eozz3WwfWn1t
m+o/4Lxpu5VhHG8hdmdselGhHPLgEmUxTwKMTLZL3zUVccrc4nvRz7N9W3XI8Xki
OZFQ8msGIwdj0n6Txrc472gM2BRtmejPdH6J1BO64/ho6ntPTml2/frUtow/UrFz
VCc6EEREuUaKSB5A9uynTz0I9UYqfYLiQCpYj3xjNFa94SRjFJ7/CXbjXDrBOShw
EFBDT98Y2mK7bNMmFBtk+NeHuL23dCZBeucOz771A+++oO+jSL7HjgntM0EP6sS4
rRnkIQcXdHbVyT9HAX3GsvmnkTt83wQKUiIvcLs57f+h6Bdxuj3hseibzmXPcpxK
4R2d3FIIn6okO3FjYnrgX6CjYwWxo22IuuApVoOIbt5aYRI1UrRmii+kcwKWOtf4
XZSGJe8uY7ax2isgjNoC
=0KsX
-----END PGP SIGNATURE-----


Thank you for your contribution to Debian.

--- End Message ---

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to