FS#26721 - [virtualbox virtualbox-modules] change PKGBUILD and .install files to be kernel independent
Attached to Project:
Community Packages
Opened by John (graysky) - Wednesday, 02 November 2011, 21:58 GMT
Last edited by Balló György (City-busz) - Thursday, 05 September 2013, 19:38 GMT
Opened by John (graysky) - Wednesday, 02 November 2011, 21:58 GMT
Last edited by Balló György (City-busz) - Thursday, 05 September 2013, 19:38 GMT
|
Details
I use a custom kernel package (linux-ck) but in order to use
this great PKG, I need to manually edit out the references
to the ARCH default kernel in the PKGBUILD and also in the
x.install files each time a new release is pushed. I'm
wondering if you're able to make the PKGBUILD and related
files "kernel neutral" such that it acquires the needed info
via variables and assumes that the user wants to build it
for the running kernel rather than the ARCH default kernel.
Does this sound like a good idea?
|
This task depends upon
Closed by Balló György (City-busz)
Thursday, 05 September 2013, 19:38 GMT
Reason for closing: Implemented
Thursday, 05 September 2013, 19:38 GMT
Reason for closing: Implemented
how did you work around then and you cannot do it now?
BTW, simply making the change you propose does not lead to a functional package.
1) remove "depends = linux-headers" from .PKGINFO in virtualbox-source-4.1.4-4-x86_64.pkg.tar.xz
2) add "provides = virtualbox-modules" to .PKGINFO in virtualbox-source-4.1.4-4-x86_64.pkg.tar.xz
3) pacman -U virtualbox-4.1.4-4-x86_64.pkg.tar.xz virtualbox-source-4.1.4-4-x86_64.pkg.tar.xz
4) /usr/bin/vboxbuild
5) modprobe -a vboxdrv vboxnetflt
Now when I try to load VirtualBox I get errors:
$ VirtualBox
VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: /usr/lib/virtualbox/VirtualBox.so: undefined symbol: _ZN19QAbstractProxyModel11setItemDataERK11QModelIndexRK4QMapIi8QVariantE
So I don't think the proposed suggestion will work. You thoughts?
Output of steps 3-4:
# pacman -U virtualbox-4.1.4-4-x86_64.pkg.tar.xz virtualbox-source-4.1.4-4-x86_64.pkg.tar.xz
resolving dependencies...
looking for inter-conflicts...
Targets (3): virtualbox-source-4.1.4-4 libvncserver-0.9.8.1-1 virtualbox-4.1.4-4
Total Download Size: 0.00 MB
Total Installed Size: 75.92 MB
Proceed with installation? [Y/n]
(3/3) checking package integrity [#####################################] 100%
(3/3) checking for file conflicts [#####################################] 100%
(1/3) installing virtualbox-source [#####################################] 100%
===> To compile the modules do /usr/bin/vboxbuild
(2/3) installing libvncserver [#####################################] 100%
(3/3) installing virtualbox [#####################################] 100%
Optional dependencies for virtualbox
qt: for VirtualBox GUI
vde2: Virtual Distributed Ethernet support
virtualbox-sdk: developer kit
virtualbox-source: host kernel source modules for non-stock kernels
# /usr/bin/vboxbuild
:: Recompiling VirtualBox kernel modules (3.1.0-1-ck) [DONE]
pkgdesc="VirtualBox kernel modules source"
- depends=(linux-headers gcc make)
+ depends=(gcc make)
+ provides=(virtualbox-modules)
+ optdepends=('linux-headers'
+ 'kernel26-lts-headers')