From nobody Mon Sep 05 10:27:02 2022 X-Original-To: freebsd-emulation@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 4MLl7q6GMVz4bxN6 for ; Mon, 5 Sep 2022 10:27:19 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MLl7p5cVWz3TMN for ; Mon, 5 Sep 2022 10:27:18 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from outgoing.leidinger.net (p5b165562.dip0.t-ipconnect.de [91.22.85.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "outgoing.leidinger.net", Issuer "R3" (verified OK)) by mailgate.Leidinger.net (Postfix) with ESMTPSA id F3C6422303 for ; Mon, 5 Sep 2022 12:27:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1662373627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=plujV3ROyjRHsH230lQ4+GL6mQyA8UM1bFa2b1EG2Cs=; b=O6izdIYlhB+otpP69HtBkE0ONvResp50myD6uA/mKGL46BQlVdFN5wkK//OpccSM6F3HLs Yn8xOQvDvIw44llIEBioVmbJSTIVcLZvbqFPwCT20EiNM58srBTfpn1Cwu1xpMQ6HRTdrh 8JI6ESEMkuB5KHw93fWRtqXlAiTq58H72InKbullX5xuAL67J3QcQVBOyphs1t9n4JcYeU F1jINJS7A4LAskLkNo9XWj2KShy6ff+e9LpKUF1n3mu3OCiW4nki7h0/y4Pyy1FdhPntis ilMq4/N6F8X9wd+FBzWlxNR/4TSRGvFkc+a8XSvqHpcgKf2oIm7S1iT5SSXvBA== Received: from webmail.leidinger.net (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id 7389482B2 for ; Mon, 5 Sep 2022 12:27:03 +0200 (CEST) Date: Mon, 05 Sep 2022 12:27:02 +0200 Message-ID: <20220905122702.Horde.IllUrUMSxQN1IySIR4Ir2yR@webmail.leidinger.net> From: Alexander Leidinger To: freebsd-emulation@freebsd.org Subject: Re: FreeBSD Port: emulators/linux_base-c7 References: <2072052490.883976.1661779180805.ref@mail.yahoo.com> <2072052490.883976.1661779180805@mail.yahoo.com> <7584B833-8829-41B3-9039-3E89FA5DCB0C@punkt.de> <37fbc957-c034-021f-e6cc-fef12cbac6d7@yahoo.com> In-Reply-To: <37fbc957-c034-021f-e6cc-fef12cbac6d7@yahoo.com> Accept-Language: de,en Content-Type: multipart/signed; boundary="=_9u2ed-nPMdyUkNGtmPgbvWY"; protocol="application/pgp-signature"; micalg=pgp-sha256 List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 X-Rspamd-Queue-Id: 4MLl7p5cVWz3TMN X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=leidinger.net header.s=outgoing-alex header.b=O6izdIYl; dmarc=pass (policy=quarantine) header.from=leidinger.net; spf=pass (mx1.freebsd.org: domain of Alexander@leidinger.net designates 89.238.82.207 as permitted sender) smtp.mailfrom=Alexander@leidinger.net X-Spamd-Result: default: False [-6.10 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DKIM_TRACE(0.00)[leidinger.net:+]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-emulation@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-emulation@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N This message is in MIME format and has been PGP signed. --=_9u2ed-nPMdyUkNGtmPgbvWY Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Zeus Odin (from Mon, 29 Aug 2022=20=20 09:48:48=20-0400): > I have a multi-boot system with Arch Linux, FreeBSD, OS X, and=20=20 >=20Windoze. Arch Linux kernel version is up to 5.19.2. Should that=20=20 >=20affect our decision? > > [zeus@olympus ~]$ uname -a > Linux olympus.gods.org 5.19.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 17=20= =20 >=20Aug 2022 13:48:51 +0000 x86_64 GNU/Linux > [zeus@olympus ~]$ uname -srm > Linux 5.19.2-arch1-1 x86_64 > > Will look at sysctl compat.linux.osrelease. Could someone give any=20=20 >=20direction in rebuilding my base-c7 or perhaps I can create base-c8.=20= =20 >=20Thanks. If you want to add a new linux_base port, the following links will=20=20 provide=20helpful info to understand what is involved and what shall or=20= =20 shall=20not be in a linux_base port: https://www.leidinger.net/blog/2010/09/28/the-freebsd-linuxulator-explained= -for-users/ https://www.leidinger.net/blog/2011/08/29/howto-create-a-new-linux_base-por= t/ https://www.leidinger.net/blog/2011/09/01/howto-add-linux-infrastructure-po= rts-for-a-new-linux_base-port/ Increasing the linux version string (compat.linux.osrelease) may have=20=20 implications.=20Linux software may use that to enable certain features=20= =20 of=20the software which relies on kernel behavior or linux syscalls. If=20= =20 you=20change that, it may cause console messages about unimplemented=20=20 syscalls.=20If you are lucky, you / your software doesn't really need=20=20 the=20features of the kernel. Even the current version string is "lying". We do not support all the=20=20 features=20of the announced linux version. But for the linux programs in=20= =20 ports=20it is good enough and some checks about the kernel version are=20= =20 overly=20restrictive in some linux programs / libraries. Note, there is no "linux compat kernel" to recompile from source. The=20=20 linuxolator=20is not an emulator, it is a compatibility shim (=3D it=20=20 translates=20from linux syscalls to FreeBSD syscalls =3D some are the same= =20=20 and=20no translation is needed, and some are a little bit different and=20= =20 need=20only a little mapping between numbers or the data-layout). So if=20= =20 your=20software complains about a missing syscall (or respectively the=20= =20 kernel=20tells about unimplemented syscalls in the console), it means=20=20 you=20can not take some stuff from linux and run it, it means some=20=20 FreeBSD=20code needs to be written to make it work. Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_9u2ed-nPMdyUkNGtmPgbvWY Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIzBAABCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmMVzvYACgkQEg2wmwP4 2IbP8A//WPXkNBLFoRn/7iPD4MeXA454rESDWEF04Mu/4K/GJOCkt2Iba7SwN2HX O0rHLGm9ZW6tA7dx9kMFkuaRugAnesnvDmB7BhisWpCQHSOMnOIZ7QrwT1kq6m1k dGfzHP3Ay+l/natnSjSSAB3WVuekBDn5/hQ5E2SG5jFQoyVrB8MaioFhK1nqiuia V9agWh4zJwuDLeBqqlnnFoUr0lb4r0H1lisalxrxGcdynxSmINFjFfL+hrMzXho8 k6rrGFpmLXjzeYWs5psMVAsLkcTRwnKwVms0hblcvT5Mgw9o6yBp1HxoL5YFLC1v d3W63BkvaI+qRjL50Ym9spluKblGUvbfZK5/mZHbvtJdKjISGPpa3NU1YmPtQtdX 9cDTWJvB/5tXkyItsQ5szfq9U3e3uecGqjji+2qFgarfTVKpQ4gSKiHcoDfL/6Rp FUW/ogRQVzCi1mfDYDAEOc2Qm49IABY5pRzW8uqqK8e0wgd9NsA2jrxBGiSv33Ak oH8S+hqy0Lbngc/b40uT0jvoZc7ZzO7YfKmGRzAEGtJqRVSzbslZlEtQH0ai6792 RmCmg24+RQ065EKVnxHyWm4srWq7NHrgDx2dmWyBJApI22dPOEGDe0QH2BaUPfsI kM9vg9FAgi0XH9pfE5mQqrVjisupCFQR9uUlkgZbNB9ftfD+GEU= =aLoQ -----END PGP SIGNATURE----- --=_9u2ed-nPMdyUkNGtmPgbvWY--