Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835322 - dev-ruby/mail-2.7.1-r1 fails tests on MUSL
Summary: dev-ruby/mail-2.7.1-r1 fails tests on MUSL
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-15 09:16 UTC by Agostino Sarubbo
Modified: 2023-04-05 03:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,46.54 KB, text/plain)
2022-03-15 09:16 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-03-15 09:16:02 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-ruby/mail-2.7.1-r1 fails tests on MUSL.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-03-15 09:16:04 UTC
Created attachment 767089 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-03-15 09:16:04 UTC
Error(s) that match a know pattern:


     Failure/Error: expect { Mail::SenderField.new('Mikel Lindsaar <mikel@test.lindsaar.net>, "Bob Smith" <bob@me.com>') }.to raise_error(Mail::Field::ParseError)
     Failure/Error: expect(mail.from).to eq 'John Doe <jdoe@machine(comment).example>'
     Failure/Error: hash = YAML.load(str)
     Failure/Error: raise Mail::Field::IncompleteParseError.new(Mail::AddressList, data, p)
     Failure/Error: yaml_hash = YAML.load(yaml)
     Failure/Error: yaml_output = YAML.load(yaml)
     Mail::Field::IncompleteParseError:
Comment 3 Larry the Git Cow gentoo-dev 2023-04-05 03:17:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09f1485536783ef9d2f7309ca29b899133162c43

commit 09f1485536783ef9d2f7309ca29b899133162c43
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-05 02:05:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-05 03:16:07 +0000

    dev-ruby/mail: fix 2.7.x compat w/ newer psych (+ enable ruby31, enable ruby32)
    
    mail-2.7.x is still needed for Rails. It turns out that this got broken
    by newer Psych so tests were failing for ruby27 too. Backport the upstream
    patch (actually, use Debian's backport, done for us) which is pretty
    conversative and just adds a shim for newer Psych to set the needed
    attributes.
    
    Closes: https://bugs.gentoo.org/835322
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-ruby/mail/files/mail-2.7.1-psych-4.patch | 122 +++++++++++++++++++++++++++
 dev-ruby/mail/mail-2.7.1-r1.ebuild           |   4 +-
 dev-ruby/mail/mail-2.7.1-r2.ebuild           |  37 ++++++++
 3 files changed, 161 insertions(+), 2 deletions(-)