Your message dated Fri, 16 Sep 2011 18:17:45 +0000
with message-id <e1r4cyv-0000su...@franck.debian.org>
and subject line Bug#641775: fixed in ruby-ffi 1.0.9debian-2
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.9debian-2

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.9debian-2_all.deb
  to main/r/ruby-ffi/libffi-ruby1.8_1.0.9debian-2_all.deb
libffi-ruby1.9.1_1.0.9debian-2_all.deb
  to main/r/ruby-ffi/libffi-ruby1.9.1_1.0.9debian-2_all.deb
libffi-ruby_1.0.9debian-2_all.deb
  to main/r/ruby-ffi/libffi-ruby_1.0.9debian-2_all.deb
ruby-ffi_1.0.9debian-2.debian.tar.gz
  to main/r/ruby-ffi/ruby-ffi_1.0.9debian-2.debian.tar.gz
ruby-ffi_1.0.9debian-2.dsc
  to main/r/ruby-ffi/ruby-ffi_1.0.9debian-2.dsc
ruby-ffi_1.0.9debian-2_amd64.deb
  to main/r/ruby-ffi/ruby-ffi_1.0.9debian-2_amd64.deb



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: Fri, 16 Sep 2011 10:37:31 -0700
Source: ruby-ffi
Binary: ruby-ffi libffi-ruby libffi-ruby1.8 libffi-ruby1.9.1
Architecture: source amd64 all
Version: 1.0.9debian-2
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
Changes: 
 ruby-ffi (1.0.9debian-2) unstable; urgency=low
 .
   [ Nobuhiro Iwamatsu ]
   * Remove non-portable -m{32,64} compilation flag
     (debian/patches/0002-Remove-non-portable-m-32-64-compilation-flag.patch)
     (Closes: #641775)
Checksums-Sha1: 
 20499cf6d98cfefa4edd16e35a33e5fad444c49f 1485 ruby-ffi_1.0.9debian-2.dsc
 d8e61cddeb1332b92f0251722c6e1cb402c28072 5914 
ruby-ffi_1.0.9debian-2.debian.tar.gz
 fe1e0022a78fb1827cfa929e54e91192ec674b95 127090 
ruby-ffi_1.0.9debian-2_amd64.deb
 7bf10bccc44bd3707b3821b913240d8dc9c1094e 5210 libffi-ruby_1.0.9debian-2_all.deb
 6051669f504ea2eb09a5a417e981dbf044d29376 5214 
libffi-ruby1.8_1.0.9debian-2_all.deb
 58f5b7a64a59fa21e43a23ba5a2ca7bd1f572001 5218 
libffi-ruby1.9.1_1.0.9debian-2_all.deb
Checksums-Sha256: 
 6d3f1d2b399ad241aa77b0200619578ce46b98197c1a64663abbf77b0b8d7ce4 1485 
ruby-ffi_1.0.9debian-2.dsc
 4cafa8fd8ac4c30f7e2dac4498f51b0bffea2dc4f1320048dd00e57c0e169568 5914 
ruby-ffi_1.0.9debian-2.debian.tar.gz
 684fa0577514e62b01d1222d8b34d56bf878ff1e33e031f3495f832d0ae09372 127090 
ruby-ffi_1.0.9debian-2_amd64.deb
 798397d2a9bf322eebbbf5fdccdb701f9eaf9c5f38393ce1400df29a0fadb212 5210 
libffi-ruby_1.0.9debian-2_all.deb
 ea1681eac7b153ac3fa799777bae558518aab0c1d6ee06d7eb941066a5c5c321 5214 
libffi-ruby1.8_1.0.9debian-2_all.deb
 bf6d24eec8f089c25f9497d971fff31745a01d72e8177340d20a6b4db69fd863 5218 
libffi-ruby1.9.1_1.0.9debian-2_all.deb
Files: 
 4cf1ec3bf875fc9d60ca89b286d5f571 1485 ruby optional ruby-ffi_1.0.9debian-2.dsc
 8a5d627bbf67322e4b9e45363a239d2f 5914 ruby optional 
ruby-ffi_1.0.9debian-2.debian.tar.gz
 8afac5700e523b3023e9fb58a120b86f 127090 ruby optional 
ruby-ffi_1.0.9debian-2_amd64.deb
 0e6eef995b4a07ec036cf06565fe9db0 5210 oldlibs optional 
libffi-ruby_1.0.9debian-2_all.deb
 57b1eeaffa9345e445db17a5bf2f7622 5214 oldlibs optional 
libffi-ruby1.8_1.0.9debian-2_all.deb
 f2eaf8c41da0a134663be3b387f7a089 5218 oldlibs optional 
libffi-ruby1.9.1_1.0.9debian-2_all.deb

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

iEYEARECAAYFAk5zj0oACgkQDOM8kQ+cso8NvgCcCGfq3jMVaR9dAMkY1PNi77g+
vQAAniqjrp1aZJxMi0VsRSMgGOI9feWw
=x/Xu
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to