From nobody Fri Oct 25 22:40:05 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 4XZyR60qGVz5bDS6 for ; Fri, 25 Oct 2024 22:40:18 +0000 (UTC) (envelope-from oleglelchuk@gmail.com) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XZyR4687jz461m for ; Fri, 25 Oct 2024 22:40:16 +0000 (UTC) (envelope-from oleglelchuk@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=MYpKcKSp; spf=pass (mx1.freebsd.org: domain of oleglelchuk@gmail.com designates 2607:f8b0:4864:20::f2b as permitted sender) smtp.mailfrom=oleglelchuk@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-qv1-xf2b.google.com with SMTP id 6a1803df08f44-6cbce9e4598so15201516d6.2 for ; Fri, 25 Oct 2024 15:40:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729896016; x=1730500816; darn=freebsd.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Jz96m1ob5ueZv35W/Xc6xosL3+0e2AfxiqMXa3gyFTU=; b=MYpKcKSpFHf0lPQKcowFtFgcDIZHjdZUZvEBzWgrckewFE58aUpo9TVJANoF8pMjvl TmRqtA/WGg/75rKSVWUOJfkMfCPl74VQWLF/7jV22DNiJ4wprW1VpLzK2/SdzuWaHH4S PsG9z7wjuB6gIICUG0pzqC9IU9fd1WBKGp+JBNQtF7Bt5snT1XTflPBY/2BDEKKW9GRT 9FY6Q5X3X4+JVPEzgVitvQ1tTzvtK9gmisn2gk5rpPDh/5d/DdM0MuW2xek2RHxx/fSP ZuztnvLSX90JGdrPlJ8qg4odyuSmSC39umAcM6H60ypvmFg3P5JuFL7lMC1YDMAbxLjE 3J2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729896016; x=1730500816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Jz96m1ob5ueZv35W/Xc6xosL3+0e2AfxiqMXa3gyFTU=; b=SD2x5tpfjvVkugZTr0hsJ12ry9PJD7FXSboz1hTx69ltRh/Wp47LAz0mVFeidSJ+B5 OVyIyHqjG27ZQ2IpJk1ps91VYib4rKTHXTbRKedqxKA/wX86VvZOKf3uGNOHHaMkQvi1 XSJ3sjQGRTrnmOM92xDZ97vROWNNC2gt1EEK16PowZDHthfR0ws8Ac1FN2vMDwgFR2j6 ATcN0y80sI4DmGkEGN252Nl7vwIF5jDx1FzqVSX7UMfzcdWqrjipwUYtJsFWoG5PtJY/ BcicI9I2SaEovu9FcVWxVjh0N9Q4FcNvssnzRPZ+62wa2G8Z5Pn/gJW6YybkikhDovwm AY0Q== X-Forwarded-Encrypted: i=1; AJvYcCWup776M5Iu7L2ZPe0xcuYa2ec7CCtcQ4XniYoIKLivjIhMAi7A8pZRRvX0DtJdcOKti5xQ7QyU@freebsd.org X-Gm-Message-State: AOJu0Yzc6sb1b0SIU6n63dN5mVKd8ZWf2CM+w6EmqRRNjq9ptXlSs1x4 jZxIORmuOKULQWJ/2JKuekEJkXpsJ/WYKdQOZHRrIZTfJTpgjq82m4c1hVFPQPlJmKRwdakvHCJ HKcKBM5qzVxDuI4cqD8xxYyGv5/nDK/88yOhXmg== X-Google-Smtp-Source: AGHT+IFGF+eO/mETNSsYctEj1Ve1WSMocKk1NPMYeNCM20zlBaYthD038xzuw30pC3iZgc2ds7vCgAOkCO4zOOYP7vY= X-Received: by 2002:a05:6214:5c48:b0:6cb:e6fa:4960 with SMTP id 6a1803df08f44-6d18558d9d3mr15856916d6.0.1729896015987; Fri, 25 Oct 2024 15:40:15 -0700 (PDT) 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 References: In-Reply-To: From: Oleg Lelchuk Date: Fri, 25 Oct 2024 18:40:05 -0400 Message-ID: Subject: Re: Problem (re)building graphics/drm-61-kmod via PORTS_MODULES+= To: David Wolfskill , Robert Clausecker , current@freebsd.org, Benjamin Jacobs Content-Type: multipart/alternative; boundary="000000000000880be0062554cd38" X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[current@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f2b:from]; FREEMAIL_ENVFROM(0.00)[gmail.com] X-Rspamd-Queue-Id: 4XZyR4687jz461m X-Spamd-Bar: --- --000000000000880be0062554cd38 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Or maybe the port just insists on building linuxkpi_video: --- video_kmod.o --- cc: error: no such include directory: '/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_1/linuxkpi/dummy= /include' [-Werror,-Wmissing-include-dirs] --- aperture.o --- cc: error: no such include directory: '/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_1/linuxkpi/dummy= /include' [-Werror,-Wmissing-include-dirs] --- hdmi.o --- cc: error: no such include directory: '/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_1/linuxkpi/dummy= /include' [-Werror,-Wmissing-include-dirs] --- aperture.o --- *** [aperture.o] Error code 1 make[1]: stopped making "all" in /usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_1/linuxkpi_video . As I said, this happens even after this problem was supposedly fixed. With the master branch of drm-kmod, I can just skip building linuxkpi_video and everything will be fine. On Fri, Oct 25, 2024 at 6:20=E2=80=AFPM Oleg Lelchuk wrote: > Building either linuxkpi or linuxkpi_video from > https://github.com/freebsd/drm-kmod.git is not necessary if I want > functioning intel graphics, but the port version insists on building thos= e > unnecessary things. > > On Fri, Oct 25, 2024 at 6:10=E2=80=AFPM Oleg Lelchuk > wrote: > >> With clang 19, I can build i1915kms from >> https://github.com/freebsd/drm-kmod.git and I won't encounter any >> issues. However, with the port version of drm-61-kmod, I would still >> encounter an error. I think this happens because the port wants to build >> stuff in the linuxkpi_video directory, but with the master branch of >> github.com/freebsd/drm-kmod.git, I can just skip building linuxkpi_video >> and everything will be fine. This situation was observed after >> https://github.com/freebsd/drm-kmod/commit/5b2279ae2a59b653a3a553a8a8399= e5e89bb2b90 >> commit was added and after >> https://cgit.freebsd.org/ports/commit/?id=3Da247eb9392542aeb11dc6d13778b= 59bb4bce2d19 >> commit was added. >> >> On Fri, Oct 25, 2024 at 6:23=E2=80=AFAM David Wolfskill >> wrote: >> >>> On Fri, Oct 25, 2024 at 09:20:16AM +0200, Robert Clausecker wrote: >>> > Hi David, >>> > ... >>> > The same issue was reported in another thread. Try this workaround: >>> >>> Aye; saw that, tried it, and it works for me (modulo MUA-mangling of >>> whitespace). >>> >>> Here's a representation of what I used: >>> >>> diff --git a/graphics/drm-61-kmod/Makefile >>> b/graphics/drm-61-kmod/Makefile >>> index 6db21111f255..596cdb20d13b 100644 >>> --- a/graphics/drm-61-kmod/Makefile >>> +++ b/graphics/drm-61-kmod/Makefile >>> @@ -49,6 +49,8 @@ PLIST_SUB+=3D I915=3D"@comment " >>> >>> MAKE_ENV+=3D MAKEOBJDIRPREFIX=3D${WRKSRC}/obj >>> >>> +post-patch: >>> + ${MKDIR} ${WRKSRC}/linuxkpi/dummy/include >>> pre-build: >>> ${MKDIR} ${WRKSRC}/obj >>> (cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} obj) >>> >>> >>> >>> Thanks! >>> >>> Peace, >>> david >>> -- >>> David H. Wolfskill david@catwhisker.org >>> It has been said that history repeats itself. This is perhaps not quite >>> correct; it merely rhymes. -- Theodor Reik >>> >>> See https://www.catwhisker.org/~david/publickey.gpg for my public key. >>> >> --000000000000880be0062554cd38 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Or maybe the port just insists on building linuxkpi_video:= --- video_kmod.o ---
cc: error: no such include directory: '/usr/po= rts/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_1/linuxkpi/dummy/include= ' [-Werror,-Wmissing-include-dirs]
--- aperture.o ---
cc: error: = no such include directory: '/usr/ports/graphics/drm-61-kmod/work/drm-km= od-drm_v6.1.92_1/linuxkpi/dummy/include' [-Werror,-Wmissing-include-dir= s]
--- hdmi.o ---
cc: error: no such include directory: '/usr/por= ts/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_1/linuxkpi/dummy/include&= #39; [-Werror,-Wmissing-include-dirs]
--- aperture.o ---
*** [apertur= e.o] Error code 1

make[1]: stopped making "all" in /usr/po= rts/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.92_1/linuxkpi_video . As I = said, this happens even after this problem was supposedly fixed. With the m= aster branch of drm-kmod, I can just skip building linuxkpi_video and every= thing will be fine.

On Fri, Oct 25, 2024 at 6:20=E2=80=AFPM Oleg Lelchuk <= ;oleglelchuk@gmail.com> wro= te:
Building either linuxkpi or linuxkpi_video from https://github.com/freebsd/= drm-kmod.git is not necessary if I want functioning intel graphics, but= the port version insists on building those unnecessary things.

On Fri, Oct = 25, 2024 at 6:10=E2=80=AFPM Oleg Lelchuk <oleglelchuk@gmail.com> wrote:
=

On Fri, Oct 25, 2024 at 09:20:16AM +0200, Robert Clausecker wrote: > Hi David,
> ...
> The same issue was reported in another thread.=C2=A0 Try this workarou= nd:

Aye; saw that, tried it, and it works for me (modulo MUA-mangling of
whitespace).

Here's a representation of what I used:

diff --git a/graphics/drm-61-kmod/Makefile b/graphics/drm-61-kmod/Makefile<= br> index 6db21111f255..596cdb20d13b 100644
--- a/graphics/drm-61-kmod/Makefile
+++ b/graphics/drm-61-kmod/Makefile
@@ -49,6 +49,8 @@ PLIST_SUB+=3D=C2=A0 =C2=A0I915=3D"@comment "
=C2=A0MAKE_ENV+=3D=C2=A0 =C2=A0 =C2=A0MAKEOBJDIRPREFIX=3D${WRKSRC}/obj

+post-patch:
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0${MKDIR} ${WRKSRC}/= linuxkpi/dummy/include
=C2=A0pre-build:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ${MKDIR} ${WRKSRC}/= obj
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (cd ${WRKSRC} ; ${S= ETENV} ${MAKE_ENV} ${MAKE_CMD} obj)



Thanks!

Peace,
david
--
David H. Wolfskill=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 david@catwhisker.org
It has been said that history repeats itself. This is perhaps not quite
correct; it merely rhymes. -- Theodor Reik

See https://www.catwhisker.org/~david/publickey.gpg for my public key.
--000000000000880be0062554cd38--