[Pkg-e-devel] Bug#535774: embryo: FTBFS on hurd-i386

Manuel Menal mmenal at hurdfr.org
Sat Jul 4 21:29:58 UTC 2009


Package: embryo
Severity: important
Tags: patch
Justification: fails to build from source

embryo defines the _MAX_PATH constant, since PATH_MAX is optional according to POSIX.
But there's still one occurrence of PATH_MAX in the source, which prevents embryo from
building on GNU/Hurd.

I have attached a patch that fixes this minor problem. 

Manuel Menal

diff -urp embryo-0.9.9.050+svn20090204/src/bin/embryo_cc_sc1.c ../embryo-0.9.9.050+svn20090204/src/bin/embryo_cc_sc1.c
--- embryo-0.9.9.050+svn20090204/src/bin/embryo_cc_sc1.c	2009-02-04 21:16:57.000000000 +0100
+++ ../embryo-0.9.9.050+svn20090204/src/bin/embryo_cc_sc1.c	2009-06-23 12:03:37.000000000 +0200
@@ -603,7 +603,7 @@ static void
 parseoptions(int argc, char **argv, char *iname, char *oname,
              char *pname __UNUSED__, char *rname __UNUSED__)
 {
-   char str[PATH_MAX];
+   char str[_MAX_PATH];
    int i, stack_size;
    size_t len;
 

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: hurd-i386 (i686-AT386)

Kernel: GNU-Mach 1.3.99/Hurd-0.3
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash





More information about the Pkg-e-devel mailing list