Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]

Quoting Zeus Odin <zeus.odin@yahoo.com> (from Mon, 29 Aug 2022  
09:48:48 -0400):

> I have a multi-boot system with Arch Linux, FreeBSD, OS X, and  
> Windoze. Arch Linux kernel version is up to 5.19.2. Should that  
> affect our decision?
>
> [zeus@olympus ~]$ uname -a
> Linux olympus.gods.org 5.19.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 17  
> Aug 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  
> direction in rebuilding my base-c7 or perhaps I can create base-c8.  
> Thanks.

If you want to add a new linux_base port, the following links will  
provide helpful info to understand what is involved and what shall or  
shall not 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-port/
https://www.leidinger.net/blog/2011/09/01/howto-add-linux-infrastructure-ports-for-a-new-linux_base-port/

Increasing the linux version string (compat.linux.osrelease) may have  
implications. Linux software may use that to enable certain features  
of the software which relies on kernel behavior or linux syscalls. If  
you change that, it may cause console messages about unimplemented  
syscalls. If you are lucky, you / your software doesn't really need  
the features of the kernel.

Even the current version string is "lying". We do not support all the  
features of the announced linux version. But for the linux programs in  
ports it is good enough and some checks about the kernel version are  
overly restrictive in some linux programs / libraries.

Note, there is no "linux compat kernel" to recompile from source. The  
linuxolator is not an emulator, it is a compatibility shim (= it  
translates from linux syscalls to FreeBSD syscalls = some are the same  
and no translation is needed, and some are a little bit different and  
need only a little mapping between numbers or the data-layout). So if  
your software complains about a missing syscall (or respectively the  
kernel tells about unimplemented syscalls in the console), it means  
you can not take some stuff from linux and run it, it means some  
FreeBSD code needs to be written to make it work.

Bye,
Alexander.

-- 
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF

[-- Attachment #2 --]
-----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-----
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220905122702.Horde.IllUrUMSxQN1IySIR4Ir2yR>