From owner-freebsd-ports@FreeBSD.ORG Tue Sep 10 16:10:30 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 52EAF7D2 for ; Tue, 10 Sep 2013 16:10:30 +0000 (UTC) (envelope-from fidaj@ukr.net) Received: from fsm1.ukr.net (fsm1.ukr.net [195.214.192.120]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 03F6426C1 for ; Tue, 10 Sep 2013 16:10:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=fsm; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=y6ZyL06nnOSF9ljlPYZQaYmFn/HMOnhLbVucoC3X6uU=; b=eCG00A6sh7Fy1pUqONrMBP/UFpE4GHU1G3Fs4llnlypebfGff42d9X6AOzoUyuzqWM2qnuWHWO3eqOx1ij5XTeqQb7B68dX2ke6ps4rlRAXrtQHvg6w+JTOJaLcswaNBy6lS5hEywJ9gKLWSHQU+xLjfVfV65J/AaWxZ5pJNEVc=; Received: from [178.137.138.140] (helo=nonamehost.local) by fsm1.ukr.net with esmtpsa ID 1VJQWB-000L4e-MY ; Tue, 10 Sep 2013 19:10:19 +0300 Date: Tue, 10 Sep 2013 19:10:18 +0300 From: Ivan Klymenko To: "O. Hartmann" Subject: Re: HELP! nvidia-driver patch: Weird REPLACE_CMD and command-line-sed behaviour. HELP! Message-ID: <20130910191018.4c8b1eff@nonamehost.local> In-Reply-To: <20130910175544.3feb9029@thor.walstatt.dyndns.org> References: <20130910015144.41c88d52@thor.walstatt.dyndns.org> <21039.10674.968260.7845@gromit.timing.com> <20130910162616.6ce1d52f@thor.walstatt.dyndns.org> <21039.16301.572328.142329@gromit.timing.com> <20130910175544.3feb9029@thor.walstatt.dyndns.org> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Authentication-Result: IP=178.137.138.140; mail.from=fidaj@ukr.net; dkim=pass; header.d=ukr.net Cc: FreeBSD Ports , John Hein X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Sep 2013 16:10:30 -0000 =D0=92 Tue, 10 Sep 2013 17:55:44 +0200 "O. Hartmann" =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On Tue, 10 Sep 2013 09:50:05 -0600 > John Hein wrote: >=20 > > O. Hartmann wrote at 16:26 +0200 on Sep 10, 2013: > > > On Tue, 10 Sep 2013 08:16:18 -0600 > > > John Hein wrote: > > > > You want to use $$/ instead of $/ : > > > > > > > > .if ${OSVERSION} > 1000053 > > > > ${REINPLACE_CMD} -e 's/\(\&virtual_address, size,\) \ > > > > \(VMFS_ANY_SPACE,\)$$/\1 0, \2/' \ > > > > \ ${WRKSRC}/src/nvidia_subr.c > > > > .endif > > > > > > if things are understood, there s nothing scaring. Thanks, I > > > didn't realize that even the expression inside '' is eavluated > > > by make. > > > > > > Thanks to you I could provide the patch to my PR. Hopefuilly, > > > there is a committer soon. > >=20 > > Actually I should have said you want: > >=20 > > .if ${OSVERSION} > 1000055 > >=20 > > The API change to vm_map_find was made between shortly before > > 1000055. >=20 >=20 > I'm on FreeBSD 10.0-CURRENT #1 r255434: Tue Sep 10 02:01:02 CEST 2013 > amd64 and when calling=20 >=20 > make -VOSVERSION in x11/nvidia-driver I receive >=20 > 1000054 yes, unfortunately, make a bump FreeBSD version after this revision http://svnweb.freebsd.org/changeset/base/255449