From nobody Tue Apr 18 12:07:25 2023 X-Original-To: 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 4Q12jY4FtHz451LV for ; Tue, 18 Apr 2023 12:07:29 +0000 (UTC) (envelope-from zirias@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q12jY3pjMz46Wt for ; Tue, 18 Apr 2023 12:07:29 +0000 (UTC) (envelope-from zirias@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681819649; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bT0vumMU+4sdYGdtWRWloZX4wF1dzHflBJGPuw+9ETw=; b=O8TzXBvb/Gs4XmqxmAM86uwV3PlmFo726pt+Sa0F4AOwU+qvYzTcZ8VMwfRIMEGAm1sHi+ NJeMEUnVTwhne7T4BXm2IzlwFb/RGDBThjpaf0VOBIsOe/W0iZu1iNCl2l1/e6FwIGmVqg 2NyrJLCt4mXRD7cLQFmHRvqFtPvKEINWO+qehqwKPLJKEksoCedCBIHm6npI0tANtm9oo+ SkYSVU8mvnNAZVD99gl4iYLjuKXVI2V8XQNp3feRe1rOH+QxM363wIq0VDb0upcJBVWh8w 2xVEdjk2vLJEbUvr5PDZ/7wnh4iXJ6iiN7/iO+vcTEsF6UZt4ggG3CE3D32eSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681819649; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=bT0vumMU+4sdYGdtWRWloZX4wF1dzHflBJGPuw+9ETw=; b=evJDxR0h3tJnBbPs6wSMToJj9CA8AMNuptos+Ui1eKByqjO9dvi3MvrcPTSW/A9wmjl8p4 1hV2A6NM/nClXy9hXhL47ZQ+SXQ4BtG9bSd7jADOIN+8SakZUHaHVfKsyfKDvwv7ntIhul 7dMF2ympRlgIbt3oTYafov7NDlkfjzhJMQItVqAvwi8QYmszOxaJrliftDn9dSCNizR1ts XhiIS3YwVaQ5gtm4ShVhuQohfgvsbo3D9FcDx9grWlppiNM73bwzhR1IRpiCSziILoP4/s 3SHLmmnBUZ78yWRYQD87bWQWB9lrFDNEDDVQqOz6v9VX8vER/62PYj+vBvoSPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681819649; a=rsa-sha256; cv=none; b=cdjJjhkrCmtCbBDTqTbpIFUl0P3Ud1MccJ76JdkYhHuCLQL89KdtGoi8WiW0YKMB8y5BC4 KUUbmWv6yEx50CdBKt++KXeFs8SmSpUB37uGofsmPhZe1XvHAyiMp5tooNxjTI5MoSVYt2 YWNx1S8VX05+wF9YxHuTIF1T5fPzY11Wnj1fuwjTYdOMAC32DAZdPCWA8Klv9Uql21qhEW pfaZFhtfSSBrg9B4vOeQt8JFCjO1qsFPFBnioZ26IQ7o+A/YFw/qjDr+/M+j5iqllhTPq5 /xggQPBfwAwQBPi5BGtUZ9BjjQaaWJokzQhtPRboryeJcWR60aIYQ2h4cpTOrA== Received: from stef.palmen-it.de (stef.palmen-it.de [IPv6:2001:470:1f0b:bbb:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: zirias/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Q12jY2WH7z13YK for ; Tue, 18 Apr 2023 12:07:29 +0000 (UTC) (envelope-from zirias@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=palmen-it.de; s=20200414; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bT0vumMU+4sdYGdtWRWloZX4wF1dzHflBJGPuw+9ETw=; b=MnSUqsWq/Zxdv6GDHFMm6a5fQa 1zCylOqh2HOKd9OaTPOQMzRrOiim3xreqNgNksA4Hh6/zb0aoBBdMO/xBBvRt44DEb7JSuK/OzuUu Hdf3paWQSFJTRW6bpFoK9dscCdN0z+GBoanHNxtnC/dxpqTYc0Fwakvd0ECvNMV/cgs12/wrsS7EW WVx1uZ294nUIpfC4qxny4Ei2NPJa7wNi5PBhoDhhhBBI2Lr320v+TakBb0J9v2bU6YvyMV+pfo6NE 7kN2aQ6yZK8ecVYyTVydL0PQl5EhLM+iuAJyC9s1fY07tMHmR0YFtq0TXX0MwxLQdhd32J/xWN5Jr pR2Ey7Zg==; Received: from [192.168.71.101] (helo=mail.home.palmen-it.de) by stef.palmen-it.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pok7L-005Op4-U1 for ports@freebsd.org; Tue, 18 Apr 2023 14:07:27 +0200 Received: from nexus.home.palmen-it.de ([192.168.99.2]) by mail.home.palmen-it.de with esmtpsa (TLS1.3) tls TLS_CHACHA20_POLY1305_SHA256 (Exim 4.95 (FreeBSD)) (envelope-from ) id 1pok7K-0001IN-7W for ports@freebsd.org; Tue, 18 Apr 2023 12:07:26 +0000 Date: Tue, 18 Apr 2023 14:07:25 +0200 From: Felix Palmen To: ports@freebsd.org Subject: Re: Get ${OSREL} at install time Message-ID: X-Face: /1K@t"h.}e~pR@]c7HorQ!T`F^RJCa'BCr#e>IKA{>C/9OTGB4|xh"y2{?1Z5M i2w"AH^pN_LlHR^{+f',_Np~;.B;!M/bL}*qk]p5*r7F5vW};{:@4u5S?T&f0$7BJ-71Q5SV]:v$`5 A0[DZ:=?S52x8HJ~5@^P_\T@MsjG{R( Organization: FreeBSD.org References: <3gizlmiaz2h3qwk6xe64iik42vr6mtxyex4d2hjaymazz5nngt@3wm6jdrdxslm> 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: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ddhhcarvmdvrycr3" Content-Disposition: inline In-Reply-To: <3gizlmiaz2h3qwk6xe64iik42vr6mtxyex4d2hjaymazz5nngt@3wm6jdrdxslm> User-Agent: NeoMutt/20230322 X-ThisMailContainsUnwantedMimeParts: N --ddhhcarvmdvrycr3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Felix Palmen [20230418 13:48]: > BTW, another thing might be a bit problematic here: Calling > freebsd-version like this will work when pkg is used with -c (using > chroot), but most likely not with -r. Forgot to mention the solution: Call ${PKG_ROOTDIR}/bin/freebsd-version instead, see pkg-script(5). And if you want to give lua a try, you probably don't have to worry about it, see pkg-lua-script(5) ;) (it's handled automatically with calls to open or execute a file). --=20 Felix Palmen {private} felix@palmen-it.de -- ports committer (mentee) -- {web} http://palmen-it.de {pgp public key} http://palmen-it.de/pub.txt {pgp fingerprint} 6936 13D5 5BBF 4837 B212 3ACC 54AD E006 9879 F231 --ddhhcarvmdvrycr3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iNUEABYKAH0WIQRpNhPVW79IN7ISOsxUreAGmHnyMQUCZD6H/V8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0Njkz NjEzRDU1QkJGNDgzN0IyMTIzQUNDNTRBREUwMDY5ODc5RjIzMQAKCRBUreAGmHny MWAKAP0ScUTBIGcG/yiqUvTieHgbZq3e7+e5HJ7vAn3/HhiG8gEA3odatTpv5L+P Duvi7ySIpQhXDjS30LtQNqrjiuR4QwY= =lllK -----END PGP SIGNATURE----- --ddhhcarvmdvrycr3--