From nobody Fri Sep 06 18:35:28 2024 X-Original-To: dev-commits-src-all@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 4X0lKF2Rjgz5VSG4; Fri, 06 Sep 2024 18:35:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X0lKF10hGz4WK4; Fri, 6 Sep 2024 18:35:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725647729; 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=9hlYznCwqeGiKqUQ8Z0xvQHyaNgLbye0aaAdzmrTqfY=; b=oe5ea/mJ7GIjQOrcNxQDpzwrqmG6y12QyuT88ZVK6eNKJpvRUM4Wohtv//qdybjqOQWZoI ePP+yQZY5IiKcIReGWM5daMycVNRGVg62vWlljRdMZLcKAOSZBXwnR0p58MODu1c6bwgnt OFT5mALtHTMl6OcpeDYsjQf+iSGk8iQhySfNPFF0bzyPz8JH2+GEVtTR4WHO/3cHHf9ZTG sozaWTXm9mxa0TL1iH5TmLG+2d6/XDqwimgZPke66tsbqvKL4jEFDAzN99XlzqzAUbIOSC JFdIp3knvrUqVlWh+MZjk8g9kOGBNzxYvdMwO6zfmKT5fx8QkjR5ZEP2I4VorA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725647729; a=rsa-sha256; cv=none; b=XKT/aIZLoD/P8Ju7YeG82taY3yrUe+i4kAitdF0Z7EpmbvPQybDVJNyr9kUC+G3y/0s1uD QL6yhzgtRLofK4NVpNw4cq0POKJ4QYFKG5W7vLxDnjCcPYNCNWdnDWXxVyOROK2ZHwTwu4 pyxf/ButO/HeZAABxcbFhxPmaNwQKsfIflTSvDnDM8KfFanG6cUDATrwxHAV1X1vY0damj +xrIv2wy1/B9aXQUz0RR+7+2Jr84c8cdKump/HTxK3kopgjKQI7kxXVWs7+eLhVM3oXMfu 7XbeoS47vApmt4Vckw9lOQC9oClptzUUryxPn39Zug8eIckdNvwULUWeJwJgLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725647729; 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=9hlYznCwqeGiKqUQ8Z0xvQHyaNgLbye0aaAdzmrTqfY=; b=FhKtFRARcZnrlNwo6goKzCUinDqCRgKojl+Kc+qPGtZH5Z9pwEGpwrvuie/Y7Filf5CUpd ndmsaAPS+ClSM3fd/Ky2U5mb0M4KckL18UlJefZ3Cct1eifr26QT6e0Eii5yLs4jWPe/5H wNvZ6uQHbbZFZF+pkbgyRx90mMp41eLxyAKY/35G6qUtNpe3b2KRp8YquaXDZNpCv+ORnr a20KCXjNiES0dhfbtUrBExu4C5VQ4B+zafmBsvQbgGI+tL+1nEdduyAwRZc7LqQBmf/0Qm l6+Q2s+EMoht+Wmm31wy6PLITe5kA6REwi6Fod7wlnCA/jMOrPzkuqzVeXmV3g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X0lKF0chsz12c1; Fri, 6 Sep 2024 18:35:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 486IZSYj011519; Fri, 6 Sep 2024 18:35:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 486IZSvc011516; Fri, 6 Sep 2024 18:35:28 GMT (envelope-from git) Date: Fri, 6 Sep 2024 18:35:28 GMT Message-Id: <202409061835.486IZSvc011516@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 7b9c9f8004b1 - main - cross-build: fix fake_sysctl/tzsetup List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7b9c9f8004b17cda071537c9b2fdd259eec27d2a Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=7b9c9f8004b17cda071537c9b2fdd259eec27d2a commit 7b9c9f8004b17cda071537c9b2fdd259eec27d2a Author: Val Packett AuthorDate: 2024-08-11 02:11:25 +0000 Commit: Warner Losh CommitDate: 2024-09-06 18:34:32 +0000 cross-build: fix fake_sysctl/tzsetup The error was always returned, even after handling the sysctl, breaking installworld under Linux. Sponsored by: https://www.patreon.com/valpackett Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1376 --- tools/build/cross-build/fake_sysctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/build/cross-build/fake_sysctl.c b/tools/build/cross-build/fake_sysctl.c index 4f1b271f3858..c4e40ebb9e72 100644 --- a/tools/build/cross-build/fake_sysctl.c +++ b/tools/build/cross-build/fake_sysctl.c @@ -53,6 +53,7 @@ __freebsd_sysctlbyname(const char *name, void *oldp, size_t *oldlenp, errx(EX_USAGE, "kern.vm_guest is read-only"); strlcpy(oldp, "none", *oldlenp); *oldlenp = strlen("none"); + return (0); } errx(EX_USAGE, "fatal: unknown sysctl %s\n", name); }