From owner-cvs-all@FreeBSD.ORG Wed Nov 30 18:35:09 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25A0516A41F; Wed, 30 Nov 2005 18:35:09 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D20843D4C; Wed, 30 Nov 2005 18:35:07 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jAUIZ6Df063133; Wed, 30 Nov 2005 20:35:06 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 63398-01-4; Wed, 30 Nov 2005 20:35:03 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id jAUIXk66063056 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Nov 2005 20:33:47 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id jAUIXmt6036792; Wed, 30 Nov 2005 20:33:48 +0200 (EET) (envelope-from ru) Date: Wed, 30 Nov 2005 20:33:48 +0200 From: Ruslan Ermilov To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Message-ID: <20051130183348.GA36718@ip.net.ua> References: <200511301815.jAUIF7bt057472@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CE+1k2dSO48ffgeK" Content-Disposition: inline In-Reply-To: <200511301815.jAUIF7bt057472@repoman.freebsd.org> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: Subject: Re: cvs commit: src/sys/conf kern.post.mk X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 18:35:09 -0000 --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 30, 2005 at 06:15:07PM +0000, Ruslan Ermilov wrote: > ru 2005-11-30 18:15:07 UTC >=20 > FreeBSD src repository >=20 > Modified files: > sys/conf kern.post.mk=20 > Log: > Teach this to create the "machine" and ${MACHINE_ARCH} (for pc98 > only now) symbolic links in the kernel compile directory, rather > than relying on config(8) to do this. (The changes to config(8) > will be committed separately.) This is aimed towards making the > config(8) as lightweight as possible. > =20 > Idea by: bde (all bugs are mine) > =20 > Revision Changes Path > 1.90 +27 -4 src/sys/conf/kern.post.mk >=20 If you'd like to give it more exposure, please test it along with the following patch to config(8): %%% Index: main.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/usr.sbin/config/main.c,v retrieving revision 1.69 diff -u -p -r1.69 main.c --- main.c 30 Nov 2005 17:55:49 -0000 1.69 +++ main.c 30 Nov 2005 17:56:08 -0000 @@ -95,7 +95,6 @@ main(int argc, char **argv) struct stat buf; int ch, len; char *p; - char xxx[MAXPATHLEN]; FILE *fp; =20 while ((ch =3D getopt(argc, argv, "d:gpV")) !=3D -1) @@ -166,32 +165,6 @@ main(int argc, char **argv) printf("Specify machine type, e.g. ``machine i386''\n"); exit(1); } - /* - * make symbolic links in compilation directory - * for "sys" (to make genassym.c work along with #include ) - * and similarly for "machine". - */ - if (*srcdir =3D=3D '\0') - (void)snprintf(xxx, sizeof(xxx), "../../include"); - else - (void)snprintf(xxx, sizeof(xxx), "%s/%s/include", - srcdir, machinename); - (void) unlink(path("machine")); - (void) symlink(xxx, path("machine")); - if (strcmp(machinename, machinearch) !=3D 0) { - /* - * make symbolic links in compilation directory for - * machinearch, if it is different than machinename. - */ - if (*srcdir =3D=3D '\0') - (void)snprintf(xxx, sizeof(xxx), "../../../%s/include", - machinearch); - else - (void)snprintf(xxx, sizeof(xxx), "%s/%s/include", - srcdir, machinearch); - (void) unlink(path(machinearch)); - (void) symlink(xxx, path(machinearch)); - } options(); /* make options .h files */ makefile(); /* build Makefile */ headers(); /* make a lot of .h files */ %%% Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDjfCMqRfpzJluFF4RAsJ4AJ46j6pZJbJ19yvdYKBxXt8kX3eaQQCglkm5 cTzaQWYwieH21NTNcfUzw3o= =fXKR -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK--