From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) by sourceware.org (Postfix) with ESMTPS id C4E143858D37 for ; Thu, 27 Apr 2023 20:37:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C4E143858D37 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-vs1-xe2b.google.com with SMTP id ada2fe7eead31-4300ba45037so3355818137.2 for ; Thu, 27 Apr 2023 13:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682627854; x=1685219854; 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=gK9JbM+so6u5+04RTsMumJFdhW3EUa4MewJUCXReYEo=; b=K3ktut05vaM/MnaqPraJbl7EyvFJmRyPXOw5YYKqc0W9mTvk5u4zJIgrQNBNsAJDb0 qSObqB16JUawsomq2TLlM8KoH8hdiKlJm+26uZrLhpUrOEM4Vnvs7VUKd+U/LKTxxjY6 AUq7Z++HKx1oogF9Ke6PdOZ6UhNBSShGPHjFnG9Wm2Z0jFOf6DZR7HdBBxqoQedKdyr4 IkyutOmySIHpIg3I6Wf3UJQcwwITJoaI02+VinMM5kyPlDYam1RjXy1ee+ymIEhPjFPg 4l6HtU6ET+UsQ5T/48r34eqBQTlM8Afb2uPbXr35Q+YTKaFT+vdJs13Vg7KEmgkyz4cu vx1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682627854; x=1685219854; 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=gK9JbM+so6u5+04RTsMumJFdhW3EUa4MewJUCXReYEo=; b=RT3UFkGPpwggQxH88rb5V2/KKfHGkGeAV892YCO//0+Bs1/kHEQ8t0p58ntHZt93/l dc03f9fLxa/SPBXuzCnTxUzH1Apqe9K7fN5ShZKtKjV6Vq7mfwgQnEgpGmUgXrid0qtd 7kz8Uy+Sq1Gm/OVtXQJ/AAGNOy2AmQ8aO8AOyZRlxwDfywpJ1mURrAjkAUY5lUdG85Vg Y/AZ3g4deMI0HpvZpfpQuQDKCGUKnU+UFb5QgPiUYl8kiAJKwXxMPWZRDJnEx/BlL15p ob9EecM1nLI1S557LP8wJSgSbYppUxk/98dhx089hjyHvMzno9TQvjh0o175PXhlrZ6C CKeQ== X-Gm-Message-State: AC+VfDxNobqb+LrPhOtUUY/ykEgMq9rVPUas67KsmXeRMrCsNcu9Tu04 qu52q2SUPIHn9azfwC3Ht/0Xwm3kX4QHv1vaz+Up3YyO8K3flg== X-Google-Smtp-Source: ACHHUZ4mwoqEZpvDPhbA1uH9b0F9OPGItd5+pFQwF9ySng79BQ5+GaltFIie4hpUOju+6bp1wtdaSVgXBYIl/WhC3EU= X-Received: by 2002:a67:f50d:0:b0:42f:ee5c:4997 with SMTP id u13-20020a67f50d000000b0042fee5c4997mr1889490vsn.34.1682627853709; Thu, 27 Apr 2023 13:37:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daisuke Fujimura Date: Fri, 28 Apr 2023 05:36:57 +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.4 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: 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 not= have a linux box with a sufficiently new version of ruby to test with. The= errors started showing up after the recent updates of the ruby and rubygem= s packages. > > When installing asciidoctor via `gem install asciidoctor`, a asciidoctor = "binary" is placed in "$HOME/bin". However, when running `asciidoctor` I ge= t: > > ``` > $ asciidoctor > /home/daab/bin/asciidoctor: line 6: /home/daab/bin/ruby: No such file or = directory > ``` > > The asciidoctor binary is looking for ruby in the wrong place (it should = 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_64-= 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