ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: shyouhei@ruby-lang.org
To: ruby-core@ruby-lang.org
Subject: [ruby-core:83414] [Ruby trunk Feature#13653] Bundled zlib helper
Date: Fri, 20 Oct 2017 02:16:10 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-67379.20171020021609.7a774f34408da639@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-13653.20170613120147@ruby-lang.org

Issue #13653 has been updated by shyouhei (Shyouhei Urabe).


We took a look at this issue at yesterday's developer meeting.

It surprised me that currently, zlib and several other header files are mandatory for building ruby from the source.  It might be trivial for developers like us, but not for everyone who try compiling ruby.

The solutions to cover this glitch might include:

- Ship zlib along with ruby.  This menu has additional choice whether the bundled zlib shall be statically linked or not.
- Fetch and compile zlib before building ruby, by the ruby-build script.  This one needs to pass the result of zlib detection between ruby and ruby-build.

Either way ext/zlib has to be aware of the situation.  The OP's pull request is for that purpose.

----------------------------------------
Feature #13653: Bundled zlib helper
https://bugs.ruby-lang.org/issues/13653#change-67379

* Author: hsbt (Hiroshi SHIBATA)
* Status: Assigned
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 
----------------------------------------
I created experimentally implementation for zlib-binding helper of bundled build.

 * https://github.com/ruby/ruby/pull/1638
 * https://patch-diff.githubusercontent.com/raw/ruby/ruby/pull/1638.patch

I also maintain ruby-build that is multi-platform build wrapper for ruby. I often got build failure
report caused to missing zlib headers. examples are here.

 * https://github.com/rbenv/ruby-build/issues/832
 * https://github.com/rbenv/ruby-build/issues/780

I hope to resolve this situation for ruby users.

my patch make to build zlib-binding with bundled zlib sources. It only enabled when It was given
`--enable-bundled-zlib` option with `configure` phase.




-- 
https://bugs.ruby-lang.org/

  parent reply	other threads:[~2017-10-20  2:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-13653.20170613120147@ruby-lang.org>
2017-06-13 12:01 ` [ruby-core:81660] [Ruby trunk Feature#13653] Bundled zlib helper hsbt
2017-06-13 13:54 ` [ruby-core:81663] " nobu
2017-10-20  2:16 ` shyouhei [this message]
2017-10-20  2:37 ` [ruby-core:83416] " hsbt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-67379.20171020021609.7a774f34408da639@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).