From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: Re: Failure to build clamav due to rust reversion Date: Thu, 29 Aug 2024 23:17:43 +0200 Message-ID: <4294a345-52f8-460e-b4af-8abdb7bb1652@ipfire.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2548725414517645273==" List-Id: --===============2548725414517645273== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Matthias, On 29/08/2024 19:18, Matthias Fischer wrote: > On 29.08.2024 15:24, Adolf Belka wrote: >> Hi All, >=20 > Hi, >=20 >> On 29/08/2024 15:04, Adolf Belka wrote: >>> Hi Michael & Matthias, >>> >>> I just re-ran my build after the removal of the coreutils patch. >>> >>> The build went past coreutils with no problem. However it has then failed= at clamav (1.4.0) with the message >>> >>> error: package `home v0.5.9` cannot be built because it requires rustc 1.= 70.0 or newer, while the currently active rustc version is 1.67.0 >>> Either upgrade to rustc 1.70.0 or newer, or use >>> cargo update -p home(a)0.5.9 --precise ver >>> where `ver` is the latest version of `home` supporting rustc 1.67.0 >>> >>> Rust was reverted back to 1.67.0 due to problems with building ruby for a= arch64 and riscv64. >=20 > Ok, then it seems that 'clamav 1.4.0' is out for now, too. I think that is the safest thing in the short term. >=20 >>> https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dcommit;h=3D33ee3958de834f7= eb686fb5b5daa56d511bb18e9 >>> >>> So until rust has the fix for building ruby for aarch64 and riscv64 then = it looks like there needs to be a limit set to the version of rust-home to 0.= 5.3, which is the version that we have with rust-1.67.0 >>> >>> Unless of course I have not understood the root cause of this problem, wh= ich definitely could be the case. >>> >> I have realised that clamav has the rust modules bundled into the source t= arball and home is at 0.5.9 in that bundle. >> >> Looking through clamav, I can't find a way to easily tell clamav to use th= e rust-home version that is in IPFire. Hopefully Matthias with his knowledge = of building clamav with rust can find a way. >=20 > Sorry Adolf, but I fear, I'm not *that* experienced... ;-) I had a look through and found the rust source from 1.65.0 and I created a pa= tch to change the home directory contents in the clamav source tarball to the= version of home-0.5.3 instead of 0.5.5 which requires a min rust of 0.70.1 o= r similar. That resulted in the next fail where the rust-which package was asking for a = minimum home version of 0.5.5 So then I created another patch to modify the rust-which version requirement = for home to 0.5.3 Then the build failed again with a message that home has to be > 0.5.3 and th= at is locked to version 0.5.9 but I can't find where that requirement is spec= ified and I have the feeling this will become like going down the rabbit hole= in Alice in Wonderland, so I am giving up at this point. There were no CVE fixes in clamav-1.4.0 so I think we can just wait for rust = to be updated. Regards, Adolf. >=20 > I wouldn't want to temper with this and revert 'clamav', too. >=20 > Best > Matthias >=20 >> Regards, >> >> Adolf. >> >>> Regards, >>> >>> Adolf. >>> >=20 --===============2548725414517645273==--