From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-xa32.google.com (mail-vk1-xa32.google.com [IPv6:2607:f8b0:4864:20::a32]) by sourceware.org (Postfix) with ESMTPS id AFAFB3857707 for ; Fri, 28 Apr 2023 13:11:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AFAFB3857707 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-xa32.google.com with SMTP id 71dfb90a1353d-44089f95265so3249289e0c.3 for ; Fri, 28 Apr 2023 06:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682687465; x=1685279465; 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=e/d9xNBSMn+xCTyoEEPqIWFy6d3SS3B/QFDjjq1JES4=; b=rZjECU73kbVJZOua5aKykgz0MQxv1qVYq11tnb24FOU1SG5FBBAz96qqB7PphVbdNU DP2iYzy+9fj8nADIuAwCJR75xTWhN7FgLQTR+E+e95nA2/MJHTnKotdkG718+05rBamp 2ZzS5KWR3uybBz+RuygPLGOZ+5/FhRt/2ZXiLg/OLr404b3S6ibLWlBwAFhYfwo5LXUc q0XYg2Fjl57MwL64PjqMj1KM43iy+qFv98xTwwlhZz8aGL2Ec3KyHQVKITeqz4zR2KEn QfYGmdK42qwRdn0GJzRqO0n2sRI661OdcrLMZ9b+FZVW3V2ZmFgPxX2P922eWO7PkURO ZZDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682687465; x=1685279465; 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=e/d9xNBSMn+xCTyoEEPqIWFy6d3SS3B/QFDjjq1JES4=; b=WGFoz1SDwwurIeWQnKsGtRx5T9kD9ULFAANuEW3247mBpZVxGUFEHEFGhYSKOh9DAn 8+7RXA7Ck67Ox3mz2rSynGGw4gDKqt3vh2fGbxz68L6JHsY8pZ7TBaxk6GlHx2WYXYT9 O2mjsn3pqVFKwvBhriayV7dJZ89xhH+g/CLrrAgvpIXjskDv8c9v2MDZi1Iq3990bkTc B+88Gx0s8w+rX6j1kcVYdA4BU8bPdd7O/gLFf+tgk2V7JQLQIFtz4vcXf5G/1DJI1TnB 0vdKzIniBYHCfHyHm6ky0HhF7K/l5PPosXygcr/qNRVl7nuUsv9Kw5o6PkN/fQmcCcyA Wl7w== X-Gm-Message-State: AC+VfDygVb9OwiggPBZG/pUxgDty4er9Jhi7qWFEPyMa2T6mWMHIYGvx kKwCCpLbRbTH6Nc0x6ThhcHd7cGCnJ8kGz0vALDns1RwmmQAOg== X-Google-Smtp-Source: ACHHUZ48ypi5+6J7RFk/N5BF53ttEn7i4zg55oRDE2r6dtqruI04S2BZl7TktOAF8tBJdLl9yp+b/kyNYEX5Vu9qLys= X-Received: by 2002:a1f:3f8d:0:b0:400:f4b8:d036 with SMTP id m135-20020a1f3f8d000000b00400f4b8d036mr1776540vka.10.1682687464653; Fri, 28 Apr 2023 06:11:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daisuke Fujimura Date: Fri, 28 Apr 2023 22:10:28 +0900 Message-ID: Subject: Re: Problems with asciidoctor gem after ruby update To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: A corrected package has been released. (ruby-3.2.2-2) On Fri, Apr 28, 2023 at 5:36=E2=80=AFAM Daisuke Fujimura wrote: > > I apologize for any inconvenience caused. > Please wait a moment while I investigate. > > On Thu, Apr 27, 2023 at 8:13=E2=80=AFPM Daniel Abrahamsson via Cygwin > wrote: > > > > Hi, > > > > I=E2=80=99m not sure if the issue is cygwin-specific or not, but I do n= ot have a linux box with a sufficiently new version of ruby to test with. T= he errors started showing up after the recent updates of the ruby and rubyg= ems packages. > > > > When installing asciidoctor via `gem install asciidoctor`, a asciidocto= r "binary" is placed in "$HOME/bin". However, when running `asciidoctor` I = get: > > > > ``` > > $ asciidoctor > > /home/daab/bin/asciidoctor: line 6: /home/daab/bin/ruby: No such file o= r directory > > ``` > > > > The asciidoctor binary is looking for ruby in the wrong place (it shoul= d be looking for the system ruby). > > > > Version output: > > ``` > > $ asciidoctor -v > > Asciidoctor 2.0.18 [https://asciidoctor.org] > > Runtime Environment (ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_6= 4-cygwin]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8) > > $ ruby -v > > ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-cygwin] > > $ gem -v > > 3.4.12 > > ``` > > > > The asciidcoctor binary on the upgraded system starts with these lines: > > > > ``` > > #!/bin/sh > > # -*- ruby -*- > > _=3D_\ > > =3Dbegin > > bindir=3D"${0%/*}" > > exec "$bindir/ruby" "-x" "$0" "$@" > > =3Dend > > #!/usr/bin/ruby.exe > > # > > # This file was generated by RubyGems. > > ``` > > > > On a non-upgraded system, we instead have: > > > > ``` > > #!/usr/bin/ruby.exe > > # > > # This file was generated by RubyGems. > > # > > # The application 'asciidoctor' is installed as part of a gem, and > > # this file is here to facilitate running it. > > # > > ``` > > require 'rubygems' > > > > // Daniel > > > > > > -- > > Problem reports: https://cygwin.com/problems.html > > FAQ: https://cygwin.com/faq/ > > Documentation: https://cygwin.com/docs.html > > Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple