Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Sep 2020 17:30:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        ruby@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 249083] devel/ruby-gems
Message-ID:  <bug-249083-21402-7ASF1U2TDq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-249083-21402@https.bugs.freebsd.org/bugzilla/>
References:  <bug-249083-21402@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-ruby (Nobody)
<ruby@FreeBSD.org> for maintainer-feedback:
Bug 249083: devel/ruby-gems
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249083



--- Description ---
If one has moved /usr/local to a separate file system and symlink'ed it to =
it's
original location (e.g.: /usr/ports - > /u1/usr-local ), then during install
the commands:

/bin/mkdir -p /usr/ports/devel/ruby-gems/work/stage/usr/local/lib/ruby/gems=
/2.6
cd /usr/ports/devel/ruby-gems/work/rubygems-3.0.6/ && /usr/bin/env
DONT_USE_BUNDLER_FOR_GEMDEPS=3Dtrue G
EM_HOME=3D/usr/ports/devel/ruby-gems/work/stage/usr/local/lib/ruby/gems/2.6
/usr/local/bin/ruby26 setup.
rb --destdir=3D/usr/ports/devel/ruby-gems/work/stage --no-regenerate-binstu=
bs
--no-ri --no-rdoc

causes the creation of two trees in ./stage:

./stage/u1/usr-local/bin/gem26
./stage/usr/local... [everything else]

Only the script gem26 appears in the path ./u1/usr-local/.., but that's
sufficient for the install to fail with:

pkg-static: Unable to access file
/usr/ports/devel/ruby-gems/work/stage/usr/local/bin/gem26:No such fi
le or directory

My work-around was to "make" "mv u1/usr-local/bin/gem26 usr/local/bin/" "ma=
ke
install"

I believe this is a bug in the ruby script 'setup,' but I have never learned
ruby.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249083-21402-7ASF1U2TDq>