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

Bug#582251: buildd.emdebian.org: first patches to get pike7.8 crosscompilable for including in emdebian



Package: buildd.emdebian.org
Severity: wishlist
Tags: experimental

Attached are a few package which will adapt current pike to be crosscompilable
as explained in the http://wiki.debian.org/EmdebianMakefile howto.

There are still some problems as to the dumping of master.pike and other
modules during install.

The patch against src/configure, src/configure.in and
src/modules/Mysql/configure are things that should be patched upstream.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.31.5-vs2.3.0.36.19-00002-gcf0fae8
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
--- pike7.8-7.8.352-dfsg/src/configure.in	2010-05-19 10:25:34.215552279 +0000
+++ pike7.8-7.8.352-dfsg.OLD/src/configure.in	2010-05-19 11:47:04.465553561 +0000
@@ -541,7 +541,7 @@
   RUNTPIKE="USE_PIKE"
 else
   if test "x$cross_compiling" = "xyes"; then
-    RUNPIKE="USE_PIKE"
+    RUNPIKE="DEFAULT_RUNPIKE"
     RUNTPIKE="USE_PIKE"
   else
     RUNPIKE="DEFAULT_RUNPIKE"
--- pike7.8-7.8.352-dfsg/src/configure	2010-05-19 11:49:06.235552172 +0000
+++ pike7.8-7.8.352-dfsg.OLD/src/configure	2010-05-19 11:47:04.355553050 +0000
@@ -106926,7 +106926,7 @@
       ;;
     esac
     if test "$cross_compiling" = yes; then
-  pike_cv_sys_dynamic_loading=yes
+  pike_cv_sys_dynamic_loading=no
 else
   cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
--- pike7.8-7.8.352-dfsg/debian/rules	2010-05-19 10:16:26.275551974 +0000
+++ pike7.8-7.8.352-dfsg.OLD/debian/rules	2010-05-19 11:47:04.525552138 +0000
@@ -20,16 +20,6 @@
 CC=gcc
 endif
 
-export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-CFARGSEXTRA = --with-cdebug
-
-ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
-export CC=$(DEB_HOST_GNU_TYPE)-gcc
-CFARGSEXTRA += --host=$(DEB_HOST_GNU_TYPE)
-endif
-
 ifeq (,$(DEB_BUILD_ARCH))
 DEB_BUILD_ARCH=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 endif
@@ -41,6 +31,7 @@
 SSP_FLAGS=-fstack-protector
 endif
 
+CFARGSEXTRA = --with-cdebug
 
 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
 CFARGSEXTRA += --without-copt
--- pike7.8-7.8.352-dfsg/src/modules/Mysql/configure	2010-05-19 10:19:56.355552054 +0000
+++ pike7.8-7.8.352-dfsg.OLD/src/modules/Mysql/configure	2010-05-19 11:47:04.345553025 +0000
@@ -7018,7 +7018,13 @@
 $as_echo "yes" >&6; }
 
       if test "$cross_compiling" = yes; then
-:
+  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&2;}
+   { (exit 1); exit 1; }; }; }
 else
   cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */

Reply to: