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

fribidi: fix cross #105102

Merged
merged 1 commit into from Nov 30, 2020
Merged

fribidi: fix cross #105102

merged 1 commit into from Nov 30, 2020

Conversation

flokli
Copy link
Contributor

@flokli flokli commented Nov 27, 2020

Meson needs a native compiler to produce some binaries:

gen.tab/meson.build:32:0: ERROR: No build machine compiler for "gen.tab/gen-unicode-version.c"

Tested building pkgsCross.armv7l-hf-multiplatform.fribidi and pkgsCross.aarch64-multiplatform.fribidi after this.

Motivation for this change

fribidi is needed for smartmontools, which is part of nixos/modules/profiles/base.nix. It's also needed by zfs, so this fixes more cross-NixOS things.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@flokli flokli added the 6.topic: cross-compilation Building packages on a different sort platform than than they will be run on label Nov 27, 2020
@SuperSandro2000
Copy link
Member

I am not sure why this is causing a mass rebuild but please target staging.

Copy link
Contributor

@lukegb lukegb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before:

$ nix build -f . pkgsCross.aarch64-multiplatform.fribidi
builder for '/nix/store/asld67311lr380gpp02n9f35g04b9iin-fribidi-1.0.10-aarch64-unknown-linux-gnu.drv' failed with exit code 1; last 10 log lines:
  Has header "sys/times.h" : YES 
  Has header "strings.h" : YES (cached)
  Configuring config.h using configuration
  Has header "stdlib.h" : YES (cached)
  Has header "string.h" : YES (cached)
  Has header "strings.h" : YES (cached)
  
  gen.tab/meson.build:32:0: ERROR: No build machine compiler for "gen.tab/gen-unicode-version.c"
  
  A full log can be found at /build/fribidi-1.0.10/build/meson-logs/meson-log.txt
[0 built (1 failed), 1 copied (1.1 MiB), 1.1 MiB DL]
error: build of '/nix/store/asld67311lr380gpp02n9f35g04b9iin-fribidi-1.0.10-aarch64-unknown-linux-gnu.drv' failed

After:

$ nix build -f . pkgsCross.aarch64-multiplatform.fribidi
[1 built, 0.0 MiB DL]

Nice!

@Ericson2314
Copy link
Member

Yes please retarget to staging, then we can merge.

Meson needs a native compiler to produce some binaries:

> gen.tab/meson.build:32:0: ERROR: No build machine compiler for "gen.tab/gen-unicode-version.c"
@flokli flokli changed the base branch from master to staging November 29, 2020 21:33
@flokli
Copy link
Contributor Author

flokli commented Nov 29, 2020

This now targets staging. Sorry for the delay, was a bit away from computers ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants