Source: obexftp
Version: 0.24-7
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

obexftp already cross builds given the noruby build profile. Recently,
Antonio Terceiro worked on cross build infrastructure for the ruby side
and now we can make the whole obexftp cross build succeed. Please
consider applying the attached patch.

Helmut
diff --minimal -Nru obexftp-0.24/debian/changelog obexftp-0.24/debian/changelog
--- obexftp-0.24/debian/changelog       2022-07-11 23:45:14.000000000 +0200
+++ obexftp-0.24/debian/changelog       2022-10-28 16:30:29.000000000 +0200
@@ -1,3 +1,9 @@
+obexftp (0.24-8) UNRELEASED; urgency=medium
+
+  * Fix FTCBFS: Set ruby paths. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 28 Oct 2022 16:30:29 +0200
+
 obexftp (0.24-7) unstable; urgency=medium
 
   * QA upload.
diff --minimal -Nru obexftp-0.24/debian/rules obexftp-0.24/debian/rules
--- obexftp-0.24/debian/rules   2022-07-11 23:42:34.000000000 +0200
+++ obexftp-0.24/debian/rules   2022-10-28 16:30:27.000000000 +0200
@@ -20,6 +20,10 @@
 endif
 ifneq ($(filter ruby-obexftp,$(DOPACKAGES)),)
 RUBY_DEPENDS := -Vruby:Depends="lib$(firstword $(shell dh_ruby 
--print-supported))"
+RUBY_VER=$(shell ruby -e "puts RbConfig::CONFIG['ruby_version']")
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+export RUBYLIB=/usr/lib/$(DEB_HOST_MULTIARCH)/ruby-crossbuild/$(RUBY_VER)
+endif
 endif
 
 %:

Reply via email to