From: Maurice Smulders <maurice.smulders@genevatech.net>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:99486] Core Ruby Build question
Date: Wed, 5 Aug 2020 14:07:15 -0600 [thread overview]
Message-ID: <CACxOKoKip0Vxqg96G4C5rXjwmB29NKZ4A9Kzaze-yuV-Qsh_3A@mail.gmail.com> (raw)
Hello,
As cross compiling Ruby Gems other than windows versions has proven to
be impossibly difficult. i resorted to another solution. I installed
the needed files from cbor-ruby into the /ext subtree into the core
ruby source in our buildroot environment. I am mostly successful,
except for one small hiccup.
Ruby version 2.7.1
My source tree looks as follows:
|-- ext
| |-- cbor
| | |-- buffer.c
| | |-- buffer.h
| | |-- buffer_class.c
| | |-- buffer_class.h
| | |-- cbor.gemspec
| | |-- cbor.h
| | |-- compat.h
| | |-- core_ext.c
| | |-- core_ext.h
| | |-- extconf.rb
| | |-- lib
| | | |-- cbor
| | | | `-- version.rb
| | | `-- cbor.rb
| | |-- packer.c
| | |-- packer.h
| | |-- packer_class.c
| | |-- packer_class.h
| | |-- rbinit.c
| | |-- renamer.h
| | |-- rmem.c
| | |-- rmem.h
| | |-- sysdep.h
| | |-- sysdep_endian.h
| | |-- sysdep_types.h
| | |-- unpacker.c
| | |-- unpacker.h
| | |-- unpacker_class.c
| | `-- unpacker_class.h
Target installation is:
./usr/lib/libtinycbor.so
./usr/lib/ruby/2.7.0/cbor
./usr/lib/ruby/2.7.0/cbor/cbor
./usr/lib/ruby/2.7.0/cbor/cbor/version.rb
./usr/lib/ruby/2.7.0/cbor/cbor.rb
./usr/lib/ruby/2.7.0/powerpc-linux-gnuspe/cbor
./usr/lib/ruby/2.7.0/powerpc-linux-gnuspe/cbor/cbor.so
./usr/lib/ruby/gems/2.7.0/specifications/default/cbor-0.5.9.6.gemspec
./usr/lib/ruby/gems/2.7.0/gems/cbor-0.5.9.6
.
It needs to be:
./usr/lib/ruby/2.7.0/cbor/version.rb
./usr/lib/ruby/2.7.0/cbor.rb
./usr/lib/ruby/2.7.0/powerpc-linux-gnuspe/cbor
./usr/lib/ruby/2.7.0/powerpc-linux-gnuspe/cbor/cbor.so
./usr/lib/ruby/gems/2.7.0/specifications/default/cbor-0.5.9.6.gemspec
./usr/lib/ruby/gems/2.7.0/gems/cbor-0.5.9.6
Note the cbor.rb file and version.rb file need to be moved up one directory.
I have made changes to
misc/expand_tabs.rb: cbor
I also looked at other ext(ensions) like openssl:
From:
./ext/openssl/lib/openssl.rb
./test/rubygems/fake_certlib/openssl.rb
installed:
./ruby/2.7.0/openssl.rb
I am missing something, but don't know what yet...
What script/file controls the install destination?
- Maurice
--
Maurice Smulders
next reply other threads:[~2020-08-05 20:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-05 20:07 Maurice Smulders [this message]
2020-08-10 15:29 ` [ruby-core:99544] Re: Core Ruby Build question Maurice Smulders
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=CACxOKoKip0Vxqg96G4C5rXjwmB29NKZ4A9Kzaze-yuV-Qsh_3A@mail.gmail.com \
--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).