Forum: Ruby-core [ruby-trunk - Bug #7874][Open] multiarch support enhancements

Posted by terceiro (Antonio Terceiro) (Guest)
on 2013-02-17 19:57
(Received via mailing list)
Issue #7874 has been reported by terceiro (Antonio Terceiro).

----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874

Author: terceiro (Antonio Terceiro)
Status: Open
Priority: Normal
Assignee:
Category:
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by terceiro (Antonio Terceiro) (Guest)
on 2013-02-17 20:27
(Received via mailing list)
Issue #7874 has been updated by terceiro (Antonio Terceiro).


Hi,

there is also another problem: when --enabled-shared is used, the shared 
libraries are not installed in the multiarch path. I am working on a 
patch for that.
----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36451

Author: terceiro (Antonio Terceiro)
Status: Open
Priority: Normal
Assignee:
Category:
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by Vít Ondruch (vo_x)
on 2013-02-17 20:37
(Received via mailing list)
Issue #7874 has been updated by vo.x (Vit Ondruch).


Ad 1) You can use --host=x86_64-linux-gnu if I am not mistaken.
Ad 2) It seems to duplicate #7867
----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36452

Author: terceiro (Antonio Terceiro)
Status: Open
Priority: Normal
Assignee:
Category:
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by terceiro (Antonio Terceiro) (Guest)
on 2013-02-17 23:39
(Received via mailing list)
Issue #7874 has been updated by terceiro (Antonio Terceiro).

File 0002-Install-libraries-and-pkg-config-data-into-multiarch.patch 
added

Attaching a patch that fixes the path for installing both the libraries 
and the pkg-config data. It supersedes 
0002-Install-pkgconfig-data-to-architecture-specific-path.patch attached 
before.
----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36454

Author: terceiro (Antonio Terceiro)
Status: Open
Priority: Normal
Assignee:
Category:
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by ko1 (Koichi Sasada) (Guest)
on 2013-02-18 00:42
(Received via mailing list)
Issue #7874 has been updated by ko1 (Koichi Sasada).

Category set to build
Assignee set to nobu (Nobuyoshi Nakada)


----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36457

Author: terceiro (Antonio Terceiro)
Status: Open
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by mame (Yusuke Endoh) (Guest)
on 2013-02-18 17:37
(Received via mailing list)
Issue #7874 has been updated by mame (Yusuke Endoh).


Hello Antoino,

Doesn't Vit's comment help you?
And please attach the patch for "another issue" into the ticket #7867.

Thanks!

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36558

Author: terceiro (Antonio Terceiro)
Status: Open
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by terceiro (Antonio Terceiro) (Guest)
on 2013-02-18 19:35
(Received via mailing list)
Issue #7874 has been updated by terceiro (Antonio Terceiro).


mame (Yusuke Endoh) wrote:
> Hello Antoino,
>
> Doesn't Vit's comment help you?

I tried --host= but it does not have any effect on the paths used in the 
installation. In this case we really need to use the standard 
architecture name for $arch.

> And please attach the patch for "another issue" into the ticket #7867.

Fair enough - just did it. But note that such patch fixes #7867 *and* 
stuff I am reporting here (i.e. the install path for libraries (.so, .a) 
into multiarch paths.

----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36568

Author: terceiro (Antonio Terceiro)
Status: Open
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by Nobuyoshi Nakada (nobu)
on 2013-02-19 14:56
(Received via mailing list)
Issue #7874 has been updated by nobu (Nobuyoshi Nakada).


The arch name is taken from --target option, not --host.
----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36616

Author: terceiro (Antonio Terceiro)
Status: Open
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by Nobuyoshi Nakada (nobu)
on 2013-02-19 15:19
(Received via mailing list)
Issue #7874 has been updated by nobu (Nobuyoshi Nakada).


As for the second patch,  I guess it would be:
  AC_SUBST(ENABLE_MULTIARCH, ${multiarch:-no})
Note the colon.
----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36618

Author: terceiro (Antonio Terceiro)
Status: Open
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by Nobuyoshi Nakada (nobu)
on 2013-02-20 05:14
(Received via mailing list)
Issue #7874 has been updated by nobu (Nobuyoshi Nakada).


Sorry, I's confused a little last night.
multiarch is set to an empty string or unset, so terceiro's substitution 
is correct.
----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36643

Author: terceiro (Antonio Terceiro)
Status: Open
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by mame (Yusuke Endoh) (Guest)
on 2013-02-20 08:20
(Received via mailing list)
Issue #7874 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned

Sorry, I don't understand the situation.
Nobu, do you think that we should import terceiro's patches?

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36658

Author: terceiro (Antonio Terceiro)
Status: Assigned
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by Nobuyoshi Nakada (nobu)
on 2013-02-20 10:03
(Received via mailing list)
Issue #7874 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Closed to Open
% Done changed from 100 to 50


----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36664

Author: terceiro (Antonio Terceiro)
Status: Open
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by Nobuyoshi Nakada (nobu)
on 2013-02-20 14:16
(Received via mailing list)
Issue #7874 has been updated by nobu (Nobuyoshi Nakada).


I think r39334 fixes a longstanding bug, which ignores explicitly 
specified option, not only guessed name.
----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36672

Author: terceiro (Antonio Terceiro)
Status: Closed
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by terceiro (Antonio Terceiro) (Guest)
on 2013-02-21 02:16
(Received via mailing list)
Issue #7874 has been updated by terceiro (Antonio Terceiro).


thanks!
----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36692

Author: terceiro (Antonio Terceiro)
Status: Closed
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by Nobuyoshi Nakada (nobu)
on 2013-02-21 10:11
(Received via mailing list)
Issue #7874 has been updated by nobu (Nobuyoshi Nakada).


Others are libdir concerned patches, and I think they are not stable 
enough to backport yet.
----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36706

Author: terceiro (Antonio Terceiro)
Status: Closed
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Posted by terceiro (Antonio Terceiro) (Guest)
on 2013-02-21 13:53
(Received via mailing list)
Issue #7874 has been updated by terceiro (Antonio Terceiro).


Hi,

With the current state in trunk it does not build anymore:

$ autoreconf && ./configure --target=x86_64-linux-gnu --enable-multiarch
[...]
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ruby-2.0.pc
Variable 'archlibdir' not defined in './ruby.tmp.pc'

----------------------------------------
Bug #7874: multiarch support enhancements
https://bugs.ruby-lang.org/issues/7874#change-36709

Author: terceiro (Antonio Terceiro)
Status: Closed
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-17 trunk 39293)


Hi, I am one the maintainers of Ruby in Debian, thanks a lot for adding 
multiarch support.

While preparing packages for Ruby 2.0, I found two issues:

1) On a x86_64 Debian system with Linux kernel, Ruby will say that the 
architecture is "x86_64-linux", but the standard architecture name for 
such a system, as used in multiarch-enabled packages, is 
"x86_64-linux-gnu". In order to not break other systems, I suggest 
adding a --with-multiarchname argument to ./configure so that the Debian 
package can pass in the appropriate architecture name during ./configure 
stage.

2) the pkg-config data also has to be installed inside multiarch paths.

I am attaching patches for both issues.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.