From nobody Tue Aug 29 19:16:56 2023 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 4RZxxm46Qhz4s67f for ; Tue, 29 Aug 2023 19:17:00 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (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 (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RZxxm0jrRz4WK3 for ; Tue, 29 Aug 2023 19:17:00 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; none Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.17.1/8.15.2) with ESMTPS id 37TJGvEk033204 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 29 Aug 2023 12:16:57 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.17.1/8.15.2/Submit) id 37TJGvNx033203; Tue, 29 Aug 2023 12:16:57 -0700 (PDT) (envelope-from fbsd) Date: Tue, 29 Aug 2023 12:16:56 -0700 From: bob prohaska To: Mark Millard Cc: FreeBSD Mailing List Subject: Re: Bmake bad variable name Message-ID: References: <9B530FC9-ED6B-4B75-A731-D8F7D7586A51.ref@yahoo.com> <9B530FC9-ED6B-4B75-A731-D8F7D7586A51@yahoo.com> 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 Content-Disposition: inline In-Reply-To: <9B530FC9-ED6B-4B75-A731-D8F7D7586A51@yahoo.com> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US] X-Rspamd-Queue-Id: 4RZxxm0jrRz4WK3 On Tue, Aug 29, 2023 at 12:41:04AM -0700, Mark Millard wrote: [huge snip] > One procedure involved might be to run the poudriere command to > delete the jail and then the poudriere command to create the > jail with -v version also explicitly set correctly: > > # man poudriere-jail > . . . > -v version Specify the version of FreeBSD to use in the jail. For > most methods, and by default if no -m is specified, > version should in the form of ???12.0-RELEASE???. If you > are using -m git, or -m svn, then the version should be > in the form of Git or SVN branches, which is usually in > the form of ???stable/9??? or ???main??? for CURRENT from git. > Other methods only use the version value for display. > . . . > > (The delete does not remove everything so context is preserved > across the steps. The jail information kept is rather limited.) > > Make sure the jail sees the right vintage of FreeBSD source code > as well. Deleting the old jail and creating a new one seemed to work: root@nemesis:/usr/local/poudriere # poudriere jail -d -j main -m null -M /usr/local/poudriere/poudriere-system -S /usr/src -v 14.0-CURRENT [00:00:01] Are you sure you want to delete the jail? [y/N] y [00:00:05] Removing main jail... done [00:00:53] Cleaning main data... done Next, root@nemesis:/usr/local/poudriere # poudriere jail -c -j main -m null -M /usr/local/poudriere/poudriere-system -S /usr/src -v 15.0-CURRENT [00:00:00] Recording filesystem state for clean... done [00:00:00] Jail main 15.0-CURRENT arm64.aarch64 is ready to be used Alas, the problem remains: root@nemesis:/usr/local/poudriere # ./chromiumscript & [1] 5879 root@nemesis:/usr/local/poudriere # bmake: "/usr/ports/Mk/bsd.port.mk" line 1213: UNAME_r (15.0-CURRENT) and OSVERSION (1400096) do not agree on major version number. bmake: "/usr/share/mk/sys.mk" line 187: Unknown modifier ":Q" bmake: "/usr/share/mk/sys.mk" line 201: Unknown modifier ":Q" bmake: Fatal errors encountered -- cannot continue eval: bmake:: not found export: bmake:: bad variable name make: "/usr/ports/Mk/bsd.port.mk" line 1213: UNAME_r (15.0-CURRENT) and OSVERSION (1400096) do not agree on major version number. [00:01:29] Error: Error looking up pre-build ports vars Next, I tried removing and re-creating /usr/local/poudriere-system, using notes at http://www.zefox.net/~fbsd/poudriere_on_rpi4 To my surprise, that failed with an error: ... --- realinstall_subdir_lib/libc/tests/stdio --- install -N /usr/src/etc -s -o root -g wheel -m 555 snprintf_test /usr/local/poudriere/poudriere-system/usr/tests/lib/libc/stdio/snprintf_test --- realinstall_subdir_lib/libc/tests/string --- (cd /usr/src/lib/libc/tests/string && DEPENDFILE=.depend.wcscoll_test NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/string/Makefile _RECURSING_PROGS=t PROG=wcscoll_test install) --- realinstall_subdir_lib/libc/tests/stdio --- install: snprintf_test: No such file or directory *** [_proginstall] Error code 71 make[8]: stopped in /usr/src/lib/libc/tests/stdio --- maninstall --- ... Make installworld for the host system ran successfully, which suggests there is an error in my notes. They were prepared somewhat after the fact, so it wouldn't be a huge surprise if a unique initial step got lost. If you could take a look at the steps listed at http://www.zefox.net/~fbsd/poudriere_on_rpi4 it would be much appreciated! Thanks for reading, and all your help! bob prohaska