From nobody Tue Apr 18 11:02:40 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 4Q11H068TPz44vg6 for ; Tue, 18 Apr 2023 11:02:52 +0000 (UTC) (envelope-from eduardo@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 4Q11H05XB8z4KP0; Tue, 18 Apr 2023 11:02:52 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681815772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5VXOzuXsadvxNAV0tamn5GiVomFki+z64ppnFhSmhvQ=; b=rLaFqTIKmF6Z9F24fzQs4XtS7DYpyb79pSkiAeeVdkeMbUaE6Q94/GG2PqF+rUMq2S+0kk ZYhmtijzDN21Uoq2oFCm01O/W5ptGCSrB+3d08MG6Pb96n+ci37PPg9iM8oId7z2LDgGtE oX31n/B/zviYsLjoEvS4D3eWymFadKLZrlbW1HbXQKY78tjPmbNRkejk3AtlS1QWS7D+xQ kjb2AEsiuFFR2DstHAcCtdP9OEpT/fWiqUso7G0Kb2lVItsb8BfvZBNdm7ag80Ng7O9AlG XZfpBsTyteW3DRQvtV67TLxkE8Csh5wvmLdUxZbfAfcTbPgAQgqDRaJO4jKZfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681815772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5VXOzuXsadvxNAV0tamn5GiVomFki+z64ppnFhSmhvQ=; b=bADgAVZDjk/P0nDAtVwHwL5czA7Db6kqXC/uSX8j5ZU8HH6vojUa2Ah5yMBX9QuZTht509 nQ4rkBupz+pG7i8BW8IyQuOIBUcvLfr1nmU59dGW035MuLyB19le9A6C3VRAHyxK0vjLSn cz2R/sCG8tMqpCFxfAJg8EJYh1PDip6dTnzhfacwlp0wr4ageQ5gM4O7s8s96N7svEAUdL EXLa5HitITjtsKSPD/HlhuEteriw2inGEMB92MqCernlK65b6NDi11HeT/m6oNReFhXb4T zep8ApJI79jU3rUWioJ48prcgOXTdIZCUuQMJoFnm5tzJasFooy5wWBunJXUPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681815772; a=rsa-sha256; cv=none; b=ZPIx49ipvk9LFbwqWsIDhgJSchvw7ZuKn4C8LoVRSuYzCa11zcAPsHdzWaUJapE2hFxlUi r6hA0Au57yPtrc8pFo+Kr4oCDlZVOpFj2WdAP0cDsnMEBHdwp6H6yqXSvizMPbhS/rigxb pLu3o2YsPnFW+EVZZTNW/j7ROFqZOd5m4qOxsNOLT5D7k6Eyq2IJTC31/+YCwjUJ9TUIVM hbheHNvPgmfOChUJ7tP7sGXM+LCESs2J3agj+ffw5UKiEVZfZSAkmu3C0iDwEvn2HVgqdN rI57o3QDfPaxiXVl2flSpRdj+j5Mcfg3lHOk/TPuI39/ZRErhQhanIkj3wjiKA== Received: from mail-ua1-f51.google.com (mail-ua1-f51.google.com [209.85.222.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Q11H04VPnz12NY; Tue, 18 Apr 2023 11:02:52 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-ua1-f51.google.com with SMTP id x8so11126883uau.9; Tue, 18 Apr 2023 04:02:52 -0700 (PDT) X-Gm-Message-State: AAQBX9eyetUoyRllFPxKBLcAtOK0fBbqcTNqR2NHALi1f47P1gpSvgnB E+A8YuI3g0558ewp8tF0zKxHlsYCPKS62sCUWEQ= X-Google-Smtp-Source: AKy350atx/aJSJ6eBVPU6Eo5y9QwC8dHC2fNOJ2wO5/3WGDB2/kemt9AezxSxdL2hCEO4qzBUBT8oYC1QYoYCn+Vslo= X-Received: by 2002:a1f:2c03:0:b0:43b:ec02:c2e8 with SMTP id s3-20020a1f2c03000000b0043bec02c2e8mr9323042vks.3.1681815772212; Tue, 18 Apr 2023 04:02:52 -0700 (PDT) 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 References: In-Reply-To: From: Nuno Teixeira Date: Tue, 18 Apr 2023 12:02:40 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Get ${OSREL} at install time To: Felix Palmen Cc: ports@freebsd.org Content-Type: multipart/alternative; boundary="000000000000ae352405f99a3fb6" X-ThisMailContainsUnwantedMimeParts: N --000000000000ae352405f99a3fb6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Fixed! (on 13.2-RELEASE) gitup.conf: --- "release" : { "repository_path" : "/src.git", "branch" : "releng/13.2", "target_directory" : "/usr/src", "ignores" : [ "sys/[^\/]+/conf", ], }, "stable" : { "repository_path" : "/src.git", "branch" : "stable/13", "target_directory" : "/usr/src", "ignores" : [ "sys/[^\/]+/conf", --- Nice! I have now a working pkg-post-install. Need to have a pkg-plist method working too so it can be discussed the best method to use. Felix Palmen escreveu no dia ter=C3=A7a, 18/04/2023 = =C3=A0(s) 11:58: > * Nuno Teixeira [20230418 11:55]: > > sed -E -e 's|stable\/12|stable\/${stable}|' -e > [...] > > sed doesn't subtitute as it uses literal variables > > The shell doesn't subsitute variables inside single quotes. Try double > quotes instead. > > -- > 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 > --=20 Nuno Teixeira FreeBSD Committer (ports) --000000000000ae352405f99a3fb6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Fixed!

(on 13.2-RELEASE)

gitup.conf:
---
"release= " : {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "= ;repository_path" =C2=A0: "/src.git",
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "branch" =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 : "releng/13.2",
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 "target_directory" : "/usr/src&= quot;,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "ign= ores" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: [
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "sys/[^= \/]+/conf",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= ],
=C2=A0 =C2=A0 =C2=A0 =C2=A0 },

=C2=A0 =C2=A0 =C2=A0 =C2=A0 &q= uot;stable" : {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 "repository_path" =C2=A0: "/src.git",
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "branch" =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 : "stable/13",
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "target_directory" : "= ;/usr/src",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= "ignores" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: [
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &quo= t;sys/[^\/]+/conf",
---

Nice! I hav= e now a working pkg-post-install.
Need to have a pkg-plist method= working too so it can be discussed the best method to use.
=
Felix = Palmen <zirias@freebsd.org>= escreveu no dia ter=C3=A7a, 18/04/2023 =C3=A0(s) 11:58:
* Nuno Teixeira <eduardo@freebsd.org> [202= 30418 11:55]:
> sed -E -e 's|stable\/12|stable\/${stable}|' -e
[...]
> sed doesn't subtitute as it uses literal variables

The shell doesn't subsitute variables inside single quotes. Try double<= br> quotes instead.

--
=C2=A0Felix Palmen <zirias@FreeBSD.org>=C2=A0 =C2=A0 =C2=A0{private}= =C2=A0 =C2=A0felix@= palmen-it.de
=C2=A0-- ports committer (mentee) --=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 {web}=C2=A0 http://palmen-it.de
=C2=A0{pgp public key}=C2=A0 http://palmen-it.de/pub.txt
=C2=A0{pgp fingerprint} 6936 13D5 5BBF 4837 B212=C2=A0 3ACC 54AD E006 9879 = F231


--
Nuno Teixeira
FreeBSD Committ= er (ports)
--000000000000ae352405f99a3fb6--