Your message dated Tue, 20 Sep 2011 19:32:53 +0000
with message-id <e1r663p-00017j...@franck.debian.org>
and subject line Bug#641775: fixed in ruby-ffi 1.0.9+git20110920debian-1
has caused the Debian Bug report #641775,
regarding ruby-ffi: FTBFS: cc1: error: unrecognized command line option '-m32'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
641775: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=641775
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: ruby-ffi
Version: 1.0.9debian-1
Severity: serious
Justification: fails to build from source
Tags: patch

Hi,

ruby-ffi FTBFS on some architecture.
  https://buildd.debian.org/status/package.php?p=ruby-ffi
  http://buildd.debian-ports.org/status/package.php?p=ruby-ffi

Because option of "-m32" and  "-m64"  is architecture specific.

-----
make install
make[1]: Entering directory
`/build/buildd-ruby-ffi_1.0.9debian-1-armel-3vXWYL/ruby-ffi-1.0.9debian/ext/ffi_c'
/bin/mkdir -p 
/build/buildd-ruby-ffi_1.0.9debian-1-armel-3vXWYL/ruby-ffi-1.0.9debian/debian/ruby-ffi/usr/lib/ruby/vendor_ruby/1.9.1/arm-linux-eabi
/usr/bin/install -c -m 0755 ffi_c.so
/build/buildd-ruby-ffi_1.0.9debian-1-armel-3vXWYL/ruby-ffi-1.0.9debian/debian/ruby-ffi/usr/lib/ruby/vendor_ruby/1.9.1/arm-linux-eabi
make[1]: Leaving directory
`/build/buildd-ruby-ffi_1.0.9debian-1-armel-3vXWYL/ruby-ffi-1.0.9debian/ext/ffi_c'
/usr/bin/ruby1.8 -I/usr/lib/ruby/vendor_ruby
/usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
make[1]: Entering directory
`/build/buildd-ruby-ffi_1.0.9debian-1-armel-3vXWYL/ruby-ffi-1.0.9debian'
cc -m32  -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Werror
-Wall -Wno-unused -Wno-parentheses -I"build" -fPIC -D_REENTRANT -c
libtest/Benchmark.c -o build/libtest/Benchmark.o
cc1: error: unrecognized command line option '-m32'
make[1]: *** [build/libtest/Benchmark.o] Error 1
make[1]: Leaving directory
`/build/buildd-ruby-ffi_1.0.9debian-1-armel-3vXWYL/ruby-ffi-1.0.9debian'
debian/ruby-tests.rb:2: Failed to build test library (RuntimeError)
ERROR: Test "ruby1.8" failed. Exiting.
dh_auto_install: dh_ruby --install
/build/buildd-ruby-ffi_1.0.9debian-1-armel-3vXWYL/ruby-ffi-1.0.9debian/debian/tmp
returned exit code 1
make: *** [binary-arch] Error 1
-----

I made a patch which revise this problem. Could you apply this patch?

Best regards,
 Nobuhiro
-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
diff -Nru ruby-ffi-1.0.9debian/debian/changelog ruby-ffi-1.0.9debian/debian/changelog
--- ruby-ffi-1.0.9debian/debian/changelog	2011-09-15 03:36:28.000000000 +0900
+++ ruby-ffi-1.0.9debian/debian/changelog	2011-09-16 10:33:05.000000000 +0900
@@ -1,3 +1,9 @@
+ruby-ffi (1.0.9debian-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+
+ -- Nobuhiro Iwamatsu <iwama...@debian.org>  Fri, 16 Sep 2011 10:33:01 +0900
+
 ruby-ffi (1.0.9debian-1) unstable; urgency=low
 
   * New upstream release
diff -Nru ruby-ffi-1.0.9debian/debian/patches/debian-changes-1.0.9debian-1.1 ruby-ffi-1.0.9debian/debian/patches/debian-changes-1.0.9debian-1.1
--- ruby-ffi-1.0.9debian/debian/patches/debian-changes-1.0.9debian-1.1	1970-01-01 09:00:00.000000000 +0900
+++ ruby-ffi-1.0.9debian/debian/patches/debian-changes-1.0.9debian-1.1	2011-09-16 10:38:50.000000000 +0900
@@ -0,0 +1,71 @@
+Description: Upstream changes introduced in version 1.0.9debian-1.1
+ This patch has been created by dpkg-source during the package build.
+ Here's the last changelog entry, hopefully it gives details on why
+ those changes were made:
+ .
+ ruby-ffi (1.0.9debian-1.1) unstable; urgency=low
+ .
+   * Non-maintainer upload.
+ .
+ The person named in the Author field signed this changelog entry.
+Author: Nobuhiro Iwamatsu <iwama...@debian.org>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: http://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- ruby-ffi-1.0.9debian.orig/libtest/GNUmakefile
++++ ruby-ffi-1.0.9debian/libtest/GNUmakefile
+@@ -9,8 +9,6 @@ ifeq ($(CPU),)
+   CPU := $(shell uname -m | sed -e 's/i[345678]86/i386/')
+ endif
+ 
+-MODEL = 32 # Default to 32bit compiles
+-
+ PLATFORM = $(CPU)-$(OS)
+ 
+ ifeq ($(OS), sunos)
+@@ -96,34 +94,6 @@ ifneq ($(findstring bsd, $(OS)),)
+   LDFLAGS += -pthread
+ endif
+ 
+-ifeq ($(CPU), sparcv9)
+-  MODEL = 64
+-endif
+-
+-ifeq ($(CPU), amd64)
+-  MODEL = 64
+-endif
+-
+-ifeq ($(CPU), x86_64)
+-  MODEL = 64
+-endif
+-
+-ifeq ($(CPU), ppc64)
+-  MODEL = 64
+-endif
+-
+-ifeq ($(CPU), powerpc64)
+-  MODEL = 64
+-endif
+-
+-# On platforms (linux, solaris) that support both 32bit and 64bit, force building for one or the other
+-ifneq ($(or $(findstring linux, $(OS)), $(findstring solaris, $(OS))),)
+-  # Change the CC/LD instead of CFLAGS/LDFLAGS, incase other things in the flags
+-  # makes the libffi build choke
+-  CC += -m$(MODEL)
+-  LD += -m$(MODEL)
+-endif
+-
+ LIBTEST = $(BUILD_DIR)/$(LIBNAME)
+ 
+ all:	$(LIBTEST)
diff -Nru ruby-ffi-1.0.9debian/debian/patches/series ruby-ffi-1.0.9debian/debian/patches/series
--- ruby-ffi-1.0.9debian/debian/patches/series	2011-09-15 02:28:36.000000000 +0900
+++ ruby-ffi-1.0.9debian/debian/patches/series	2011-09-16 10:38:50.000000000 +0900
@@ -1 +1,2 @@
 0001-Only-load-under-MRI.patch
+debian-changes-1.0.9debian-1.1

--- End Message ---
--- Begin Message ---
Source: ruby-ffi
Source-Version: 1.0.9+git20110920debian-1

We believe that the bug you reported is fixed in the latest version of
ruby-ffi, which is due to be installed in the Debian FTP archive:

libffi-ruby1.8_1.0.9+git20110920debian-1_all.deb
  to main/r/ruby-ffi/libffi-ruby1.8_1.0.9+git20110920debian-1_all.deb
libffi-ruby1.9.1_1.0.9+git20110920debian-1_all.deb
  to main/r/ruby-ffi/libffi-ruby1.9.1_1.0.9+git20110920debian-1_all.deb
libffi-ruby_1.0.9+git20110920debian-1_all.deb
  to main/r/ruby-ffi/libffi-ruby_1.0.9+git20110920debian-1_all.deb
ruby-ffi_1.0.9+git20110920debian-1.debian.tar.gz
  to main/r/ruby-ffi/ruby-ffi_1.0.9+git20110920debian-1.debian.tar.gz
ruby-ffi_1.0.9+git20110920debian-1.dsc
  to main/r/ruby-ffi/ruby-ffi_1.0.9+git20110920debian-1.dsc
ruby-ffi_1.0.9+git20110920debian-1_amd64.deb
  to main/r/ruby-ffi/ruby-ffi_1.0.9+git20110920debian-1_amd64.deb
ruby-ffi_1.0.9+git20110920debian.orig.tar.gz
  to main/r/ruby-ffi/ruby-ffi_1.0.9+git20110920debian.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 641...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Antonio Terceiro <terce...@debian.org> (supplier of updated ruby-ffi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 20 Sep 2011 12:06:58 -0700
Source: ruby-ffi
Binary: ruby-ffi libffi-ruby libffi-ruby1.8 libffi-ruby1.9.1
Architecture: source amd64 all
Version: 1.0.9+git20110920debian-1
Distribution: unstable
Urgency: low
Maintainer: Debian Ruby Extras Maintainers 
<pkg-ruby-extras-maintain...@lists.alioth.debian.org>
Changed-By: Antonio Terceiro <terce...@debian.org>
Description: 
 libffi-ruby - Transitional package for ruby-ffi
 libffi-ruby1.8 - Transitional package for ruby-ffi
 libffi-ruby1.9.1 - Transitional package for ruby-ffi
 ruby-ffi   - load dynamic libraries, bind functions from within ruby code
Closes: 641775 642161
Changes: 
 ruby-ffi (1.0.9+git20110920debian-1) unstable; urgency=low
 .
   * Upstream git snapshot
     + Adds portability patches submit by us (Closes: #641775, #642161)
   * Removing all Debian-specific patches. Upstream source should be portable
     enough already.
Checksums-Sha1: 
 06d1cea68e136541817be11385f6a3bd5b79549d 1569 
ruby-ffi_1.0.9+git20110920debian-1.dsc
 04244ef40b08c164a7fe3b298ce25a96655d3258 138551 
ruby-ffi_1.0.9+git20110920debian.orig.tar.gz
 3c06885f89b87ef2db479d323bc5f6c4ebd821d8 5015 
ruby-ffi_1.0.9+git20110920debian-1.debian.tar.gz
 e8bff1c4f6d3e23feb89040de5ba204f756a5e79 130368 
ruby-ffi_1.0.9+git20110920debian-1_amd64.deb
 7d3cbc5f3a0569eb1c01ec19629caea580a13161 5324 
libffi-ruby_1.0.9+git20110920debian-1_all.deb
 271ad6d47df7c56e0c62261467541db3770414b8 5324 
libffi-ruby1.8_1.0.9+git20110920debian-1_all.deb
 77a9460a9f2439d971b6e450d6c5da570950e0e8 5328 
libffi-ruby1.9.1_1.0.9+git20110920debian-1_all.deb
Checksums-Sha256: 
 a01f6cc95e528a3fed2d04232d673ec8d7f07beafb595b04324f1c2076faee2d 1569 
ruby-ffi_1.0.9+git20110920debian-1.dsc
 dfdd10ed7c44af41a29e616addafdeb06390b4361255f3d14313dee6d05949a2 138551 
ruby-ffi_1.0.9+git20110920debian.orig.tar.gz
 7e90ec51f1591bda0e46272e55c0a38d932f1420081ae3715f208fc4f0b90f34 5015 
ruby-ffi_1.0.9+git20110920debian-1.debian.tar.gz
 6598e0e8ebf3ea27ed1cb94c4f98cc04b99e46ec6b2388021bae1d36f7e5175c 130368 
ruby-ffi_1.0.9+git20110920debian-1_amd64.deb
 61eb68efd64d994289d025ed042a8987a8733659009c5deb35215c452e954ac7 5324 
libffi-ruby_1.0.9+git20110920debian-1_all.deb
 8ef27011f4a5c57a317c9c8c5dd2aaa323d49d2a8121711e7cf5cc9c13542441 5324 
libffi-ruby1.8_1.0.9+git20110920debian-1_all.deb
 a47630709de6adfa1dc30bdb02d5e61442c1aaa1e59689ae785a0cc32871af5e 5328 
libffi-ruby1.9.1_1.0.9+git20110920debian-1_all.deb
Files: 
 ccedd6133fccab12d8ec3754ef0335d2 1569 ruby optional 
ruby-ffi_1.0.9+git20110920debian-1.dsc
 78d3e3aaf7733375652e5f2ef1fd26db 138551 ruby optional 
ruby-ffi_1.0.9+git20110920debian.orig.tar.gz
 9dd948693d810755f24a5bb8d3c2446c 5015 ruby optional 
ruby-ffi_1.0.9+git20110920debian-1.debian.tar.gz
 bd170e74a9dab63edaf1d63eb2b1153b 130368 ruby optional 
ruby-ffi_1.0.9+git20110920debian-1_amd64.deb
 28e86d34cba9901f2e3b1a32cd689157 5324 oldlibs optional 
libffi-ruby_1.0.9+git20110920debian-1_all.deb
 9407d026761e257d339190e006953c66 5324 oldlibs optional 
libffi-ruby1.8_1.0.9+git20110920debian-1_all.deb
 b011118ad2881f89442b74dbae6c36e1 5328 oldlibs optional 
libffi-ruby1.9.1_1.0.9+git20110920debian-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk545uEACgkQDOM8kQ+cso9p6ACfZjK3vCwxipqZHSBMYloJG++9
gmIAoJ+XJJQQwR5lPeszZfTTgao6yXFl
=nQDt
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to