diff options
author | Simon Rettberg | 2020-10-12 15:25:15 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-10-12 15:25:15 +0200 |
commit | 0f3557d1217e0124ee71166ec2d6719a9bc2059b (patch) | |
tree | 94c72455aef53dc5e4b7460f0defc082ea7b2deb /core/modules/vbox-src/module.build | |
parent | [vbox-src] sdfkjgdlfgkj (diff) | |
download | mltk-0f3557d1217e0124ee71166ec2d6719a9bc2059b.tar.gz mltk-0f3557d1217e0124ee71166ec2d6719a9bc2059b.tar.xz mltk-0f3557d1217e0124ee71166ec2d6719a9bc2059b.zip |
[vbox-src] Stff
Diffstat (limited to 'core/modules/vbox-src/module.build')
-rw-r--r-- | core/modules/vbox-src/module.build | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/modules/vbox-src/module.build b/core/modules/vbox-src/module.build index 1bf2984b..b6a159f7 100644 --- a/core/modules/vbox-src/module.build +++ b/core/modules/vbox-src/module.build @@ -21,10 +21,13 @@ fetch_source() { build() { [ -n "${KERNEL_HEADERS_DIR}" ] || perror "KERNEL_HEADERS_DIR not set, kernel module present?" - cd "${MODULE_WORK_DIR}/src/VirtualBox-${REQUIRED_VBOX_VERSION}" || \ - perror "Could not cd to '${MODULE_WORK_DIR}/src/VirtualBox-${REQUIRED_VBOX_VERSION}'." + local BASEVER="${REQUIRED_VBOX_VERSION}" + # In case we have something like 1.2.3a, we need 1.2.3 for the directory name below + [[ "${BASEVER: -1}" =~ ^[0-9]$ ]] || BASEVER="${BASEVER:0:-1}" + cd "${MODULE_WORK_DIR}/src/VirtualBox-${BASEVER}" || \ + perror "Could not cd to '${MODULE_WORK_DIR}/src/VirtualBox-${BASEVER}'." sed -i 's/VBOX_WITH_CLOUD_NET = 1/VBOX_WITH_CLOUD_NET =/g' "Config.kmk" || perror "Could not disable cloud networking." - local VBOX_BUILD_DIR="${MODULE_WORK_DIR}/src/VirtualBox-${REQUIRED_VBOX_VERSION}/build" + local VBOX_BUILD_DIR="${MODULE_WORK_DIR}/src/VirtualBox-${BASEVER}/build" mkdir -p "$VBOX_BUILD_DIR" || perror "Failed to mkdir '$VBOX_BUILD_DIR'." ./configure \ --disable-docs \ |