Bug 251484 - devel/ruby-gems: with ruby 3.0, directories under gems/3.0 do not get created
Summary: devel/ruby-gems: with ruby 3.0, directories under gems/3.0 do not get created
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Adam Weinberger
URL:
Keywords: buildisok
Depends on:
Blocks: 253104
  Show dependency treegraph
 
Reported: 2020-11-30 15:14 UTC by Val Packett
Modified: 2022-04-11 15:41 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (ruby)


Attachments
rubygem-dirs.patch (2.33 KB, patch)
2020-11-30 15:14 UTC, Val Packett
no flags Details | Diff
rubygem-dirs.patch v2 (2.39 KB, patch)
2020-11-30 15:32 UTC, Val Packett
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Val Packett 2020-11-30 15:14:54 UTC
Created attachment 220104 [details]
rubygem-dirs.patch

Building in poudriere with DEFAULT_VERSIONS+=ruby=3.0:

===>  Building package for ruby30-gems-3.0.8
pkg-static: Unable to access file /wrkdirs/usr/ports/devel/ruby-gems/work/stage/usr/local/lib/ruby/gems/3.0/build_info/:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/devel/ruby-gems/work/stage/usr/local/lib/ruby/gems/3.0/extensions/:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/devel/ruby-gems/work/stage/usr/local/lib/ruby/gems/3.0/cache/:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/devel/ruby-gems/work/stage/usr/local/lib/ruby/gems/3.0/gems/:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/devel/ruby-gems/work/stage/usr/local/lib/ruby/gems/3.0/specifications/:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/devel/ruby-gems/work/stage/usr/local/lib/ruby/gems/3.0/doc/:No such file or directory
*** Error code 1

Manually creating the directories like in the attached patch helps.
Comment 1 Val Packett 2020-11-30 15:32:18 UTC
Created attachment 220107 [details]
rubygem-dirs.patch v2

argh forgot build_info
Comment 2 Automation User 2020-12-15 05:29:57 UTC
Build and package info is available at https://gitlab.com/swills/freebsd-ports/pipelines/229800352
Comment 3 Koichiro Iwao freebsd_committer freebsd_triage 2021-01-04 04:15:28 UTC
I reproduced the original issue.
Comment 4 Adam Weinberger freebsd_committer freebsd_triage 2021-01-25 19:20:24 UTC
This was opened two months ago, and it is preventing any gem installation under ruby30.

I'm going to commit this patch, as this problem should not have sat this long.
Comment 5 commit-hook freebsd_committer freebsd_triage 2021-01-25 19:23:28 UTC
A commit references this bug:

Author: adamw
Date: Mon Jan 25 19:22:56 UTC 2021
New revision: 562604
URL: https://svnweb.freebsd.org/changeset/ports/562604

Log:
  devel/ruby-gems: Fix packaging in ruby30

  This was preventing any gems from being installed under ruby30.

  PR:		251484
  Submitted by:	Greg V
  MFH:		2021Q1

Changes:
  head/devel/ruby-gems/Makefile
Comment 6 Adam Weinberger freebsd_committer freebsd_triage 2021-01-25 19:29:05 UTC
I've committed the patch to head. If all is good it will need an MFH, though there's no rush for that.

If this commit was premature, please update the PR with what it's waiting on, accept my apologies and let me know and I will revert.