Re: Firefox and glibc 2.43

"Xi Ruoyao" ([email protected] via blfs-dev Mailing List) <[email protected]> Fri, 30 Jan 2026 04:32:19 +0800
Newsgroups gmane.linux.lfs.beyond.devel
Message-ID <[email protected]>
On Thu, 2026-01-29 at 09:50 +0100, Maurice van der Stee wrote:
> For what it is worth.
> 
> After installing glibc 2.43 firefox would not compile anymore.
> 
> In my case this was version 147.0.2 but it applies equally to 140.7.0
> which is in the book.
> 
> I fixed this by applying the attached patch and the two seds below. I
> tired to use seds instead of the patch but I couldn;t get one working
> for the third hunk.
> 
> 
> old_checksum="f8ad2b69fa472e332b50572c1b2dcc1c8a0fa783a1199aad245398d3d
> f421b4b"
> new_checksum="30426773c6200dc97b27b0fa10e7d31fc42bc1199369bebfd97b93cc3
> 74b5ef5"
> 
> sed -e "s:${old_checksum}:${new_checksum}:" -i
> third_party/rust/glslopt/.cargo-checksum.json

Don't do this.  Add

glslopt = { path = "third_party/rust/glslopt" }

into the [patch.crates-io] section in Cargo.toml to make cargo skip the
checksum, and then remove the source and checksum of glslopt in
Cargo.lock instead (IIRC the Cargo.lock change can be done via a cargo
update -p command but I'm not so sure I don't have time to try it now).

In general you shouldn't be editing the .cargo-checksum.json files in
the first place, as cargo already provides the [patch.*] section to skip
the checksum verification.

-- 
Xi Ruoyao <[email protected]>

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page