On 13.02.2019 09:31, David Holland wrote: > Building (netbsd) kernel modules in pkgsrc hasn't ever really worked, > as far as I can remember. This came up today and it turned out that > the failure case that was supposed to remind us to eventually do > something about it (mppe-lkm) was deleted in July. > pkgsrc/emulators/haxm ships now with a NetBSD kernel module. It works for me. > So, probably, something should be done about it. > > Given that building kernel modules requires a base kernel tree and > that this is not going to change anytime soon, as far as I know there > are two pkgsrc problems: first, figuring out where to find such a > tree, and second, getting it buildlinked correctly. The former seems > like there's not much to it besides picking the name of a config > variable; the latter... my recollection is that it's possible to drop > in custom buildlink farms, but I forget how or what to look for to > find out how. > > Suggestions? > I propose to enforce rule to ship with auxiliary scripts, at least: ${PKGBASE}-modload, ${PKGBASE}-modunload, ${PKGBASE}-mknod. Otherwise maintaining knowledge on wiki or in MESSAGES would be too unfriendly in my opinion for typical usage. > (Also, since building kernel frobs requires -nostdinc, does anything > bad happen if one tries to add that to CFLAGS?) >
Attachment:
signature.asc
Description: OpenPGP digital signature