From owner-freebsd-questions@FreeBSD.ORG Wed Oct 19 15:56:01 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 B3845106566B for ; Wed, 19 Oct 2011 15:56:01 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4CFDA8FC24 for ; Wed, 19 Oct 2011 15:56:00 +0000 (UTC) Received: by wyi40 with SMTP id 40so2418016wyi.13 for ; Wed, 19 Oct 2011 08:56:00 -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; bh=UKaGyZtCWs9YgsCLJsym88DFVNYTnOhStNDEbrVSZnI=; b=KhEDnkY7VFgxRGDVYn8Jrv8T/9JqHixI/sgoNlDmfqKG1MhWoCzePlu48boIJiy5eP /nZRKproCk0/fWgtPwdJ5OcizLet7aBrNXOVnHv+wW/QhjdXhR69qc1f4Emv9CQbhPw3 yTIGyhnBZPMK8wBW2u/6kmWDk+gqTBtqwhPaM= MIME-Version: 1.0 Received: by 10.227.19.203 with SMTP id c11mr2615723wbb.107.1319038384526; Wed, 19 Oct 2011 08:33:04 -0700 (PDT) Received: by 10.180.96.104 with HTTP; Wed, 19 Oct 2011 08:33:04 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Oct 2011 11:33:04 -0400 Message-ID: From: Ryan Stone To: Paul Ambrose Content-Type: text/plain; charset=ISO-8859-1 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: Wed, 19 Oct 2011 15:56:01 -0000 I have run into the same issue recently. I 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 2011-10-06 11:13:31.000000000 -0400 @@ -742,15 +742,16 @@ break; } snprintf(cmd, sizeof(cmd), - "${%s_%c%s}\n.if defined(NORMAL_CTFCONVERT) && " - "!empty(NORMAL_CTFCONVERT)\n" - "\t${NORMAL_CTFCONVERT}\n.endif", ftype, + "${%s_%c%s}\n", ftype, toupper(och), ftp->f_flags & NOWERROR ? "_NOWERROR" : ""); compilewith = cmd; } *cp = och; - fprintf(f, "\t%s\n\n", compilewith); + fprintf(f, "\t%s\n", compilewith); + fprintf(f, ".if defined(NORMAL_CTFCONVERT) && " + "!empty(NORMAL_CTFCONVERT)\n" + "\t${NORMAL_CTFCONVERT}\n.endif\n\n"); } }