Use BUILD_DEPENDS option for dkms builds
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 20 Mar 2013 18:01:48 +0000 (11:01 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 21 Mar 2013 19:51:06 +0000 (12:51 -0700)
Support was added to dkms so build dependencies can be specified.
This allows us to ensure that the spl package will always be built
before the zfs package.  Those patches have not yet been merged
upstream but they are available in the zfsonlinux/dkms repository.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
scripts/dkms.mkconf

index 2e07be4..62caa4b 100755 (executable)
@@ -52,6 +52,7 @@ POST_INSTALL="scripts/dkms.postinst
   -k \${kernelver}
   -t \${dkms_tree}
 "
+BUILD_DEPENDS[0]="spl"
 AUTOINSTALL="yes"
 REMAKE_INITRD="no"
 MAKE[0]="make"