From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-xa2c.google.com (mail-vk1-xa2c.google.com [IPv6:2607:f8b0:4864:20::a2c]) by sourceware.org (Postfix) with ESMTPS id 303BE3858C83 for ; Sun, 23 Apr 2023 23:44:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 303BE3858C83 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vk1-xa2c.google.com with SMTP id 71dfb90a1353d-4408b81ed86so1332167e0c.3 for ; Sun, 23 Apr 2023 16:44:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682293478; x=1684885478; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mXn4fSHucesGu8JAJRdTBsfhbvv+Po3MqZGLD13k09A=; b=Lq4BnX8sKk680Zym8HZZBMXVo6wjpyfXa0bCT8S6nUnU7xDRp3+FSYYljYJNLbhozb h6mB3JQipRCTRIo0pxI0Z8eLFX1t9DEgv0sWqOuLty3SkQGp8JBN1ftLaACS6bAiignB dfsexYj5BUOAVvAUSW7QBow5E0oJKlgxF+upvv/TklcW7qYUUbmbvU6PQYAZ6v0JsQRk n3GD78YG/0ta76rBLBdr9e6G0vnwjDwNfm1l6HDniaenM07Dsvzrygv9XU54H+e2U7k4 zHba0vBLoKXItSe6wcvfnRUPJvxNOH6SWmDNxWLiE257Nia0Cq9lG7regMSKuUH+s6Xt IsdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682293478; x=1684885478; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mXn4fSHucesGu8JAJRdTBsfhbvv+Po3MqZGLD13k09A=; b=gMLgt8d1XEci5CxSk2Wj3mcAoLWC9RzDztZmHm4hOvvZxg7sX0zYhTXoYkaGYG+ClF C7oHuyamH6GgvPzrhLWubJp/x+fzQX7CJyTbO7wKkAXgDJNqNKZb8TH0uUYB5KilSIG1 A8kG4tu6QB3MIp+soh1XTY9i8GtITP0WEARh+iPRCtgwwY0JVW3HdpFKifa65hNU3QgF lEg6ArJGYishB1yD96VFZ652XWNAeMhLqt9uoS39kU5S5CuUd0O8uNXY7yMRoFWvVEFY QXbrpXvF1EDBgOBZiXHxylWlXq9/aSi2gX7RvTdcNtJlMSgfZC5AF5y4rtuuPeweO/uo nFnw== X-Gm-Message-State: AAQBX9fkesh85xv2j1JacaTq5cr/mAq0mILxlwjYPLqFaxAqiMs8CimZ 7n3OR9/Y31lj4hMoj+nkb3225P7x4DMBC6E4M6ziTFgGCrHVuw== X-Google-Smtp-Source: AKy350aLlnCTdRiUs4HjqGYGUrMHMnv5RiZQwtylefpBE9vs0JDiR+PKPumRBpXpdteOzHI7sN9RJh0XX+iak0xXwiM= X-Received: by 2002:a1f:3dc4:0:b0:3ea:7af1:9ea4 with SMTP id k187-20020a1f3dc4000000b003ea7af19ea4mr2478200vka.12.1682293478000; Sun, 23 Apr 2023 16:44:38 -0700 (PDT) MIME-Version: 1.0 References: <55c06590-b192-9c43-c20f-a1967abf920c@gmail.com> <8a06d928-4788-2290-581b-f22f881af7b2@dronecode.org.uk> In-Reply-To: From: Daisuke Fujimura Date: Mon, 24 Apr 2023 08:44:01 +0900 Message-ID: Subject: Re: [ITA] ruby 3.2.2 To: cygwin-apps@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > This is what I get for not trying these things. I think nesting the > substitution like that isn't valid in bash, so maybe: > > SOVERSION=3D${VERSION%.*} > ruby_PROVIDES=3D"ruby_${SOVERSION//./}" > > actually works? It worked. Thank you very much. ``` $ cygport ruby.cygport vars ruby_PROVIDES declare -- ruby_PROVIDES=3D"ruby_32" ``` - https://cygwin.com/cgit/cygwin-packages/playground/commit/?id=3D9b448625c= 2166d5c7310c295bfa4328d24ac5444 - https://github.com/cygwin/scallywag/actions/runs/4780609520/jobs/84985373= 91 I think I can release ruby-3.2.2-1 without applying the cygport patch, but is there any problem if I deploy it? (The cygport patch should not be needed until someone rebuilds the ruby-* subpackages.) On Sun, Apr 23, 2023 at 10:35=E2=80=AFPM Jon Turney wrote: > > On 22/04/2023 13:04, Daisuke Fujimura via Cygwin-apps wrote: > >>>>>> Are you planning to adopt also the ruby-* sub-packages ? > > > > I intend to do that. > > > > > >>> 2. Modify cygport and release it. > >>> - Add code to detect dependencies on `ruby_xy`. > >>> - It is similar to the process for `perl5_xy0`. > >>> - https://github.com/cygwin/cygport/blob/0.36.2/lib/pkg_inf= o.cygpart#L442 > >>> - https://github.com/cygwin/cygport/blob/0.36.2/lib/pkg_inf= o.cygpart#L639 > >> > >> Yes. > >> > >> I'm not asking you to do this work though, unless you really feel like= it :) > > > > Please review the attached diff. > > That looks like almost exactly what's needed. > > Thank you very much for that! > > >>> - Add `ruby_PROVIDES=3D"ruby_${${VERSION%.*}//./}"` to ruby.cyg= port. > > > > ``` > > /tmp/cygport-ruby/ruby.cygport: line 49: ${${VERSION%.*}//./}: bad subs= titution > > ``` > > > > Is the warning being displayed because $VERSION (=3D3.2.2) starts with = a number? > > This is what I get for not trying these things. I think nesting the > substitution like that isn't valid in bash, so maybe: > > SOVERSION=3D${VERSION%.*} > ruby_PROVIDES=3D"ruby_${SOVERSION//./}" > > actually works? >