From nobody Thu Sep 28 05:38:46 2023 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rx2N21zRsz4vZP9 for ; Thu, 28 Sep 2023 05:38:58 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01olkn2079.outbound.protection.outlook.com [40.92.53.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rx2N14hfvz4G5D; Thu, 28 Sep 2023 05:38:57 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Authentication-Results: mx1.freebsd.org; none ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CVNpnNjKUZjkMl9H/7Xrj8COdvRA6DCp5PC9bMN1MHw5UklnFKyFDpcjWDJzLjoFW1ZctCuqEoTmKs5dI9UWEVNomy1zwuEPcnNn8UyumHcfm5Af9zg2Xkg4+c3uF47BhZSsCWKlGfrKbjdeD1FwK8VjMkMUw+k+QCCpEHA9x05Kwc0AM4BlxU85JwENRZt5L3XdHz9+ySmPiTz30fz4/0SrSmZwIWEFzXt+ZClJZBQUO0JjOrTh3k/t3HWfH5CHlUi2LDQh69fqnJVw0VdsL3RIhdr6xRxu3dC+1bdA62T3bYgHJylKBfyqMvfmx14RApBleGyYQCte/WUTs0yTpA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=u6b99mNqQ7zqPicSQorZpX2FTRvnUCOVav4q2Hs8LJU=; b=Mlc3GBqS8Ky0ah29TbKlL5TveDDO1YM87pVWfUqPiDDYt4qeWy8SQVKjsW/NzXF+FVDDmCSvZktGYYyrTTaKwGbyqeJndQ+lEVTH5fsk1UaPv1Z2ONuvKCYUv+XEmhBjNEA9e8KPXByrBih//YVFPnHokERNndAK1V69IMHmAzd+FejDS5E7UMBVANIoe0ycBK+BkR5sfFW/EdNGooE45G5f3hZAM1vywj1gxK0YGaEVr8CaoE7mI3f+iyseUMMOaU3vYVyE+OZzrqX0kjXuhMU9qGE08Vn5Says89hDJHU2MNn0xG842DZGKk9a8rnm79BszPx3uNJFojUFnS3FgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u6b99mNqQ7zqPicSQorZpX2FTRvnUCOVav4q2Hs8LJU=; b=jjRXtVONwMI0BcD9T0zNnT/ZD38BkZT0yqogp/3gjEED0pkDEb4XAesvDbbpl9ioK0K1LD4CZ/cXnwfDct7VzSrHitXEGqtLb2MBeKYN4uN+HslqCWO13PcOFl3TZdCmaD0J98vLw1SMzuAWU0zZkDOe1Ki9yxjjR5Bbks0AGFVRcpsr+JuzEWMyTT/CQHlvozBJ7KgHM1rokzZP325iNgIR4YMLAlo4tasvQA9f6TagfV4l+Xs/qyK+EH30IH6YhFM7RZAv2FHnUK+UZqmlDdYxagN8zAzfsI3xst9CqL0xsG/8XAO5baWcCocL0ji8ERT2VuSsZnHpAXDHBaWisQ== Received: from SI2PR01MB5036.apcprd01.prod.exchangelabs.com (2603:1096:4:1f8::9) by TYSPR01MB5638.apcprd01.prod.exchangelabs.com (2603:1096:400:417::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.22; Thu, 28 Sep 2023 05:38:51 +0000 Received: from SI2PR01MB5036.apcprd01.prod.exchangelabs.com ([fe80::6dd9:4ab1:e67e:c5b3]) by SI2PR01MB5036.apcprd01.prod.exchangelabs.com ([fe80::6dd9:4ab1:e67e:c5b3%4]) with mapi id 15.20.6813.027; Thu, 28 Sep 2023 05:38:51 +0000 Subject: Re: sccache(-overlay) to speed up rust builds in poudriere To: Charlie Li , "freebsd-ports@FreeBSD.org" References: <2e1786f2-1aae-7199-5a3e-5d8c9cdbedbf@FreeBSD.org> <3fc3bf626fa452be730bcc96d2c10508@Leidinger.net> <3997509d72dcdbd9075274bee41cf255@Leidinger.net> <99e008c3-4047-4fb6-92df-d0a16a637efb@FreeBSD.org> <345d28f3-9391-4330-bd5c-b0ac72a0866f@FreeBSD.org> <8ca145b6-2129-5dfb-6166-18b274f981e0@freebsd.org> From: Tatsuki Makino Message-ID: Date: Thu, 28 Sep 2023 14:38:46 +0900 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 In-Reply-To: <8ca145b6-2129-5dfb-6166-18b274f981e0@freebsd.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TMN: [QWWJsN6lc3ohL7d2D3TD98iCh5pPSBy1] X-ClientProxiedBy: SI2PR02CA0018.apcprd02.prod.outlook.com (2603:1096:4:194::18) To SI2PR01MB5036.apcprd01.prod.exchangelabs.com (2603:1096:4:1f8::9) X-Microsoft-Original-Message-ID: List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SI2PR01MB5036:EE_|TYSPR01MB5638:EE_ X-MS-Office365-Filtering-Correlation-Id: eb5dc056-f57d-4d6f-a224-08dbbfe531fb X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7Ka0imUbg/7oot8va0j6M3AmQIkC/Vrx/mFpZYkznOy1CKzLMfCJTwTUAQcdVCX/8iuMlISYm+//Li4Os+DwNLhI+vaKtvTLOpF1lPvqxAuwbtkiXtnMy7v7Ne6NyV7MmGKSScvLw+Ii2pgo8Ji1a9lSpm7UFEhvvs44DPfR078naN4Fwyrhthy5nBUBJBbGJ3MXYzN6BjHdG6d7nJPLngNvunY1KGEEzqcMMNUQBsA1y4atuQ9UivCQZxOVC58RDb79kRA+1CAFk6tmj7WTVhVomU5c1g6P8LgDrvHMAibZL+deTy/OWB3aRhWw/ivLyqbROK6hOM2Yy5riymfa3pWrgDutINapaKT/3JAS+NtJfJmPWQNbyAMHiChp4fPc6pBgrEw7TmoHKhuVsBDphYvXb9Y0MtakWQi3fZ/dsndzZGp3b6js/e1tKUqwPxkJKoadXwE5n68dGiX9wB23jZjxq1rSYAi4plCx1w6Z4pW+l9bZmJD42TizDxQBmdt7w5P0WyqhRqiMLnKUXRPmzMC+4RRNzxssD0i2z/C6nFY2mfSYk7NfGCLqGjhWJElpLFF3n3Yp686WtvPPhE9dSpoCEtAnHKJsazXhnaiXrO2qOFgZ/BKVTDTg2gwz4qBy X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?N29TQ292Uk9WenhobWx6Tm93YVRiUUFlSWFWSks2dkl6MjhNSTJ2a01UdVU1?= =?utf-8?B?RU5hV3ZRN1g1WUVUL3hFQ1A0cVo2OElsS3BjektNVVcxcFN5dzhoT05VV3Bq?= =?utf-8?B?Z2UyTnR3TVFlOUFKeUcxZENBcHRZUHRjbVQ0OXlzQVdsNU1BUFRBTXpINmxq?= =?utf-8?B?ejl0YnNZQTFwNEhXdENHUjVmVG1vanJxeVFwZjNGVzhacS9BQTE0UnVaZE9a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cydEs0VHRSdjArRXM5c0ZI?= =?utf-8?B?S0pJQmZyWDkyWDhFNE40MlhZbk5veVdwa2wvbSs2LzR6aUJPcGxEYUQ0SlVE?= =?utf-8?B?S0t3RGNTbW1GbXFzMTZjM2xWaWVGd05DTWhibzZjdDNNNUkvcEhOVVI3S0dF?= =?utf-8?B?QWZ5NFZSeXlqTWl2Mjc3OUEvUmpIaFVuU3RrUWp1QlA4N1hoZGZDdW94L1Qv?= =?utf-8?B?YlZaeHpXa092S3JWZk9oSTZsa3NoMkpLV2twcFo4SFJFS0RDKy9RTHo4K3Z4?= =?utf-8?B?T3NwSzlOa1czWFFrV2JBWHRFK2E4cDVrUDhIcDBTL3NVdlpSSW9sSkdIYUNw?= =?utf-8?B?bTRqK1BqbmJyUEhHTUp5M0VQTzQ5dVg3Y2w1cEJtK0pjZ0o2Zmp1bFFxd0Qy?= =?utf-8?B?dTlvbUgxaGx4ZVZoL3ZrUEhCNHJEendhUU05dDhBUXh4SDYyZE4zWVZsNHVW?= =?utf-8?B?Zk0wMGZMa3FmL3FseGdtRCtkeVdNNEI0SjFxdnI1UmlsTGdqY1UveXQrWmxx?= =?utf-8?Q?TQPBmIM5btcplAU/ROiv/jwV0MK9GM5CW3LtZLZHaIiM=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-d8e84.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: eb5dc056-f57d-4d6f-a224-08dbbfe531fb X-MS-Exchange-CrossTenant-AuthSource: SI2PR01MB5036.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2023 05:38:51.4353 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR01MB5638 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US] X-Rspamd-Queue-Id: 4Rx2N14hfvz4G5D (I have reduced some of my reply addresses and replied to them.) Charlie Li wrote on 2023/09/27 20:11: > Guido Falsi wrote: >> On 27/09/23 12:57, Guido Falsi wrote: >>> On 27/09/23 12:54, Alexander Leidinger wrote: >>>> Am 2023-09-27 10:56, schrieb Charlie Li: >>>> >>>>> In poudriere, apart from the fetch phase, network access is not allowed by default so spawning a server that listens on an IP that does not necessarily exist that clients, individual compiler invocations, talk to isn't tenable. At the very least, one would need to architect and implement Unix domain socket support there, which they are happy to consider. >>>> >>>> How is poudriere preventing network access outside the fetch phase? >>> >> https://github.com/freebsd/poudriere/blob/97404baad0c41f1007f971c4a19c89b7c594d89f/src/share/poudriere/common.sh#L691C59-L692C32 >> >> >> This looks like the relevant line of code, one has obviously to check all the involved variables definitions. This is a good starting point for this kind of research though. >> > Yes, RESTRICT_NETWORKING=yes by default and is the relevant setting here. > It is done by launching and using two jails (jail-porttree-job-01, jail-porttree-job-01-n), right? However, sometimes escape is attempted :) It happens when it looks like ppp nat is enabled. And it seems to be caused by the port using libxslt during the build. In my case, ipfw seems to be preventing it... :)