On 27.08.2024 12:01, Michael Tremer wrote:
Hello,
Hi,
On 24 Aug 2024, at 09:33, Matthias Fischer matthias.fischer@ipfire.org wrote:
On 21.08.2024 16:28, Michael Tremer wrote:
Hello Matthias,
Hi Michael,
As you might have seen I played around with this all more… There is either a kernel bug, or a bug in unshare which causes these problems…
So if we mount /proc manually later this works for me on Ubuntu 22.04 LTS:
https://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff;h=8ea702f3f853c4c28a28...
However, there are now some packages which don’t want to build any more.
So I would simply suggest to upgrade the kernel on your Ubuntu release like this:
apt install linux-generic-hwe-22.04
Done. Ran without problems.
I'm now on "Linux Devel64-1 6.8.0-40-generic #40~22.04.3-Ubuntu SMP PREEMPT_DYNAMIC..."
That should allow you to build with the stock make.sh again.
Sorry, but no chance...
Today I tested the hint from "siosios" found in https://community.ipfire.org/t/trying-to-build-188/11999/8
Are you referring to this?
mount -o bind ${BUILD_DIR}/proc ${BUILD_DIR}/proc
He put this into an unfortunate place and will mount this over and over and over again... but making the empty directory a mount point is something that would acceptable as a workaround.
I tested this again today, but running "./make.sh downloadsrc" ended in a bunch of error messages: "...mount point does not exist".
So I'm back to my previous solution from https://community.ipfire.org/t/trying-to-build-188/11999/9
And I found that I only need ONE line:
... # If unshare is asked to terminate, terminate all child processes "--kill-child" )
mount --bind ${BUILD_DIR}/proc ${BUILD_DIR}/proc
fi
while [ $# -gt 0 ]; do case "${1}" in ...
If you can confirm, I can add this to the code.
Right now I wouldn't add anything. This is too mysterious (to me). Its working - but I don't know why.
In a few days the LTS-update for Ubuntu 24.04 LTS will be available - its scheduled for August 29. I'll test this update and then we'll see.
Works. Build is running. I'm building 'clamav 1.4.0' right now.
One glitch I found: the new build still has problems identifying the need for customizing new rootfiles(?).
This might be fixed here:
https://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff;h=d7ee801712705c97fda6...
Thanks! I'm testing...
Best Matthias
[Shortened some stuff - again]