Tuesday, August 11, 2026

go.port.mk vs ${DISTDIR}/go_modules

As found by thfr, der-ascii fails to build if there is no ${DISTDIR}/go_modules on the build machine. ===> Configuring for der-ascii-0.8.0v0 /bin/sh: cd: /usr/ports/distfiles/go_modules - No such file or directory I think go.port.mk should not assume this dir exists. One way to work around this is the below, but perhaps there are better ideas. I have only lightly tested this and will of course run it through a bulk. Index: go.port.mk =================================================================== RCS file: /cvs/ports/lang/go/go.port.mk,v diff -u -p -r1.101 go.port.mk --- go.port.mk 19 Jul 2026 10:06:32 -0000 1.101 +++ go.port.mk 11 Aug 2026 07:31:12 -0000 @@ -129,11 +129,14 @@ WRKSRC ?= ${MODGO_WORKSPACE}/src/${ALL_ MODGO_SETUP_WORKSPACE = mkdir -p ${WRKSRC:H}; mv ${MODGO_SUBDIR} ${WRKSRC}; .else WRKSRC ?= ${WRKDIR}/${MODGO_MODNAME}@${MODGO_VERSION} -MODGO_SETUP_WORKSPACE = ln -sf ${WRKSRC} ${WRKDIR}/${MODGO_MODNAME}; \ +MODGO_SETUP_WORKSPACE = ln -sf ${WRKSRC} ${WRKDIR}/${MODGO_MODNAME} +. if !empty(_MODGO_SETUP) +MODGO_SETUP_WORKSPACE += ; \ cd ${DISTDIR}/${MODGO_DIST_SUBDIR}; \ for m in ${_MODGO_SETUP}; do \ ${INSTALL} -D $$m ${WRKDIR}/${MODGO_DIST_SUBDIR}/$$m; \ done +. endif .endif INSTALL_STRIP =

Re: graphics/opencv: compatibility with ffmpeg 9.0

On Mon Aug 10, 2026 at 12:37:17PM +0200, Kirill A. Korinsky wrote: > Rafael, ports@, > > I'd like to commit a fix for graphics/opencv which switches it away from > deprecated API in ffmpeg which prevents it to build against ffmpeg 9.0 > > Build tested against ffmpeg-9.0 and ffmpeg-8.1.2 Is this from upstream? Please add a comment on top of the patch. Otherwise OK rsadowski > > Ok? > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/graphics/opencv/Makefile,v > diff -u -p -r1.112 Makefile > --- Makefile 22 Jun 2026 17:49:21 -0000 1.112 > +++ Makefile 10 Aug 2026 10:35:18 -0000 > @@ -8,7 +8,7 @@ V = 4.13.0 > GH_ACCOUNT = opencv > GH_PROJECT = opencv > GH_TAGNAME = ${V} > -REVISION-main = 0 > +REVISION-main = 1 > REVISION-java = 0 > > PKGNAME-main = opencv-${V} > Index: patches/patch-modules_videoio_src_cap_ffmpeg_hw_hpp > =================================================================== > RCS file: patches/patch-modules_videoio_src_cap_ffmpeg_hw_hpp > diff -N patches/patch-modules_videoio_src_cap_ffmpeg_hw_hpp > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-modules_videoio_src_cap_ffmpeg_hw_hpp 10 Aug 2026 10:35:18 -0000 > @@ -0,0 +1,36 @@ > +Index: modules/videoio/src/cap_ffmpeg_hw.hpp > +--- modules/videoio/src/cap_ffmpeg_hw.hpp.orig > ++++ modules/videoio/src/cap_ffmpeg_hw.hpp > +@@ -739,7 +739,9 @@ bool hw_check_codec(AVCodec* codec, AVHWDeviceType hw_ > + static > + AVCodec *hw_find_codec(AVCodecID id, AVHWDeviceType hw_type, int (*check_category)(const AVCodec *), const char *disabled_codecs, AVPixelFormat *hw_pix_fmt) { > + AVCodec *c = 0; > ++ const enum AVPixelFormat *pix_fmts; > + void *opaque = 0; > ++ int ret, num_pix_fmts; > + > + while (NULL != (c = (AVCodec*)av_codec_iterate(&opaque))) > + { > +@@ -757,12 +759,16 @@ AVCodec *hw_find_codec(AVCodecID id, AVHWDeviceType hw > +