← Back to team overview

kernel-packages team mailing list archive

[Bug 1426113] Re: devel: vbox drivers introduce symlinks which prevent use of orig.tar.gz

 

when building kernel-sources with quilt i struggled about symlinks created
in other folders.
had to add:
index 18b765f..6e5caa8 100644
--- a/debian.master/reconstruct
+++ b/debian.master/reconstruct
@@ -4,3 +4,5 @@ ln -sf ../r0drv ubuntu/vbox/vboxguest/r0drv
 ln -sf ../include ubuntu/vbox/vboxsf/include
 ln -sf ../r0drv ubuntu/vbox/vboxsf/r0drv
 ln -sf ../include ubuntu/vbox/vboxvideo/include
+rm -f ubuntu/vbox/r0drv/r0drv
+rm -f ubuntu/vbox/include/include


Better way should be to check if symlink exist.

Date: Wed, 4 Mar 2015 17:53:22 +0100
Subject: [PATCH] ubuntu-vbox-guest-fix-symlinks

---
 debian.master/reconstruct | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/debian.master/reconstruct b/debian.master/reconstruct
index 18b765f..caba9b7 100644
--- a/debian.master/reconstruct
+++ b/debian.master/reconstruct
@@ -1,6 +1,16 @@
 # Reconstruct vbox symlinks (LP:1426113)
-ln -sf ../include ubuntu/vbox/vboxguest/include
-ln -sf ../r0drv ubuntu/vbox/vboxguest/r0drv
-ln -sf ../include ubuntu/vbox/vboxsf/include
-ln -sf ../r0drv ubuntu/vbox/vboxsf/r0drv
-ln -sf ../include ubuntu/vbox/vboxvideo/include
+if ! [ -e ubuntu/vbox/vboxguest/include ]; then
+    ln -sf ../include ubuntu/vbox/vboxguest/include
+fi
+if ! [ -e ubuntu/vbox/vboxguest/r0drv ]; then
+    ln -sf ../r0drv ubuntu/vbox/vboxguest/r0drv
+fi
+if ! [ -e ubuntu/vbox/vboxsf/include ]; then
+    ln -sf ../include ubuntu/vbox/vboxsf/include
+fi
+if ! [ -e ubuntu/vbox/vboxsf/r0drv ]; then
+    ln -sf ../r0drv ubuntu/vbox/vboxsf/r0drv
+fi
+if ! [ -e ubuntu/vbox/vboxvideo/include ]; then
+    ln -sf ../include ubuntu/vbox/vboxvideo/include
+fi
-- 
1.9.1


** Patch added: "check for symlinks"
   https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1426113/+attachment/4334500/+files/0001-ubuntu-vbox-guest-fix-symlinks.patch

** Changed in: linux (Ubuntu)
       Status: Fix Committed => Incomplete

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1426113

Title:
  devel: vbox drivers introduce symlinks which prevent use of
  orig.tar.gz

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  The introduction of the vbox drivers prevent use of a .orig.tar.gz.
  Need to work out how to remove these and restore them on clean.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1426113/+subscriptions


References