From nobody Mon Aug 21 06:38:01 2023 X-Original-To: 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 4RTjVH1b0Cz4qJbG; Mon, 21 Aug 2023 06:38:31 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01acsn20807.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::807]) (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 4RTjVF6Vs8z3QMq; Mon, 21 Aug 2023 06:38:29 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=eAQ1I+zY; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=fail (mx1.freebsd.org: domain of tatsuki_makino@hotmail.com does not designate 2a01:111:f403:704b::807 as permitted sender) smtp.mailfrom=tatsuki_makino@hotmail.com; dmarc=pass (policy=none) header.from=hotmail.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EhWgx0Q72Zpwlt5+VJNt8Mu4xj4dlSpUpBsPShrbN1B+xGU2sRMbLfVAvyKO9UrM9pWM8LzajzsQKaeYp128dZXqvU0wyyaMcLod8/PQ4+gD4SctUk/DScAZtj0NBWxokOGpEg/XbTJf7P5vM1G8ueejXHlyRBfj4B28MfrnBX8tlRsLgmkQB9+6YPnHWRIG/9FzIehON3VDrmefucUEPD0ukiC9o4fNUx6OZsSdKyuUthppD6cps0rGpWupekEPE4A3Ij60uG4oPpEi0OBoCHCDWlrn6DsNnA5rqKU5O7eoGMTXPFQlYaSmnbRncUQtTOu+rJ/QHtElFaf7RBePcw== 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=p3OWM8w9b7y7tcvo9feay99zyZinCvbaVsyM6BOeha4=; b=Ql/yClTQZIhz9BwhdOoxwmk/5tDDLDBTlOdeAXwPuXBaMQMq/8VsUTlDoAr4ZgMboxQBbRrgORvih6ZCW4yO60MPP47t75GtykMdZF7FR2DbAmyNj2fY/Rw2e5DAjHQEVD0EQtmO8OjFxQF4rVieo38fgq1mQ11mT0JqcbjH5agAG4mpMCo5JR8dJhqKHp4ueGYejbMPfcmfTH4r7fqJUIqzdHeS7tkLXUupeeTTLUVnZGe/LB4seK6L+/hsZGyLyqwKW6nLaMUZtSdCzCJ8jPDgI9d18wqDjVHL7C4yxyqFD5zxXCZpt9rDwIXUmcWoSYmR2z64jsQ34y2BD6Vjzg== 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=p3OWM8w9b7y7tcvo9feay99zyZinCvbaVsyM6BOeha4=; b=eAQ1I+zY9+K+mOkvQnovcHWzrkC60ukNyK7v18VFEftE0+OYOovZHgzNdisDyywV56fqLJInOCAR6S7QTzY8jzaZi8sPTQYwEEoniC8UPq7icLwTwJOFPkUQp269qiFG2AECeWB7M86vp10miOVWqBwBKgoPrVn+j8UJhmjf6VBUvGlVJZqUizzyyhpNnuauo8/IGXf3f6fs084ftssyXfVll/Cbp3ssBsyjRGyKasGLLY2f1jVYa78NZyH/R/THBpMU6e85nyZd1avI7JhPMZvBPyx00bwolSGhwzYfQ0fLnqyaPxEYwLJUEa/RJbJgWctNXXJ9TeEkmsrdFTWM9Q== Received: from SI2PR01MB5036.apcprd01.prod.exchangelabs.com (2603:1096:4:1f8::9) by SEZPR01MB4758.apcprd01.prod.exchangelabs.com (2603:1096:101:a2::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Mon, 21 Aug 2023 06:38:13 +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.6699.020; Mon, 21 Aug 2023 06:38:13 +0000 Subject: Re: Building a Linuxulator userland from source From: Tatsuki Makino To: ports@freebsd.org, emulation@freebsd.org References: Message-ID: Date: Mon, 21 Aug 2023 15:38:01 +0900 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TMN: [gTkLjj9iK+9KWSFGLmZGBguq29eZWmnk] X-ClientProxiedBy: SG2PR02CA0005.apcprd02.prod.outlook.com (2603:1096:3:17::17) To SI2PR01MB5036.apcprd01.prod.exchangelabs.com (2603:1096:4:1f8::9) X-Microsoft-Original-Message-ID: <7dd99ea3-2730-bf45-ef47-a44f70c9363f@hotmail.com> 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_|SEZPR01MB4758:EE_ X-MS-Office365-Filtering-Correlation-Id: 6acd0801-da5c-4629-362d-08dba211314e X-MS-Exchange-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?MnRIUkNSY2Q0L1FHUndzQW5ZV3dRQ3QzVjJtdkc4NnRWNFpOajlETVA5Z3Bv?= =?utf-8?B?azJBeDVET2UraTJvNkZ1TjZXWGJVLy9YbnEyM0lDZ0E5blpjMFdqa2liMWEv?= =?utf-8?B?MkJuSzVneFBGeDZ2SVgvZ0FKUUgrOVRjVlBrUnJMK0h4a0IzakVXWmZiWEhW?= =?utf-8?Q?f0eggfl7QQMdhM9DgNkRCj3kioB6H9fd7kFknsSyUmr8=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-d8e84.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 6acd0801-da5c-4629-362d-08dba211314e X-MS-Exchange-CrossTenant-AuthSource: SI2PR01MB5036.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2023 06:38:13.4141 (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: SEZPR01MB4758 X-Spamd-Result: default: False [-0.97 / 15.00]; FORGED_MUA_SEAMONKEY_MSGID_UNKNOWN(2.50)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW_WITH_FAILURES(-0.50)[]; NEURAL_SPAM_SHORT(0.33)[0.328]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_FROM(0.00)[hotmail.com]; MLMMJ_DEST(0.00)[emulation@freebsd.org,ports@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; R_SPF_FAIL(0.00)[-all]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US]; DMARC_POLICY_ALLOW(0.00)[hotmail.com,none]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[hotmail.com:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Spamd-Bar: / X-Rspamd-Queue-Id: 4RTjVF6Vs8z3QMq # my email was not received by emulation@FreeBSD, I'm not a subscriber of it. :) Linux branded ELF is executed by linuxulator no matter where it is placed on /, right? Binaries running on linuxulator have priority access to files in /compat/linux. So far, I understand 😂 What I don't understand is... If a linux binary running on linuxulator can't find a linux library, but can find a FreeBSD library, can it link and use that FreeBSD library? In almost all cases, linux binaries are linked with libraries that are patch-patch-patch-patch-patch-patch-patch-security-fix-security-fix-security-fix-security-fix-security-fix-ed (big modified) to older version, so we don't encounter such a situation. Another problem is that linuxulator does not work for the shell script shbang. The "bash scripts" installed on /compat/linux, such as ldd, try to use freebsd bash outside of /compat/linux. I think there was something strange about that even in its current state, so it might be better to just hard-code /compat/linux in various places. Regards. Tatsuki Makino wrote on 2023/08/21 06:25: > I think /compat/linux is a very important path for linuxulator and/or linux-binary, and I think it would be problematic to prevent it from being used.