[Pkg-erlang-devel] Bug#636510: erlang: FTBFS on hurd-i386

Sergei Golovan sgolovan at nes.ru
Wed Aug 3 18:43:20 UTC 2011


On Wed, Aug 3, 2011 at 10:30 PM, Pino Toscano <pino at debian.org> wrote:
>
> Actually, it seems that MAXPATHLEN is what you describe; see in
> erts/emulator/sys/unix/erl_unix_sys.h:
>
> /*
>  * Make sure that MAXPATHLEN is defined.
>  */
> [...]
> #ifndef MAXPATHLEN
> #   ifdef PATH_MAX
> #       define MAXPATHLEN PATH_MAX
> #   else
> #       define MAXPATHLEN 2048
> #   endif
> #endif

I see.

>
> There's also a bit of duplication of this code defining MAXPATHLEN (and
> all of them in different ways, even), see:
> - lib/runtime_tools/c_src/trace_file_drv.c
> - lib/erl_interface/src/prog/erl_start.c
> - lib/erl_interface/src/misc/ei_internal.h
>
> I guess there's the need for some uniformity...

True, but I don't think that we as maintainers should provide this
uniformity. The less intrusive our patches the better. Though you may
send your patch which uses MAXPATHLEN instead of PATH_MAX directly to
the upstream.

Cheers!
-- 
Sergei Golovan





More information about the Pkg-erlang-devel mailing list