HELP! nvidia-driver patch: Weird REPLACE_CMD and command-line-sed behaviour. HELP!
O. Hartmann
ohartman at zedat.fu-berlin.de
Tue Sep 10 15:55:52 UTC 2013
On Tue, 10 Sep 2013 09:50:05 -0600
John Hein <jhein at symmetricom.com> wrote:
> O. Hartmann wrote at 16:26 +0200 on Sep 10, 2013:
> > On Tue, 10 Sep 2013 08:16:18 -0600
> > John Hein <jhein at symmetricom.com> 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.
>
> Actually I should have said you want:
>
> .if ${OSVERSION} > 1000055
>
> The API change to vm_map_find was made between shortly before 1000055.
I'm on FreeBSD 10.0-CURRENT #1 r255434: Tue Sep 10 02:01:02 CEST 2013
amd64 and when calling
make -VOSVERSION in x11/nvidia-driver I receive
1000054
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130910/1505046d/attachment.sig>
More information about the freebsd-ports
mailing list