sailfishos / rust

3 stars 6 forks source link

Rust 1.64: Revert statx patch for sb2 compatibility #19

Closed rubdos closed 7 months ago

rubdos commented 1 year ago

I noticed you were trying out 1.64. Instead of implementing statx in sb2, reverting the statx compatibility patches was actually rather easy, and might provide a workaround.

I tried building this against LLVM 16, but apparently the highest supported LLVM is 14 for 1.64, so I'll retry against that and report back.

Part of The Rust Plan

rubdos commented 1 year ago

I seem to be getting a lot further with LLVM 14, although now I'm getting complaints about not finding crti.o. As far as I understand, that has to do with cross-aarch64-glibc and cross-armv7hl-glibc (and family) not being available (and me commenting them out to try and build). Is there a way to get a hold of these packages? It's weird, since the i486 version is actually available.

rubdos commented 1 year ago

Very close to working :-)

Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/rubdos/rpmbuild/BUILDROOT/rust-1.64.0+git1-1.i386
error: Installed (but unpackaged) file(s) found:
   /usr/libexec/rust-analyzer-proc-macro-srv

EDIT: I removed the executable from the package, since it doesn't seem necessary to have it around for compiling packages. If you'd rather see it packaged, I'd happily add it to %files instead. I have a packaged i486 Rust now.

rubdos commented 1 year ago

Something I just noticed: would it be worth squashing this new patch into 0002-Disable-statx-for-all-builds.-JB-50106.patch, since that targets basically the same issue?