Skip to content
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

gdal is broken because optional dependency hdf4 is broken #108340

Closed
Thra11 opened this issue Jan 3, 2021 · 1 comment · Fixed by #108347
Closed

gdal is broken because optional dependency hdf4 is broken #108340

Thra11 opened this issue Jan 3, 2021 · 1 comment · Fixed by #108347
Labels
0.kind: bug 0.kind: regression Something that worked before working no longer

Comments

@Thra11
Copy link
Member

Thra11 commented Jan 3, 2021

Describe the bug
hdf4 no longer builds in nixpkgs unstable. It looks like something's changed in the compiler or glibc meaning that non-standard types such as uint32 are no longer available in the global namespace. It is in 'maintenance mode' / deprecated upstream. Not sure if this will be fixable or whether we should consider dropping hdf4 / making hdf4 optional for packages such as gdal where it is an optional dependency upstream but a required dependency in nixpkgs.

To Reproduce
Steps to reproduce the behavior:

  1. nix-build '<nixpkgs>' -A gdal

Notify maintainers
@knedlsepp @MarcWeber

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"aarch64-linux"`
 - host os: `Linux 5.10.0-rc5, NixOS, 21.03.git.4648938bb44M (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.10`
 - channels(root): `"nixos-20.03.git.0c1c18c"`
 - nixpkgs: `/home/thrall/nixpkgs`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: hdf4 gdal mapnik
# a list of nixos modules affected by the problem
module:
@knedlsepp
Copy link
Member

knedlsepp commented Jan 3, 2021

Thx for the notification! It seems this problem is specific to aarch64. It still builds fine on
x86_64. I'll try to have a look. If we cannot make hdf4 build on ARM again, we can disable hdf4 support for gdal on aarch64.

@knedlsepp knedlsepp mentioned this issue Jan 3, 2021
10 tasks
knedlsepp added a commit to knedlsepp/nixpkgs that referenced this issue Jan 3, 2021
The last glibc bump did break the aarch64 build of hdf4. We fix it by
adding the libtirpc dependency, which was previously part of glibc.

Fixes: NixOS#108340
@FRidh FRidh added the 0.kind: regression Something that worked before working no longer label Jan 4, 2021
FRidh pushed a commit that referenced this issue Jan 4, 2021
The last glibc bump did break the aarch64 build of hdf4. We fix it by
adding the libtirpc dependency, which was previously part of glibc.

Fixes: #108340
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 0.kind: regression Something that worked before working no longer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants