Bug#669059: webkit-1.8.0-2: FTBFS on hurd-*

Svante Signell svante.signell at telia.com
Mon Apr 16 21:10:42 UTC 2012


On Mon, 2012-04-16 at 22:30 +0200, Samuel Thibault wrote:
> Svante Signell, le Mon 16 Apr 2012 22:20:20 +0200, a écrit :
> > webkit currently FTBFS on hurd-i386, due to the usage of PATH_MAX,
> > which is only recommended by POSIX, not mandatory,
> 
> It's not even recommanded. It's just needed when the limit exists, and
> shall even not be defined when it depends on the path:
> 
> “ A definition of one of the symbolic constants in the following list
> shall be omitted from the <limits.h> header on specific implementations
> where the corresponding value is equal to or greater than the stated
> minimum, but where the value can vary depending on the file to which it
> is applied.”

Thanks, that's the text I was looking for. Where is it written? I just
used some stuff from the readlink man page.

> > --- a/Source/JavaScriptCore/wtf/gobject/GlibUtilities.cpp	2012-02-19 18:45:45.000000000 +0100
> > +++ b/Source/JavaScriptCore/wtf/gobject/GlibUtilities.cpp	2012-04-16 14:23:16.000000000 +0200
> > @@ -25,6 +25,8 @@
> >  #include <wtf/text/WTFString.h>
> >  #else
> >  #include <limits.h>
> > +#include <sys/types.h>
> > +#include <sys/stat.h>
> >  #include <unistd.h>
> >  #endif
> >  
> > @@ -40,9 +42,14 @@
> >  #elif OS(UNIX)
> >  CString getCurrentExecutablePath()
> >  {
> > -    static char readLinkBuffer[PATH_MAX];
> > -    ssize_t result = readlink("/proc/curproc/file", readLinkBuffer, PATH_MAX);
> > -    if (result == -1)
> > +    struct stat sb;
> > +    char *readLinkBuffer;
> 
> It does not seem to be the latest version of your patch after our
> discussion on debian-hurd, as readLinkBuffer is here still not static,

In some way the updated patch was not attached. The updated patch will
follow soon...






More information about the Pkg-webkit-maintainers mailing list