From nobody Sun Jan 29 23:05:41 2023 X-Original-To: dev-commits-src-main@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 4P4n3T6r42z3cTdx; Sun, 29 Jan 2023 23:05:41 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P4n3T5K14z3x4B; Sun, 29 Jan 2023 23:05:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675033541; 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=ZZNRkc8btgWFarS4atvvBRBgXwh+EBHwyT26WArvkOs=; b=AflM++mVewFhUlgF3b962k9RNntYZH3iuqFEp9V+kmgiWqp9OZbuBx/GX0CrpVs7R2htrn w4qoE4iuo27OAe4HfchUsTbDfVuand3SwAvU2di5LoRvhK6mwi4a2WktlH+vB9CsTknG3C T81AYi2fhZHekxNX8/3TkCEphPaVWoZ3ojQAnVEAHWCpGPDsl4/uUJXnJk9u8BbhdLwYRL /9m3vPACRNRwFJbX7/nJSaym5rmAdPyFc9S563cOafXUrxRAFXiW/tNnxL1TGyePI4oh0g IvnQ1wtvEIk0eP/48aMfLhA4X6cvgkPbi56nIt68WP+Tsg+a/3cobH/oaGG5Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675033541; 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=ZZNRkc8btgWFarS4atvvBRBgXwh+EBHwyT26WArvkOs=; b=UbwOXZ/mFMOHEcAswo5gM+iz2UBhxXOQRF7/Yl5jHMw2aysnVaLbWl31hbeqrj3dABuFKl yZr4uz97xu2x7DgV4Uzsor1ghRmwG0KrlxCm2sNQaxaewAkZSMDNNwioD3WCs29mrU/CuW 1j0b+s/Z9cuA1cynknEjFR9L/8/r34W4VUdko0SyUCzImYYrukqPIEDKC2xY26I1jKIlTp +ghNW8CXuDoT+Mpsyzk9CTC5afVdX1n9FoczrExaa8+Jdzhw+lQiJS5HvVrtfm5e3TdmZV XwSdJEggV+d4/oL1IzJZsnwbwU45kLE/vnPpGt+VFKy7VV9ZImJRdeei8n+nHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675033541; a=rsa-sha256; cv=none; b=qgFqPsQY+QQyK03uFBvbquwGpSxILKeEYDLDeEW7ELuBS8B46T21rdlWysgL861bB6hI8z iP8GQN/NlPYIKFJTkFJ0RBxG3KUJ9AtBRTij/YjNY3RuMXI0k/P7eAljxmhtijoJYiQJry +W0NUY3KeA/W/O7taTUxkptYZsFB/RPC0WEce92P2j1J/wWtKnzzWQIDYy4juI02JfCwWH 5+LMI87UtUSjAJqsyAErtg2GQzfAb4yYaFyRaT/RvmJ5AW6pQebfnM79oSQP8uA1RoY95i yz9Ju39Obi3BWISThYwkudq6mUPe137STAqMk981dTYtECGZy+i7By9WPNKG+g== 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 4P4n3T4R4hzmXb; Sun, 29 Jan 2023 23:05:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30TN5fGB050128; Sun, 29 Jan 2023 23:05:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30TN5f4x050127; Sun, 29 Jan 2023 23:05:41 GMT (envelope-from git) Date: Sun, 29 Jan 2023 23:05:41 GMT Message-Id: <202301292305.30TN5f4x050127@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Xin LI Subject: git: ea34aa4780e5 - main - rescue: Add fetch(1) to the rescue tool. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ea34aa4780e5a581732520ea579342af94684882 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=ea34aa4780e5a581732520ea579342af94684882 commit ea34aa4780e5a581732520ea579342af94684882 Author: John Grafton AuthorDate: 2023-01-29 23:05:15 +0000 Commit: Xin LI CommitDate: 2023-01-29 23:05:15 +0000 rescue: Add fetch(1) to the rescue tool. After a failed upgrade, having fetch(1) on a system that is physically unnreachable would be very useful to download files required to get the OS back up and functional. On my system this adds 589,824 bytes (3.8%) to the binary size. PR: 266224 Reported by: Dan Mahoney MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D38193 --- rescue/rescue/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile index f6ff701f4c54..6093cf6609d1 100644 --- a/rescue/rescue/Makefile +++ b/rescue/rescue/Makefile @@ -215,10 +215,13 @@ CRUNCH_LIBS+= ${LDADD_zstd} CRUNCH_PROGS_usr.bin+= tar CRUNCH_LIBS+= -larchive .if ${MK_OPENSSL} != "no" -CRUNCH_LIBS+= -lcrypto +CRUNCH_LIBS+= -lcrypto -lssl .endif CRUNCH_LIBS+= -lmd +CRUNCH_PROGS_usr.bin+= fetch +CRUNCH_LIBS+= -lfetch + .if ${MK_NETCAT} != "no" CRUNCH_PROGS_usr.bin+= nc .endif