From owner-freebsd-current@freebsd.org Wed Apr 11 00:38:12 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 068DDF83B83 for ; Wed, 11 Apr 2018 00:38:12 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from mx0b-00273201.pphosted.com (mx0b-00273201.pphosted.com [67.231.152.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.pphosted.com", Issuer "thawte SHA256 SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4245D6EFD0 for ; Wed, 11 Apr 2018 00:38:10 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from pps.filterd (m0108161.ppops.net [127.0.0.1]) by mx0b-00273201.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3B0YnPd025577; Tue, 10 Apr 2018 17:38:09 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=to : cc : subject : in-reply-to : references : from : mime-version : content-type : content-id : date : message-id; s=PPS1017; bh=H5d6xPaxeLYCWDrXmXlKUT9fA8sPyb12b8J8n4/a/c0=; b=08VQW5cl+zXNz5CgcgGzVh9aYmmIFfpR5F46NOocMY9TQPvpVaBzYb8eJ3x1joLdyo1h sR8YH6CcIKJJ3jnnblQh35n+Nmj2bp75zDhKnt1CppK5Bq7XRxHq59ZM8GJ8PPbvTQMa 9G9cTCdrQQ9JjHL0pDPbFGGWjYVpwT5YN2H/7sEoJHzyTlOTsvxn4mLQWSm0D3ipWSnJ tl2Mvau+/YWp98SPKt6eL+H5eFgFsgAsIowxyBPfi+lajCW3yhiR0/mkMJGFCEqa+ty4 BWw3JiWESbiS68Wx+0w1z/gMYFLeFtb/pS/N9BieWIgAZ/OtCcLRA3KJrjHaw0OrZp/O ng== Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp0019.outbound.protection.outlook.com [216.32.180.19]) by mx0b-00273201.pphosted.com with ESMTP id 2h965fr7bj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 10 Apr 2018 17:38:09 -0700 Received: from DM5PR05CA0053.namprd05.prod.outlook.com (2603:10b6:4:39::42) by CO2PR05MB2440.namprd05.prod.outlook.com (2603:10b6:102:10::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.675.6; Wed, 11 Apr 2018 00:38:07 +0000 Received: from BY2NAM05FT036.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::204) by DM5PR05CA0053.outlook.office365.com (2603:10b6:4:39::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.675.4 via Frontend Transport; Wed, 11 Apr 2018 00:38:07 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.12 as permitted sender) Received: from p-emfe01a-sac.jnpr.net (66.129.239.12) by BY2NAM05FT036.mail.protection.outlook.com (10.152.100.173) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.20.653.8 via Frontend Transport; Wed, 11 Apr 2018 00:38:06 +0000 Received: from p-mailhub01.juniper.net (10.47.226.20) by p-emfe01a-sac.jnpr.net (172.24.192.21) with Microsoft SMTP Server (TLS) id 14.3.123.3; Tue, 10 Apr 2018 17:37:19 -0700 Received: from kaos.jnpr.net (kaos.jnpr.net [172.21.30.60]) by p-mailhub01.juniper.net (8.14.4/8.11.3) with ESMTP id w3B0bJ1l017189; Tue, 10 Apr 2018 17:37:19 -0700 (envelope-from sjg@juniper.net) Received: from kaos.jnpr.net (localhost [127.0.0.1]) by kaos.jnpr.net (Postfix) with ESMTP id AA3245534B; Tue, 10 Apr 2018 17:37:16 -0700 (PDT) To: "Rodney W. Grimes" CC: , Subject: Re: Module compiles looking in /usr/src when alternate src tree is in use In-Reply-To: <201804110029.w3B0TPUf025467@pdx.rh.CN85.dnsmgr.net> References: <201804110029.w3B0TPUf025467@pdx.rh.CN85.dnsmgr.net> Comments: In-reply-to: "Rodney W. Grimes" message dated "Tue, 10 Apr 2018 17:29:25 -0700." From: "Simon J. Gerraty" X-Mailer: MH-E 8.6; nmh 1.6; GNU Emacs 25.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <49137.1523407036.1@kaos.jnpr.net> Date: Tue, 10 Apr 2018 17:37:16 -0700 Message-ID: <53324.1523407036@kaos.jnpr.net> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:66.129.239.12; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(396003)(39380400002)(39860400002)(376002)(346002)(2980300002)(189003)(199004)(46406003)(23726003)(68736007)(6916009)(229853002)(4326008)(6266002)(97876018)(6246003)(107886003)(97756001)(7696005)(81166006)(8676002)(81156014)(50466002)(47776003)(97736004)(106466001)(316002)(54906003)(16586007)(11346002)(446003)(7126003)(2906002)(77096007)(26005)(55016002)(186003)(8936002)(5660300001)(76176011)(478600001)(336012)(486006)(126002)(53936002)(9686003)(86362001)(50226002)(305945005)(69596002)(2810700001)(105596002)(53416004)(356003)(117636001)(76506005)(476003)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:CO2PR05MB2440; H:p-emfe01a-sac.jnpr.net; FPR:; SPF:SoftFail; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM05FT036; 1:vWgZv7yN0rYWVcr3tZ3jsWebXF83573Y3OnPt7f6LUFvTiU3ifJV6KhExcFykZIEwSuhFK8iR58sOa3hQXKcuh60VcyYQIslYWrEkedvqfk2FUVbRT9em+Gtrjxep7P4 X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:CO2PR05MB2440; X-Microsoft-Exchange-Diagnostics: 1; CO2PR05MB2440; 3:ZEaQw4KYhoIkFR05C2MwrMyYzuOM4a+yZDEnd6mmmG81N9IcdeC90FlcVUWlLRsujBx3VPF9gPHRqr3ExOdskew+Z6DjFg6VxV805kchOIvMaX0g979oX9Ls3u5+2Gt/qP5cgdIYd8bGMBX4uuRUB++0yzHc5fa2FOoISsKB70JgeXxeQrP82xeUAj516FNdxd7s+T9IH5Hfrvl5s12JLbTaXF0RBkyoGlvL3EqHllW4LZxgSb8rhReg9fBy5LdqXH4Wa4sbI5rdrOnm7XBdDFdL25ukgHy2i9/HwKqPhGL8l2HuDC+dpanHSzq/MPAVOxgUGXeDoTZe57JLL9kFp/BWnqNZq4uM5Bnejo9QwbE=; 25:UPm+fmDExLaw7fiwcIAQnBPdV6KOjCD+3mRpZYz4A1UyMz6t6tbUsee5hcro78/QT8XrdGoNoDA6mMOni7BbghA3VgO8GAYStKFnFdaIE1KaPUXsx9s1yaTvrYbm2CQELM8ZxUGr4hwmgOU2LCvfbPTzA6+PfSrI75rrBUBJt54vaLmlM/lX8b50Cgj6sZqfhZyiLFJonwmaZJLYbIRloGJETohK6zkfoIi8BSsgvmQ9+A/57Lxd11aesHolkIK6YOi1C1EGo/hqiO/rr+L8L3LdG4P1TesebnAe76EShbX/5t94YGpNCgOYkOyA4SOYuh+GjJSW1HwNEuGUqSiUsA== X-MS-TrafficTypeDiagnostic: CO2PR05MB2440: X-Microsoft-Exchange-Diagnostics: 1; CO2PR05MB2440; 31:kLJ99DzB3SyEmSwI0DVvO283t900bzFP2jh+lZmg4fU7FJLKipFFoWPh+dGrnzpJFp5K+A89vlmmbi8pYH7axVVtdQ/trl+/zlzg7OzJ7D/OZu+zFN33OBGmds7tVfNlwGX26giZe8aAe5opaHNgKToz3COapc4wBKZMGejK/2Z6ZzcX9BcZc1nTT1wUd3mikKKuQn54fqlHA6PWuBoo2LkeVpbg9D8riJEm9d+zAds=; 20:ekaKpYn5+cfqH6P613ZGaJTehSBuHuFs0r3XUb10fCT4LAX3ohK/67OszrSUHe/MGLyyRg/e/d9hA/ewVWxs2cpuAj5bVPtyxCLN1tQA2WGQDmws56OYTB11+z+k5UXK1jJVQeXrR0BQRaDiPttmQT2Nuyh86zwL/CLcAz6g+VENzuP4aKiUD1yLV1GTSvq7QGDbL5CeTi8KemO04tSNK/HQNUyFb3WmOL2KE9IkNrrTnyfdg2TTGALvBkN/qVlDg3174IsxpDo0AttjY3FPWNSOViExNIYD0e2Z5oSOov6x+p5WpSXkDigPvREvALiNGUz71B0rHYEb/tlRo14jB9VPXWnJZZs6EcHNwAHoI//C1sG1qr780IWx9n8W4FyO7BXJ8n6z3TL1y2kp9oEioCXtY7QevIxlREYBiwcZEEocnlkby8VAVfwNTlxa8XtUfhrIZOOcqkTc6LAI2tia1dEs7vbzYOtrlN6sa+30d7OES+4sAidEjLVzj+/wy+4/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93003095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:CO2PR05MB2440; BCL:0; PCL:0; RULEID:; SRVR:CO2PR05MB2440; X-Microsoft-Exchange-Diagnostics: 1; CO2PR05MB2440; 4:F88ixnmKNACTDdB1APDxfseU4B7+/m5Tu77ZikvdRTgygywpfk2c8cvy8u+nbS9nOWOUJVCaENa5jRvE8w6w90CW6JeL0dK5AGJv2atxu79L0I9ybCqg4TXOKSlnofvw+dOHg+OUX0ADODCAbaTDE/tAlus9n+6Yc/V2OBdPJT5n6tRkJsNfvWhZ98Ummb3yD4zYPQeMqoznn1WpXCcIlvH9DgvEedk2X6bxutX2eFdi+9DBMubiTXnLdHsCytqVUSBB2nUipFKCkaynbzK24Q== X-Forefront-PRVS: 0639027A9E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR05MB2440; 23:PtPpWBL+1Wwka3pzdehQrhum+JVjrtvqnot2tL9fk?= =?us-ascii?Q?SVKxeUBzzvOA0IVd55dT3cv20sKSpm580WNzr7/Lv+BryzRhVfIaEJd1s2AR?= =?us-ascii?Q?+eT4lqTSwDI3EuB38Bvmv1zfOEvMcf8DjPqVmo6Rf+uoPZrcRjcg7KDLWoO6?= =?us-ascii?Q?2SXe/SZD3cUhG5mWkuNddsOzC6TMukFErBOwRvtAknFL5nOkhOXVm+VeRtz3?= =?us-ascii?Q?Dqw13IZGINXLE7+8qwZf6bwiOgD0CCxCfvE5MK9/dQRMMJEXrKf7VTcFesfF?= =?us-ascii?Q?SJ0ZDXAxqd5aCQnVkTY3Whu6zCU4mZHihUjAOQSxqHCXMxynwOdHWn0WKVzu?= =?us-ascii?Q?D/pqxkSkPMvmBhxEDpEqlsF/+yq9LC4PC6j91J1KUu53f9ul0DY0UVxFYF6a?= =?us-ascii?Q?S7K4XtWDMgULUGqYcNx3UfugbHAf5SNEYSpivwDb8mJowgRFImdzuflVPshR?= =?us-ascii?Q?aOdmE3K5In2HNjkCpcNtPdIAeAYwV5DiG5/QOhpy37HRF8kiTcoK3M51wLVc?= =?us-ascii?Q?2grX1+AWQSTxzbWwcnAbF+NBgxIsqWZ3DhLtl8T5CRm39oJ47+LUywAFC59d?= =?us-ascii?Q?BFiW18LnURF37d4eHGjGFSW9BS5My2Hmv7hPmKXC1w6gJlxRflsPJT+QGNGU?= =?us-ascii?Q?/k71EgLTC+B0O8qc+5jdy+5RfhbUugwpw5rcpbjuMSIHbqiMoY+V5UMtJt2x?= =?us-ascii?Q?7DtnXZDKzB81FDaUgFVlNic6vKvxxxIalPEKdINQPfCKMK+EzmDvHlJzBdOO?= =?us-ascii?Q?Sc8t9lLxglcF5XBt4PpODYTBOoM2h0JmXLf6nM3u9CAANjIlFXmq/vlV+5Tg?= =?us-ascii?Q?6C2Zi6UQTtfknUqyaOS4xL3beExDp2b+2mMys2wvydh1km863OP7pBIYiVG9?= =?us-ascii?Q?6rAZZxgZykwPJmO5ALZgp+fpzLoYiS04l3PaRQMjKwO+XTe6HHyVLz/2juZi?= =?us-ascii?Q?6u3kZtT29Ae1lFLpTD71Q9eLbLP4MdzGeqxy4s+JHS64Nlf/y6QS3xRHVeaA?= =?us-ascii?Q?6jp+FS+HxJwtimRf65DOD0yih8Usu8K1n0FfSxqLY8p/fVVpguvhM7jdbtF1?= =?us-ascii?Q?Yr5uBquBnSX07Woi3GwNghje7qwwhPMYmHkiE/WzjkaEqlLDcF47tCjU6VPw?= =?us-ascii?Q?LxN2lHWd+9eQ+5VIFRLFHylvcMezxyQ4Oait4n2SwlQhdcqqc7UMSgdLdtCQ?= =?us-ascii?Q?r/njHmaUPruPIcOfsgGvNJXLwuaZXSSgvBNVIDn/hL3oSKrMcLzwPU1/1j3H?= =?us-ascii?Q?H/tDJbyFa8QbAW1LGvAy/IYDT48DCVOs+CrZ4tFkVOs+FUxnNxqCu/LB2tCQ?= =?us-ascii?Q?fFT8IFOi80ZNoqMvRa4TTw=3D?= X-Microsoft-Antispam-Message-Info: CudFzdoS8VvdHZjC26oDqxsqCXUUtcgAnlr2Ki5Tt+NNWJPKtcUUwyvDawglrO7EJigYfAWCPgJvmUrM/0bf4+gNQ0NkTXafl7zfhcqi832p74WAyx3RkDPhRr5YT30FLKUCTCdDaODyWEa/cFHbXecO3ZJ4uVhTaIcG27lr6DwAzPlEEiSmmILlbPbJCh3z X-Microsoft-Exchange-Diagnostics: 1; CO2PR05MB2440; 6:qjDV2lsTNSyUty9k9xfPRLrKAPdovSW9AetOP+hUM/lHEWyEQTnvSoeNWYfuwsoP514/WoExTL/muqLyVHMHLC+qIKCT7YAJr2osDUnxkF0gnfYdNhnvC+1hHBUkYgKRjQMFnkmUMPqQOoPFgHCL0LD9mK1k+0v7yQ/g9oz2+af/Rc/g0BIOcIJs9XXeYa1twTf4cK42KSjYbFMeMvv9cPMo1u20X3vB83+rkpmIbku57BHK+RFp+wbGc56PcTIwFK3gOvM0AYOyeAjtq7YWKFtR+QltCgGwEjhmBJMU+2tGjwfGp/lPuaLaEW1u3O4IBmjOkhayyPY9GPXZ/PvHU04IrjGi6ehdv1oGA5jT4gZSeSJU7mwDn6T7FerLvYjAVGH2A84garQeejw/X1ZNBAMnl1VRYkmlugL6XrarVH1ApMCvxrGmP32Yvqqn7GygUeFC0jTGipQB4PuZkN5YKg==; 5:H7CKrCo/AKlI4a1dLXlsteEh9bam6FtoQOY8ZXDAmSRHnrBENuSb9eOZP3O+p7i1CCBIaChNqh8iDaoKOObQVqpl9GsEjISfUibMbKl4TzqDUUkGZw1eMkMwaaXHAlVWaDlU9hl2bMptOAobRAd2pt5rNl7mQsiUUGO5daQ16Qo=; 24:v2xXp8Ix7RBIP09OrIoKe0rBLq7X59g0rjkJ/Z41c00XO+mKADvWX+lNXPW+yvVqH1Xe7dYEbYWHjXrBjLjMvV2RFjqeUR+/f9O+S8A5nmA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR05MB2440; 7:qaGqMxnAFgUGwwsSjfvzNg5beOcqackKQdLXcGXHNX1G0IYxMV+Fwd27DTpN2bkWAV4g1a93xv6CASogUFe5wAtZzCkm0Av0PC1DuKlmae47XUw4eYXB5bQ8SAIOICDCLHOg6d42W0xxt2mhv1VnS5wlAZIgsn1ujaUJSLuX5nj733hj0FApz9YdL5BvuxrAQPSNkiNh6vT6Vk2uZw0K1261DJM3PDkW9geLy1it/vxLzx+X+ZGcab6LveyZngYv X-MS-Office365-Filtering-Correlation-Id: 0750e58c-9ba7-4fd8-da91-08d59f447e63 X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2018 00:38:06.9546 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0750e58c-9ba7-4fd8-da91-08d59f447e63 X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4; Ip=[66.129.239.12]; Helo=[p-emfe01a-sac.jnpr.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR05MB2440 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-04-10_09:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=725 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804110002 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2018 00:38:12 -0000 Rodney W. Grimes wrote: > Thank you, that does help narrow it down: (I backed up a vew lines > from the first place I saw src/.) > > ... > Global:.PARSEFILE = bsd.kmod.mk > Global:.PARSEDIR = /usr/src-topo/share/mk > Global:.PARSEFILE = bsd.kmod.mk > Result[] of :U is "/usr/src/sys" > Result[] of :U is "/usr/src/sys" > Global:SYSDIR = ${:U/usr/src/sys:tA} That's from the .for loop in bsd.kmod.mk which is clearly inadequate. Since the tree for some time now, reliably sets SRCTOP that list should start with ${SRCTOP}/sys or ${SRCTOP:Uno}/sys just to be sure you ignore it if somehow unset. > So something in bsd.kmod.mk is going very wrong... it looks like it > starts to pull all sorts of stuff from /usr/src/sys!