The dkms tool has a bug:
dkms mkkmp never runs, this is fixed upstream in dkms master.
I'm not sure what "mkkmp" is, and the commit that you point to doesn't say anything about mkkmp. Could you please elaborate?
This prevents installing dkms packages on the build servers and then just building the kmod packages cleanly from those.
What kmod packages exactly? Do you mean building lustre kmod packages? Because if you're using the spl/zfs DKMS packages you don't get involved with the spl/zfs kmod packages.
There's also an issue building kmod packages from the spl/zfs-dkms rpms even after applying the upstream fix. The rpms only provide spl/zfs-kmod.spec.in and not spl/zfs-kmod.spec.
I am really lost on this one. What kmod packages are you trying to mix with dkms, and why? And a spec file is used to create an rpm, so why would you need the rpm to contain a spec file?
Can you please document the commands that you are trying to run, and explain the approach in a bit more depth?
The lbuild system essentially builds everything under a buildroot, this includs kernel sources spl and zfs sources.
ZFS is being packaged into many Linux distributions. You guys really need to get comfortable with building against other people's packages.
The route you are following is just going to make it even harder for most users of Lustre on ZFS to properly build Lustre with ZFS. You're making it harder (read "impossible") for LLNL to use your build system, and we're the first productions users of Lustre on ZFS. I don't want to get into a big rant about the problems with the Intel build methodology.
I will just again encourage you to find a way to use the spl/zfs DKMS packages straight from zfsonlinux.org, unmolested.
I've added Chris Gearing to this issue so he can follow along. Chris: this is what we need to change about the Intel Lustre build system. You should look into using Fedora's mock tool.
"Mock creates chroots and builds packages in them. Its only task is to reliably populate a chroot and attempt to build a package in that chroot."
I'm not sure what "mkkmp" is, and the commit that you point to doesn't say anything about mkkmp. Could you please elaborate?
What kmod packages exactly? Do you mean building lustre kmod packages? Because if you're using the spl/zfs DKMS packages you don't get involved with the spl/zfs kmod packages.
I am really lost on this one. What kmod packages are you trying to mix with dkms, and why? And a spec file is used to create an rpm, so why would you need the rpm to contain a spec file?
Can you please document the commands that you are trying to run, and explain the approach in a bit more depth?
ZFS is being packaged into many Linux distributions. You guys really need to get comfortable with building against other people's packages.
The route you are following is just going to make it even harder for most users of Lustre on ZFS to properly build Lustre with ZFS. You're making it harder (read "impossible") for LLNL to use your build system, and we're the first productions users of Lustre on ZFS. I don't want to get into a big rant about the problems with the Intel build methodology.
I will just again encourage you to find a way to use the spl/zfs DKMS packages straight from zfsonlinux.org, unmolested.
I've added Chris Gearing to this issue so he can follow along. Chris: this is what we need to change about the Intel Lustre build system. You should look into using Fedora's mock tool.
"Mock creates chroots and builds packages in them. Its only task is to reliably populate a chroot and attempt to build a package in that chroot."