FS#79721 - [ruby-i18n] Fails check with with mocha 2+

Attached to Project: Arch Linux
Opened by loqs (loqs) - Sunday, 17 September 2023, 15:15 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
ruby-i18n fails check with mocha 2 or newer [1]. Not an upstream issue as the Gemfile contains "gem 'mocha', '~> 1.7.0'" [2]. The PKGBUILD removes the Gemfile [3]
Fixed by replacing "require 'mocha/setup'" with "require 'mocha/minitest'" in test/test_helper.rb. Proposed fix in PKGBUILD.diff [4].

Additional info:
* ruby-i18n 1.12.0-1
* ruby-mocha 2.1.0-1
[1] ruby-i18n-1.12.0-1-x86_64-check.log
[2] https://github.com/ruby-i18n/i18n/blob/v1.12.0/Gemfile#L5
[3] https://gitlab.archlinux.org/archlinux/packaging/packages/ruby-i18n/-/blob/86b8efcb5096bf69e3f3388d8312fcd95a1ba284/PKGBUILD#L26
[4] PKGBUILD.diff

Steps to reproduce:
$ pkgctl repo clone --protocol=https ruby-i18n
$ cd ruby-i18n
$ pkgctl build
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:19 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/ruby-i18n/issues/1
Comment by loqs (loqs) - Sunday, 17 September 2023, 20:33 GMT
Attached missing [4] PKGBUILD.diff.

Loading...