Why do we have @ in modules builds?

Warner Losh imp at bsdimp.com
Wed Nov 5 22:37:32 UTC 2014


On Nov 5, 2014, at 3:29 PM, John D. Hendrickson <johnandsara2 at cox.net> wrote:

> Warner Losh wrote:
>> Does anybody recall why we have @ symlink in our module builds?
>> I’m constantly working around issues that this creates. Maybe it is time
>> to eliminate it?
>> So I’ve posted the following review: https://reviews.freebsd.org/D1100
>> Warner
> 
> could you please post what it is that "does not work”

Having a dependency that start with @ simply doesn’t work.

> and what is is "you must do" to work around it ?

.if exists(@)
foo.x: @/dev/foo_bar.y
.else
foo.x: @
.endif

This is needlessly complicated and somewhat annoying when there’s already machinery in place that locates the base of the kernel tree.

Warner


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20141105/8ede08b9/attachment.sig>


More information about the freebsd-arch mailing list