From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Fischer To: development@lists.ipfire.org Subject: Re: The unshared changes give a problem with build after doing git pull on next Date: Tue, 27 Aug 2024 14:55:49 +0200 Message-ID: In-Reply-To: <70B6F98B-8230-4830-BDC1-7DA5EA984456@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6770239892776094777==" List-Id: --===============6770239892776094777== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On 27.08.2024 12:01, Michael Tremer wrote: > Hello, Hi, >> On 24 Aug 2024, at 09:33, Matthias Fischer = wrote: >>=20 >> On 21.08.2024 16:28, Michael Tremer wrote: >>> Hello Matthias, >>=20 >> Hi Michael, >>=20 >>> As you might have seen I played around with this all more=E2=80=A6 There = is either a kernel bug, or a bug in unshare which causes these problems=E2=80= =A6 >>>=20 >>> So if we mount /proc manually later this works for me on Ubuntu 22.04 LTS: >>>=20 >>> https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dcommitdiff;h=3D8ea702f3f8= 53c4c28a2885dafdcae2e737c0a49b >>>=20 >>> However, there are now some packages which don=E2=80=99t want to build an= y more. >>>=20 >>> So I would simply suggest to upgrade the kernel on your Ubuntu release li= ke this: >>>=20 >>> apt install linux-generic-hwe-22.04 >>=20 >> Done. Ran without problems. >>=20 >> I'm now on "Linux Devel64-1 6.8.0-40-generic #40~22.04.3-Ubuntu SMP >> PREEMPT_DYNAMIC..." >>=20 >>> That should allow you to build with the stock make.sh again. >>=20 >> Sorry, but no chance... >>=20 >> Today I tested the hint from "siosios" found in >> https://community.ipfire.org/t/trying-to-build-188/11999/8 >=20 > Are you referring to this? >=20 > mount -o bind ${BUILD_DIR}/proc ${BUILD_DIR}/proc >=20 > 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. >>=20 >> One glitch I found: the new build still has problems identifying the >> need for customizing new rootfiles(?). >=20 > This might be fixed here: >=20 > https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dcommitdiff;h=3Dd7ee8017127= 05c97fda658bb71209d814d1db841 Thanks! I'm testing... Best Matthias [Shortened some stuff - again] --===============6770239892776094777==--