From nobody Tue Apr 18 09:34:13 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 4Q0zJn08N8z44q4Q for ; Tue, 18 Apr 2023 09:34:17 +0000 (UTC) (envelope-from zirias@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4Q0zJm6T0Nz43fg for ; Tue, 18 Apr 2023 09:34:16 +0000 (UTC) (envelope-from zirias@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681810456; 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=R+EGKT4yTnvsoBnOmVgQotm1XcJnHp3hkQTxAWILY2c=; b=xaoNTuARTxul8dw98WDbhsz2gEhxhq9gkFDztOE5EiRI4/+txyxXCKDW4xuykjQNLWumxp wL1gL/J/1EbqEmNd3xz9icXPAf13BmCDTyUBEySYaJw9uL9PWPuDWGQLqkAuwBfjqJma8T pHMXKsY3SGEj6vB7Q4GyaaTAKwMVXhfnGTIAkHWWO3o41cDlIx11qiEp/8PQIk99dtK/wc bX849s39iGBbScehzDinJtkmWMVAfMq0hrKjolixpqGfeCIpBeseg289MJgV4l3jFFQxjB yoVTAn1aJqrY2IlObXd51PdxnJN8NB1xiekyg0lx1MwR9UhmohJgwylThrM7MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681810456; 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=R+EGKT4yTnvsoBnOmVgQotm1XcJnHp3hkQTxAWILY2c=; b=p6sOxJc95+eBq1/pSPE8t6F3K7KEDi84HR+j2ApuynNa0SXh55DgJ0cOINZ40BHiAW+e8j v2xj7cXcYO8ggJ65aH2bTZ20fL43yi/yaDcmcF3n5RcyWrONdW4DZZzzeP2hPuB0X0AfdA z6w8JEo1yK+6F6ezmoIko/3hJEzKYzUh6Rr33ece8tX5/agn2WpQ03XFviwdaIR8Q7QwOx 1wLEFNAMivIN3OS/Dxi9MYMWqBAlgNk3x4tDmZ6+KjB3s6W8iq7e9r0edCXNG/WO9rPTJe EPZx9Ms8vhPRc/giWw9u+eMd/9jA3oQFzUCpY2sEYDqyaImuvXZXcWNzwt9/5g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681810456; a=rsa-sha256; cv=none; b=kTKS116A/MoCffZwGibddvfphBQ4JsnDBxJoxj2QXoMDJIj6tCDlcqGagdPhDeKbOxDf70 vJvZqF0fEkiFtHE0jIO4mGbw+SdPDS61deFCnecj+chnx80Hv4AIxL9lUIgsPpDuB43W+t ZW8p3xibphVWPCSzoP9RbyGscE3oJEVhj9Yhvdt9KYOLrlP6RiToT/a88ZzKltBxMk53Gi 05ZhbLCVlU/9zhut8lnFWm/O4OmHaRSQ7645V6k15pdEc7cd7sAeWuTqe1FQO6KsSn5XGZ ec4xAwjP7pgJARuHvYIYbUSGtYLpyPJKNLPME2cVqo/XAyLB6VrLRKIYZMgxeQ== 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 4Q0zJm58Jyz118r for ; Tue, 18 Apr 2023 09:34:16 +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=R+EGKT4yTnvsoBnOmVgQotm1XcJnHp3hkQTxAWILY2c=; b=f797oLG/XcMP1QTMeS5MSZD6W5 c/StUShyLGE5cIUjyWBgDtI9J1s8vnZV9na+wI343cCLEuhwsNZne1y9JY7AtCp/7WPTVhyU1bFMF gfOyarTwA/89lCJAKZRptXCC8LCtNxe7TVPf+agDk7LEA0T+LoU5YpQWmLLQ0IgT3yydQNTWUL9iE P5+CUEPbmsA0JcCzJ9umlg7jcNAjo1vynoi4ryAyU4NF1VXj7hwMGc/BNnLXCDaO3bM3rEo5Ey2mA 9I1AY+iEcKL9DGSNAdMQO2Azm97uC4CeFG6T42dukM41Cq2iRo23YX83CeG5pQvFPQSlVEDu5swc5 e7nLnY0g==; 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 1pohj4-005O5d-QP for ports@freebsd.org; Tue, 18 Apr 2023 11:34:14 +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 1pohj4-0003h4-Bb for ports@freebsd.org; Tue, 18 Apr 2023 09:34:14 +0000 Date: Tue, 18 Apr 2023 11:34:13 +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: 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="l5c2upv63lmwwvvv" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20230322 X-ThisMailContainsUnwantedMimeParts: N --l5c2upv63lmwwvvv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Eugene Grosbein [20230418 16:26]: > 18.04.2023 15:05, Nuno Teixeira wrote: > > Any sugestion or example that permits to get OSREL at install time? >=20 > # osrel=3D$(sysctl -n kern.osrelease) Obtaining the information from the running kernel has the drawback of possibly giving wrong results with pkg -c / pkg -r (installing in an alternative root, e.g. a jail or boot environment). Therefore, parsing /etc/os-release should be preferred. --=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 --l5c2upv63lmwwvvv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iNUEABYKAH0WIQRpNhPVW79IN7ISOsxUreAGmHnyMQUCZD5kFV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0Njkz NjEzRDU1QkJGNDgzN0IyMTIzQUNDNTRBREUwMDY5ODc5RjIzMQAKCRBUreAGmHny MfnaAPsF+rQDjtHd8rcwpzoN6qOoo0bUYVJic4ku39BXgtW99gEA51KrrbZuQDgx BDipBOPxYL2aPTakSColzVq+dRA7TwM= =5g04 -----END PGP SIGNATURE----- --l5c2upv63lmwwvvv--