Your message dated Thu, 07 Sep 2017 15:15:57 +0000
with message-id <[email protected]>
and subject line Bug#874517: fixed in firebird3.0 3.0.2.32703.ds4-11
has caused the Debian Bug report #874517,
regarding firebird3.0 FTCBFS: executes built binaries
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 [email protected]
immediately.)


-- 
874517: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874517
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: firebird3.0
Version: 3.0.2.32703.ds4-9
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap

firebird3.0 fails to cross build from source, because configure.ac has a
lot of issues. It confuses "build" and "host" and uses AC_RUN_IFELSE in
a number of places. The attached patch addresses and explains these
issues in detail.

debian/rules also confuses build and host when determining whether to
pass --enable-raw-devices. It should be querying DEB_HOST_ARCH_OS here.

After fixing these issues, a cross build of firebird3.0 gets a lot
further and finally fails executing "lockfile". That's a program from
procmail, which is (implicitly) marked Multi-Arch: no. Presumably
procmail needs to become Multi-Arch: foreign or firebird3.0 needs to
stop using procmail for file locking.

Please consider applying the attached patch nonetheless.

Helmut
From: Helmut Grohne <[email protected]>
Subject: improve cross buildability

 * Rather than checking $build (the architecture we are building on), we should
   be checking $host. Unfortunately, $host tends to lack the vendor part, so we
   need a tricky sed expression for inserting it. For native builds, $host and
   $build are equal.
 * The check for whether sem_init works only aborts the build in case of
   failure. Since the check cannot be performed during cross building, the only
   sane way is to just assume sem_init to work.
 * Replace a pile of AC_RUN_IFELSE with AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
   The latter macros have a slower fallback path for cross compilation that use
   compiler bisection to determine the values.

Index: firebird3.0-3.0.2.32703.ds4/configure.ac
===================================================================
--- firebird3.0-3.0.2.32703.ds4.orig/configure.ac
+++ firebird3.0-3.0.2.32703.ds4/configure.ac
@@ -85,7 +85,9 @@
 dnl Test for special ar options?
 AR_OPT_CHECK=false
 
-case "$build" in
+host_quadruplet=$(echo "$host" | sed 's/^\(@<:@^-@:>@*\)-\(@<:@^-@:>@*\)-\(@<:@^-@:>@*\)$/\1-pc-\2-\3/')
+echo "considering >$build< >$host< >$host_quadruplet<"
+case "$host_quadruplet" in
   x*64-*-darwin*)
     MAKEFILE_PREFIX=darwin_x86_64
     MAKEFILE_POSTFIX=darwin
@@ -147,7 +149,7 @@
 
   amd64-*-freebsd* | x86_64*-*-freebsd* | x86_64*-*-k*bsd*-gnu)
     MAKEFILE_PREFIX=freebsd_amd64
-    case "$build" in
+    case "$host_quadruplet" in
         x86_64*-*-k*bsd-gnu)      # Debian/kFreeBSD
             PLATFORM=GENTOOFREEBSD
             INSTALL_PREFIX=linux
@@ -952,7 +954,8 @@
 		}
 	]])],[AC_DEFINE(WORKING_SEM_INIT,1,[Define this if sem_init() works on the platform])
 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
-AC_SEARCH_LIBS(sem_open, rt pthread)],[])
+AC_SEARCH_LIBS(sem_open, rt pthread)],[AC_DEFINE(WORKING_SEM_INIT,1)
+AC_MSG_RESULT([assuming yes (cross compiling)])])
 fi
 fi
 
@@ -976,12 +979,10 @@
 AC_TYPE_UID_T
 AC_SYS_LARGEFILE
 if test "$ac_cv_sys_file_offset_bits" = "no"; then
-  AC_MSG_CHECKING(for native large file support)
-  AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <unistd.h>
-    main () {
-    exit(!(sizeof(off_t) == 8));
-  }]])],[ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64)
-   AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)],[])
+  AC_CHECK_SIZEOF([off_t],[],[#include <unistd.h>])
+  if test "$ac_cv_sizeof_off_t" = 8; then
+    ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64)
+  fi
 fi
 
 AC_CHECK_SIZEOF(void *)
@@ -1014,27 +1015,17 @@
 
 dnl EKU: try to determine the alignment of long and double
 dnl      replaces FB_ALIGNMENT and FB_DOUBLE_ALIGN in src/jrd/common.h
-AC_MSG_CHECKING(alignment of long)
-AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <semaphore.h>
-main () {
-  struct s {
-    char a;
-    union { long long x; sem_t y; } b;
-  };
-  exit((int)&((struct s*)0)->b);
-}]])],[ac_cv_c_alignment=$ac_status],[ac_cv_c_alignment=$ac_status],[])
-AC_MSG_RESULT($ac_cv_c_alignment)
+AC_CHECK_ALIGNOF([long long])
+AC_CHECK_ALIGNOF([sem_t],[#include <semaphore.h>])
+if test "$ac_cv_alignof_long_long" -gt "$ac_cv_alignof_sem_t"; then
+	ac_cv_c_alignment=$ac_cv_alignof_long_long
+else
+	ac_cv_c_alignment=$ac_cv_alignof_sem_t
+fi
 AC_DEFINE_UNQUOTED(FB_ALIGNMENT, $ac_cv_c_alignment, [Alignment of long])
 
-AC_MSG_CHECKING(alignment of double)
-AC_RUN_IFELSE([AC_LANG_SOURCE([[main () {
-  struct s {
-    char a;
-    double b;
-  };
-  exit((int)&((struct s*)0)->b);
-}]])],[ac_cv_c_double_align=$ac_status],[ac_cv_c_double_align=$ac_status],[])
-AC_MSG_RESULT($ac_cv_c_double_align)
+AC_CHECK_ALIGNOF([double])
+ac_cv_c_double_align=$ac_cv_alignof_double
 AC_DEFINE_UNQUOTED(FB_DOUBLE_ALIGN, $ac_cv_c_double_align, [Alignment of double])
 
 dnl EKU: Add any platform specific tests below

--- End Message ---
--- Begin Message ---
Source: firebird3.0
Source-Version: 3.0.2.32703.ds4-11

We believe that the bug you reported is fixed in the latest version of
firebird3.0, which is due to be installed in the Debian FTP archive.

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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Damyan Ivanov <[email protected]> (supplier of updated firebird3.0 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 07 Sep 2017 14:05:35 +0000
Source: firebird3.0
Binary: firebird3.0-server-core firebird3.0-server firebird3.0-utils 
libfbclient2 libib-util firebird3.0-common firebird-dev firebird3.0-examples 
firebird3.0-doc firebird3.0-common-doc
Architecture: source
Version: 3.0.2.32703.ds4-11
Distribution: unstable
Urgency: medium
Maintainer: Debian Firebird Group <[email protected]>
Changed-By: Damyan Ivanov <[email protected]>
Closes: 874517
Description: 
 firebird3.0-common - common files for firebird 3.0 server, client and utilities
 firebird3.0-common-doc - copyright, licensing and changelogs of firebird3.0
 firebird3.0-doc - Documentation files for firebird database version 3.0
 firebird3.0-examples - Examples for Firebird database
 firebird3.0-server-core - Firebird engine core
 firebird3.0-server - Firebird Server - an RDBMS based on InterBase 6.0 code
 firebird3.0-utils - Firebird command line utilities
 firebird-dev - Development files for Firebird
 libfbclient2 - Firebird client library
 libib-util - Firebird UDF support library
Changes:
 firebird3.0 (3.0.2.32703.ds4-11) unstable; urgency=medium
 .
   * Upload to unstable
     Closes: #874517 -- configure.ac not supporting cross-build
Checksums-Sha1: 
 e1c779aa425ac130cfaee55b38675f83a90e4da7 2894 
firebird3.0_3.0.2.32703.ds4-11.dsc
 b4c0f5912564192fffacbebf07a84a319381942f 100656 
firebird3.0_3.0.2.32703.ds4-11.debian.tar.xz
Checksums-Sha256: 
 4955a1b5913d72322192ec00df197f0181614d642633340312c0ee0f3a35fd7a 2894 
firebird3.0_3.0.2.32703.ds4-11.dsc
 3e3a1b6d7a3e1d65e0a592c4aafca0c6a96d4029b74d315f2af7d9f1124b0fdc 100656 
firebird3.0_3.0.2.32703.ds4-11.debian.tar.xz
Files: 
 eca424fce5acca32bd342386a425e171 2894 database optional 
firebird3.0_3.0.2.32703.ds4-11.dsc
 2a9bec6b598b087efa418e06ca75d749 100656 database optional 
firebird3.0_3.0.2.32703.ds4-11.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEErqDETssFbpNjDZ0z276dTZnSoAQFAlmxU/YACgkQ276dTZnS
oATqKBAAocmRJ+4MMGP820qNLFLDZn4D85invMNzGrciWbyTlrrEYSPA8U6/WXGS
n7qsvY3vgx6ZrGXpa3Z0sv4Xcsq+gXXwRdeas8734gHNGgC51zEzEicq02s2DcCA
LRl3AL3+kdG/Vkhn0rQdvMjr2X/NjOGzVHpKP05kelrnQNWAwVqkCq/6WIFKIHHk
COAZ+bTWX9qNC9P19l2Bhz8j4AQKaUH3p34JWfd1xbIGeRGcu3o95zzfr9aja80i
IoWpWKnu1yFNjjaPbEiVXvB2eHC1l39/fz3tZ8nIGXdnsb+Gr2naNwvOdOrDKdnb
K0CMGhz7fW7PQ68J0pGnQjd8U34iGixG3m9UZI6nU+nxQ1nz1w1lnwsSZRSk/C73
ruv6Qv/Ai4d7qsnnN3X18IeDOl5vwBLsi/v2G7T496pl38BGXoECrBIqmB900J2L
xpfxo+Vhstk7kJz1jYQGkZDxTX+408fU7HzgtqH72LLpt1wDSN0QEYaX40W/5g15
2r5pcQEQSrbLKUJU/9/lWD553qP8c/OPcrvRNJhWnx6TQx8HWFD2bBSZ0ceQMzkE
vnJomP0ZYtdtCxQ8prXh6eZZYIYb1FkeYTKZZwINwfI7MH4PcDIBnoyDYPMdrKBp
lQODsxJmyO8LU8W5ONtmM8OJsYVRlF6TEDrCY/+5UoKEpeJr3AA=
=GbD4
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to