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

Bug#605409: dpkg-cross: Please add armhf support



Source: dpkg-cross
Severity: wishlist
Tags: patch

Hi,

The armhf port has reached a very good state (at 87%) at debian-ports.org,
and I'm now mass-filing bug reports to packages for armhf support.
Most packages just have to add armhf in the architecture field. The complete
list is in http://wiki.debian.org/ArmHardFloatTodo

In particular, dpkg-cross armhf support is necessary to actually cross-build armhf
packages.

The package builds fine using the attached patch. Mind you, we do not target
squeeze, so there is no rush. But please consider adding armhf support. :)

Regards

Konstantinos


-- System Information:
Debian Release: squeeze/sid
Architecture: armhf (armv7l)

Kernel: Linux 2.6.31.14-efikamx (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -ruN dpkg-cross-2.5.8/config/cross-config.armhf dpkg-cross-2.5.8+armhf//config/cross-config.armhf
--- dpkg-cross-2.5.8/config/cross-config.armhf	1970-01-01 00:00:00.000000000 +0000
+++ dpkg-cross-2.5.8+armhf//config/cross-config.armhf	2010-11-29 17:22:19.619770493 +0000
@@ -0,0 +1,56 @@
+# read in package-specific and global values.
+. `dirname $ac_site_file`/cross-config.cache
+# now ensure the real architecture-dependent values take priority
+ac_cv_c_bigendian=no
+ac_cv_c_char_unsigned=yes
+ac_cv_sizeof_long_long=8
+ac_cv_sizeof_unsigned_long_long=8
+ac_cv_sizeof_long=4
+ac_cv_sizeof_unsigned_long=4
+ac_cv_sizeof_int=4
+ac_cv_sizeof_unsigned_int=4
+ac_cv_sizeof_short=2
+ac_cv_sizeof_unsigned_short=2
+ac_cv_sizeof_char=1
+ac_cv_sizeof_unsigned_char=1
+ac_cv_sizeof_signed_char=1
+ac_cv_sizeof_float=4
+ac_cv_sizeof_double=8
+ac_cv_sizeof_long_double=8
+ac_cv_sizeof_void_p=4
+ac_cv_sizeof_char_p=4
+ac_cv_sizeof_off_t=4
+
+path=`dirname $ac_site_file`
+# now allow package-specific architecture-independent values to be set
+if [ -d $path/cross-config.d/armhf/ ]; then
+for file in `ls $path/cross-config.d/armhf/`; do
+	if [ "$file" = "$PACKAGE" -o "$file" = "$PACKAGE_NAME" ]; then
+		[ -d $path/cross-config.d/armhf/$file ] || . $path/cross-config.d/armhf/$file
+		HAVE_PKG_CACHE=1
+	fi
+done
+fi
+
+if [ -z "$HAVE_PKG_CACHE" ]; then
+	# orbit2 - only needed until liborbit-dev provides these directly
+	# using the mechanism above.
+	if [ "$PACKAGE" = "orbit2" -o "$PACKAGE_NAME" = "ORBit2" ]; then
+		ac_cv_alignof_CORBA_octet=1
+		ac_cv_alignof_CORBA_boolean=1
+		ac_cv_alignof_CORBA_char=1
+		ac_cv_alignof_CORBA_wchar=2
+		ac_cv_alignof_CORBA_short=2
+		ac_cv_alignof_CORBA_long=4
+		ac_cv_alignof_CORBA_long_long=8
+		ac_cv_alignof_CORBA_float=4
+		ac_cv_alignof_CORBA_double=4
+		ac_cv_alignof_CORBA_long_double=8
+		ac_cv_alignof_CORBA_struct=1
+		ac_cv_alignof_CORBA_pointer=4
+	fi
+	# parted
+	if [ "$PACKAGE" = "parted" -o "$PACKAGE_NAME" = "GNU parted" ]; then
+		ac_cv_sizeof_off_t=8
+	fi
+fi
diff -ruN dpkg-cross-2.5.8/debian/dpkg-cross.templates dpkg-cross-2.5.8+armhf//debian/dpkg-cross.templates
--- dpkg-cross-2.5.8/debian/dpkg-cross.templates	2007-03-11 23:14:42.000000000 +0000
+++ dpkg-cross-2.5.8+armhf//debian/dpkg-cross.templates	2010-11-29 17:21:34.959768503 +0000
@@ -2,7 +2,7 @@
 Type: select
 # Translators: "None" here refers to "architecture"
 #flag:translate:1
-__Choices: None, alpha, amd64, arm, armeb, armel, hppa, i386, ia64, m68k, mips, mipsel, powerpc, s390, sparc
+__Choices: None, alpha, amd64, arm, armeb, armel, armhf, hppa, i386, ia64, m68k, mips, mipsel, powerpc, s390, sparc
 Default: None
 _Description: Default cross-building architecture:
  If this machine is typically cross-building for one main architecture,


Reply to: