Bug 251484

Summary: devel/ruby-gems: with ruby 3.0, directories under gems/3.0 do not get created
Product: Ports & Packages Reporter: Val Packett <val>
Component: Individual Port(s)Assignee: Adam Weinberger <adamw>
Status: Closed FIXED    
Severity: Affects Only Me CC: adamw, meta
Priority: --- Keywords: buildisok
Version: LatestFlags: bugzilla: maintainer-feedback? (ruby)
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 253104    
Attachments:
Description Flags
rubygem-dirs.patch
none
rubygem-dirs.patch v2 none

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.