[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#379004: dpkg-cross: symlinks in linux-header packages are not converted



The linux-headers packages have more interesting files in /usr/src that
are stripped by dpkg-cross, including Makefiles and .config files.
Here's a temporary fix for those that works for me:

--- /home/marcus/dpkg-cross     2006-07-20 19:28:38.000000000 +0200
+++ dpkg-cross  2006-07-20 21:32:16.000000000 +0200
@@ -514,6 +514,9 @@
                if (/^\/usr(\/X11R6)?\/include\//) {
                        # regular file under /usr/include or
/usr/X11R6/include
                        link_file("$src$_", "$dst$crossinc/$'") or goto
fail;
+               } elsif (/^\/usr\/src\/(.*)/) {
+                       # anything under /usr/src
+                       link_file("$src$_", "$dst$crossdir/src/$1") or
goto fail;
                } elsif
(/^\/usr\/((src|lib)\/.*\.([hH]|[hH][hH]|[hH][pP][pP]))$/) {
                        # regular .h, .hh, or .hpp file under /usr/lib
or /usr/src
                        link_file("$src$_", "$dst$crossdir/$1") or goto
fail;




Reply to: