Bug 240915 - graphics/drm-current-kmod: SOURCE option prevents make installkernel from working
Summary: graphics/drm-current-kmod: SOURCE option prevents make installkernel from wor...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-29 09:55 UTC by Raphael Kubo da Costa
Modified: 2019-10-09 19:14 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (x11)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Kubo da Costa freebsd_committer 2019-09-29 09:55:46 UTC
I have a machine that's currently on r349807, and I'm trying to update it to r352847. The build is done on a separate machine, and I use NFS to mount /usr/src and /usr/obj to complete the installation process.

This machine I'm updating has the latest graphics/drm-current-kmod installed (4.16.g20190927).

When I run `make installkernel', I get the following error:

[...]
===> zlib (install)
install -T release -o root -g wheel -m 555   zlib.ko /boot/kernel/
install -T debug -o root -g wheel -m 555   zlib.ko.debug /usr/lib/debug/boot/kernel/
kldxref /boot/kernel
===> drm-current-kmod (install)
===> drm-current-kmod/linuxkpi (install)
install -T release -o root -g wheel -m 555   linuxkpi_gplv2.ko /boot/kernel/
install: linuxkpi_gplv2.ko: No such file or directory
*** Error code 71

Stop.
make[4]: stopped in /usr/local/sys/modules/drm-current-kmod/linuxkpi
*** Error code 1

Stop.
make[3]: stopped in /usr/local/sys/modules/drm-current-kmod
*** Error code 1
Comment 1 Niclas Zeising freebsd_committer 2019-10-09 19:14:58 UTC
Hi!
As I understand it, the basic issue is that drm-current-kmod isn't available on the host where you build your system, but when installing it it is picked up and installkernel tries to install the object files which aren't there.
We're still discussing what the best solution to this issue is, in the meantime, it is possible to override the build of out of tree kernel modules, by setting WITHOUT_LOCAL_MODULES=yes in either /etc/make.conf or the environment before doing buildkernel and installkernel.