cvs commit: ports/net Makefile ports/net/bwi-firmware-kmod Makefile distinfo pkg-descr pkg-plist

Scot Hetzel swhetzel at gmail.com
Mon May 18 13:07:49 UTC 2009


On Sun, May 17, 2009 at 12:47 AM, Ion-Mihai Tetcu <itetcu at freebsd.org> wrote:
> On Sat, 16 May 2009 18:15:52 -0700
> Doug Barton <dougb at FreeBSD.org> wrote:
>
>> Scot Hetzel wrote:
>> > This shouldn't be flaged as an mtree error.  The reason that
>> > linker.hints was left behind is due to this file is generated by
>> > kldxref.  The port/package runs kldxref during the install of the
>> > firmware module to update the existing or create a linker.hints
>> > file, and when the package is removed, it runs kldxref again to
>> > clean up the linker.hints file to only contain the modules
>> > in /boot/modules.  It has no way to know if it is safe to remove
>> > this file.
>>
>> Would it be safe to remove if it's empty?
>
> Doh! I don't see why not. :-)
>
I performed a test where only bwi_v3_ucode.ko was installed into a
directory, ran kldxref on the directory and it created a 88 byte
linker.hints file.  I then removed the kernel module from the
directory, ran kldxref.  Kldxref removed the empty linker.hints file.

So it looks like all kernel module ports should have this code added
to their pkg-plists:

%%KMODDIR%%/kernel_module.ko
@exec kldxref %%KMODDIR%%
@unexec kldxref %%KMODDIR%%


The bwi-firmware-kmod port had these changes applied on 5/16, and QAT
shouldn't be reporting this error any more.

Scot
_______________________________________________
freebsd-ports at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"



More information about the cvs-ports mailing list