Source: rubyluabridge
Version: 0.8.0-2
Severity: important
Tags: patch
User: pkg-ruby-extras-maintain...@lists.alioth.debian.org
Usertags: ruby2.7-transition


The fact that rubyluabridge use a custom build system makes it so that
it does not get automatic support for new ruby interpreters during
transitions.

The attached patch is a minimal change that makes rubyluabridge use the
standard Debian buildsystem, so that on transitions just rebuilding it
adds support for the new Ruby interpreter.

Please consider applying this patch, it will make the lifes of the ruby
interpreter maintainers a bit easier on each transition.

Comparing packages build without and with this patch, the only
difference is the presence of an extra shared library for the new ruby
interpreter, e.g. today diffoscope says this:

├── data.tar.xz
│ ├── data.tar
│ │ ├── file list
│ │ │ @@ -2,14 +2,16 @@
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-08-26 
13:16:02.000000 ./usr/
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-08-26 
13:16:02.000000 ./usr/lib/
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-08-26 
13:16:02.000000 ./usr/lib/x86_64-linux-gnu/
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-08-26 
13:16:02.000000 ./usr/lib/x86_64-linux-gnu/ruby/
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-08-26 
13:16:02.000000 ./usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-08-26 
13:16:02.000000 ./usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.5.0/
│ │ │  -rw-r--r--   0 root         (0) root         (0)    43016 2019-08-26 
13:16:02.000000 
./usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.5.0/rubyluabridge.so
│ │ │ +drwxr-xr-x   0 root         (0) root         (0)        0 2019-08-26 
13:16:02.000000 ./usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.7.0/
│ │ │ +-rw-r--r--   0 root         (0) root         (0)    43016 2019-08-26 
13:16:02.000000 
./usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.7.0/rubyluabridge.so
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-08-26 
13:16:02.000000 ./usr/share/
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-08-26 
13:16:02.000000 ./usr/share/doc/
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-08-26 
13:16:02.000000 ./usr/share/doc/ruby-luabridge/
│ │ │  -rw-r--r--   0 root         (0) root         (0)     2053 2019-08-26 
13:16:02.000000 ./usr/share/doc/ruby-luabridge/README.gz
│ │ │  -rw-r--r--   0 root         (0) root         (0)     1149 2019-08-26 
13:16:02.000000 ./usr/share/doc/ruby-luabridge/changelog.Debian.gz
│ │ │  -rw-r--r--   0 root         (0) root         (0)     4793 2019-08-26 
13:16:02.000000 ./usr/share/doc/ruby-luabridge/copyright
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-08-26 
13:16:02.000000 ./usr/share/doc/ruby-luabridge/html/


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-4-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_CRAP
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), 
LANGUAGE=pt_BR:pt:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru rubyluabridge-0.8.0/debian/control rubyluabridge-0.8.0/debian/control
--- rubyluabridge-0.8.0/debian/control	2019-08-26 10:12:46.000000000 -0300
+++ rubyluabridge-0.8.0/debian/control	2020-02-21 12:02:35.000000000 -0300
@@ -7,6 +7,7 @@
 Standards-Version: 4.4.0
 Vcs-Browser: https://bitbucket.org/neomantra/rubyluabridge/src/debian/
 Vcs-Hg: https://bitbucket.org/neomantra/rubyluabridge/src/debian/
+XS-Ruby-Versions: all
 
 
 Package: ruby-luabridge
diff -Nru rubyluabridge-0.8.0/debian/rules rubyluabridge-0.8.0/debian/rules
--- rubyluabridge-0.8.0/debian/rules	2019-08-26 10:15:14.000000000 -0300
+++ rubyluabridge-0.8.0/debian/rules	2020-02-21 12:02:31.000000000 -0300
@@ -1,10 +1,12 @@
 #!/usr/bin/make -f
+
+export CONFIGURE_ARGS = --with-lua-include=/usr/include/lua5.1 --with-lualib=lua5.1
+
 %:
-	dh $@ --with ruby
+	dh $@ --with ruby --buildsystem ruby
 
 override_dh_auto_configure:
 	dh_testdir
-	build/extconf_ubuntu.sh --vendor
 	rake
 
 override_dh_install:

Attachment: signature.asc
Description: PGP signature

Reply via email to