Bug 295895 - multimedia/handbrake: fix 1.11.1 build
Summary: multimedia/handbrake: fix 1.11.1 build
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-06 15:07 UTC by Kevin Reinholz
Modified: 2026-06-07 02:00 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (naito.yuichiro)


Attachments
patch to bump libbluray module version, resolving fetch error (2.24 KB, patch)
2026-06-06 15:07 UTC, Kevin Reinholz
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Reinholz 2026-06-06 15:07:42 UTC
Created attachment 271553 [details]
patch to bump libbluray module version, resolving fetch error

Tried building latest multimedia/handbrake but fails due to a fetch error with bundled libbluray module:

=>> Building multimedia/handbrake
build started at 2026-06-06T06:50:27-07:00
port directory: /usr/ports/multimedia/handbrake
package name: handbrake-1.11.1
building for: FreeBSD 150amd64-default-job-01 15.0-RELEASE-p9 FreeBSD 15.0-RELEASE-p9 amd64
maintained by: naito.yuichiro@gmail.com
port version: 1.11.1
port revision: 0
Makefile datestamp: May  5 15:46:22 2026
Ports top last git commit: 226b23044ee7ea8141309e217f14c14c7c3fe02b
Ports top unclean checkout: no
=>> Inspecting /poudriere/data/.m/150amd64-default/ref//usr/ports/multimedia/handbrake for modifications to git checkout... no
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.99.20260425
Host OSVERSION: 1501500
Jail OSVERSION: 1500068
Builder Id: 01
Builder jail path: /poudriere/data/.m/150amd64-default/01
Ref jail path: /poudriere/data/.m/150amd64-default/ref
Job Idx: 6
Jail Id (no networking)  : 5
Jail Name (no networking): 150amd64-default-job-01
Jail Id (networking)     : 6
Jail Name (networking)   : 150amd64-default-job-01-n

---Begin Environment---
SHELL=/bin/sh
OSVERSION=1500068
UNAME_v=FreeBSD 15.0-RELEASE-p9
UNAME_r=15.0-RELEASE-p9
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
POUDRIERE_VERSION=3.4.99.20260425
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=xterm
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/poudriere/data/.m/150amd64-default/01/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=150amd64-default
OLDPWD=/poudriere/data/.m/150amd64-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.99.20260425
PREFIX=/usr/local
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for handbrake-1.11.1:
     FDK_AAC=on: Enable non-free Fraunhofer FDK AAC codec
     VPL=on: Intel oneVPL (aka Quick Sync Video)
     X11=on: Build GTK 3 based GUI program
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
naito.yuichiro@gmail.com
--End MAINTAINER--

--PORTVERSION--
1.11.1
--End PORTVERSION--

--PORTREVISION--
0
--End PORTREVISION--

--CONFIGURE_ARGS--
--force --enable-x265 --enable-fdk-aac --enable-qsv --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
COMPILER_PATH=/usr/local/bin MAKE=/usr/local/bin/gmake PKG_CONFIG=pkgconf PYTHON="/usr/local/bin/python3.11" XDG_DATA_HOME=/wrkdirs/usr/ports/multimedia/handbrake/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/multimedia/handbrake/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/multimedia/handbrake/work/.cache  HOME=/wrkdirs/usr/ports/multimedia/handbrake/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/multimedia/handbrake/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/multimedia/handbrake/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh DEFAULT_AUTOCONF=2.73 CMAKE_PREFIX_PATH="/usr/local" CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=524288
--End CONFIGURE_ENV--

--MAKE_ENV--
V=1 ACLOCAL=/usr/local/bin/aclocal COMPILER_PATH=/usr/local/bin NINJA_STATUS="[%p %s/%t] " XDG_DATA_HOME=/wrkdirs/usr/ports/multimedia/handbrake/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/multimedia/handbrake/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/multimedia/handbrake/work/.cache  HOME=/wrkdirs/usr/ports/multimedia/handbrake/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/multimedia/handbrake/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/multimedia/handbrake/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES DEFAULT_AUTOCONF=2.73 PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-DLIBICONV_PLUG -isystem /usr/local/include"  LDFLAGS=" -L/wrkdirs/usr/ports/multimedia/handbrake/work/HandBrake-1.11.1/build/contrib/lib -L/usr/local/lib " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -DLIBICONV_PLUG -isystem /usr/local/include " BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
FDK_AAC="" NO_FDK_AAC="@comment " VPL="" NO_VPL="@comment " X11="" NO_X11="@comment " PYTHON_INCLUDEDIR=include/python3.11  PYTHON_LIBDIR=lib/python3.11  PYTHON_PLATFORM=freebsd15  PYTHON_SITELIBDIR=lib/python3.11/site-packages  PYTHON_SUFFIX=311  PYTHON_BASESUFFIX=311  PYTHON_TAG=.cpython-311  PYTHON_SOABI=.cpython-311  PYTHON_VER=3.11  PYTHON_BASEVER=3.11  PYTHON_VERSION=python3.11 PYTHON2="@comment " PYTHON3="" GTK2_VERSION="2.10.0"  GTK3_VERSION="3.0.0"  GTK4_VERSION="4.0.0" OSREL=15.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/handbrake"  EXAMPLESDIR="share/examples/handbrake"  DATADIR="share/handbrake"  WWWDIR="www/handbrake"  ETCDIR="etc/handbrake"
--End PLIST_SUB--

--SUB_LIST--
FDK_AAC="" NO_FDK_AAC="@comment " VPL="" NO_VPL="@comment " X11="" NO_X11="@comment " PYTHON_INCLUDEDIR=/usr/local/include/python3.11  PYTHON_LIBDIR=/usr/local/lib/python3.11  PYTHON_PLATFORM=freebsd15  PYTHON_SITELIBDIR=/usr/local/lib/python3.11/site-packages  PYTHON_SUFFIX=311  PYTHON_BASESUFFIX=311  PYTHON_TAG=.cpython-311  PYTHON_SOABI=.cpython-311  PYTHON_VER=3.11  PYTHON_BASEVER=3.11  PYTHON_VERSION=python3.11 PYTHON2="@comment " PYTHON3="" PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/handbrake DOCSDIR=/usr/local/share/doc/handbrake EXAMPLESDIR=/usr/local/share/examples/handbrake  WWWDIR=/usr/local/www/handbrake ETCDIR=/usr/local/etc/handbrake
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
OVERLAYS+=/overlays/custom_ports
FORCE_PACKAGE=yes
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
#### /usr/local/etc/poudriere.d/make.conf ####
.if ${.CURDIR:M*/emulators/pcsx2*}
 CPUTYPE=haswell
.endif

.if ${.CURDIR:M*/graphics/gthumb}
 OPTIONS_EXCLUDE+=      BRASERO CLUTTER WEBSERVICES YELP
.endif

.if ${.CURDIR:M*/x11-toolkits/wxgtk*}
 OPTIONS_EXCLUDE+=      WEBKIT
.endif

.if ${.CURDIR:M*/x11-wm/lxqt-panel}
 OPTIONS_FILE_SET+=	CPULOAD MOUNT
.endif

.if ${.CURDIR:M*/multimedia/handbrake}
 OPTIONS_FILE_SET+=	FDK_AAC
.endif

.if ${.CURDIR:M*/sysutils/vm-bhyve}
 OPTIONS_FILE_SET+=	BHYVE_FIRMWARE
.endif

.if ${.CURDIR:M*/x11-wm/openbox}
 OPTIONS_FILE_SET+=	PATCHES
.endif
WITH_CCACHE_BUILD=yes
CCACHE_DIR=/root/.ccache
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  63666
open files                      (-n)  8192
virtual mem size        (kbytes, -v)  8388608
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
pipebuf                         (-y)  unlimited
--End resource limits--
times start [shell] (user/sys/real): 0m0.000s 0m0.012s 4m29.000s
times start [child] (user/sys/real): 0m0.081s 0m0.113s 4m29.000s
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License GPLv2 FDK_AAC FDK_AAC accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   handbrake-1.11.1 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-2.7.5.pkg
[150amd64-default-job-01] Installing pkg-2.7.5...
[150amd64-default-job-01] Extracting pkg-2.7.5: .......... done
===>   handbrake-1.11.1 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of handbrake-1.11.1
===========================================================================
=======================<phase: fetch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: fetch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License GPLv2 FDK_AAC FDK_AAC accepted by the user
=> HandBrake-1.11.1-source.tar.bz2 doesn't seem to exist in /portdistfiles/handbrake.
=> Attempting to fetch https://github.com/HandBrake/HandBrake/releases/download/1.11.1/HandBrake-1.11.1-source.tar.bz2
HandBrake-1.11.1-source.tar.bz2                         11 MB   25 MBps    00s
=> SVT-AV1-v4.0.1.tar.gz doesn't seem to exist in /portdistfiles/handbrake.
=> Attempting to fetch https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/SVT-AV1-v4.0.1.tar.gz
fetch: https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/SVT-AV1-v4.0.1.tar.gz: Not Found
=> Attempting to fetch https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs2/SVT-AV1-v4.0.1.tar.gz
SVT-AV1-v4.0.1.tar.gz                                   10 MB   18 MBps    01s
=> fdk-aac-2.0.3.tar.gz doesn't seem to exist in /portdistfiles/handbrake.
=> Attempting to fetch https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/fdk-aac-2.0.3.tar.gz
fdk-aac-2.0.3.tar.gz                                  2459 kB   15 MBps    01s
=> ffmpeg-8.0.1.tar.bz2 doesn't seem to exist in /portdistfiles/handbrake.
=> Attempting to fetch https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/ffmpeg-8.0.1.tar.bz2
fetch: https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/ffmpeg-8.0.1.tar.bz2: Not Found
=> Attempting to fetch https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs2/ffmpeg-8.0.1.tar.bz2
ffmpeg-8.0.1.tar.bz2                                    13 MB   26 MBps    00s
=> libbluray-1.4.0.tar.xz doesn't seem to exist in /portdistfiles/handbrake.
=> Attempting to fetch https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/libbluray-1.4.0.tar.xz
fetch: https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/libbluray-1.4.0.tar.xz: Not Found
=> Attempting to fetch https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs2/libbluray-1.4.0.tar.xz
fetch: https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs2/libbluray-1.4.0.tar.xz: Address family for host not supported
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/handbrake/libbluray-1.4.0.tar.xz
fetch: http://distcache.FreeBSD.org/ports-distfiles/handbrake/libbluray-1.4.0.tar.xz: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /portdistfiles/handbrake and try again.
*** Error code 1

Stop.
make: stopped making "fetch" in /usr/ports/multimedia/handbrake
=>> Cleaning up wrkdir
===>  Cleaning for handbrake-1.11.1
build of multimedia/handbrake | handbrake-1.11.1 ended at 2026-06-06T06:50:52-07:00
build time: 00:02:47
times end [shell] (user/sys/real): 0m0.011s 0m0.012s 2m47.000s
times end [child] (user/sys/real): 0m0.841s 0m0.357s 2m47.000s
!!! build failure encountered !!!


Upstream bumped the version on 22 March 2026 (same day version 1.11.1 was released) with the following commit:

https://github.com/HandBrake/HandBrake/commit/ef691ecb21cf0db664169e85f9cafcf0c01430bd

Updated the port to use this version, after which it builds cleanly:

=======================<phase: package        >============================
===== env: 'PKG_NOTES=ports_top_git_hash ports_top_checkout_unclean port_checkout_unclean' 'PKG_NOTE_ports_top_git_hash=226b23044ee7ea8141309e217f14c14c7c3fe02b' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_checkout_unclean=no' NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building packages for handbrake-1.11.1
===>   Building handbrake-1.11.1
pkg-static: duplicate file listing: /usr/local/share/licenses/handbrake-1.11.1/FDK_AAC, ignoring
===========================================================================
=>> Cleaning up wrkdir
===>  Cleaning for handbrake-1.11.1
build of multimedia/handbrake | handbrake-1.11.1 ended at 2026-06-06T07:58:05-07:00
build time: 00:08:02
times end [shell] (user/sys/real): 0m0.011s 0m0.021s 8m2.000s
times end [child] (user/sys/real): 32m23.497s 0m54.309s 8m2.000s
Comment 1 Yuichiro NAITO 2026-06-07 01:34:28 UTC
Thanks for reporting the issue.
I see that libblueray-1.4.0 can be found on the following URL.

* https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs2/libbluray-1.4.0.tar.xz

Please note the 2 types of GitHub URLs: '/contrib' and '/contrib2'.
Libblueray-1.4.0 is in '/contrib2'. 

In your build log, the download failed with 'Address family for host not supported'. I think this means that the inet address family is not supported. GitHub.com is served via IPv4 only.
Could you check your network environment and try building the HandBrake port again?

```
fetch: https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs2/libbluray-1.4.0.tar.xz: Address family for host not supported
```

The following commit upgrades libbluray to 1.4.1 on the master branch. It isn't included in the HandBrake 1.11.1 release. I'll bump the libbluray version in the future release.

https://github.com/HandBrake/HandBrake/commit/ef691ecb21cf0db664169e85f9cafcf0c01430bd
Comment 2 Kevin Reinholz 2026-06-07 02:00:11 UTC
(In reply to Yuichiro NAITO from comment #1)

I just retried a fresh poudriere build of handbrake-1.11.1 from default ports without my overlay, and it fetched the libbluray 1.4.0 module without issue. At this point my guess is an unlucky hiccup with my Internet connectivity was to blame. Odd because this was just one of a number of packages that were part of a bulk build, and the only failure. But with no changes to my configuration, it fetches fine now.

Sorry for the noise!