From owner-freebsd-pkgbase@freebsd.org Mon May 25 15:23:23 2020 Return-Path: Delivered-To: freebsd-pkgbase@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5F135329B35 for ; Mon, 25 May 2020 15:23:23 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [174.136.98.114]) (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 "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49W17t1lTDz406d for ; Mon, 25 May 2020 15:23:21 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.159] (cpe-23-243-161-111.socal.res.rr.com [23.243.161.111]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id f580ab6a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 25 May 2020 15:23:20 +0000 (UTC) Subject: Re: Parse Error running make packages To: freebsd-pkgbase@freebsd.org References: <5634b606-fece-58bd-f044-930248bb7a4a@nomadlogic.org> From: Pete Wright Message-ID: Date: Mon, 25 May 2020 08:23:19 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <5634b606-fece-58bd-f044-930248bb7a4a@nomadlogic.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 49W17t1lTDz406d X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 174.136.98.114 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-1.22 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-pkgbase@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.62)[-0.619]; DMARC_NA(0.00)[nomadlogic.org]; NEURAL_SPAM_SHORT(0.04)[0.039]; NEURAL_HAM_MEDIUM(-0.34)[-0.342]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:25795, ipnet:174.136.96.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[23.243.161.111:received] X-BeenThere: freebsd-pkgbase@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Packaging the FreeBSD base system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2020 15:23:23 -0000 On 5/24/20 9:09 AM, Pete Wright wrote: > Hello, > Is the preferred method for building a package base repository still > to run "make packages" after running buildworld and buildkernel?  I am > testing this locally and am running into this error: > > ===> Creating FreeBSD-acct-dbg-13.0.s20200524150532 > pkg -o > ABI_FILE=/usr/obj/usr/home/pete/git/freebsd/amd64.amd64/worldstage/usr/bin/uname > -o ALLOW_BASE_SHLIBS=yes  create -f txz -M > /usr/obj/usr/home/pete/git/freebsd/amd64.am > d64/worldstage/acct-dbg.ucl  -p > /usr/obj/usr/home/pete/git/freebsd/amd64.amd64/worldstage/acct-dbg.plist > -r /usr/obj/usr/home/pete/git/freebsd/amd64.amd64/worldstage  -o /us > r/obj/usr/home/pete/git/freebsd/repo/FreeBSD:13:amd64/13.0.s20200524150532 > > pkg: Error parsing manifest: error while parsing : line: 19, > column: 12 - 'invalid character in a key', character: '%' > *** Error code 1 > > > It looks like it's tripping up on this line in acct-dbg.ucl: > deps: { >     FreeBSD-%PKGDEPS%: { >         origin: "base", >         version: "13.0.s20200524150532" >     } > } > > > specifically the %PKGDEPS%.  I wonder if I'm missing a step in this > process. > > To close the loop on this for the mail archives. I had a some old .ucl files under /release/packages/ that were not being processed correctly by /release/packages/generate-ucl.sh. removing these files allowed me to successfully build package.  I suspect I previously built with packagebase in this tree before generate-ucl.sh was refactored which led to this issue. -pete -- Pete Wright pete@nomadlogic.org @nomadlogicLA