From nobody Fri Oct 25 07:20:16 2024 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XZZ1m1kpVz5bNjG for ; Fri, 25 Oct 2024 07:20:28 +0000 (UTC) (envelope-from fuz@fuz.su) Received: from fuz.su (fuz.su [IPv6:2001:41d0:8:e508::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "fuz.su", Issuer "fuz.su" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XZZ1l547Lz4w7j for ; Fri, 25 Oct 2024 07:20:27 +0000 (UTC) (envelope-from fuz@fuz.su) Authentication-Results: mx1.freebsd.org; none Received: from fuz.su (localhost [127.0.0.1]) by fuz.su (8.18.1/8.18.1) with ESMTPS id 49P7KHx3097526 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 25 Oct 2024 09:20:17 +0200 (CEST) (envelope-from fuz@fuz.su) Received: (from fuz@localhost) by fuz.su (8.18.1/8.18.1/Submit) id 49P7KHsp097525; Fri, 25 Oct 2024 09:20:17 +0200 (CEST) (envelope-from fuz) Date: Fri, 25 Oct 2024 09:20:16 +0200 From: Robert Clausecker To: current@freebsd.org Cc: Benjamin Jacobs Subject: Re: Problem (re)building graphics/drm-61-kmod via PORTS_MODULES+= Message-ID: References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR] X-Rspamd-Queue-Id: 4XZZ1l547Lz4w7j X-Spamd-Bar: ---- 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