[Pkg-zfsonlinux-devel] Patches to build udeb's and module packages directly from source

Turbo Fredriksson turbo at bayour.com
Sat May 11 11:08:43 UTC 2013


[should be the list]

On May 11, 2013, at 1:42 AM, Carlos Alberto Lopez Perez wrote:

> Let me know any comment about any of this changes

Try getting the latest commits, I've done a few more that
fixes some package build issues.

Most notably, I've got rid of m-a, and wrote my own prep-deb-files
which is better (and fixes some problems in creating the deb/udeb) and
the fix you did to...

> So, I finally was able to correctly build the udeb with the following cmd line:

This don't seem to be the correct behavior if you compare
how other packages does it. iSCSITarget isn't the only package
I've used to create my own module package, but all use only
KSRC and KVERS... I've never seen anyone use KOSRC...

> DEBDESTDIR=$(cd ..; pwd) \

This is optional, and can be used directly on the debian/rules
command line. but putting the finished package(s) next to the
kernel source (which is supposed to be in /usr/src) is 'expected
behavior'.

> fakeroot debian/rules override_dh_binary-modules-udeb

Looks good.

> looks like I get it right this time or i'm still missing something?

Tripple check your zfsutils.udeb package. If you only took the first
commit, then /sbin/zfs is most likely a script :)

But otherwise you're doing it absolutly correct (except the KOSRC
which I'm not certain about - but as log as it's documented in a
line in debian/rules I don't care that much :).
--
As soon as you find a product that you really like,
they will stop making it.
- Wilson's Law




More information about the Pkg-zfsonlinux-devel mailing list