Your message dated Mon, 18 Apr 2011 13:35:09 +0000
with message-id <[email protected]>
and subject line Bug#623164: fixed in lyx 2.0.0~rc3-2
has caused the Debian Bug report #623164,
regarding lyx: FTBFS on hurd-i386: The PATH_MAX Strikes Back
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.)


-- 
623164: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=623164
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: lyx
Version: 2.0.0~rc3-1
Severity: important
Tags: patch
User: [email protected]

Hi,

the new lyx 2.0.0~rc3 carries the fix for #597279, but introduces a new
unconditional PATH_MAX usage in src/support/filetools.cpp, see [1].
Attached there is a patch fixing this new PATH_MAX usage.

[1] 
https://buildd.debian.org/status/fetch.php?pkg=lyx&arch=hurd-i386&ver=2.0.0%7Erc3-1&stamp=1302560138

Thanks,
-- 
Pino
--- a/src/support/filetools.cpp
+++ b/src/support/filetools.cpp
@@ -49,6 +49,7 @@
 #include <utility>
 #include <fstream>
 #include <sstream>
+#include <vector>
 
 #if defined (_WIN32)
 #include <io.h>
@@ -759,13 +760,31 @@
 #ifdef HAVE_READLINK
 bool readLink(FileName const & file, FileName & link)
 {
-	char linkbuffer[PATH_MAX + 1];
 	string const encoded = file.toFilesystemEncoding();
+#ifdef HAVE_DEF_PATH_MAX
+	char linkbuffer[PATH_MAX + 1];
 	int const nRead = ::readlink(encoded.c_str(),
 				     linkbuffer, sizeof(linkbuffer) - 1);
 	if (nRead <= 0)
 		return false;
 	linkbuffer[nRead] = '\0'; // terminator
+#else
+	vector<char> buf(1024);
+	int nRead = -1;
+
+	while (true) {
+		nRead = ::readlink(encoded.c_str(), &buf[0], buf.size() - 1);
+		if (nRead < 0) {
+			return false;
+		}
+		if (nRead < buf.size() - 1) {
+			break;
+		}
+		buf.resize(buf.size() * 2);
+	}
+	buf[nRead] = '\0'; // terminator
+	const char * linkbuffer = &buf[0];
+#endif
 	link = makeAbsPath(linkbuffer, onlyPath(file.absFileName()));
 	return true;
 }

--- End Message ---
--- Begin Message ---
Source: lyx
Source-Version: 2.0.0~rc3-2

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

lyx-common_2.0.0~rc3-2_all.deb
  to main/l/lyx/lyx-common_2.0.0~rc3-2_all.deb
lyx_2.0.0~rc3-2.debian.tar.gz
  to main/l/lyx/lyx_2.0.0~rc3-2.debian.tar.gz
lyx_2.0.0~rc3-2.dsc
  to main/l/lyx/lyx_2.0.0~rc3-2.dsc
lyx_2.0.0~rc3-2_i386.deb
  to main/l/lyx/lyx_2.0.0~rc3-2_i386.deb
ttf-lyx_2.0.0~rc3-2_all.deb
  to main/l/lyx/ttf-lyx_2.0.0~rc3-2_all.deb



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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sven Hoexter <[email protected]> (supplier of updated lyx 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 [email protected])


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

Format: 1.8
Date: Mon, 18 Apr 2011 13:44:51 +0200
Source: lyx
Binary: lyx lyx-common ttf-lyx
Architecture: source i386 all
Version: 2.0.0~rc3-2
Distribution: unstable
Urgency: low
Maintainer: Debian LyX Maintainers <[email protected]>
Changed-By: Sven Hoexter <[email protected]>
Description: 
 lyx        - Document Processor
 lyx-common - Architecture-independent files for LyX
 ttf-lyx    - TrueType versions of some TeX fonts
Closes: 618687 623164
Changes: 
 lyx (2.0.0~rc3-2) unstable; urgency=low
 .
   * Add debian/patches/path_max_hurd to fix another PATH_MAX problem in LyX.
     Patch provided by Pino Toscano. (Closes: #623164)
   * Add debian/patches/fix-assertion-618687 to fix an assertion during the
     startup in LyX. (Closes: #618687)
Checksums-Sha1: 
 1bee778417904acc245540b6ec57e093245939c1 2124 lyx_2.0.0~rc3-2.dsc
 2c985514412276086bf910e61fa7297eee6b7ebc 28532 lyx_2.0.0~rc3-2.debian.tar.gz
 6f4729ed5850258859753eb784c06625e921f59b 4184164 lyx_2.0.0~rc3-2_i386.deb
 cd8b8a17729150adb572aa87f810e0931ffae555 7187280 lyx-common_2.0.0~rc3-2_all.deb
 dcfc4afe2faf9653e845dd8cfd81a03f42fb8b73 186262 ttf-lyx_2.0.0~rc3-2_all.deb
Checksums-Sha256: 
 fb7b0af52003935607be5b1e0365110101044b7aff257ab786be4a7336d8a917 2124 
lyx_2.0.0~rc3-2.dsc
 e70bf8b56a9446d34b95182dedf44ced67feb32db483a07737684a78ff416706 28532 
lyx_2.0.0~rc3-2.debian.tar.gz
 5317378ba4287cd455715a8f3bf3b4e0a33ab87f44283ccb0fa44a495b04aad8 4184164 
lyx_2.0.0~rc3-2_i386.deb
 89336f6c5f68f774678b035429cd34b27f860dd7a69e44f665481bbd247add49 7187280 
lyx-common_2.0.0~rc3-2_all.deb
 a1d90ec147b9a168252b32ea9dec2cf7c7cd8b873f5f1ba076fdd8ecadacc155 186262 
ttf-lyx_2.0.0~rc3-2_all.deb
Files: 
 09ac38c555e971fb7b2574ca99c66d4e 2124 editors optional lyx_2.0.0~rc3-2.dsc
 b9d001d222ef78706d878729682637a1 28532 editors optional 
lyx_2.0.0~rc3-2.debian.tar.gz
 879d9e30291dcfe631ed351215b9fa11 4184164 editors optional 
lyx_2.0.0~rc3-2_i386.deb
 bd6fde038972e054b741bc145a787c69 7187280 editors optional 
lyx-common_2.0.0~rc3-2_all.deb
 225dcb560e59d6c11176422454edf254 186262 fonts optional 
ttf-lyx_2.0.0~rc3-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJNrDk8AAoJEKbcJNnaJJPRWq8P/0TjLAxkvGTvXEfphehkp5Uv
CMEZ6A3kpKXBR1iUsOLnVU5D6YL5meGzZa+cPXSyik39FB0+h5HPWmrCiOvsZ45O
pqSDSpvBD6A3gPRBO79DvrIFY9ERAZrDTifFWsKsU2tSPSNPYDFNaSDs3ue9orZD
8ui6L0GD/NIlJE55mfXgegdnXQjLOqPakIcqAI6ba4PrNfHaiH3YwMdKfcWugauu
Fsg7W0YDamf3KkfmKyhXwSaa5eE79PfKDQAB+gxO+u1YsnHAEoVrYbKbj+4Mk6br
avdgAxDrOgEhUMdPd8IiHBNyz9blW1oYESAZEBWfWJBsSgunwu1s8kMK7BLHxD8x
8+DDq7iclaRnZfrSdDhJZbPIOnj30qegWtC2PL3LAVwBgjD+IB/2e9qQjTUrJUlC
w7DHFZo9CSpAc0TIVbuGxb9dim7fg1TFoOyr60qYz13V3TEuXmcGq9tensv+lDOb
NFxj0Z+uCIdeJhIefCVA9blTx62wC7/mQsuUXudigiUE0k+IoYEYctrtysRmq7RL
PTr0+zKRo9sLiZ/YsP6rF+xasaUw9e2wWajJ66+bFM9DsTbVjOW+znIAWrW7Ou7v
VPxDLCyMxyE69K5ok1U0HigAg54HtDKhR4ISdi9BxZqzzKqeHeP2zmd7catN72m1
/9Lvcp1QcNvKPERniS9T
=VIvR
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to