From owner-freebsd-arch@FreeBSD.ORG Mon Nov 3 20:14:29 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 83C3226F for ; Mon, 3 Nov 2014 20:14:29 +0000 (UTC) Received: from mail-ie0-f178.google.com (mail-ie0-f178.google.com [209.85.223.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 497D9352 for ; Mon, 3 Nov 2014 20:14:29 +0000 (UTC) Received: by mail-ie0-f178.google.com with SMTP id rp18so6112195iec.9 for ; Mon, 03 Nov 2014 12:14:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=0g1hXMbkvaL9fxtCxnLyrwsio4Rw2EXw44GPvKQcfWE=; b=MuYznL6gC+zSDRSpK9UXtQi96tLQMB9eTFbGQl9/FusbmG154ijvrUrvK3E0RaEieV +fk8Q+L7K7BWlHnolx67a/h+59lCqE3Q33RxfgrRg06kKVavcbxU6xVElBwVYB6IYZtj fW3MgMpK+AeLWfDKncuZEDxiJ0LPTbYjCVTXALtdjAMvqKw76qYNfYa3bOup+khw0Jtr 3da7Qnmf2uYauw3CZQucPsJKzsWBYxL88EzKS8TtyNG4iIJAnUoGoW2296eozQSUpG9k +Xr4o3CGgX2OX3ax6r/pFHEt7ePFoCu1byh1fYO4K9/t8tRiNkUo/0YfGAOak22hRGq+ Cj4g== X-Gm-Message-State: ALoCoQkCAKh/c+tfz8u6I5XQjuZXphcHJUxoXsNqAtPRyxwUu3nP/wTIp5YNdg9AqcUMV7+UB3GW X-Received: by 10.50.29.71 with SMTP id i7mr19166125igh.4.1415045661956; Mon, 03 Nov 2014 12:14:21 -0800 (PST) Received: from bsdimp.bsdimp.com ([50.253.99.174]) by mx.google.com with ESMTPSA id jd6sm4091455igb.16.2014.11.03.12.14.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Nov 2014 12:14:21 -0800 (PST) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_5681B2AB-E1D3-4F11-83CD-499C1B8C4074"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Why do we have @ in modules builds? From: Warner Losh In-Reply-To: <5457D7B7.5050503@freebsd.org> Date: Mon, 3 Nov 2014 13:14:18 -0700 Message-Id: <9A113544-16B9-4C6E-8AC0-BF718C47A243@bsdimp.com> References: <3285BC54-05D8-41DB-88FE-BAD681A3E45B@bsdimp.com> <5457D2D0.8080201@freebsd.org> <64C28D7A-AD81-4990-B95C-47E81C0E4F0A@bsdimp.com> <5457D7B7.5050503@freebsd.org> To: Alfred Perlstein X-Mailer: Apple Mail (2.1878.6) Cc: freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2014 20:14:29 -0000 --Apple-Mail=_5681B2AB-E1D3-4F11-83CD-499C1B8C4074 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Nov 3, 2014, at 12:29 PM, Alfred Perlstein = wrote: >=20 > On 11/3/14, 11:22 AM, Warner Losh wrote: >> On Nov 3, 2014, at 12:09 PM, Alfred Perlstein = wrote: >>=20 >>> On 11/3/14, 8:48 AM, Warner Losh wrote: >>>> Does anybody recall why we have @ symlink in our module builds? >>>> I=92m constantly working around issues that this creates. Maybe it = is time >>>> to eliminate it? >>>>=20 >>>> So I=92ve posted the following review: = https://reviews.freebsd.org/D1100 >>>>=20 >>>> Warner >>>>=20 >>> Thank you!!!! I hate the '@' thing as well, I figured it was just = due to someone not wanting 'grep -r' to work. :) >>>=20 >>> Just to check, after your changes... will you still be able to do = something like: >>>=20 >>> cd $HOME >>> svn co https://.../base/head/sys/modules/foo_module >>> cd foo_module >>> make depend all install >> It should behave the same it does today. I=92m replacing a ln -s = ${SYSDIR} @ with an in-line replacement of @ with ${SYSDIR}. > Excellent! >=20 > I did a history check to see why these came to be and it looks like it = was just an oversight to use "@ links" instead of just SYSDIR as far as = I can tell... Back in the deep, dark past of FreeBSD=92s build system: >Revision 32813 - Mon Jan 26 20:36:38 1998 UTC (16 years, 9 months ago) = by bde=20 > >Generate symlinks to the "sys" and directories and put >them in the include path. This fixes recent breakage of the syscons >LKMs and general brokenness of the include paths (headers under >/usr/include were used in many cases). it was introduced. This is still in the lkm era. This pre-dates SYSDIR = being meaningful. That had to wait until: >Revision 59097 - Sat Apr 8 17:20:00 2000 UTC (14 years, 6 months ago) = by imp=20 >Add support for compiling kernel modules outside of the tree. If you >do not have the kernel you wish to compile against in either >/usr/src/sys or /sys, then you will need to set SYSDIR to point to the >sys directory of the source tree that contians the source. > >Also, minor tweaks to the load/unload targets from Bruce. > >I've had this through several make worlds, as well as using it on a >daily basis for the past couple of weeks to build modules needed for >testing at Timing Solutions. > >Reviewed and revised by: bde >Work sponsored by: Timing Solutions so I=92m only 14 years tardy in =93finishing=94 this change set :) Warner --Apple-Mail=_5681B2AB-E1D3-4F11-83CD-499C1B8C4074 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUV+IaAAoJEGwc0Sh9sBEAIpcQAOBLKticcoxF5sYu4zYHmIAR Xb38iCplsBhAmx6hmiBZXXKumiqok4SgVgM+DCG+jh5nclJygXuN7JGCaDZU8yep YKSqG481GjrwMExOXEPK4irRqhLn/V79TkS5OP+pumdapRJWQsFwDT7j9BlDF2y+ iNWF8ra8oDHDLryo7b20Kx6AgM0Jt99qWyweYjCsVVE32XjM2WNWjH3JmCAK4+ix 6eymBnVTY2nx0NGH8scaDLuOM/RgLElMR7Fv6DeCFer4bHLurQ+6UZSiIROYFue/ AxASfRch8JIhESWIE/Gf6SG1EcBgMUJpVoWE7/lyEi3ACh0/+ESdbkOM43qHd7+Y 3mtZl5BA3AMffYyYo1lZY4VrE0xxCJ3EtmUFoLW7BaaFXw90r35vGaXviJqIpaRj ZeknG1PtH+ORR6bLTmYPpfsIgv36l6JTI781wp1LkxlMKhk3sOaxFnX8TTjVNwnK otBENUlXUhv5SYVSCwxn7oTZS7KuxviaeGc8gO80MjhD1o4yD89CBrjo9nOkooOZ 0QyESWQ5zsypNLcmu+yWSMACHWWOMBVgmj3JZyrf+T5mwELUo4YU4R6MMuEE/82f NXA4zU1L96q2anBj6nDY3KQCZFOXl7a7d0/Nx61tz4fO5nrf/jTeFE8bKr6dfvtb vAzjDk7s+7pJ3gD1Cf8A =07nM -----END PGP SIGNATURE----- --Apple-Mail=_5681B2AB-E1D3-4F11-83CD-499C1B8C4074--