[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#709183: librep: FTBFS on kfreebsd-amd64



Package: librep
Version: 0.90.2-1.3
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
X-Debbugs-Cc: debian-bsd@lists.debian.org
Severity: serious
Justification: fails to build from source (but built successfully in the past)

Hi,

librep failed to build on kfreebsd-amd64 due to:

https://buildd.debian.org/status/fetch.php?pkg=librep&arch=kfreebsd-amd64&ver=0.90.2-1.3%2Bb1&stamp=1368142762
> checking for stack growth direction... upwards
[...]
>  ** error: --with-stack-direction is incorrect; it should be -1

The detection in ./configure can be wrong on amd64 or kfreebsd-amd64
depending on GCC version and optimisation level (especially gcc >= 4.7
and -O2).

debian/rules forces -O0 for (Linux) amd64, but not kfreebsd-amd64.
Please consider matching on HOST_CPU instead of just HOST, then it
will work for kFreeBSD as on Linux:

--- librep-0.90.2.orig/debian/rules     2013-05-21 12:26:06.000000000 +0100
+++ librep-0.90.2/debian/rules  2013-05-21 13:06:05.914135127 +0100
@@ -21,7 +21,7 @@
        CFLAGS = -Wall -g -O0
 endif
 
-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),amd64))
+ifeq ($(DEB_HOST_ARCH_CPU),$(findstring $(DEB_HOST_ARCH_CPU),amd64))
        CFLAGS = -Wall -g -O0
 endif
 

I've tested that this fixes the result of the configure test, and
results in a successful build.

Thank you.

-- System Information:
Debian Release: 7.0
  APT prefers stable
  APT policy: (500, 'stable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 9.0-2-amd64-xenhvm
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


Reply to: