help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: $(wildcard ) in fakechroot environment


From: Dan Kegel
Subject: Re: $(wildcard ) in fakechroot environment
Date: Wed, 18 Feb 2015 09:01:53 -0800

I can reproduce the problem here.

Doesn't seem to be glob()'s fault; the program

#include <glob.h>
#include <stdio.h>

int main(int argc, char **argv)
{
    glob_t globbuf;
    int i;

    globbuf.gl_offs = 0;
    glob("/tmp/*", GLOB_DOOFFS, NULL, &globbuf);

    printf("%d paths found\n", (int)globbuf.gl_pathc);
    for (i=0; i<globbuf.gl_pathc; i++)
        printf("%s\n", globbuf.gl_pathv[i]);

}

seems to behave fine in the fake chroot.
But maybe gnu make is using glob() in a way fakechroot didn't expect,
see dir_setup_glob() in dir.c?

(Disclaimer: I'm not a make developer.)
- Dan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]