ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "Eregon (Benoit Daloze)" <noreply@ruby-lang.org>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:105646] [Ruby master Feature#17760] Where we should install a header file when `gem install --user`?
Date: Fri, 15 Oct 2021 16:30:41 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-94136.20211015163041.482@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-17760.20210330005044.482@ruby-lang.org

Issue #17760 has been updated by Eregon (Benoit Daloze).


byroot (Jean Boussier) wrote in #note-8:
> e.g. I have `app1` with `digest 3.0.0` and `app2` with `digest 3.2.0`, both have `somegem-that-link-to-digest`, this means we'd need to compile that gem twice and link against different headers?

This is a good point.
Maybe it can be resolved by `somegem-that-link-to-digest` depending on an exact version (or small range of versions) of digest which have the same header and fully compatible (both forward and backward between all those versions)?
I.e., the header is also part of API (or technically ABI) so if `digest` changes the header in some incompatible way (including what gets generated by gems using it), then it should bump the major version (or some other well-documented scheme).

> Seems complicated. Maybe I should put this to the next developers meeting agenda.

Yes, I think that would be useful.


----------------------------------------
Feature #17760: Where we should install a header file when `gem install --user`?
https://bugs.ruby-lang.org/issues/17760#change-94136

* Author: mrkn (Kenta Murata)
* Status: Third Party's Issue
* Priority: Normal
----------------------------------------
As `digest` have been made a default gem at Ruby 3.0,  it can be installed by `gem install` command.

When we install `digest`, `digest.h` is installed at the same directory as `ruby.h`.  But when we use `gem install --user` for installing it, where should `digest.h` is installed in?

Now, the location of `digest.h` is always the same directory as `ruby.h` regardless of whether we use `gem install --user`.  It occurs permission error when non-root user uses `gem install --user` for installing `digest` on the system-ruby.



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

  parent reply	other threads:[~2021-10-15 16:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-30  0:50 [ruby-core:103088] [Ruby master Feature#17760] Where we should install a header file when `gem install --user`? muraken
2021-03-30  0:51 ` [ruby-core:103089] " muraken
2021-03-30 14:20 ` [ruby-core:103101] " nobu
2021-10-14 15:40 ` [ruby-core:105635] " Eregon (Benoit Daloze)
2021-10-15  7:44 ` [ruby-core:105639] " byroot (Jean Boussier)
2021-10-15  8:05 ` [ruby-core:105640] " deivid
2021-10-15 11:01 ` [ruby-core:105642] " byroot (Jean Boussier)
2021-10-15 16:25 ` [ruby-core:105645] " Eregon (Benoit Daloze)
2021-10-15 16:30 ` Eregon (Benoit Daloze) [this message]
2021-10-15 17:16 ` [ruby-core:105647] " byroot (Jean Boussier)
2021-10-21  9:41 ` [ruby-core:105725] " knu (Akinori MUSHA)

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-94136.20211015163041.482@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).