diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-03-05 10:13:57 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-03-05 11:23:32 +0000 |
commit | 63cb5030ab578f0ffe3fc3b94a253dc02d3ac060 (patch) | |
tree | ee822c2b9a0701212e31a2f66ed88dfed9b494e1 /community/virtualbox-guest-modules-vanilla | |
parent | 9d66e4011864a3a40a8ccd5aa8fd8870cad1ef2d (diff) | |
download | aports-63cb5030ab578f0ffe3fc3b94a253dc02d3ac060.tar.bz2 aports-63cb5030ab578f0ffe3fc3b94a253dc02d3ac060.tar.xz |
community/virtualbox-guest-modules-vanilla: check kernel in prepare
Diffstat (limited to 'community/virtualbox-guest-modules-vanilla')
-rw-r--r-- | community/virtualbox-guest-modules-vanilla/APKBUILD | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/community/virtualbox-guest-modules-vanilla/APKBUILD b/community/virtualbox-guest-modules-vanilla/APKBUILD index 536d4618f0..66411a2f86 100644 --- a/community/virtualbox-guest-modules-vanilla/APKBUILD +++ b/community/virtualbox-guest-modules-vanilla/APKBUILD @@ -15,17 +15,6 @@ _kpkgver="$_kver-r$_krel" _kabi=$_kver-$_krel-$_flavor _kabi_virt=$_kver-$_krel-virt -# verify the kernel version before entering chroot -_kapkbuild=../../main/linux-vanilla/APKBUILD -if [ -f $_kapkbuild ]; then - ( . $_kapkbuild - pkgname=$_name-$_flavor - [ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver" - [ "$_krel" != "$pkgrel" ] && die "please update _krel to $pkgrel" - return 0 - ) -fi - pkgname=$_name-$_flavor pkgver=$_kver pkgrel=$(($_krel + $_rel)) @@ -47,6 +36,16 @@ prepare() { cd "$builddir" default_prepare + # verify the kernel version + local _kapkbuild=../../main/linux-$_flavor-/APKBUILD + if [ -f $_kapkbuild ]; then + ( . $_kapkbuild + pkgname=$_name-$_flavor + [ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver" + [ "$_krel" != "$pkgrel" ] && die "please update _krel to $pkgrel" + return 0 + ) + fi "$builddir"/src/VBox/Additions/linux/export_modules.sh \ "$srcdir/vbox-kmod-$_ver.tar.gz" |