Re: Problem (re)building graphics/drm-61-kmod via PORTS_MODULES+=
Date: Fri, 25 Oct 2024 22:10:58 UTC
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. >