nix-community / nixops-vbox

NixOps VirtualBox backend [maintainer=@AmineChikhaoui]
GNU Lesser General Public License v3.0
22 stars 15 forks source link

nixops is building backages on i686 host for x86_64 deploy to vbox and fails on setuid-wrapper #22

Open goodwillcoding opened 10 years ago

goodwillcoding commented 10 years ago

I am running nixops on a i686 and using nixops to deploy a x86_64 vbox.

setuid-wrapper fails to build.

building path(s) `/nix/store/xa92hqcqxz0f7ndypgp2imh7zhjnj2q8-setuid-wrapper'
error: a `x86_64-linux' is required to build `/nix/store/i092n9scdk1a1crq8s9qzvv9vvmdsqjz-setuid-wrapper.drv', but I am a `i686-linux'

as per my limited understanding from @iElectric, if arches differen between host and deploy machine the packages should be built on the deploy machine.

Please advise if this is a bug.

goodwillcoding commented 10 years ago

@rbvermaa ...

I was testing the "detect arch" bit we talked about so it builds locally rather then remotely and a stupid question came to mind.. There more criteria then just os type and arch to for building locally. For example, if kernel versions and so on.

Would it make more sense to have a --build-type=<local,remote> flag to "deploy" command with default to "remote" value? The the user can choose to do local if they wish to.

If you agree I'll write it and send you a PR.