ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:108894] [Ruby master Bug#8973] Allow to configure archlibdir for multiarch
       [not found] <redmine.issue-8973.20131001191557.703@ruby-lang.org>
@ 2022-06-14  6:13 ` mame (Yusuke Endoh)
  2022-06-14  7:10 ` [ruby-core:108897] " vo.x (Vit Ondruch)
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: mame (Yusuke Endoh) @ 2022-06-14  6:13 UTC (permalink / raw)
  To: ruby-core

Issue #8973 has been updated by mame (Yusuke Endoh).

Backport deleted (1.9.3: UNKNOWN, 2.0.0: UNKNOWN)
Status changed from Open to Feedback

@vo.x Do you still want this? I'd like to know if the patch is still need to review

----------------------------------------
Bug #8973: Allow to configure archlibdir for multiarch
https://bugs.ruby-lang.org/issues/8973#change-97974

* Author: vo.x (Vit Ondruch)
* Status: Feedback
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* ruby -v: ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-linux]
----------------------------------------
Since r39347, there is impossible to configure placement of rubylib.so when build is configured with "--with-multiarch". That is probably OK for Debian, but it breaks Fedora :/ The attached patch allows to configure the archlibdir, but I feel that it is suboptimal, since the "--with-rubyarchprefix" should probably be the parameter which influences placement of the arch specific libraries. Any chance that this patch is accepted or better if rubyarchprefix is respected for every arch specific library, including libruby.so. Thanks.

---Files--------------------------------
ruby-2.1.0-Enable-configuration-of-archlibdir.patch (479 Bytes)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:108897] [Ruby master Bug#8973] Allow to configure archlibdir for multiarch
       [not found] <redmine.issue-8973.20131001191557.703@ruby-lang.org>
  2022-06-14  6:13 ` [ruby-core:108894] [Ruby master Bug#8973] Allow to configure archlibdir for multiarch mame (Yusuke Endoh)
@ 2022-06-14  7:10 ` vo.x (Vit Ondruch)
  2022-06-14  7:12 ` [ruby-core:108898] " vo.x (Vit Ondruch)
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: vo.x (Vit Ondruch) @ 2022-06-14  7:10 UTC (permalink / raw)
  To: ruby-core

Issue #8973 has been updated by vo.x (Vit Ondruch).


Yes please! We still carry around the patch in Fedora:

https://src.fedoraproject.org/rpms/ruby/blob/rawhide/f/ruby-2.1.0-Enable-configuration-of-archlibdir.patch

----------------------------------------
Bug #8973: Allow to configure archlibdir for multiarch
https://bugs.ruby-lang.org/issues/8973#change-97977

* Author: vo.x (Vit Ondruch)
* Status: Feedback
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* ruby -v: ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-linux]
----------------------------------------
Since r39347, there is impossible to configure placement of rubylib.so when build is configured with "--with-multiarch". That is probably OK for Debian, but it breaks Fedora :/ The attached patch allows to configure the archlibdir, but I feel that it is suboptimal, since the "--with-rubyarchprefix" should probably be the parameter which influences placement of the arch specific libraries. Any chance that this patch is accepted or better if rubyarchprefix is respected for every arch specific library, including libruby.so. Thanks.

---Files--------------------------------
ruby-2.1.0-Enable-configuration-of-archlibdir.patch (479 Bytes)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:108898] [Ruby master Bug#8973] Allow to configure archlibdir for multiarch
       [not found] <redmine.issue-8973.20131001191557.703@ruby-lang.org>
  2022-06-14  6:13 ` [ruby-core:108894] [Ruby master Bug#8973] Allow to configure archlibdir for multiarch mame (Yusuke Endoh)
  2022-06-14  7:10 ` [ruby-core:108897] " vo.x (Vit Ondruch)
@ 2022-06-14  7:12 ` vo.x (Vit Ondruch)
  2022-06-14  8:07 ` [ruby-core:108900] " mame (Yusuke Endoh)
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: vo.x (Vit Ondruch) @ 2022-06-14  7:12 UTC (permalink / raw)
  To: ruby-core

Issue #8973 has been updated by vo.x (Vit Ondruch).


Although I have not checked what is the situation with the `--with-rubyarchprefix` for a long time.

----------------------------------------
Bug #8973: Allow to configure archlibdir for multiarch
https://bugs.ruby-lang.org/issues/8973#change-97978

* Author: vo.x (Vit Ondruch)
* Status: Feedback
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* ruby -v: ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-linux]
----------------------------------------
Since r39347, there is impossible to configure placement of rubylib.so when build is configured with "--with-multiarch". That is probably OK for Debian, but it breaks Fedora :/ The attached patch allows to configure the archlibdir, but I feel that it is suboptimal, since the "--with-rubyarchprefix" should probably be the parameter which influences placement of the arch specific libraries. Any chance that this patch is accepted or better if rubyarchprefix is respected for every arch specific library, including libruby.so. Thanks.

---Files--------------------------------
ruby-2.1.0-Enable-configuration-of-archlibdir.patch (479 Bytes)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:108900] [Ruby master Bug#8973] Allow to configure archlibdir for multiarch
       [not found] <redmine.issue-8973.20131001191557.703@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2022-06-14  7:12 ` [ruby-core:108898] " vo.x (Vit Ondruch)
@ 2022-06-14  8:07 ` mame (Yusuke Endoh)
  2022-06-15  3:55 ` [ruby-core:108924] " nobu (Nobuyoshi Nakada)
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: mame (Yusuke Endoh) @ 2022-06-14  8:07 UTC (permalink / raw)
  To: ruby-core

Issue #8973 has been updated by mame (Yusuke Endoh).

Status changed from Feedback to Assigned

Okay thanks for your quick answer. @nobu Could you review the patch?

----------------------------------------
Bug #8973: Allow to configure archlibdir for multiarch
https://bugs.ruby-lang.org/issues/8973#change-97980

* Author: vo.x (Vit Ondruch)
* Status: Assigned
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* ruby -v: ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-linux]
----------------------------------------
Since r39347, there is impossible to configure placement of rubylib.so when build is configured with "--with-multiarch". That is probably OK for Debian, but it breaks Fedora :/ The attached patch allows to configure the archlibdir, but I feel that it is suboptimal, since the "--with-rubyarchprefix" should probably be the parameter which influences placement of the arch specific libraries. Any chance that this patch is accepted or better if rubyarchprefix is respected for every arch specific library, including libruby.so. Thanks.

---Files--------------------------------
ruby-2.1.0-Enable-configuration-of-archlibdir.patch (479 Bytes)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:108924] [Ruby master Bug#8973] Allow to configure archlibdir for multiarch
       [not found] <redmine.issue-8973.20131001191557.703@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2022-06-14  8:07 ` [ruby-core:108900] " mame (Yusuke Endoh)
@ 2022-06-15  3:55 ` nobu (Nobuyoshi Nakada)
  2023-01-06 13:55 ` [ruby-core:111687] " vo.x (Vit Ondruch) via ruby-core
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: nobu (Nobuyoshi Nakada) @ 2022-06-15  3:55 UTC (permalink / raw)
  To: ruby-core

Issue #8973 has been updated by nobu (Nobuyoshi Nakada).


@vo.x With your patch and `--with-multiarch --with-archlibdir='${libdir}'`, not only libruby.so but also all standard library extensions are placed under `${libdir}` without `${arch}`.
Is this intentional?

----------------------------------------
Bug #8973: Allow to configure archlibdir for multiarch
https://bugs.ruby-lang.org/issues/8973#change-98009

* Author: vo.x (Vit Ondruch)
* Status: Assigned
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* ruby -v: ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-linux]
----------------------------------------
Since r39347, there is impossible to configure placement of rubylib.so when build is configured with "--with-multiarch". That is probably OK for Debian, but it breaks Fedora :/ The attached patch allows to configure the archlibdir, but I feel that it is suboptimal, since the "--with-rubyarchprefix" should probably be the parameter which influences placement of the arch specific libraries. Any chance that this patch is accepted or better if rubyarchprefix is respected for every arch specific library, including libruby.so. Thanks.

---Files--------------------------------
ruby-2.1.0-Enable-configuration-of-archlibdir.patch (479 Bytes)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:111687] [Ruby master Bug#8973] Allow to configure archlibdir for multiarch
       [not found] <redmine.issue-8973.20131001191557.703@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2022-06-15  3:55 ` [ruby-core:108924] " nobu (Nobuyoshi Nakada)
@ 2023-01-06 13:55 ` vo.x (Vit Ondruch) via ruby-core
  2023-01-06 14:33 ` [ruby-core:111692] " vo.x (Vit Ondruch) via ruby-core
  2024-01-19 12:15 ` [ruby-core:116324] " vo.x (Vit Ondruch) via ruby-core
  7 siblings, 0 replies; 8+ messages in thread
From: vo.x (Vit Ondruch) via ruby-core @ 2023-01-06 13:55 UTC (permalink / raw)
  To: ruby-core; +Cc: vo.x (Vit Ondruch)

Issue #8973 has been updated by vo.x (Vit Ondruch).


nobu (Nobuyoshi Nakada) wrote in #note-9:
> @vo.x With your patch and `--with-multiarch --with-archlibdir='${libdir}'`, not only libruby.so but also all standard library extensions are placed under `${libdir}` without `${arch}`.
> Is this intentional?

On Fedora, we don't use the `${arch}` anywhere. It is not assumed that we will mix e.g. aarch64 with x86_64 on one filesystem. We only mix 32/64 bit systems, i.e. i686 together with x86_64. But in that case, the 32 bit code is stored in /usr/lib while the 64 bit code is in /usr/lib64.

Strictly speaking, we still have troubles with headers, but we are using small platform independent wrapper for them. And the `${arch}` could be useful for some user installed gems, but that is different topic.

----------------------------------------
Bug #8973: Allow to configure archlibdir for multiarch
https://bugs.ruby-lang.org/issues/8973#change-101087

* Author: vo.x (Vit Ondruch)
* Status: Feedback
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* ruby -v: ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-linux]
----------------------------------------
Since r39347, there is impossible to configure placement of rubylib.so when build is configured with "--with-multiarch". That is probably OK for Debian, but it breaks Fedora :/ The attached patch allows to configure the archlibdir, but I feel that it is suboptimal, since the "--with-rubyarchprefix" should probably be the parameter which influences placement of the arch specific libraries. Any chance that this patch is accepted or better if rubyarchprefix is respected for every arch specific library, including libruby.so. Thanks.

---Files--------------------------------
ruby-2.1.0-Enable-configuration-of-archlibdir.patch (479 Bytes)


-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:111692] [Ruby master Bug#8973] Allow to configure archlibdir for multiarch
       [not found] <redmine.issue-8973.20131001191557.703@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2023-01-06 13:55 ` [ruby-core:111687] " vo.x (Vit Ondruch) via ruby-core
@ 2023-01-06 14:33 ` vo.x (Vit Ondruch) via ruby-core
  2024-01-19 12:15 ` [ruby-core:116324] " vo.x (Vit Ondruch) via ruby-core
  7 siblings, 0 replies; 8+ messages in thread
From: vo.x (Vit Ondruch) via ruby-core @ 2023-01-06 14:33 UTC (permalink / raw)
  To: ruby-core; +Cc: vo.x (Vit Ondruch)

Issue #8973 has been updated by vo.x (Vit Ondruch).


Actually, the real intention here is to get rid of the `${arch}` from the paths. The thing is that `--enable-multiarch` used to make it possible, because this is the implementation:

~~~
rubyarchprefix=${multiarch+'${archlibdir}/${RUBY_BASE_NAME}'}${multiarch-'${rubylibprefix}/${arch}'}
~~~

As you can see, when `multiarch` is not defined, then the `${arch}` is mandatory. With `multiarch` enabled, it is enough to modify the `${archlibdir}` and whatever is the is there. It does not impose any expectations.

BTW out of curiosity, assuming that upstream expect that Ruby is installed via `./configure && make && make install`, what is the reason to bother with `${arch}` for non multiarch configurations? Does anybody really use single installation directory with multiple architectures?

----------------------------------------
Bug #8973: Allow to configure archlibdir for multiarch
https://bugs.ruby-lang.org/issues/8973#change-101092

* Author: vo.x (Vit Ondruch)
* Status: Feedback
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* ruby -v: ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-linux]
----------------------------------------
Since r39347, there is impossible to configure placement of rubylib.so when build is configured with "--with-multiarch". That is probably OK for Debian, but it breaks Fedora :/ The attached patch allows to configure the archlibdir, but I feel that it is suboptimal, since the "--with-rubyarchprefix" should probably be the parameter which influences placement of the arch specific libraries. Any chance that this patch is accepted or better if rubyarchprefix is respected for every arch specific library, including libruby.so. Thanks.

---Files--------------------------------
ruby-2.1.0-Enable-configuration-of-archlibdir.patch (479 Bytes)


-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:116324] [Ruby master Bug#8973] Allow to configure archlibdir for multiarch
       [not found] <redmine.issue-8973.20131001191557.703@ruby-lang.org>
                   ` (6 preceding siblings ...)
  2023-01-06 14:33 ` [ruby-core:111692] " vo.x (Vit Ondruch) via ruby-core
@ 2024-01-19 12:15 ` vo.x (Vit Ondruch) via ruby-core
  7 siblings, 0 replies; 8+ messages in thread
From: vo.x (Vit Ondruch) via ruby-core @ 2024-01-19 12:15 UTC (permalink / raw)
  To: ruby-core; +Cc: vo.x (Vit Ondruch)

Issue #8973 has been updated by vo.x (Vit Ondruch).


Can this be reopened or should create new ticket?

----------------------------------------
Bug #8973: Allow to configure archlibdir for multiarch
https://bugs.ruby-lang.org/issues/8973#change-106350

* Author: vo.x (Vit Ondruch)
* Status: Feedback
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* ruby -v: ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-linux]
----------------------------------------
Since r39347, there is impossible to configure placement of rubylib.so when build is configured with "--with-multiarch". That is probably OK for Debian, but it breaks Fedora :/ The attached patch allows to configure the archlibdir, but I feel that it is suboptimal, since the "--with-rubyarchprefix" should probably be the parameter which influences placement of the arch specific libraries. Any chance that this patch is accepted or better if rubyarchprefix is respected for every arch specific library, including libruby.so. Thanks.

---Files--------------------------------
ruby-2.1.0-Enable-configuration-of-archlibdir.patch (479 Bytes)


-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-01-19 12:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-8973.20131001191557.703@ruby-lang.org>
2022-06-14  6:13 ` [ruby-core:108894] [Ruby master Bug#8973] Allow to configure archlibdir for multiarch mame (Yusuke Endoh)
2022-06-14  7:10 ` [ruby-core:108897] " vo.x (Vit Ondruch)
2022-06-14  7:12 ` [ruby-core:108898] " vo.x (Vit Ondruch)
2022-06-14  8:07 ` [ruby-core:108900] " mame (Yusuke Endoh)
2022-06-15  3:55 ` [ruby-core:108924] " nobu (Nobuyoshi Nakada)
2023-01-06 13:55 ` [ruby-core:111687] " vo.x (Vit Ondruch) via ruby-core
2023-01-06 14:33 ` [ruby-core:111692] " vo.x (Vit Ondruch) via ruby-core
2024-01-19 12:15 ` [ruby-core:116324] " vo.x (Vit Ondruch) via ruby-core

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 NNTP newsgroup(s).