Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Feb 2023 07:56:00 GMT
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 03abf6cd13bd - stable/13 - rescue: Add fetch(1) to the rescue tool.
Message-ID:  <202302120756.31C7u0jl068008@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by delphij:

URL: https://cgit.FreeBSD.org/src/commit/?id=03abf6cd13bdd97c865f5731688cf72931078729

commit 03abf6cd13bdd97c865f5731688cf72931078729
Author:     John Grafton <john.grafton@runbox.com>
AuthorDate: 2023-01-29 23:05:15 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2023-02-12 07:55:02 +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
    Differential Revision:  https://reviews.freebsd.org/D38193
    
    (cherry picked from commit ea34aa4780e5a581732520ea579342af94684882)
    
    rescue: Fix link order of SSL libraries and fetch.
    
    ld.bfd requires libraries to be linked in order.  libssl requires
    libcrypto.  libfetch requires libssl.  To fix the latter, move fetch
    up above tar rather than listing the ssl libraries twice.
    
    Reviewed by:    delphij
    Fixes:          ea34aa4780e5 rescue: Add fetch(1) to the rescue tool.
    Differential Revision:  https://reviews.freebsd.org/D38304
    
    (cherry picked from commit 0f031350f32b8760e0843a6476d67aa21116103b)
---
 rescue/rescue/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile
index b9cc740af645..9830bc5bed5c 100644
--- a/rescue/rescue/Makefile
+++ b/rescue/rescue/Makefile
@@ -198,10 +198,13 @@ CRUNCH_PROGS_usr.bin+= zstd
 CRUNCH_ALIAS_zstd= unzstd zstdcat zstdmt
 CRUNCH_LIBS+=	${LDADD_zstd}
 
+CRUNCH_PROGS_usr.bin+=	fetch
+CRUNCH_LIBS+=	-lfetch
+
 CRUNCH_PROGS_usr.bin+= tar
 CRUNCH_LIBS+= -larchive
 .if ${MK_OPENSSL} != "no"
-CRUNCH_LIBS+= -lcrypto
+CRUNCH_LIBS+= -lssl -lcrypto
 .endif
 CRUNCH_LIBS+= -lmd
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302120756.31C7u0jl068008>