Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618878 - dev-lang/ruby: mingw-w64 fixup
Summary: dev-lang/ruby: mingw-w64 fixup
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: 2017-05-18 21:16 UTC by hanetzer
Modified: 2017-05-27 06:04 UTC (History)
0 users

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


Attachments
enables static building of dev-lang/ruby (ruby-static.patch,1001 bytes, patch)
2017-05-18 21:16 UTC, hanetzer
Details | Diff
dev-lang/ruby: remove hardcoded version number in libraries. (changeset_r57825.diff,1.67 KB, patch)
2017-05-18 21:17 UTC, hanetzer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description hanetzer 2017-05-18 21:16:26 UTC
Created attachment 473184 [details, diff]
enables static building of dev-lang/ruby

A few patches to make crossdev for mingw-w64 play nice with ruby's ebuilds.
Basic gist is that without the following patch to configure.in ruby-2.4.1
hardcodes 240 into the shared, static, and import library names, which when
built with the current ruby ebuilds results in names like libx64-msvcrt-ruby24240.dll and so on. The patch is in ruby-trunk[1], but may take a while
to hit the tarballs that gentoo uses. Unsure of where to insert it into the
ebuild, so I'll let the ruby team decide.

In addition, a small adjustment to the ebuild itself to allow for building
a static library; my primary use case is static builds for mkxp[2] for some
of my less technically literate friends.
Comment 1 hanetzer 2017-05-18 21:17:34 UTC
Created attachment 473186 [details, diff]
dev-lang/ruby: remove hardcoded version number in libraries.
Comment 2 hanetzer 2017-05-18 21:18:31 UTC
(In reply to ntzrmtthihu777+gentoo from comment #0)
> Created attachment 473184 [details, diff] [details, diff]
> enables static building of dev-lang/ruby
> 
> A few patches to make crossdev for mingw-w64 play nice with ruby's ebuilds.
> Basic gist is that without the following patch to configure.in ruby-2.4.1
> hardcodes 240 into the shared, static, and import library names, which when
> built with the current ruby ebuilds results in names like
> libx64-msvcrt-ruby24240.dll and so on. The patch is in ruby-trunk[1], but
> may take a while
> to hit the tarballs that gentoo uses. Unsure of where to insert it into the
> ebuild, so I'll let the ruby team decide.
> 
> In addition, a small adjustment to the ebuild itself to allow for building
> a static library; my primary use case is static builds for mkxp[2] for some
> of my less technically literate friends.

[1] https://bugs.ruby-lang.org/issues/13296
[2] https://github.com/Ancurio/mkxp
Comment 3 Hans de Graaff gentoo-dev Security 2017-05-27 06:04:04 UTC
Thanks for the patches. Both changes (static-libs and crossdev soname support) have been applied to ruby-2.4.1-r2.