Date: Mon, 05 Sep 2022 12:27:02 +0200 From: Alexander Leidinger <Alexander@leidinger.net> To: freebsd-emulation@freebsd.org Subject: Re: FreeBSD Port: emulators/linux_base-c7 Message-ID: <20220905122702.Horde.IllUrUMSxQN1IySIR4Ir2yR@webmail.leidinger.net> In-Reply-To: <37fbc957-c034-021f-e6cc-fef12cbac6d7@yahoo.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <zeus.odin@yahoo.com> (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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220905122702.Horde.IllUrUMSxQN1IySIR4Ir2yR>