Your message dated Wed, 29 Aug 2012 05:03:11 +0000
with message-id <[email protected]>
and subject line Bug#685858: fixed in yodl 3.00.0-7
has caused the Debian Bug report #685858,
regarding yodl: 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.)


-- 
685858: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685858
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: yodl
Version: 3.00.0-6
Severity: Important
Usertags: hurd
User: [email protected]

Hi, the attached patch enables yodl to build on GNU/Hurd again. The
patch includes usage of features specified by POSIX 2008! 

Thanks!



diff -ur yodl-3.00.0/src/lexer/lchdir.c yodl-3.00.0.new/src/lexer/lchdir.c
--- yodl-3.00.0/src/lexer/lchdir.c	2010-11-08 17:09:36.000000000 +0100
+++ yodl-3.00.0.new/src/lexer/lchdir.c	2012-08-22 15:52:06.000000000 +0200
@@ -7,12 +7,22 @@
 {
 // fprintf(stderr, "CHANGING WD\n");
  
+#if (_POSIX_VERSION >= 200809L)
+    char *resolved = NULL;
+    bool cdOK = false;
+    resolved =  realpath(media_filename(lp->d_media_ptr), NULL);
+    if (resolved != NULL) cdOK = true;
+#else
     char resolved[PATH_MAX];
     bool cdOK =  realpath(media_filename(lp->d_media_ptr), resolved) != NULL;
+#endif
     if (cdOK)
     {
         *(strrchr(resolved, '/') + 1) = 0;
         cdOK = chdir(resolved) == 0;
+#if (_POSIX_VERSION >= 200809L)
+        free(resolved);
+#endif
     }
     if (!cdOK)
     {
diff -ur yodl-3.00.0/src/new/newgetcwd.c yodl-3.00.0.new/src/new/newgetcwd.c
--- yodl-3.00.0/src/new/newgetcwd.c	2010-11-08 15:50:47.000000000 +0100
+++ yodl-3.00.0.new/src/new/newgetcwd.c	2012-08-24 15:02:44.000000000 +0200
@@ -2,11 +2,18 @@
 
 char *new_getcwd()
 {
+#if (_POSIX_VERSION >= 200809L)
+    char *cwd =  NULL;
+
+    cwd = getcwd(NULL, 0);
+    if (cwd == NULL && message_show(MSG_ALERT))
+            message("Can't determine current working directory");
+#else
     char *cwd =  n_malloc(PATH_MAX + 1);
 
     if (!getcwd(cwd, PATH_MAX) && message_show(MSG_ALERT))
             message("Can't determine current working directory");
-    
+#endif    
     size_t length = strlen(cwd);
     if (cwd[length - 1] != '/')
     {

--- End Message ---
--- Begin Message ---
Source: yodl
Source-Version: 3.00.0-7

We believe that the bug you reported is fixed in the latest version of
yodl, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
tony mancill <[email protected]> (supplier of updated yodl 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: SHA1

Format: 1.8
Date: Tue, 28 Aug 2012 21:37:20 -0700
Source: yodl
Binary: yodl yodl-doc
Architecture: source amd64 all
Version: 3.00.0-7
Distribution: unstable
Urgency: low
Maintainer: Frank B. Brokken <[email protected]>
Changed-By: tony mancill <[email protected]>
Description: 
 yodl       - Your Own Document Language (Yodl) is a pre-document language
 yodl-doc   - Documenation for Your Own Document Language (Yodl)
Closes: 657002 685858
Changes: 
 yodl (3.00.0-7) unstable; urgency=low
 .
   * Remove dependency on mktemp (Closes: #657002)
   * Bump Standards Version to 3.9.3.
   * Update debian/copyright to machine-readable format.
   * Add Homepage and Vcs-Svn fields to debian/control.
   * Add patch for FTBFS on hurd-i386 (Closes: #685858).
     - Thank you to Svante Signell.
Checksums-Sha1: 
 0c8ce13353181d023810f16dcef81eba6daf7539 2029 yodl_3.00.0-7.dsc
 a1aaf478ed7882bd60c8323d3c9dbdb0b1d88d39 11256 yodl_3.00.0-7.debian.tar.gz
 b034a7fb24fe0edfe581a041a04c7027e853246c 162632 yodl_3.00.0-7_amd64.deb
 52534b0426a37861692dc9c83ae02997e3b24b07 1143630 yodl-doc_3.00.0-7_all.deb
Checksums-Sha256: 
 b26540268602f12e534426e0d00022fa3794dfe2a66f6a4f336c92a83830719e 2029 
yodl_3.00.0-7.dsc
 9699aa4a5d689e5dd567a0319d8e95e16d9fe631966c92cc90cf014106c9f170 11256 
yodl_3.00.0-7.debian.tar.gz
 385bf18dbce57caf5231bbafe37b836ce0119a5c85abf98a3d8f697fdda0a7b9 162632 
yodl_3.00.0-7_amd64.deb
 2d7a21083de7c3e5a2eff042b4cc50c3899c337f7c8b7e7151d5fcc5950a8613 1143630 
yodl-doc_3.00.0-7_all.deb
Files: 
 000f8a772de92ec8a863e3c2530f11f0 2029 text optional yodl_3.00.0-7.dsc
 c51a45a7d862fa5dd363bf38eef9a41b 11256 text optional 
yodl_3.00.0-7.debian.tar.gz
 c3ce679f132d27a5df08e9eed3522276 162632 text optional yodl_3.00.0-7_amd64.deb
 d7143e3120d81a514ab23cbb0fb7bfbf 1143630 doc optional yodl-doc_3.00.0-7_all.deb

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

iQIcBAEBAgAGBQJQPZ6CAAoJECHSBYmXSz6WtX8QAKGN03k4HKw7yLP1neDTyl4s
tpI/H5qvc2u4NNOHwdmhabk98okiqdGa4rmCuw0Igq5LSFC57++mBs9+2h6nX0xK
gwUrcwIK1NXej0n8neeMLGNRpFdOzdrIxsdbDxO3piYt8+UHuixPPbfZyK9xSvca
Unxwgo3TqFdMeOB2tJc9UbT3je7D3/WNJbTbagcTfsR4l4BGMNXG1z1H+1uLj9G7
nokw+MLhEJxciSBx4AlJBkCcM/IepjH7vqZVPm/QRsLpY/o9UpLrtCgpLfEVNOi6
L7cnnpCesgnFVlD9ESHJiA4Ctb7jiymuFQViP2qWDDAeE/MUzcSd93L2nkLO7WYn
B+LEF+d3A4IUw/EC3VC8asRSwJjIJX3jSHW6cefk4cvIjRtQObUhn357VDIzD3WD
ltxz8w8WSie96SrKz8AIScwH4FsEHsHY/2v6v2rCY1BT6eD3f5CneMFVbdwKPDJ+
A56aSHjkeeLBeEr7s44mBxynJmkDAJq2T7XPXVCczZ5mITJPzntafRP2PYj8TBtx
AS0P6wL2h+5wo7/8Ysw6eEvbgLuvfRoOxGicVtEBX6z2PVLxRWfeSBMBmn9sgoz+
rTxGsgL9ISpGAKnz6c1bIASefb2+Ejf7XcnJfYAE0jfaFRmufTiMC8665wZrRUMA
4GKJy5EDAwHhYN3G+pFz
=t4hk
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to