Skip to content

NetBSD cross compiling - #55023

Merged
matthewbauer merged 2 commits into
NixOS:stagingfrom
matthewbauer:netbsd
Feb 26, 2019
Merged

matthewbauer merged 2 commits into
NixOS:stagingfrom
matthewbauer:netbsd

Conversation

@matthewbauer

Copy link
Copy Markdown
Member
Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-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)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@Ericson2314 Ericson2314 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Awesome!!

@GrahamcOfBorg GrahamcOfBorg added 8.has: clean-up This PR removes packages or removes other cruft 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Feb 1, 2019
@matthewbauer matthewbauer changed the title [wip] netbsd cross compiling netbsd cross compiling Feb 4, 2019
@matthewbauer matthewbauer changed the title netbsd cross compiling NetBSD cross compiling Feb 4, 2019
@matthewbauer
matthewbauer changed the base branch from master to staging February 4, 2019 20:43
@matthewbauer
matthewbauer changed the base branch from staging to master February 4, 2019 20:44
@GrahamcOfBorg GrahamcOfBorg added 6.topic: haskell General-purpose, statically typed, purely functional programming language 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (new) This PR adds a new package labels Feb 4, 2019
@GrahamcOfBorg GrahamcOfBorg added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. and removed 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Feb 4, 2019
@Ericson2314

Ericson2314 commented Feb 5, 2019 •

Copy link
Copy Markdown
Member

Wooo! Staging and then it's a-go? We should get this on some their mailing list or whatever. It should be a great way to draw in more people to Nix/Nixpkgs/NixOS.

@GrahamcOfBorg GrahamcOfBorg removed 6.topic: haskell General-purpose, statically typed, purely functional programming language 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python Python is a high-level, general-purpose programming language. labels Feb 5, 2019
@matthewbauer

Copy link
Copy Markdown
Member Author

To avoid breaking anything I might wait until branching off for 19.03

@matthewbauer

Copy link
Copy Markdown
Member Author

@Ericson2314

Copy link
Copy Markdown
Member

Good luck with the upstream!

@matthewbauer
matthewbauer force-pushed the netbsd branch 3 times, most recently from e21a930 to 93097e1 Compare February 25, 2019 22:43
@Mic92

Mic92 commented Feb 26, 2019

Copy link
Copy Markdown
Member

Hopefully easier then getting stuff into the LLVM.

@matthewbauer
matthewbauer force-pushed the netbsd branch 2 times, most recently from f916304 to 1a34dd8 Compare February 26, 2019 20:43
@matthewbauer
matthewbauer changed the base branch from master to staging February 26, 2019 20:55
Matthew Bauer and others added 2 commits February 26, 2019 15:55
Using the + operator with throw doesn’t seems to work properly. You
need to use antiquotes here to get the targetPlatform config included.
@GrahamcOfBorg GrahamcOfBorg added 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. and removed 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Feb 26, 2019
@matthewbauer
matthewbauer merged commit 51d6b84 into NixOS:staging Feb 26, 2019

inherit (recurseIntoAttrs (callPackages ../os-specific/bsd { }))
netbsd;
netbsd = callPackages ../os-specific/bsd/netbsd {};

@vcunat vcunat Apr 7, 2019 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This removed recurseIntoAttrs and thus the packages aren't built by Hydra anymore. Was that intentional?

@vcunat

vcunat commented Apr 7, 2019

Copy link
Copy Markdown
Member

The bigger problem is that netbsd-make won't build on Darwin anymore, breaking lots of packages, e.g. https://hydra.nixos.org/job/nixpkgs/trunk/getent.x86_64-darwin

@vcunat

vcunat commented Apr 7, 2019 •

Copy link
Copy Markdown
Member

Well, netbsd.make won't build even on x86_64-linux on current nixpkgs master (though the error message seems different).

@matthewbauer

Copy link
Copy Markdown
Member Author

Very weird. I’ll look into it

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

Labels

8.has: clean-up This PR removes packages or removes other cruft 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants