Re: Problem (re)building graphics/drm-61-kmod via PORTS_MODULES+=
Date: Fri, 25 Oct 2024 07:20:16 UTC
Hi David,
Am Thu, Oct 24, 2024 at 11:40:14AM -0700 schrieb David Wolfskill:
> So... I've been tracking FreeBSD (generally, daily) on various machines
> for a couple of decades or so. And I learned long ago to rebuild kmods
> from ports whenever I rebuilt the kernel, and that generally, the
> simplest way to ensure that that is done is to augment /etc/src.conf
> with (e.g.):
>
> PORTS_MODULES+=graphics/drm-61-kmod
>
> which (again, generally) works a treat. :-)
>
> It even worked Just Fine yesterday (main-n273108-d1d839d0b593 ->
> main-n273133-419249c1cacc).
>
> This morning, however, after updating sources to
> main-n273188-1c83996beda7, running:
>
> g1-48(15.0-C)[12] uname -aUK
> FreeBSD g1-48.catwhisker.org 15.0-CURRENT FreeBSD 15.0-CURRENT #110 main-n273133-419249c1cacc: Wed Oct 23 11:19:30 UTC 2024 root@g1-48.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY amd64 1500025 1500025
>
> the attempt to rebuild graphics/drm-61-kmod failed on my laptops, thus:
>
> ...
The same issue was reported in another thread. Try this workaround:
---8<---8<---8<---8<---
diff --git a/graphics/drm-61-kmod/Makefile b/graphics/drm-61-kmod/Makefile
index 6db21111f255..d195829ac987 100644
--- a/graphics/drm-61-kmod/Makefile
+++ b/graphics/drm-61-kmod/Makefile
@@ -49,6 +49,9 @@ PLIST_SUB+= I915="@comment "
MAKE_ENV+= MAKEOBJDIRPREFIX=${WRKSRC}/obj
+post-patch:
+ ${MKDIR} ${WRKSRC}/linuxkpi/dummy/include
+
pre-build:
${MKDIR} ${WRKSRC}/obj
(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} obj)
---8<---8<---8<---8<---
Yours,
Robert Clausecker
--
() ascii ribbon campaign - for an encoding-agnostic world
/\ - against html email - against proprietary attachments