public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Daisuke Fujimura <booleanlabel@gmail.com>
To: cygwin-apps@cygwin.com
Subject: [PATCH cygport] rubygems.cygclass: set relative paths in bindir
Date: Tue, 2 May 2023 19:16:02 +0900	[thread overview]
Message-ID: <CAA3frXT8DpVhuM3Q=zJHS7QBg=PhVO8xrwkj=KepPRWy6-NM8w@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 351 bytes --]

If the `--build-root` option is specified for the `gem` command, the
value of the `--bindir` option must be a relative path.

https://github.com/rubygems/rubygems/blob/v3.4.12/lib/rubygems/installer.rb#L678-L679

This problem seems to have occurred since this commit.

https://github.com/cygwin/cygport/commit/18bd795f82d3abeff333d35ce089dd55fa2b192c

[-- Attachment #2: rubygems.cygclass.patch --]
[-- Type: application/octet-stream, Size: 686 bytes --]

diff --git a/cygclass/rubygem.cygclass b/cygclass/rubygem.cygclass
index 13d7b1c5..4c6b710d 100644
--- a/cygclass/rubygem.cygclass
+++ b/cygclass/rubygem.cygclass
@@ -132,7 +132,7 @@ rubygem_install() {
 #****
 	CONFIGURE_ARGS="--with-cflags='${CFLAGS} -fdebug-prefix-map=${D}${RUBYGEM_INSTDIR}=/usr/src/debug/${NAME}-${VERSION}-${RELEASE}' $RUBYGEM_CONFIGURE_ARGS $@" \
 	gem install -V --local --ignore-dependencies --document=rdoc,ri \
-		--build-root ${D} --install-dir ${RUBYGEM_DIR} --bindir ${D}$(__host_prefix)/bin \
+		--build-root ${D} --install-dir ${RUBYGEM_DIR} --bindir $(__host_prefix)/bin \
 		${RUBYGEM_NAME}-${VERSION}.gem
 
 	# used later to clean up RUBYGEM_INSTDIR

             reply	other threads:[~2023-05-02 10:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-02 10:16 Daisuke Fujimura [this message]
2023-05-04 13:33 ` Jon Turney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA3frXT8DpVhuM3Q=zJHS7QBg=PhVO8xrwkj=KepPRWy6-NM8w@mail.gmail.com' \
    --to=booleanlabel@gmail.com \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).