From nobody Mon Jan 24 19:45:11 2022 X-Original-To: freebsd-ports@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 6A2E81988869 for ; Mon, 24 Jan 2022 19:45:13 +0000 (UTC) (envelope-from woozle@woozle.net) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JjL6w3psCz3NsW for ; Mon, 24 Jan 2022 19:45:12 +0000 (UTC) (envelope-from woozle@woozle.net) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.5/8.14.5) with ESMTP id 20OJjBds067786 for ; Mon, 24 Jan 2022 22:45:11 +0300 (MSK) (envelope-from woozle@woozle.net) Date: Mon, 24 Jan 2022 22:45:11 +0300 (MSK) From: Dmitry Morozovsky X-X-Sender: marck@woozle.rinet.ru To: freebsd-ports@FreeBSD.org Subject: sed trouble when UNAME_* is set in jail (fwd) Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (woozle.rinet.ru [0.0.0.0]); Mon, 24 Jan 2022 22:45:11 +0300 (MSK) X-Rspamd-Queue-Id: 4JjL6w3psCz3NsW X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of woozle@woozle.net designates 195.54.192.68 as permitted sender) smtp.mailfrom=woozle@woozle.net X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.54.192.68]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_NA(0.00)[woozle.net]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-ports]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8331, ipnet:195.54.192.0/19, country:RU]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Sorry for resend colleagues, seem to lost my subscription list -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] --------------------------------------------------------------------------- *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- woozle@woozle.net *** --------------------------------------------------------------------------- ---------- Forwarded message ---------- Date: Mon, 24 Jan 2022 22:29:35 From: Dmitry Morozovsky To: bdrewery@FreeBSD.org Cc: freebsd-ports@FreeBSD.org Subject: sed trouble when UNAME_* is set in jail Bryan, colleagues, I understand that building for obsoleted systems is not supported at all, but there are *cases* -- you all know! ;) I have a jail on my build system, nested-built on a previous major; on the case, it's stable/10; for a poudriere, it is defined as null-mounted from the build jail: 10-amd64 stable/10 amd64 null 2022-01-20 13:10:41 /X/j10a for some other reasons, there're definition in login.conf like :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,UNAME_r=10.4-STABLE,UNAME_v=FreeBSD 10.4-STABLE #0:\ however, bulk.sh/common.sh are unhappy with this breaking with sed: 1: "s/,UNAME_r.*:/:/ ; s/:\ ...": bad flag in substitute command: ',' I tracked this down to update_version_env() in common.sh, but then stuck did I miss something trivial? Thank you in advance! -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] --------------------------------------------------------------------------- *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- woozle@woozle.net *** ---------------------------------------------------------------------------