lkml.org 
[lkml]   [2005]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH] Makefiles are not built using a Fortran compiler
    On Tue, Feb 08, 2005 at 08:20:27PM +0100, Sam Ravnborg wrote:
    > In my inbox I have a patch that enables SCCS support for all files.
    > Today it fails for Kconfig files at least.

    I guess the kconfig system needs to try to make Kconfig files before
    including them ... this works for me, checking a Kconfig file out of RCS:

    --- scripts/kconfig/zconf.l 29 Jul 2003 17:02:27 -0000 1.1
    +++ scripts/kconfig/zconf.l 8 Feb 2005 21:25:43 -0000
    @@ -269,15 +269,24 @@ static void zconf_endhelp(void)
    */
    FILE *zconf_fopen(const char *name)
    {
    - char *env, fullname[PATH_MAX+1];
    + char *env, fullname[PATH_MAX+6];
    FILE *f;

    f = fopen(name, "r");
    + if (!f) {
    + sprintf(fullname, "make %s", name);
    + system(fullname);
    + f = fopen(name, "r");
    + }
    if (!f && name[0] != '/') {
    env = getenv(SRCTREE);
    if (env) {
    - sprintf(fullname, "%s/%s", env, name);
    - f = fopen(fullname, "r");
    + sprintf(fullname, "make %s/%s", env, name);
    + f = fopen(fullname + 5, "r");
    + if (!f) {
    + system(fullname);
    + f = fopen(fullname + 5, "r");
    + }
    }
    }
    return f;
    I bet someone else can do it better than this ... I'm sure we don't need
    to invoke sh to invoke make ;-)

    > I'm willing to give it a try. But we will only see people complaining
    > when it hits linus tree. -mm users uses quilt and the like - and thus
    > will not be hit by this.
    >
    > Sam

    --
    "Next the statesmen will invent cheap lies, putting the blame upon
    the nation that is attacked, and every man will be glad of those
    conscience-soothing falsities, and will diligently study them, and refuse
    to examine any refutations of them; and thus he will by and by convince
    himself that the war is just, and will thank God for the better sleep
    he enjoys after this process of grotesque self-deception." -- Mark Twain
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:10    [W:0.028 / U:0.072 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site