Date: Fri, 25 Oct 2024 18:20:05 -0400 From: Oleg Lelchuk <oleglelchuk@gmail.com> To: David Wolfskill <david@catwhisker.org>, Robert Clausecker <fuz@fuz.su>, current@freebsd.org, Benjamin Jacobs <freebsd@dev.thsi.be> Subject: Re: Problem (re)building graphics/drm-61-kmod via PORTS_MODULES+= Message-ID: <CA%2BGqWgvGKg8h1=zJbGOCDFN3jEfVisqAxtgLqt6ghH_DKuYBbA@mail.gmail.com> In-Reply-To: <CA%2BGqWgsg-es%2BwQNjb3Bu%2BJw2ZXR=Le_q2OKYfSMr64ajihD2zg@mail.gmail.com> References: <ZxqUjjK22lEkVfqf@albert.catwhisker.org> <ZxtGsD3myX75YVmX@fuz.su> <ZxtxY-BLzsRRpof8@albert.catwhisker.org> <CA%2BGqWgsg-es%2BwQNjb3Bu%2BJw2ZXR=Le_q2OKYfSMr64ajihD2zg@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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 PM Oleg Lelchuk <oleglelchuk@gmail.com> 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/5b2279ae2a59b653a3a553a8a8399e5e89bb2b90 > commit was added and after > https://cgit.freebsd.org/ports/commit/?id=a247eb9392542aeb11dc6d13778b59bb4bce2d19 > commit was added. > > On Fri, Oct 25, 2024 at 6:23 AM David Wolfskill <david@catwhisker.org> > 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+= 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) >> >> >> >> 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. >> > [-- Attachment #2 --] <div dir="ltr">Building either linuxkpi or linuxkpi_video from <a href="https://github.com/freebsd/drm-kmod.git">https://github.com/freebsd/drm-kmod.git</a> is not necessary if I want functioning intel graphics, but the port version insists on building those unnecessary things.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 25, 2024 at 6:10 PM Oleg Lelchuk <<a href="mailto:oleglelchuk@gmail.com">oleglelchuk@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">With clang 19, I can build i1915kms from <a href="https://github.com/freebsd/drm-kmod.git" target="_blank">https://github.com/freebsd/drm-kmod.git</a> 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 <a href="http://github.com/freebsd/drm-kmod.git" target="_blank">github.com/freebsd/drm-kmod.git</a>, I can just skip building linuxkpi_video and everything will be fine. This situation was observed after <a href="https://github.com/freebsd/drm-kmod/commit/5b2279ae2a59b653a3a553a8a8399e5e89bb2b90" target="_blank">https://github.com/freebsd/drm-kmod/commit/5b2279ae2a59b653a3a553a8a8399e5e89bb2b90</a> commit was added and after <a href="https://cgit.freebsd.org/ports/commit/?id=a247eb9392542aeb11dc6d13778b59bb4bce2d19" target="_blank">https://cgit.freebsd.org/ports/commit/?id=a247eb9392542aeb11dc6d13778b59bb4bce2d19</a> commit was added.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 25, 2024 at 6:23 AM David Wolfskill <<a href="mailto:david@catwhisker.org" target="_blank">david@catwhisker.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Oct 25, 2024 at 09:20:16AM +0200, Robert Clausecker wrote:<br> > Hi David,<br> > ... <br> > The same issue was reported in another thread. Try this workaround:<br> <br> Aye; saw that, tried it, and it works for me (modulo MUA-mangling of<br> whitespace).<br> <br> Here's a representation of what I used:<br> <br> diff --git a/graphics/drm-61-kmod/Makefile b/graphics/drm-61-kmod/Makefile<br> index 6db21111f255..596cdb20d13b 100644<br> --- a/graphics/drm-61-kmod/Makefile<br> +++ b/graphics/drm-61-kmod/Makefile<br> @@ -49,6 +49,8 @@ PLIST_SUB+= I915="@comment "<br> <br> MAKE_ENV+= MAKEOBJDIRPREFIX=${WRKSRC}/obj<br> <br> +post-patch:<br> + ${MKDIR} ${WRKSRC}/linuxkpi/dummy/include<br> pre-build:<br> ${MKDIR} ${WRKSRC}/obj<br> (cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} obj)<br> <br> <br> <br> Thanks!<br> <br> Peace,<br> david<br> -- <br> David H. Wolfskill <a href="mailto:david@catwhisker.org" target="_blank">david@catwhisker.org</a><br> It has been said that history repeats itself. This is perhaps not quite<br> correct; it merely rhymes. -- Theodor Reik<br> <br> See <a href="https://www.catwhisker.org/~david/publickey.gpg" rel="noreferrer" target="_blank">https://www.catwhisker.org/~david/publickey.gpg</a> for my public key.<br> </blockquote></div> </blockquote></div>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BGqWgvGKg8h1=zJbGOCDFN3jEfVisqAxtgLqt6ghH_DKuYBbA>
