delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/04/27/07:14:25

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9058B3858438
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1682594021;
bh=8OYNeb8oyZstU2p+DtMmdB4+fV/xbIc5srIJlS3p1SA=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=n4U31FMaX2lo+R90Qc7DvG94ea/mC/39LqErT+uiuHdqmarkuz6jbON2wqRcYxQqo
OQVNJWpe8GM7rOIetsyirAwzCdhkgawJC8LvlWZU6qIGzFtEpmzziQ1DgZoOGtRaaf
tlJHjp3IhHWzrJ0F3EZnIdGrQXIdTE91Vakn36Ms=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 743553858D37
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=LQgOIcZ8XmKimphra2v7DxdaFDMMm9F5yJcexPFtw8Bz49CYaPIXmL3N6UbVSqlFJmmMq2f1tqxYaAsGf7XmDMw/pjqkPGOJFPOkTDv7bGoq/J1UDKmbHE4yDpx5HX2Ssui6ccxyMzd4jQQFtmTxV71UPiiCoKgbtwfzDIAPYd/UPAThLfgQI6+a4arshd77D5xBIrmdk8KourcrZAX7Oxh5T5f1K1c9x4SL2tYXlYdxesBX8Ex4e4NJqq66ojZlItDNxXMoqo1jqSwKV0EF3viGffEgK9U0ElrvuNgmi7JKoQnacYSTWT9JmvXDzHX0QtZMlam6cA1SsmGbFJedfQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=aU86vKwQoV+3Ly6GAPMdg1CbtoY7m21lky8vVK2pVLc=;
b=QQvhtJyU3qswBXuHbKVhRHvYdu8lyDvV05+Dz4ihaRngkstjSF9KN9p4Irksu3072Lvm8W2bEP+m0g8UoPqX2tSGWjbI2Ey05xJyQ7Jiob9qVN4J7t73iEaCKCljN5f6oupbhNVDerNfgUDp3n+AbX7csSbOTp57/gzRgys11qV0vvUY1cs5HMGKDwvwYxdMpqPtNor4k8+TZCj/VkHkbL+UX6n8kvzdT/Lv5ZizC+s6qw2o6sd0qFpbCF54y4dggpQ8TMkxsj+DV5KfadvM5yrtR3SHBLN5Ow/SqMvtYK3yVFhFfy+dNmLvPP6ON2O1sDL5n+/hfkZeNZOXKOaN7w==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=prover.com; dmarc=pass action=none header.from=prover.com;
dkim=pass header.d=prover.com; arc=none
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Problems with asciidoctor gem after ruby update
Thread-Topic: Problems with asciidoctor gem after ruby update
Thread-Index: Adl4+GyggDbXegRRT1+gfz17XB8Hxw==
Date: Thu, 27 Apr 2023 11:12:59 +0000
Message-ID: <AS8PR08MB6936E8DCABAA808C93D838D2E96A9@AS8PR08MB6936.eurprd08.prod.outlook.com>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: AS8PR08MB6936:EE_|DB4PR08MB9238:EE_
x-ms-office365-filtering-correlation-id: ba20e54d-3fc7-48e5-8f9c-08db47105c15
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: c1QvjEwE9s1vVc+zIH1NaVYs6E/lU6d2CjyI7e7UmLnd/HTt5eC1wiK1bxW/cBLQFU91Tv5+SZpyzCCsRCqfrd9/9IW60DHJ1GLeVGnBchBejHUvPIh466hoHctGza7NK6aHqG06pj+Y//BcEaA00+f41+FoIqwqF1UQ8gxZ88Qd5OM1ecDeEuX+WllWfsmETb/w20X6nRu0kuwIdsRj1PhMx77efmoxO5P2bDkF4ybb2vrvymUKM0RqNYvQ1lKGJmBkb9xhYrzrsbkk87kFX3vzQXdlZYK+kWYEG5CXg5nH9Bs7E9NlICIU+A+bVLkNupjkXJgjzkHFJcU04pB3TtFk886WehrzE7NZNnJztU2/+rXjGZHQE97D/KUFE8i5x7J3ITYWajaSe3e3qHSfNSDi/Jr8cs0jRogWIVdgrd/WQW+kt2mtDgEFMX8g9mFMWQQQSzZ1eNTUcCpzj1nuH8I9Y+urL0FuxFi1WrZBNs2vk8u/CjU/+knDlrDjU3iaOrvBt5Q4gQQMSfIpDHA5lRg8hlZbD1nP/48hhs4aJ6Q/mf/GlMmsEQiez7Bfcu+6XVbx4M8q37v40ik8UtSL29enx02OV2LgljZk9P6zJh/VtAYltX25U6EGbKrL8TQ2KkvXW0edRxrxIvyzmQaF/w==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:AS8PR08MB6936.eurprd08.prod.outlook.com; PTR:; CAT:NONE;
SFS:(13230028)(346002)(366004)(376002)(396003)(39830400003)(136003)(451199021)(8676002)(66446008)(66476007)(64756008)(66556008)(44832011)(8936002)(76116006)(66946007)(122000001)(38100700002)(15650500001)(6916009)(478600001)(86362001)(2906002)(41300700001)(316002)(33656002)(52536014)(71200400001)(7696005)(5660300002)(38070700005)(9686003)(26005)(6506007)(186003)(55016003)(83380400001)(460985005);
DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?utf-8?B?dkMrclcyWFEvdGV4OExlVld6MGdZelpsbkRObDNUVmhNaEp1WFYzOTAwWWJp?=
=?utf-8?B?MzJhVzZPbGdXaGNUSmRLMmlEK2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RENucExLS0pSdE4rMXovcFZrMEdDU2px?=
=?utf-8?B?MUkwQ2k1SUV1TERlNjVCOG9BRzJyaU45R3RybGYzMDBrNU5MYjVXT01LRzB5?=
=?utf-8?B?eUZ2WDV5RXQzQ0dGYUlkcml4Um5lazRDclhBNS9XYTdxd29abkk4YnlUUjJT?=
=?utf-8?B?UzR6T2tMNHRZcExEOWJ3dUVMSUhPNTAwRXZtWHV2bVk2d1FqeXZWYkhYeVFt?=
=?utf-8?B?UlVRbllrMExCbkh4NEN4S0xmUjNrUDNQb3B1eDJnVjFiMmJpY2ltSEFLRXg1?=
=?utf-8?Q?jZYlpi91AlNUfYpRg9eqhrIo8?=
MIME-Version: 1.0
X-OriginatorOrg: prover.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AS8PR08MB6936.eurprd08.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: ba20e54d-3fc7-48e5-8f9c-08db47105c15
X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Apr 2023 11:12:59.2649 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 496a88d8-7c6f-423f-95bd-eee3dc9aacfc
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: PnsJk6rfPIvDd9yXZkiubwo8C8D1GMVLQ0iA3kd3QQjd2SdH42FKWtbHnMXceocQt+P/wbAqmF3EHKz6j0J0iLGygqDRJT0bnxBlXZ7HrpQ=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR08MB9238
X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, 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
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Daniel Abrahamsson via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Daniel Abrahamsson <daniel DOT abrahamsson AT prover DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 33RBE72g031667

Hi,

I’m 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 rubygems packages.

When installing asciidoctor via `gem install asciidoctor`, a asciidoctor "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 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 -*-
_=_\
=begin
bindir="${0%/*}"
exec "$bindir/ruby" "-x" "$0" "$@"
=end
#!/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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019