From nobody Wed Sep 28 09:19:21 2022 X-Original-To: freebsd-hackers@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 4McrY96y5sz4d7FX for ; Wed, 28 Sep 2022 09:19:41 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 4McrY81sLdz44rX for ; Wed, 28 Sep 2022 09:19:40 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from kalamity.joker.local (123-1-88-210.area1b.commufa.jp [123.1.88.210]) (authenticated bits=0) by www121.sakura.ne.jp (8.16.1/8.16.1/[SAKURA-WEB]/20201212) with ESMTPA id 28S9JLqM076069; Wed, 28 Sep 2022 18:19:22 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Wed, 28 Sep 2022 18:19:21 +0900 From: Tomoaki AOKI To: void Cc: freebsd-hackers@freebsd.org Subject: Re: poudriere cannot build 12.3R jail on a 13-stable system - cp: [vdso]: No such file or directory Message-Id: <20220928181921.6b43d82ffc7ba765b8d19303@dec.sakura.ne.jp> In-Reply-To: References: <26824204-ea59-4233-8bc7-d88ccbf75637@www.fastmail.com> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Wed__28_Sep_2022_18_19_21_+0900_zqdI_OeJNY_mw=Yc" X-Rspamd-Queue-Id: 4McrY81sLdz44rX X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of junchoon@dec.sakura.ne.jp has no SPF policy when checking 153.125.133.21) smtp.mailfrom=junchoon@dec.sakura.ne.jp X-Spamd-Result: default: False [-1.60 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain,text/x-diff]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; FREEMAIL_TO(0.00)[f-m.fm]; MIME_TRACE(0.00)[0:+,1:+,2:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; HAS_ORG_HEADER(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[sakura.ne.jp]; HAS_ATTACHMENT(0.00)[]; R_SPF_NA(0.00)[no SPF record]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --Multipart=_Wed__28_Sep_2022_18_19_21_+0900_zqdI_OeJNY_mw=Yc Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 28 Sep 2022 03:32:11 +0100 void wrote: > On Tue, 27 Sep 2022, at 15:49, void wrote: > > On Tue, 27 Sep 2022, at 02:29, void wrote: > > > >> The same host creates 13.1R and 13-stable systems fine. I have not yet > >> tried making a 12.2R or a 12-stable system yet. > > > > 12-stable poudriere jail builds correctly > > 12.2 fails at the same place. > > Tried to build 12.3R poudriere with locally patched (from the review mentioned in https://lists.freebsd.org/archives/freebsd-current/2022-April/001737.html ) not really expecting it to patch as here trying to build a 12.3R jail whereas the context > of the patch is addressing the same issue for building 13-stable on -current > > # cd /tmp > # git clone ssh://anongit@git.freebsd.org/src.git > # cd src > # git checkout releng/12.3 > # wget https://reviews.freebsd.org/file/data/3pwqyimbgzwstgvcmkos/PHID-FILE-xj5gncvnwh542umtjq7s/D34734.diff > # patch < D34734.diff > > The patch fails to apply when the sources are checked out to 12.3 > > Hmm... Looks like a unified diff to me... > The text leading up to this was: > -------------------------- > |diff --git a/Makefile.inc1 b/Makefile.inc1 > |--- a/Makefile.inc1 > |+++ b/Makefile.inc1 > -------------------------- > Patching file Makefile.inc1 using Plan A... > Hunk #1 failed at 1368. > 1 out of 1 hunks failed--saving rejects to Makefile.inc1.rej > Hmm... Ignoring the trailing garbage. > done I'm not a user of poudriere, but looking into the patch you mentioned and src of releng/12.3, it shouldn't apply as is. The conditional at the top of the patch only appears on releng/13.0 and later only. (Seems to be introduced at r364760 on SVN era. [1]) Modifying the patch manually to be "just applicable" is quite easy, but not sure the patch works as intended without the conditional. Attaching modified patch but I cannot assure it builds/works. An advice for the future: For diffs on phablicator, use "-p1" option for patch. This time, the target file is at current directory, so it is OK, but if any of the targets are in subdirectories, the patch SHOULDN'T apply without the option. And try with option "-C" first to check whether it can be applicable or not. BTW, annotate view on svnweb was quite useful on the situation like this (Want to check when the code was introduced). But I cannot find equivalent functionality on cgit. :-( [1] https://svnweb.freebsd.org/base/head/Makefile.inc1?r1=364759&r2=364760& -- Tomoaki AOKI --Multipart=_Wed__28_Sep_2022_18_19_21_+0900_zqdI_OeJNY_mw=Yc Content-Type: text/x-diff; name="D34734-12.x.diff" Content-Disposition: attachment; filename="D34734-12.x.diff" Content-Transfer-Encoding: 7bit diff --git a/Makefile.inc1 b/Makefile.inc1 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1366,6 +1366,10 @@ done); \ libs=$$(ldd -f "%o %p\n" -f "%o %p\n" $$progs 2>/dev/null | sort -u | \ while read line; do \ + case $$line in \ + "["*"]") \ + continue;; \ + esac; \ set -- $$line; \ if [ "$$2 $$3" != "not found" ]; then \ echo $$2; \ --Multipart=_Wed__28_Sep_2022_18_19_21_+0900_zqdI_OeJNY_mw=Yc--