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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
hdf4: fix build on aarch64-linux #47209
Conversation
@GrahamcOfBorg build hdf4 |
Success on x86_64-linux (full log) Attempted: hdf4 Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: hdf4 Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: hdf4 Partial log (click to expand)
|
pkgs/tools/misc/hdf4/default.nix
Outdated
let | ||
debianPatches = fetchurl { | ||
# NOTE: debian hasn't packaged 4.2.14 just yet, but these patches apply cleanly. | ||
url = "mirror://debian/pool/main/libh/libhdf4/libhdf4_4.2.13-4.debian.tar.xz"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These debian source URLs are not stable. They're not under version control and may be removed when Debian releases a new patch level (for instance, 4.2.13-3 doesn't exist anymore, only 4.2.13-4), leading to 404s in our builds ...
Please fetchpatch
the patches from the Debian gitlab repo https://salsa.debian.org/debian-gis-team/hdf4/tree/4e4e3f543e325911533b8617e2eb4082987f9fe2/debian/patches instead. These are pinned to a git revision and don't change or disappear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, good to know! I switched to individual fetchpatch
es for those patches, since I didn't want to clone the whole git repo in order to fetch 4 files 馃槂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, LGTM now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(and yes , fetchpatch
ing each patch individually is the standard way to do it 馃憤 ).
Pull in the Debian patches for AArch64 support, and a bonus patch for reproducible builds while we're at it.
511af78
to
e8f0411
Compare
@GrahamcOfBorg build hdf4 |
Unexpected error: command failed with exit code 1 on x86_64-darwin (full log) Attempted: hdf4 Partial log (click to expand)
|
darwin: looks like a transient builder issue. |
Success on x86_64-linux (full log) Attempted: hdf4 Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: hdf4 Partial log (click to expand)
|
Try again for darwin: |
Unexpected error: command failed with exit code 1 on x86_64-darwin (full log) Attempted: hdf4 Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: hdf4 Partial log (click to expand)
|
(unfortunately we cannot tell ofborg to only build a package for one platform yet) |
OK, let's ignore darwin for now, looks like the builder is out of resources. Thank you for fixing this! |
Pull in the Debian patches for AArch64 support, and a bonus patch for reproducible builds while we're at it. (cherry picked from commit 104014c)
backported: 18a7c1d |
Success on aarch64-linux (full log) Attempted: hdf4 Partial log (click to expand)
|
@xeji - And thank you for the help! |
Motivation for this change
Pull in the Debian patches for AArch64 support, and a bonus patch for reproducible builds while we're at it.
I don't have an AArch64 host to test on, so I'd appreciate someone poking @GrahamcOfBorg for me 馃槂 I think this should work, though, according to the failures in the build log.
/cc ZHF #45960
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)cc @knedlsepp