From owner-freebsd-pkgbase@freebsd.org Sat Oct 24 22:50:06 2020 Return-Path: Delivered-To: freebsd-pkgbase@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D76D0456678 for ; Sat, 24 Oct 2020 22:50:06 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from mx0a-00273201.pphosted.com (mx0a-00273201.pphosted.com [208.84.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.pphosted.com", Issuer "Thawte RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CJbsB1bYfz4DHZ for ; Sat, 24 Oct 2020 22:50:05 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from pps.filterd (m0108159.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09OM5E5F011512 for ; Sat, 24 Oct 2020 15:07:20 -0700 Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2168.outbound.protection.outlook.com [104.47.57.168]) by mx0a-00273201.pphosted.com with ESMTP id 34cj7vrj1y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 24 Oct 2020 15:07:19 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AuCs+yQv1N6CDlokTdIvBuRIRqXNsJnAYmmsUUV8XX8qM1YsDMPMwbBvhLWzBMYlG8QhR2W+X7kRvRGowoRWUZlZB8Ax8LH6xUgZOF9YGEeB8fVKHDarB3sTVrWy008xVXJv4C3h/Zw/lIgqmDOs6dCO99UIEeccxQy4qE8mR5DXK+Ik6nFQ2k4ZpbyWk3u5R2ZMX9WtCdp0S/FbkdVCipieO73EyAGO/XF8IPjHSEDwmEn8SE5KcIGkAOi91QH57Xr+D/LjaUKIbRNgsaW7e7f8m0Cj7XQvgeY8p/0zV1W9Ro4GjOFirmwUYpv+DJRuMGTAQG4eczxd80leGkDulQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f9nDrYstEedKNapkcUJRMggvMnAPenIapX0qzRNUxmQ=; b=UyI0esSweSkIThwb7RzeOGgxD/rpkGsgJVdbYj3nXTGI7YqvzRmkg0MI+rHaGlbXlwL4a93fQV5BSYposzxhm1/MA0kb1VpHufNWa/I8UTwxpPaPcGSSxv+id9+b9DogPcIyQnVy1gqsD2G3vW+JX58UQSwLfZZ3sE5J2bJxBnMAC7xkP/KdPGurJZRZ4W48KqsD99hNm7cfYXcejvMUH8PMDaEEYVOshJ5QeFiWKKOgQj9WPlktQlz8+MMYD9P8RHs6CfRGOAnKupPL3lnN9sM8Vl5Ea7G75r+1FBrRGYDAG4nD4XgAbTcgXDREt7XIdQJ01uyMiHiCOtSZybHcVw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=softfail (sender ip is 66.129.242.12) smtp.rcpttodomain=freebsd.org smtp.mailfrom=juniper.net; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=juniper.net; dkim=none (message not signed); arc=none Received: from DM3PR08CA0004.namprd08.prod.outlook.com (2603:10b6:0:52::14) by BYAPR05MB5191.namprd05.prod.outlook.com (2603:10b6:a03:9f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.15; Sat, 24 Oct 2020 22:07:17 +0000 Received: from DM3NAM05FT057.eop-nam05.prod.protection.outlook.com (2603:10b6:0:52:cafe::36) by DM3PR08CA0004.outlook.office365.com (2603:10b6:0:52::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Sat, 24 Oct 2020 22:07:17 +0000 X-MS-Exchange-Authentication-Results: spf=softfail (sender IP is 66.129.242.12) smtp.mailfrom=juniper.net; freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=fail action=oreject header.from=juniper.net; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.242.12 as permitted sender) Received: from P-EXFEND-EQX-01.jnpr.net (66.129.242.12) by DM3NAM05FT057.mail.protection.outlook.com (10.152.98.116) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.3520.7 via Frontend Transport; Sat, 24 Oct 2020 22:07:17 +0000 Received: from P-EXBEND-EQX-03.jnpr.net (10.104.8.56) by P-EXFEND-EQX-01.jnpr.net (10.104.8.54) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 24 Oct 2020 15:07:16 -0700 Received: from P-EXBEND-EQX-02.jnpr.net (10.104.8.53) by P-EXBEND-EQX-03.jnpr.net (10.104.8.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 24 Oct 2020 15:07:16 -0700 Received: from p-mailhub01.juniper.net (10.104.20.6) by P-EXBEND-EQX-02.jnpr.net (10.104.8.53) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Sat, 24 Oct 2020 15:07:16 -0700 Received: from kaos.jnpr.net (kaos.jnpr.net [172.23.255.254]) by p-mailhub01.juniper.net (8.14.4/8.11.3) with ESMTP id 09OM7Fx8029568 for ; Sat, 24 Oct 2020 15:07:16 -0700 (envelope-from sjg@juniper.net) Received: by kaos.jnpr.net (Postfix, from userid 1377) id AFE09909C; Sat, 24 Oct 2020 15:07:15 -0700 (PDT) Received: from kaos.jnpr.net (localhost [127.0.0.1]) by kaos.jnpr.net (Postfix) with ESMTP id AE5D4909B; Sat, 24 Oct 2020 15:07:15 -0700 (PDT) From: Simon J Gerraty To: CC: Subject: directory per package ? X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <36676.1603577235.1@kaos.jnpr.net> Date: Sat, 24 Oct 2020 15:07:15 -0700 Message-ID: <41616.1603577235@kaos.jnpr.net> X-EXCLAIMER-MD-CONFIG: e3cb0ff2-54e7-4646-8a04-0dae4ac7b136 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7c55ecca-c750-4bbb-bf2e-08d878692bb3 X-MS-TrafficTypeDiagnostic: BYAPR05MB5191: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bjr2yOjqbjl1Gt1Eo3RqZPW54xnqP8mqyGy33xC08dm7zUUAymU+4o28p1wWA54SR2zBmqGcTypxq9arjJYI1qMj2yPdSNfdqxurxJAUvs5kS+KRktNAIS/rrqidvguzsHlxTK0T3ds9jL93SWs0q9PjMg1WyRP8e5UA4UIp+YvAMVFaNV/T8jokYdXtHrA/Yee17Y0Enn572amTKZi9m/IgK2CSHJXi4Z3FSvL8QeP3PVUe15BYYtojLM7xJg36Luya6j+wrurQ2UVP6FvXJqMKeetkB5YRKv4BZgWe6+u1qL77YLMH26/Kqtx2F47QqWTcMYYNrzm6/ciTMXv+Uu0JmJOB2Cw792RnveqciwYKiTKvvmR273v7gzEY47Trb+g9iE7fYvKVDXYiA43KJA== X-Forefront-Antispam-Report: CIP:66.129.242.12; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:P-EXFEND-EQX-01.jnpr.net; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(39860400002)(346002)(376002)(396003)(136003)(46966005)(70586007)(7116003)(6266002)(47076004)(82740400003)(55016002)(356005)(2906002)(82310400003)(3480700007)(6916009)(81166007)(83380400001)(9686003)(8676002)(107886003)(478600001)(86362001)(4326008)(336012)(5660300002)(70206006)(186003)(7696005)(316002)(8936002)(7126003)(26005); DIR:OUT; SFP:1102; X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2020 22:07:17.1984 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7c55ecca-c750-4bbb-bf2e-08d878692bb3 X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4; Ip=[66.129.242.12]; Helo=[P-EXFEND-EQX-01.jnpr.net] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM05FT057.eop-nam05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR05MB5191 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.737 definitions=2020-10-24_16:2020-10-23, 2020-10-24 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 spamscore=0 impostorscore=0 clxscore=1011 priorityscore=1501 adultscore=0 malwarescore=0 mlxlogscore=609 mlxscore=0 suspectscore=1 lowpriorityscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010240168 X-Rspamd-Queue-Id: 4CJbsB1bYfz4DHZ X-Spamd-Bar: +++ X-Spamd-Result: default: False [3.42 / 15.00]; R_SPF_ALLOW(0.00)[+ip4:208.84.65.16]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[juniper.net:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(0.00)[juniper.net,reject]; NEURAL_HAM_SHORT(-0.46)[-0.456]; RCVD_IN_DNSWL_LOW(-0.10)[208.84.65.16:from]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_ALLOW(0.00)[microsoft.com:s=arcselector9901:i=1]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:26211, ipnet:208.84.65.0/24, country:US]; NEURAL_HAM_MEDIUM(-1.08)[-1.077]; RECEIVED_SPAMHAUS_XBL(5.00)[66.129.242.12:received]; R_DKIM_ALLOW(0.00)[juniper.net:s=PPS1017,juniper.net:s=selector1]; FREEFALL_USER(0.00)[sjg]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.95)[-0.949]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-pkgbase@freebsd.org]; BAD_REP_POLICIES(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[208.84.65.16:from]; RCVD_COUNT_SEVEN(0.00)[11]; GREYLIST(0.00)[pass,body]; MAILMAN_DEST(0.00)[freebsd-pkgbase] X-BeenThere: freebsd-pkgbase@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Packaging the FreeBSD base system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Oct 2020 22:50:06 -0000 I'm not currently subscribed to this list, so pls cc me. I'd like to request a change such that the final step of building each package for base be done in its own directory. Why? So that Makefile.depend can be automatically captured for each package thus allowing building with DIRDEPS_BUILD. Apart from simpler and more optimal build, this make it easy to build just the package you want - since the directory represents a target that can be built from top-level. As a quick experiment, I grep'd PACKAGE= from all the Makefiles then from that list grabbed all those with PACKAGE= runtime and turned that into targets/runtime/Makefile.depend % head targets/runtime/Makefile.depend DIRDEPS= \ bin/cat \ bin/chflags \ bin/chio \ bin/chmod \ bin/cp \ bin/csh \ bin/date \ bin/dd \ bin/df \ % tail targets/runtime/Makefile.depend DIRDEPS.i386 += \ sbin/sconfig \ DEP_MACHINE?= ${MACHINE} DIRDEPS+= ${DIRDEPS.${DEP_MACHINE}:U} .include % And then make -j8 -C targets/runtime built all of that just fine. With top-level makefile including dirdeps-targets.mk when MK_DIRDEPS_BUILD=yes the above is just make -j8 runtime but the above is not a viable way to maintain Makefile.depend for a package. Far better to build the package in its own dir so that Makefile.depend can be updated automatically like the rest of the tree. Btw having something like targets/packages/runtime with targets/packages/Makefile.inc containing all the common logic for building packages, would allow subdirs per package with hopefully minimal change to current logic? Finally the above hierarchy could exist anywhere, a simple addition to local.dirdeps-targets.mk to add targets/packages or whatever to DIRDEPS_TARGETS_DIRS is all that is needed. Thanks --sjg