-
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
virtualbox & virtualboxGuestAdditions: cleanup #303790
Conversation
b21c7f5
to
1c877e6
Compare
nativeBuildInputs = [ patchelf makeWrapper pkg-config which yasm ]; | ||
buildInputs = kernel.moduleBuildDependencies ++ [ libxslt libX11 libXext libXcursor | ||
glib nasm alsa-lib makeself pam libXmu libXrandr linuxHeaders openssl libpulseaudio xorg.xorgserver ]; | ||
nativeBuildInputs = [ patchelf pkg-config which yasm makeself nasm xorg.xorgserver openssl linuxHeaders xz ] ++ kernel.moduleBuildDependencies; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it really need yasm and nasm? Usually one of them is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't xz
, openssl
, linuxHeaders
be in buildInputs
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also xorg.xorgserver
should probably be in buildInputs
as it was before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xz is not shown in ldd, yet a build dependency
openssl is not shown in ldd, yet a build dependency
linuxHeaders should only be required when prebuilding the guest additions
xorg.xorgserver should only be required while building
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it really need yasm and nasm? Usually one of them is fine.
nasm is now removed
I've tested this a bit:
|
@@ -34,16 +34,14 @@ in stdenv.mkDerivation { | |||
|
|||
env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types -Wno-error=implicit-function-declaration"; | |||
|
|||
nativeBuildInputs = [ patchelf makeWrapper ]; | |||
buildInputs = [ virtualBoxNixGuestAdditionsBuilder ] ++ kernel.moduleBuildDependencies; | |||
nativeBuildInputs = [ patchelf makeWrapper virtualBoxNixGuestAdditionsBuilder ] ++ kernel.moduleBuildDependencies; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that we need the guest additions for the target architecture, why did you move it to nativeBuildInputs
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the guest additions are already build depending on the kernel I thought that the resulting build would be suitable for the same target architecture as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will approve when the unnecessary nativeBuildInputs
/ buildInput
changes are explained/reverted.
Btw, drag'n'drop from guest to host fails with:
From host to guest fails with:
The log of the drag'n'drop service in the guest says this: So I would say this is an upstream issue? |
Btw, the OVA is missing a text editor. This is really awkward. :-D |
1c877e6
to
049b869
Compare
049b869
to
9496bd2
Compare
@blitz ping |
This PR is blocking the update of virtualbox to versions newer than 7.0.12. That would be required to resolve #312336, which is affecting many users (compatibility with kernels 6.9+). What can be done to get this merged? |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/1695 |
Successfully created backport PR for |
@@ -52,7 +52,7 @@ in | |||
description = "Whether to enable seamless mode. When activated windows from the guest appear next to the windows of the host."; | |||
}; | |||
|
|||
draganddrop = mkOption { | |||
dragAndDrop = mkOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have received a mkRenamedOption
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added #317756
Description of changes
Cleanup virtualbox and virtualboxGuestAdditions related nix files
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 馃憤 reaction to pull requests you find important.