[DRE-commits] [ruby-ffi] 01/09: Add instructions for porters

Antonio Terceiro terceiro at moszumanska.debian.org
Wed Jan 8 12:48:13 UTC 2014


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository ruby-ffi.

commit 8dd9000f5d3aaa2b831d96e730aa71ef93ed7b62
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Wed Jan 8 09:29:40 2014 -0300

    Add instructions for porters
---
 debian/README.porting | 13 +++++++++++++
 debian/rules          |  4 ++++
 2 files changed, 17 insertions(+)

diff --git a/debian/README.porting b/debian/README.porting
new file mode 100644
index 0000000..812d80a
--- /dev/null
+++ b/debian/README.porting
@@ -0,0 +1,13 @@
+Before building this package for new architectures, you have first to generate
+a configuration for that architecture, which is used at runtime to determine
+size of data types.
+
+To do that, just run:
+
+  $ debian/rules gen_arch_config
+ 
+This will create a new configuration directory in lib/ffi/platform/ for the new
+architecture, and a types.conf file inside it. Please submit that file to be
+included in the upstream sources.
+
+ -- Antonio Terceiro <terceiro at debian.org>  Wed, 08 Jan 2014 09:26:30 -0300
diff --git a/debian/rules b/debian/rules
index d79bb22..d7fcfe8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,3 +20,7 @@ platform_dir := debian/ruby-ffi/usr/lib/ruby/vendor_ruby/ffi/platform
 override_dh_auto_clean:
 	dh_auto_clean
 	rm -rf build/
+
+gen_arch_config:
+	(cd ext/ffi_c && ruby extconf.rb && make && cp ffi_c.so ../../lib)
+	(cd gen && rake)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-ffi.git



More information about the Pkg-ruby-extras-commits mailing list