From nobody Tue Apr 18 08:05:36 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 4Q0xLh0nk8z45x3n for ; Tue, 18 Apr 2023 08:05:48 +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 4Q0xLh0F3wz3k98 for ; Tue, 18 Apr 2023 08:05:48 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681805148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=GSY3+SEQLFNYC5pU+NctI0hU3Wf6x3Wi2O0x/+VTNQA=; b=VPYngaGj4mMQ/fZnbr043miQXarXAe/E3URC30mzyAcfsNutPi1FAK98kjTBpAPngWwEjv KHWqHBT1T5Drj8K+K1cG6WiIxHE6de1t5bKehX/86fOtv32ZNKChhVBFbRxxB9+7UVvxy0 RMTMOCGtNfloCTIf8epqnVqXBz9Y+XFPFYCWVr5vmFSfgMbZHRdDpZk1WIrXNp6bqDvNJ5 LvPTj027qSsz+H3+rJXUsw/3uKcI6W3SzWMejPSTNswK8IENuIPv4iX5A3B46o2qFMcQBx Ntwtt7i+SJLIPT7NrigY/geW+7v/kXwuYySqHWLBNUKHZjGaChp1uXqFo4K8Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681805148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=GSY3+SEQLFNYC5pU+NctI0hU3Wf6x3Wi2O0x/+VTNQA=; b=FQZ10+WvtZinb2j0fHusxmo29McINZp7Jnt5ue3izZAHcOrI6JMirhKI0J92g4Z3+efcn0 T4DhK5OMxVjUzVFEyMDAMNui0QuI51XB1m1GwCMZXEEhmwOtwHhqrVXP6FVDDBuYHfR/Bs w5+WViO3jSjRYPnAc7RCbY6ZegHzcYX38WPyVLeV5wpAmdGdOfVKWj2b9u/x9e20t6FTOw RcdHK4f7sEurPWHKTa6RwzwiLmod7jVhFA9OscmHexsIpoBjzU8q03GWTDG5AKpyhrkOgF mFlQDnmEsnGIHtu16sTx6ydaenqKC9fkvHFqpx43nXihPpOYkkP7Ht5lApM+VA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681805148; a=rsa-sha256; cv=none; b=JQIhbkuzaQfPrbx5GDjMNJhJXnbNvtJx84W70SY4yzIqBE3lk+c+Dh0Xzqkibmggt3yvuw y3F96csEcdrcu0hEmGZoJkJ86/a8K+/OckzRIe7DiJZfDZ8Bih1dncqo7H/g7F3B9LRBNM yPJB471fqCTu+p3wv2q0J8uiqFhhoJD3vMb1WkCdNdeTBIh5B43wMRW0fdlKuKO0WybokX GF5pcHfD/F3OngrAYkVfVgkczvGqaaOsoeKGPNXX9E8avIhaOi8WkWkvbm4Wg4+p3hgjeq I0dLN+RsmxzxBbTZkV5TCkFVWsRjBpAuCtefUU2oV31IAbLVaB3O89e990cHSw== Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) (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 4Q0xLg6H26zyR1 for ; Tue, 18 Apr 2023 08:05:47 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-ua1-f48.google.com with SMTP id s13so6652431uaq.4 for ; Tue, 18 Apr 2023 01:05:47 -0700 (PDT) X-Gm-Message-State: AAQBX9dmJhT4eVHyG9MJptF8/avWZiPwI/KYzRsTx+EP0VDb66+HLqDt 0taHy7eK8LD3LypVf7n8Pt+0o6bj2CUi1YaqdiA= X-Google-Smtp-Source: AKy350ZtWpUSRzRGcjwEoXlG5VxYrGPgVx84ErPB9to2OAAWAkAjZ3qfAnpvYYK8LHN3ROoTQJguaZH1gAu9/nWnFOg= X-Received: by 2002:a1f:2a47:0:b0:43f:c93f:4eb8 with SMTP id q68-20020a1f2a47000000b0043fc93f4eb8mr10144176vkq.3.1681805147211; Tue, 18 Apr 2023 01:05:47 -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 From: Nuno Teixeira Date: Tue, 18 Apr 2023 09:05:36 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Get ${OSREL} at install time To: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="000000000000618e4c05f997c6a2" X-ThisMailContainsUnwantedMimeParts: N --000000000000618e4c05f997c6a2 Content-Type: text/plain; charset="UTF-8" Hello all, net/gitup uses a reinplace cmd to setup gitup.conf to the correspondent RELEASE/STABLE for command `gitup release` and `gitup stable`. So, if user is using 13.1-RELEASE, reinplace will configure gitup.conf to: "release" : { "branch" : "releng/13.1", "stable" : { "branch" : "stable/13", The problem is that OSREL is taken from build time and at this moment 13.2 pkgs are being built on a 13.1 machine. So the result is wrong by setting releng/13.1 instead of releng/13.2. the reinplace cmd is: --- ${REINPLACE_CMD} -e 's|stable\/12|stable\/${OSREL:R}| ; \ s|releng\/11.4|releng\/${OSREL}|' \ ${WRKSRC}/gitup.conf --- Any sugestion or example that permits to get OSREL at install time? Thanks, -- Nuno Teixeira FreeBSD Committer (ports) --000000000000618e4c05f997c6a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all,

net/gitup uses a = reinplace cmd to setup gitup.conf to the correspondent RELEASE/STABLE for c= ommand `gitup release` and `gitup stable`.
So, if user is usi= ng 13.1-RELEASE, reinplace will configure gitup.conf to:

"release" : {
=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 : &quo= t;releng/13.1",
"stable" : {
=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",

The pro= blem is that OSREL is taken from build time and at this moment 13.2 pkgs ar= e being built on a 13.1 machine.
So the result is wrong by settin= g releng/13.1 instead of releng/13.2.

the reinplac= e cmd is:
---
${REINPLACE_CMD} -e 's|stable\/12= |stable\/${OSREL:R}| ; \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 s|releng\/11.4|releng\/${OSREL}|' \
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ${WRKSRC}/gitup.conf
---
Any sugestion or example that permits to get OSREL at install = time?

Thanks,

--
Nuno Teixeira
FreeBSD Committer (ports)
--000000000000618e4c05f997c6a2--