]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Use make libafs_tree to create the kernel source
authorRuss Allbery <rra@debian.org>
Fri, 13 Feb 2009 17:42:23 +0000 (09:42 -0800)
committerRuss Allbery <rra@debian.org>
Fri, 13 Feb 2009 18:03:38 +0000 (10:03 -0800)
* Use make libafs_tree to generate the tree for the kernel module
  compile rather than copying the entire source tree.

debian/changelog
debian/rules

index 4c22fd007bad19e2c3fca376d4e3a8edd6a0577c..dcdcfdede96e5e518850b0591e5bfcc058ee1061 100644 (file)
@@ -21,6 +21,8 @@ openafs (1.4.8.dfsg1-1) UNRELEASED; urgency=low
       could result in reuse of freed memory.
     - STABLE14-rx-do-not-race-current-packet-20090105: fix rx race
       condition.
+  * Use make libafs_tree to generate the tree for the kernel module
+    compile rather than copying the entire source tree.
   * Add initial DKMS support via an openafs-modules-dkms package, based on
     work by Robert Gerlach.  (LP: #288743)
   * Compress the source in openafs-modules-source with bzip2 instead of
index b1bdc868daeb8f9549f3edb58e8abd64c5550790..f526723038a847cbf48bdb8ef2b14ec234eff601 100755 (executable)
@@ -99,6 +99,7 @@ build-stamp:
            $(DEBIAN_OPT_FLAGS) $(SYSTEM)
        chmod a+x src/libafs/make_kbuild_makefile.pl
        dh build --after configure
+       $(MAKE) libafs_tree
        touch $@
 
 clean:
@@ -119,19 +120,12 @@ install-stamp: build-stamp
        dh_installinit -popenafs-fileserver -r
 
        install -d debian/$(srcpkg)/usr/src/modules/$(package)
-       find . \( -name \*.o -o -path ./debian -o -path \*/.svn \
-           -o -path ./src/WINNT -o -path ./doc -o -path ./obj \
-           -o -path ./$(SYS_NAME) -o -path ./.pc \) -prune -o -print | \
-               cpio -admp debian/$(srcpkg)/usr/src/modules/$(package)
+       cd libafs_tree && find . -print | \
+           cpio -admp $(CURDIR)/debian/$(srcpkg)/usr/src/modules/$(package)
        mkdir -p debian/$(srcpkg)/usr/src/modules/$(package)/debian
        cp debian/changelog debian/copyright debian/module/* \
            debian/$(srcpkg)/usr/src/modules/$(package)/debian/
        chmod 755 debian/$(srcpkg)/usr/src/modules/$(package)/debian/rules
-       rm -f debian/$(srcpkg)/usr/src/modules/$(package)/*-stamp
-       cd debian/$(srcpkg)/usr/src/modules/$(package) && \
-           $(MAKE) distclean
-       -cd debian/$(srcpkg)/usr/src/modules/$(package) && \
-           rm -rf src/libafs/rx src/libafs/afs src/libafs/afsint
        chown -R root.src debian/$(srcpkg)
        find debian/$(srcpkg) -type d | xargs chmod 755
        find debian/$(srcpkg) -type f -perm -100 | xargs chmod 755
@@ -143,6 +137,7 @@ install-stamp: build-stamp
        install -d debian/$(dkmspkg)/usr/src
        mv debian/$(srcpkg)/usr/src/modules/$(package) \
            debian/$(dkmspkg)/usr/src/openafs-$(VERSION)
+       rmdir debian/$(srcpkg)/usr/src/modules
        sed -e 's/[@]VERSION[@]/$(VERSION)/' debian/dkms.conf.in \
            > debian/$(dkmspkg)/usr/src/openafs-$(VERSION)/dkms.conf