Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 May 2009 01:52:10 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Ion-Mihai Tetcu <itetcu@freebsd.org>
Cc:        Doug Barton <dougb@freebsd.org>, QAT@freebsd.org, cvs-all@freebsd.org, ports-committers@freebsd.org, ports@freebsd.org, cvs-ports@freebsd.org, imp@freebsd.org
Subject:   Re: cvs commit: ports/net Makefile ports/net/bwi-firmware-kmod  Makefile distinfo pkg-descr pkg-plist
Message-ID:  <790a9fff0905162352xc2fa29cl9cf411cf9e6b3a22@mail.gmail.com>
In-Reply-To: <20090517084754.5003f6f9@it.buh.tecnik93.com>
References:  <200905092141.n49LfomV031060@repoman.freebsd.org> <20090510162002.A2CAA8FC4E@release.ixsystems.com> <790a9fff0905101305l70d7809cl1ca2525729d53daa@mail.gmail.com> <4A0F6548.1010205@FreeBSD.org> <20090517084754.5003f6f9@it.buh.tecnik93.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 17, 2009 at 12:47 AM, Ion-Mihai Tetcu <itetcu@freebsd.org> wrot=
e:
> On Sat, 16 May 2009 18:15:52 -0700
> Doug Barton <dougb@FreeBSD.org> wrote:
>
>> Scot Hetzel wrote:
>> > This shouldn't be flaged as an mtree error. =A0The reason that
>> > linker.hints was left behind is due to this file is generated by
>> > kldxref. =A0The 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. =A0It 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0905162352xc2fa29cl9cf411cf9e6b3a22>