The following commit has been merged in the master branch:
commit 912f1ee0915da2f7ad3bae00bf9ab1f024c4b592
Author: Patrick Winnertz <win...@debian.org>
Date:   Wed Jun 23 13:54:58 2010 +0200

    Add a ugly hack to recommend ofa-kernel-modules if they should exist (if 
lustre is linked against it)
    
    Signed-off-by: Patrick Winnertz <win...@debian.org>

diff --git a/debian/rules b/debian/rules
index 3a1b5e1..530da4b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -269,6 +269,10 @@ kdist_config: prep-deb-files
        #  Check build dependencies again, needs to be done since we just
        # replaced the control file.
        dpkg-checkbuilddeps
+       # ugly hack to recommend ofa-kernel-modules if they should exist
+       if [ ! -z $(OFA_KERNEL) ]; then \
+           sed -e 's#^Recommends:\(.*\)#Recommends:\1, 
ofa-kernel-modules-_KVERS_#g' -i debian/control; \
+       fi
        # touch files to same date, to avoid auto*
        find . -type f -exec touch -r COPYING {} \;
        # Doesn't seem possible to only build modules...

-- 
Lustre Debian Packaging 

_______________________________________________
Pkg-lustre-svn-commit mailing list
Pkg-lustre-svn-commit@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-lustre-svn-commit

Reply via email to