From owner-freebsd-questions@FreeBSD.ORG Fri Oct 21 12:39:10 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 064F41065670; Fri, 21 Oct 2011 12:39:10 +0000 (UTC) (envelope-from ambrosehua@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9FB878FC14; Fri, 21 Oct 2011 12:39:09 +0000 (UTC) Received: by gyd8 with SMTP id 8so4895133gyd.13 for ; Fri, 21 Oct 2011 05:39:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=JR4JiYZSqJVyUMZS5pkkR4vp+CMt2Xqe/VSiPsxYvi0=; b=tkTRGJR/kO81O1iIZDmYhz/C+oKP/ZDFR/BPimFI0FMesc5iYvPaxooUMaxh25IIi2 n4cnlClXmRClnc8D+IyKxSphsdbJ9SJCHPF72agkf2A+rM06Q0XlSfIjFlstentRKrSS ovasAdnlqwZU1wAIglKFBLq2Ea4mCfzdvMTOA= MIME-Version: 1.0 Received: by 10.223.39.20 with SMTP id d20mr22292180fae.37.1319200748570; Fri, 21 Oct 2011 05:39:08 -0700 (PDT) Received: by 10.223.156.1 with HTTP; Fri, 21 Oct 2011 05:39:08 -0700 (PDT) In-Reply-To: References: Date: Fri, 21 Oct 2011 20:39:08 +0800 Message-ID: From: Paul Ambrose To: Ryan Stone Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current , freebsd-questions Subject: Re: config(8) does not add post-processing for source file with compile-with command in sys/conf/files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2011 12:39:10 -0000 There are many other compile-with not started with ${NORMAL_C}, your patch adds ${NORMAL_CTFCONVERT} to them too, which could not be suitable for this. 2011/10/19 Ryan Stone : > I have run into the same issue recently. =A0I have been testing the > following patch(on 8.2-RELEASE) and it seems to have worked for me: > > --- mkmakefile.c 11:09:30.000000000 -0400 > +++ mkmakefile.c =A0 =A0 =A0 =A02011-10-06 11:13:31.000000000 -0400 > @@ -742,15 +742,16 @@ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0break; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0} > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0snprintf(cmd, sizeof(cmd), > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "${%s_%c%s}\n.if de= fined(NORMAL_CTFCONVERT) && " > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "!empty(NORMAL_CTFC= ONVERT)\n" > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "\t${NORMAL_CTFCONV= ERT}\n.endif", ftype, > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "${%s_%c%s}\n", fty= pe, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0toupper(och), > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ftp->f_flags & NOW= ERROR ? "_NOWERROR" : ""); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0compilewith =3D cmd; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0} > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0*cp =3D och; > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 fprintf(f, "\t%s\n\n", compilewith); > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 fprintf(f, "\t%s\n", compilewith); > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 fprintf(f, ".if defined(NORMAL_CTFCONVERT) = && " > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"!empty(NORMAL_C= TFCONVERT)\n" > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"\t${NORMAL_CTFC= ONVERT}\n.endif\n\n"); > =A0 =A0 =A0 =A0} > =A0} >