From nobody Fri Oct 25 22:20: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 4XZy022hlnz5bCYy for ; Fri, 25 Oct 2024 22:20:18 +0000 (UTC) (envelope-from oleglelchuk@gmail.com) Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) (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 4XZy010Ycdz443k for ; Fri, 25 Oct 2024 22:20:17 +0000 (UTC) (envelope-from oleglelchuk@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=Y5bBVlt+; spf=pass (mx1.freebsd.org: domain of oleglelchuk@gmail.com designates 2607:f8b0:4864:20::82b as permitted sender) smtp.mailfrom=oleglelchuk@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-460c2418e37so16582911cf.0 for ; Fri, 25 Oct 2024 15:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729894816; x=1730499616; 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=fufCvgOg4bY03gV8pDOB2/zunLiwAn21xB8oRZg/Qns=; b=Y5bBVlt+Y19eQzhghI1JRU4KHmCsecw9dSB4aJ5Pti2kTdLiuAeNTGaNLwk7z1dHfk PkwzpOCTjf2pWOTRPLZnxyTX0My1KWZy8L/VBPxxRiLETgeE+1yeDap6qwFDG087ckKb YMAnHyxb+Y0yT5sQPCSLJYsfs7aLKP1mFbz50z5ge6hU62ztjKxtG3nUyQxaeWwrfFi1 ULjSMXpG+wwGj3rB31FSwfGMRI31/hvJ4g+OvRYrZOy/ov45AFzYHh6j7QzZhvZsI+B+ Gt0WFbUXXbaqrRVJ3Ysut0jE3D8oiqWsNPbcNo0WTwxVdVQ+Ns/AeRVwRuysaoZCcDAg Mskw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729894816; x=1730499616; 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=fufCvgOg4bY03gV8pDOB2/zunLiwAn21xB8oRZg/Qns=; b=t8TjnmUVeX2liZCU8/+i7S991g+lEJU0sL9ASteUOuAQBIW1HI14RIxsph/s4LxSpJ ywV/ZlFXInPAdRNfQ3t6uBOCVdRLwmcmtS5B+DbHkIrc0LBvzboGH0Vkjorx8ZNEiO4b 2mH/NsCZyvdysG9/Qf/glGR8x0CLRLyONF56K4BjcccfBFMEnQIeBMQwDG8JfoDTPS6x hDbeaFVGPmr6JR6uIbj45B/Z0MDeTUtSl3/7zlRu43zKJO4BmRkxSH515Ha0Tg5FVnT4 x3yFT2Mjo6styL6czs27O7Kf6xtfEKKYDO7PNTAoYnwWIaIewFJ1iTEg6qdz9GyyS645 hvvg== X-Forwarded-Encrypted: i=1; AJvYcCXRdQsvAH7WA1qus1ejKXPu6iEabL8/Nss1NVeNp5FCvhuBCQW9hJ33y0eP37bkLtN68yP/GVPK@freebsd.org X-Gm-Message-State: AOJu0YyWmZW79INVCub6vBrsVUYZBtLa7zSyGUXHhT6dfLKvdV/sIgmo Mczlcd0BKSkxRxV1NDlMgtUeG4L5+3qN0uIiOlqal8m26APKBoPK0IhdhXZFiBL1LMSsJLY6Hh4 6aaz2KMQk/OJeVp7WgGyQFS7Jn+4fEMVP44vhkg== X-Google-Smtp-Source: AGHT+IEk7anJJuAVl0thXulm5b8BytU/NkMTdCU0zKVMkCrhyxL3PlJnWqk4qCCCssuVhFTKMguqr9gWKD6b1MuHwbM= X-Received: by 2002:ac8:7c4c:0:b0:461:3293:eb78 with SMTP id d75a77b69052e-4613c1a04aemr9182821cf.58.1729894815829; Fri, 25 Oct 2024 15:20: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:20: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="000000000000ff166b06255485ea" 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::82b:from]; FREEMAIL_ENVFROM(0.00)[gmail.com] X-Rspamd-Queue-Id: 4XZy010Ycdz443k X-Spamd-Bar: --- --000000000000ff166b06255485ea Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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/5b2279ae2a59b653a3a553a8a8399e= 5e89bb2b90 > commit was added and after > https://cgit.freebsd.org/ports/commit/?id=3Da247eb9392542aeb11dc6d13778b5= 9bb4bce2d19 > 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/Makefi= le >> 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. >> > --000000000000ff166b06255485ea Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Building either linuxkpi or linuxkpi_video from https://github.com/freebsd/drm-km= od.git is not necessary if I want functioning intel graphics, but the p= ort version insists on building those unnecessary things.

On Fri, Oct 25, 20= 24 at 6:10=E2=80=AFPM Oleg Lelchuk <oleglelchuk@gmail.com> wrote:
With clang 19, I can build i1915= kms from=C2=A0https://github.com/freebsd/drm-kmod.git and I won't encoun= ter any issues. However, with the port version of drm-61-kmod, I would stil= l encounter an error. I think=C2=A0this happens because the port wants to b= uild stuff in the linuxkpi_video directory, but with the master branch of <= a href=3D"http://github.com/freebsd/drm-kmod.git" target=3D"_blank">github.= com/freebsd/drm-kmod.git, I can just skip building linuxkpi_video and e= verything will be fine. This situation was observed after=C2=A0https://github.com/freebsd/drm-kmod/commit/5b227= 9ae2a59b653a3a553a8a8399e5e89bb2b90 commit was added and after=C2=A0https://cgit.freebsd.org/ports/commit/= ?id=3Da247eb9392542aeb11dc6d13778b59bb4bce2d19 commit was added.
<= br>
On Fri,= Oct 25, 2024 at 6:23=E2=80=AFAM David Wolfskill <david@catwhisker.org> wrote:
=
On Fri, Oct 25, 202= 4 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.
--000000000000ff166b06255485ea--