From nobody Fri Apr 24 11:41:00 2026 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4g29yg4Xjqz6b6DH for ; Fri, 24 Apr 2026 11:41:15 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from smtp6.goneo.de (smtp6.goneo.de [85.220.129.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4g29yf4ykPz3m5v for ; Fri, 24 Apr 2026 11:41:14 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=walstatt-de.de header.s=DKIM001 header.b=fl9nPie4; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@walstatt-de.de designates 85.220.129.31 as permitted sender) smtp.mailfrom=freebsd@walstatt-de.de Received: from hub1.goneo.de (hub1.goneo.de [IPv6:2001:1640:5::8:52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp6.goneo.de (Postfix) with ESMTPS id 920F4240AE7 for ; Fri, 24 Apr 2026 13:41:12 +0200 (CEST) Received: from hub1.goneo.de (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by hub1.goneo.de (Postfix) with ESMTPS id 5A6EC2405B9 for ; Fri, 24 Apr 2026 13:41:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1777030870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=L0ZEvwD87erMY6vyxbgs9TnNYW7e0q1eLqA8JdFHuW8=; b=fl9nPie4gcKXM2bCJFzSwXrNesPEL3cMMym2C3fKuqrREOyXsgimcZjfPCzYcM4060hn/a GA4hbMaMd40/SEZxY88A2I0JdeQCDsdHy+veJ5mSsASxFJB3Xs6Sln1VGXMwDAreaXwlUU JXW8dpgQ2mCePamtb+KbEWxMfRVNNaFML2h0blS14xQxwz+kHvxtidMJypOV/DibNYTkJC e3V+Jo/skPadX3kyYOPCbGkmaot6kZOb3q3BMJqFi1faWqq4RETGsUgfkvxqXty9DupAis hAEgVhgLOcbm93MqM8LKNAZZ7ZYabi+R9EI3qmekoKx0cVmGzQH0HI8xnoq5OQ== Received: from freyja (p4fc0ad48.dip0.t-ipconnect.de [79.192.173.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hub1.goneo.de (Postfix) with ESMTPSA id 0498824035A for ; Fri, 24 Apr 2026 13:41:09 +0200 (CEST) Date: Fri, 24 Apr 2026 13:41:00 +0200 From: FreeBSD User To: freebsd-current@freebsd.org Subject: pkgbase: build KERNEL with WITH_MODULES=... failure: chroot: /bin/sh: No such file or directory Message-ID: <20260424134100.31102612@freyja> Organization: Heimstatt X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; amd64-portbld-freebsd15.0) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-UID: 765f93 X-Rspamd-UID: c92b0d X-Spamd-Result: default: False [-3.10 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; R_DKIM_ALLOW(-0.20)[walstatt-de.de:s=DKIM001]; R_SPF_ALLOW(-0.20)[+ip4:85.220.129.0/25]; RCVD_IN_DNSWL_LOW(-0.10)[85.220.129.31:from]; MIME_GOOD(-0.10)[text/plain]; HAS_ORG_HEADER(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:25394, ipnet:85.220.128.0/17, country:DE]; RCVD_TLS_ALL(0.00)[]; DMARC_NA(0.00)[walstatt-de.de]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[85.220.129.31:from]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[walstatt-de.de:+] X-Rspamd-Queue-Id: 4g29yf4ykPz3m5v X-Spamd-Bar: --- Building for 15-STABLE kernel packages (aka pkgbase) without any additional modules works fine, but as it is with the traditional (working) way with a locally populated /usr/src and /usr/ports setting appropriate variables in /etc/src.conf, i.e. WITH_MODULES=... preventing prerequisite drm modules to be in sync, this specific intention doesn't seem to work with pkgbase. While hosting several flavors/versions of FreeBSD (15.0-RELENG, 15-STABLE, CURRENT), source trees are at different places in the tree. I do not wish to populate this mail with all the details, I'd like to state, that building kernel packages without involving the ports tree works fine, and doesn't the moment WITH_MODULES= is involved. I use a custom make.conf with the lines PORTSDIR= DISTDIR= WRKDIRPREFIX=/tmp PORTSDIR points to a poudriere populated directory, up to date, working. DISTDIR to the appropriate folder holding all tarballs necessary. Something is missing I couldn't find in the docs I've read. I'm hit with the error shown below, x11/nvidia-driver is the first module in the list of modules: PORTS_MODULES+= x11/nvidia-driver PORTS_MODULES+= graphics/libdrm PORTS_MODULES+= graphics/drm-kmod PORTS_MODULES+= graphics/drm-latest-kmod PORTS_MODULES+= graphics/drm-66-kmod PORTS_MODULES+= graphics/drm-61-kmod PORTS_MODULES+= graphics/drm-515-kmod PORTS_MODULES+= graphics/drm-510-kmod PORTS_MODULES+= graphics/drm-kmod PORTS_MODULES+= sysutils/cpu-microcode PORTS_MODULES+= sysutils/cpu-microcode-rc PORTS_MODULES+= sysutils/cpu-microcode-amd PORTS_MODULES+= sysutils/cpu-microcode-intel [...] ===> Ports module x11/nvidia-driver (install) port=x11/nvidia-driver; flavor=${port#*@}; port=${port%@*}; flavor=${flavor%${port}}; cd /pool/poudriere/ports/head/${port}; env -u CC -u CXX -u CPP -u MAKESYSPATH -u MK_AUTO_OBJ -u MAKEOBJDIR MAKEFLAGS="-D NO_ROOT -D NO_ROOT DESTDIR=/pool/sources/15-STABLE/obj/pool/sources/15-STABLE/src/amd64.amd64/kernelstage/./kernel.GENERIC DISTBASE=/kernel.GENERIC DISTDIR=. KERNCONF=GENERIC\ GENERIC KERNCONFDIR=/usr/local/etc/config/15-STABLE/amd64/kernel_conf/ KERNEL=kernel.GENERIC METALOG=/pool/sources/15-STABLE/obj/pool/sources/15-STABLE/src/amd64.amd64/kernelstage/./kernel.GENERIC.premeta NO_INSTALLEXTRAKERNELS=NO NO_INSTALLKERNEL=NO PKG_VERSION=15.snap20260424103857 TARGET=amd64 TARGET_ARCH=amd64" SYSDIR=/pool/sources/15-STABLE/src/sys PATH=/pool/sources/15-STABLE/obj/pool/sources/15-STABLE/src/amd64.amd64/tmp/bin:/pool/sources/15-STABLE/obj/pool/sources/15-STABLE/src/amd64.amd64/tmp/usr/sbin:/pool/sources/15-STABLE/obj/pool/sources/15-STABLE/src/amd64.amd64/tmp/usr/bin:/pool/sources/15-STABLE/obj/pool/sources/15-STABLE/src/amd64.amd64/tmp/legacy/usr/sbin:/pool/sources/15-STABLE/obj/pool/sources/15-STABLE/src/amd64.amd64/tmp/legacy/usr/bin:/pool/sources/15-STABLE/obj/pool/sources/15-STABLE/src/amd64.amd64/tmp/legacy/bin:/pool/sources/15-STABLE/obj/pool/sources/15-STABLE/src/amd64.amd64/tmp/legacy/usr/libexec:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin SRC_BASE=/pool/sources/15-STABLE/src OSVERSION=1600015 WRKDIRPREFIX=/tmp/ make -B ${flavor:+FLAVOR=}${flavor} deinstall reinstall /bin/sh: 15.snap20260424103857: not found make[9]: /pool/poudriere/ports/head/Mk/bsd.port.mk:1206: warning: Command "15.snap20260424103857 -t 2.7.4 1.17.2" exited with status 127 ===> Creating some important subdirectories ===> /tmp subdirectory has been successfully created ===> /dev subdirectory has been successfully created ===> Starting chrooted make in /pool/sources/15-STABLE/obj/pool/sources/15-STABLE/src/amd64.amd64/kernelstage/./kernel.GENERIC... chroot: /bin/sh: No such file or directory ===> Chrooted make in /pool/sources/15-STABLE/obj/pool/sources/15-STABLE/src/amd64.amd64/kernelstage/./kernel.GENERIC failed ===> Cleaning up... *** Error code 1