Re: Building a Linuxulator userland from source

2023-09-05 Thread Dmitry Chagin
On Tue, Sep 05, 2023 at 07:52:25PM +0200, Felix Palmen wrote: > * Felix Palmen [20230901 16:55]: > > Posting yet another status update [...] > > And the next one ;) > > First, I kind of reached a "milestone", I got multimedia/makemkv to > build with the new userland (using the ffmpeg shared libs

Re: Building a Linuxulator userland from source

2023-09-05 Thread Felix Palmen
* Felix Palmen [20230901 16:55]: > Posting yet another status update [...] And the next one ;) First, I kind of reached a "milestone", I got multimedia/makemkv to build with the new userland (using the ffmpeg shared libs instead of linking it statically as is necessary with -c7), and it *seems*

Re: Building a Linuxulator userland from source

2023-09-01 Thread Felix Palmen
* Alexander Leidinger [20230901 19:11]: > Am 2023-09-01 16:55, schrieb Felix Palmen: > > * Infrastructure libs like libdrm, libglvnd, alsa, v4l, ... > > Infrastructure ports are what we provide in the linux base ports. So I'm not > surprised... :) Yes of course, this is what you will need in any

Re: Building a Linuxulator userland from source

2023-09-01 Thread Alexander Leidinger
Am 2023-09-01 16:55, schrieb Felix Palmen: * Felix Palmen [20230820 12:35]: Just a little update on this [...] Posting yet another status update because I'm about to reach a "milestone": I just had the first successful build of ffmpeg. I focused on ffmpeg because that's a requirement for Make

Re: Building a Linuxulator userland from source

2023-09-01 Thread Jose Quinteiro
I'm one of your just a new Linux distro sceptics (on the forums, not here), and I'm encouraged by your progress and dedication. Thank you! On 9/1/23 07:55, Felix Palmen wrote: > * Felix Palmen [20230820 12:35]: >> Just a little update on this [...] > > Posting yet another status update because

Re: Building a Linuxulator userland from source

2023-09-01 Thread Felix Palmen
* Felix Palmen [20230820 12:35]: > Just a little update on this [...] Posting yet another status update because I'm about to reach a "milestone": I just had the first successful build of ffmpeg. I focused on ffmpeg because that's a requirement for MakeMKV which I now intend to use as a first PoC

Re: Building a Linuxulator userland from source

2023-08-24 Thread Tatsuki Makino
Felix Palmen wrote on 2023/08/21 18:30: > * Tatsuki Makino [20230821 17:40]: >> If we try to use it directly, the command not found if bash is not installed. > > Installing a FreeBSD bash won't help either, this script expects > /bin/bash which will never exist on FreeBSD (it's installed in > /u

Re: Building a Linuxulator userland from source

2023-08-22 Thread Mario Marietto
It would be nice to try that tool that can hack / convert ./ add another layer (another linux distro inside the first one. I dont remember the name now. Il mer 23 ago 2023, 08:21 Felix Palmen ha scritto: > * Cy Schubert [20230822 10:34]: > > Basically this would become another Linux distro, alb

Re: Building a Linuxulator userland from source

2023-08-22 Thread Felix Palmen
* Cy Schubert [20230822 10:34]: > Basically this would become another Linux distro, albeit a virtual one > that runs under our Linuxulator. And also a pretty minimal one. Right now, I'm just building a truly minimal userland (the GNU toolchain, openssl, GNU make/grep/sed/awk, GNU coreutils and ma

Re: Building a Linuxulator userland from source

2023-08-22 Thread Cy Schubert
In message , F elix Palmen writes: > Hi all, > > for the last two weeks, I've been working on a spike in ports which now > reached a state where I want to show it to and discuss it with fellow > ports hackers. > > First, a link to my feature branch (warning, will be rebased every now > and then):

Re: Building a Linuxulator userland from source

2023-08-22 Thread Trenton Schulz
Felix Palmen writes: * Trenton Schulz [20230822 12:55]: This is really fascinating work, and I see value in this even if some other way of doing things eventually replaces the Centos-7 items. Thanks a lot! No problem. Having been struggling with some cross-compiling issues at work, th

Re: Building a Linuxulator userland from source

2023-08-22 Thread Felix Palmen
* Trenton Schulz [20230822 12:55]: > This is really fascinating work, and I see value in this even if some other > way of doing things eventually replaces the Centos-7 items. Thanks a lot! > Some of this has a bit of overlap with Gentoo prefix > (https://wiki.gentoo.org/wiki/Project:Prefix), whe

Re: Building a Linuxulator userland from source

2023-08-22 Thread Mario Marietto
---> you won't be able to use FreeBSD ports/packages of Linux software with it... I'm interested to understand what you mean better herecan you elaborate using different words ? thanks. On Tue, Aug 22, 2023 at 2:13 PM Felix Palmen wrote: > * Mario Marietto [20230822 13:59]: > > CentOS has

Re: Building a Linuxulator userland from source

2023-08-22 Thread Felix Palmen
* Mario Marietto [20230822 13:59]: > CentOS has been replaced already successfully with Ubuntu and Devuan. No. You can install whatever you like in some Linux jail, you could even use it as an alternate compat.linux.emul_path if you want, in both cases it will partially work. You *won't* get e.g

Re: Building a Linuxulator userland from source

2023-08-22 Thread Mario Marietto
CentOS has been replaced already successfully with Ubuntu and Devuan. On the FreeBSD forums there are a couple of nice tutorials. BTW if we can use even different user lands,we will be even happier. On Tue, Aug 22, 2023 at 1:04 PM Trenton Schulz wrote: > > Felix Palmen writes: > > > > > I assum

Re: Building a Linuxulator userland from source

2023-08-22 Thread Trenton Schulz
Felix Palmen writes: I assume/hope that's a minor risk. /usr/local is not in the standard search paths of the toolchain, so, must be added explicitly. A build system doing that without being requested to do so would be pretty much broken. Furthermore, the toolchain is built --with-sysroo

Re: Building a Linuxulator userland from source

2023-08-22 Thread Felix Palmen
* Alexander Leidinger [20230822 01:25]: > Am 2023-08-18 11:26, schrieb Felix Palmen: > > 1.) Of course, Uses/linux.mk would need quite some switching to handle > > c7 as well as something new that works completely differently (maybe > > call it src). All still open issues. > > I suggest to write

Re: Building a Linuxulator userland from source

2023-08-21 Thread Alexander Leidinger
Am 2023-08-18 11:26, schrieb Felix Palmen: Hi Alexander, thanks for commenting! * Alexander Leidinger [20230818 11:02]: As the person who switched the linuxulator from redhat 4 or 5 to fedora and mentored the people which moved forward to linux-c6 I have some info about the design principles

Re: Building a Linuxulator userland from source

2023-08-21 Thread Felix Palmen
* Tatsuki Makino [20230821 17:40]: > Felix Palmen wrote on 2023/08/21 16:21: > > This works perfectly fine when used from within a Linux shell. Example > > from testing my new userland: > > > > | [00:00:20] Entering interactive test mode. Type 'exit' when done. > > | root@14a-default:~ # /compat/

Re: Building a Linuxulator userland from source

2023-08-21 Thread Tatsuki Makino
Hmm? Tatsuki Makino wrote on 2023/08/21 17:40: > Alternatively, pkg-plist in emulators/linux_base-c7 is creating dummy > /compat/linux/dev, and removing it seems to be a workaround. If linux_base creates /compat/linux/dev/shm for /dev/shm, isn't it a problem that all of /compat/linux/dev is no

Re: Building a Linuxulator userland from source

2023-08-21 Thread Tatsuki Makino
Felix Palmen wrote on 2023/08/21 16:21: > This works perfectly fine when used from within a Linux shell. Example > from testing my new userland: > > | [00:00:20] Entering interactive test mode. Type 'exit' when done. > | root@14a-default:~ # /compat/linux/bin/bash > | bash-5.2# ldd /bin/bash > |

Re: Building a Linuxulator userland from source

2023-08-21 Thread Felix Palmen
* Tatsuki Makino [20230821 15:38]: > Linux branded ELF is executed by linuxulator no matter where it is > placed on /, right? Yes. > Binaries running on linuxulator have priority access to files in > /compat/linux. Well, when they access some file, a path with /compat/linux prepended is tried f

Re: HEADS-UP: poudriere needs patching (was: Building a Linuxulator userland from source)

2023-08-21 Thread Felix Palmen
* Felix Palmen [20230820 22:18]: > I'm about to update my feature branch again and from now on, to build it > with poudriere, a patch will be needed. Good news, I found a workaround to make it build with unmodified poudriere again: | .if ${POUDRIERE_NAME:Mpoudriere*} | build-depends: poudriere-e

Re: Building a Linuxulator userland from source

2023-08-20 Thread Tatsuki Makino
# 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

Re: Building a Linuxulator userland from source

2023-08-20 Thread Mario Marietto
-> Ideally the userland should be choosable for example if you got GPU passthrough to work on debian then odds are you could pass it through to FreeBSD I didn't understand well what you meant. Can you elaborate in a different way ? thanks. On Mon, Aug 21, 2023 at 1:11 AM Aryeh Friedman wrote

Re: Building a Linuxulator userland from source

2023-08-20 Thread Mario Marietto
Would be nice to have a linux userland such as nixos instead of ubuntu / Centos. Can nixos be used ? On Sun, Aug 20, 2023 at 11:25 PM Tatsuki Makino wrote: > Hello. > > I only know enough about linuxulator that I can maintain > print/epson-inkjet-printer-escpr2... > However... > > I think /compa

Re: Building a Linuxulator userland from source

2023-08-20 Thread Tatsuki Makino
Hello. I only know enough about linuxulator that I can maintain print/epson-inkjet-printer-escpr2... However... 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. I don't know enough to write her

HEADS-UP: poudriere needs patching (was: Building a Linuxulator userland from source)

2023-08-20 Thread Felix Palmen
* Felix Palmen [20230820 12:35]: > If anyone would like to already do some testing at this stage, please be > aware that I not only rebase my feature branch, but also rewrite it > while rebasing (to fix issues I encounter), and of course there won't be > any PORTREVISION bumps. Therefore, the safe

Re: Building a Linuxulator userland from source

2023-08-20 Thread Felix Palmen
* Felix Palmen [20230818 08:23]: > I just reached a state where I can build a working Linux-native GNU > toolchain (binutils, glibc, gcc) for C and C++ on aarch64, amd64 and > i386. From here on, it should be simpler, there are already two ports in > my branch (archivers/linux-bzip2 and archivers/

Re: Building a Linuxulator userland from source

2023-08-19 Thread Felix Palmen
* Mario Marietto [20230819 12:36]: > I'm not experienced,but I suspect that those kinds of bugs aren't caused by > the kind of userland,but at a level of abstraction layer. So,if you change > userland,you will not fix them. I think I made it pretty clear what kind of issues a new userland will fi

Re: Building a Linuxulator userland from source

2023-08-19 Thread Mario Marietto
Hello. For example some time ago I started an email exchange with a FreeBSD developer because I'd found two bugs. You can see our full log here : https://pastebin.ubuntu.com/p/HvVC9pkgVB/ I've removed the name of the developer. Anyway he said that he was investigating,but at some point he stoppe

Re: Building a Linuxulator userland from source

2023-08-19 Thread Felix Palmen
* Mario Marietto [20230818 18:17]: > But if I have understood well,do you want to change the userland and you > are sure to reach a better linux compatibility? I don't think you will be > able to. The linuxulator is not perfect because it is bugged at a "low" > level. Changing the userland it will

Re: Building a Linuxulator userland from source

2023-08-18 Thread Mario Marietto
But if I have understood well,do you want to change the userland and you are sure to reach a better linux compatibility? I don't think you will be able to. The linuxulator is not perfect because it is bugged at a "low" level. Changing the userland it will remain bugged. On Fri, Aug 18, 2023 at 6:0

Re: Building a Linuxulator userland from source

2023-08-18 Thread Jose Quinteiro
Amazing work. Thanks Felix! On 8/17/23 23:23, Felix Palmen wrote: > Hi all, > > for the last two weeks, I've been working on a spike in ports which now > reached a state where I want to show it to and discuss it with fellow > ports hackers. > > First, a link to my feature branch (warning, will

Re: Building a Linuxulator userland from source

2023-08-18 Thread Felix Palmen
Hello Gleb, * Gleb Popov [20230818 10:27]: > This is a great idea and very interesting work. I'll take a look at > that once I have free time. Thanks, any testing will be very welcome! > Thanks for working on this, Felix! Well as I said, I'm not sure yet whether the approach will be feasible.

Re: Building a Linuxulator userland from source

2023-08-18 Thread Felix Palmen
Hi Alexander, thanks for commenting! * Alexander Leidinger [20230818 11:02]: > As the person who switched the linuxulator from redhat 4 or 5 to fedora and > mentored the people which moved forward to linux-c6 I have some info about > the design principles of the linux_base ports which you may or

Re: Building a Linuxulator userland from source

2023-08-18 Thread Alexander Leidinger
Am 2023-08-18 08:23, schrieb Felix Palmen: Hi all, for the last two weeks, I've been working on a spike in ports which now reached a state where I want to show it to and discuss it with fellow ports hackers. First, a link to my feature branch (warning, will be rebased every now and then):

Re: Building a Linuxulator userland from source

2023-08-18 Thread Mario Marietto
I never tried. But you have suggested a fun project to work with. On Fri, Aug 18, 2023 at 9:56 AM Aryeh Friedman wrote: > On Fri, Aug 18, 2023 at 3:45 AM Mario Marietto > wrote: > > > > Nice idea,but I think you will have no advantages changing userland. > Actually I ve been able to squeeze the

Re: Building a Linuxulator userland from source

2023-08-18 Thread Mario Marietto
I never tried. But you have suggested a fun project to work with. On Fri, Aug 18, 2023 at 9:56 AM Aryeh Friedman wrote: > On Fri, Aug 18, 2023 at 3:45 AM Mario Marietto > wrote: > > > > Nice idea,but I think you will have no advantages changing userland. > Actually I ve been able to squeeze the

Re: Building a Linuxulator userland from source

2023-08-18 Thread Aryeh Friedman
On Fri, Aug 18, 2023 at 3:45 AM Mario Marietto wrote: > > Nice idea,but I think you will have no advantages changing userland. Actually > I ve been able to squeeze the maximum features from the linuxulator. So im > sure that you will not add any more feature to it. Im running cuda with the > nv

Re: Building a Linuxulator userland from source

2023-08-18 Thread Mario Marietto
Nice idea,but I think you will have no advantages changing userland. Actually I ve been able to squeeze the maximum features from the linuxulator. So im sure that you will not add any more feature to it. Im running cuda with the nvidia drivers and maya 2023 inside the linuxulator. What else could I

Re: Building a Linuxulator userland from source

2023-08-18 Thread Gleb Popov
This is a great idea and very interesting work. I'll take a look at that once I have free time. Thanks for working on this, Felix!

Building a Linuxulator userland from source

2023-08-17 Thread Felix Palmen
Hi all, for the last two weeks, I've been working on a spike in ports which now reached a state where I want to show it to and discuss it with fellow ports hackers. First, a link to my feature branch (warning, will be rebased every now and then):