-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added uncompress+file checks #12173
Added uncompress+file checks #12173
Conversation
9396035
to
4c9f04c
Compare
openzfs/zfs#12173 is going to add a requirement for ncompress. Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
openzfs/zfs#12173 is going to add a requirement for ncompress. Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
openzfs/zfs#12173 is going to add a requirement for ncompress. Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
openzfs/zfs#12173 is going to add a requirement for ncompress. Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
I've gone ahead and merged the buildbot change. If you can force update the PR we can verify all is well. |
4c9f04c
to
11725a7
Compare
We'll see if this gets any traction, thanks. Pushed. Huh. I'll be kind of impressed if the sanity test failures are related, but I'll look at them. edit: It looks like it's just a chain after a |
Indeed! Lucky you, another rare glitch which occasionally pops up in the CI and nowhere else! But totally unrelated. |
Yeah, at least whatever's happening to the FBSD 13 bot happens > 90% of the time (though I still haven't been able to reproduce it...it'd probably be simpler to open an AWS account and use the exact AMI.) |
Speaking of the FreeBSD fixes, they've just been merged. So if you're game to rebase this one last time there's a chance all of the bots might pass. Though I don't think it's needed given the scope of this change. |
Having an old enough version of "file" and no "uncompress" program installed can cause rpmbuild as root to crash and mangle rpmdb. So let's add a build dependency for RPM-based systems. Closes: openzfs#12071 Closes: openzfs#12168 Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
11725a7
to
f321562
Compare
(Once this gets signoff from people as a reasonable idea, I'll go make a PR for the build docs and bb-dependencies.sh to add the "ncompress" package for RPM distro instructions. At this rate, I'll soon have just added * to the install command...)
Motivation and Context
Having an old enough version of "file" and no "uncompress" program installed can cause rpmbuild as root to crash and mangle rpmdb, including on latest CentOS 8. "Oops."
As a brief summary of places this does or doesn't occur:
(See also: #12071 and #12168)
Description
Added checks for file's version and uncompress's existence, then something that checks if file's major version is 5 and minor is less than 37; if so, and uncompress is absent, error out if attempting to build any rpm targets.
I also added checks to the RPM specfiles to require ncompress (a package which provides an uncompress on RPM distros) if on an EL distro <= 8 or a Fedora distro <= 30, to catch the odd case where someone runs ./configure and then uninstalls uncompress.
(If/when CentOS 8 ships a patched version of file, this could be revised to instead require >= patched version of file for each of Fedora and EL distros, but A) that hasn't happened yet and B) I have no idea how long it takes patched versions to propagate among EL derivatives)
How Has This Been Tested?
Built rpm-{kmod,utils} on:
Also a non-RPM build on FreeBSD 14-CURRENT x86_64 worked fine.
Types of changes
Checklist:
Signed-off-by
.