Re: Problem (re)building graphics/drm-61-kmod via PORTS_MODULES+=
- In reply to: Oleg Lelchuk : "Re: Problem (re)building graphics/drm-61-kmod via PORTS_MODULES+="
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Oct 2024 22:40:05 UTC
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 PM Oleg Lelchuk <oleglelchuk@gmail.com> 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 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. >>> >>