Fails check with with mocha 2+
Task Info (Flyspray) | |
---|---|
Opened By | loqs (loqs) |
Task ID | 79724 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2023-09-17 20:31:53 UTC |
Status | Assigned |
Assignee | Andreas Schleifer (Segaja) |
Details
Description: ruby-stackprof fails check with mocha 2 or newer [1]. Not an upstream issue as the Gemfile contains "'mocha', '~> 0.14'" [2]. The PKGBUILD changes that to "'mocha', '>= 0.14'" [3]. Upstream removed use of mocha in [4]. Fixed by replacing "require 'mocha/setup'" with "require 'mocha/minitest'" in test/test_middleware.rb. See [5].
Additional info:
- ruby-stackprof 0.2.22-1
- ruby-mocha 2.1.0-1 [1] ruby-stackprof-0.2.22-1-x86_64-check.log [2] https://github.com/tmm1/stackprof/blob/v0.2.22/stackprof.gemspec#L32 [3] https://gitlab.archlinux.org/archlinux/packaging/packages/ruby-stackprof/-/blob/b3f7121868e2bceeacf989ec2ca7690df910b001/PKGBUILD#L22 [4] https://github.com/tmm1/stackprof/commit/bb92978cfc7d1f3ccddb62ae59c67c93c1d3de8b [5] PKGBUILD.diff
Steps to reproduce: $ pkgctl repo clone --protocol=https ruby-stackprof $ cd ruby-stackprof/ $ pkgctl build