nixops-vbox icon indicating copy to clipboard operation
nixops-vbox copied to clipboard

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

Open goodwillcoding opened this issue 11 years ago • 1 comments

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 avatar Jun 11 '14 16:06 goodwillcoding

@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.

goodwillcoding avatar Jun 12 '14 06:06 goodwillcoding