Skip to content

Conversation

aszlig
Copy link
Member

@aszlig aszlig commented Aug 17, 2012

This should fix building VirtualBox against kernels made using the new manual kernel configuration system.
In addition, this adds a small test case to the manual kernel, to ensure that modules can be built properly using kbuild.

And the latter (kbuild) is also used in the VirtualBox derivation, so we shouldn't trap into problems even with generic kernels (which i didn't test, yet so it would make sense to test it before merging...).

@aszlig
Copy link
Member Author

aszlig commented Aug 17, 2012

Okay, seems there are some issues, se please do not merge yet.

@shlevy
Copy link
Member

shlevy commented Aug 17, 2012

@aszlig Can you close and then reopen when it's ready for merge? No need to open a new PR, just reopen the closed one.

@aszlig
Copy link
Member Author

aszlig commented Aug 17, 2012

Sorry, fell asleep just after pushing. Going to test and/or fixup further tomorrow.

@aszlig aszlig closed this Aug 17, 2012
@ghost ghost assigned shlevy Aug 18, 2012
@aszlig aszlig reopened this Aug 18, 2012
@aszlig
Copy link
Member Author

aszlig commented Aug 18, 2012

Fixed, and tested against generic kernel aswell.

@@ -42,10 +56,11 @@ stdenv.mkDerivation {
'';

configurePhase = ''
sourcedir="$(pwd)"
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't be necessary, the standard unpackPhase sets $sourceRoot

Copy link
Member Author

Choose a reason for hiding this comment

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

Unfortunately, it is necessary, as $sourceRoot is not an absolute path.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, OK. I wonder if that should be changed in stdenv-updates... @edolstra?

aszlig added 8 commits August 19, 2012 09:02
Don't rely on VirtualBox's in-tree build scripts to set include paths correctly
and use the official way of the Linux kernel to build the modules. That way we
don't need to make ugly symlinks in the kernel tree or heavily patch VirtualBox.
The for loop didn't find $curdir, because it was set _after_ the directory has
been changed. The variable is now called $srcroot and is set before the
installPhase is changing directories.
The scripts/depmod.sh checks whether the path in $DEPMOD is executable and only
executes it if that's the case. So, by setting DEPMOD to "/do_not_use_depmod"
the destination path doesn't exist _and_ thus isn't executable aswell.
First of all, modules won't install when there is no "make modules" prior to it,
so we're doing this now with a new function called forEachModule, so we can
avoid duplication as much as possible.

In addition this sets $sourcedir to the current directory of the configurePhase,
so we're able to find the source tree later on, after several chdir()s.
The "include/generated" stuff is already added to the search path by the kernel
modules build system, so no need to hack it in like this.
We're the host so we don't need the kernel modules for the guest additions, as
they're build with in a separate derivation anyway.
Copy all symbol versions from the ones generated in the vboxdrv build.
@aszlig
Copy link
Member Author

aszlig commented Aug 19, 2012

Rebased without the checkPhase in manual-kernel.nix.

@shlevy shlevy merged commit 347e8c3 into NixOS:master Aug 19, 2012
ethancedwards8 pushed a commit to ethancedwards8/nixpkgs that referenced this pull request Apr 2, 2021
Do not evaluate /etc/bashrc on non-interactive shells
CodeRadu pushed a commit to CodeRadu/nixpkgs that referenced this pull request Feb 25, 2025
symphorien added a commit to symphorien/nixpkgs that referenced this pull request Jun 16, 2025
changelog:

https://github.com/fdw/rofi-rbw/releases

1.5.1: Fix release process Latest

Unfortunately, the new automatic build process with uv was broken, resulting in useless wheel files.

1.5.0: It's time
Changed

    Fields are shown in plain text or hidden based on their type. (NixOS#17)
    Stopped support for Python 3.8.

Added

    Show a notification after copying TOTP. (NixOS#101)
    Support for fuzzel. (NixOS#109)
    Support cards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants