Package: asis
Version: 3.15p-9
Severity: wishlist
Tags: patch

Hello,

The current version of asis fails to build on GNU/kFreeBSD, because 
kfreebsd-i386 is not listed in the Architecture: field. Also a small
fixes is need to set the ARCH and OS variables.

You will find attached a patch to fix that. Could you please add it in
the next upload?

Thanks in advance,
Aurelien

-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
diff -u asis-3.15p/debian/rules asis-3.15p/debian/rules
--- asis-3.15p/debian/rules
+++ asis-3.15p/debian/rules
@@ -9,8 +9,8 @@
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
 
-ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
-OS = $(ARCH)-linux
+ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+OS = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
 VERSION := $(shell dpkg-parsechangelog | grep "^Version: " | sed 's/^Version: 
\(.*\)-\(.*\)/\1/')
 REVISION := $(shell dpkg-parsechangelog | grep "^Version: " | sed 's/^Version: 
\(.*\)-\(.*\)/\2/')
diff -u asis-3.15p/debian/control asis-3.15p/debian/control
--- asis-3.15p/debian/control
+++ asis-3.15p/debian/control
@@ -7,7 +7,7 @@
 Build-Depends: gnat (>= 3.15p-17), debhelper (>= 4.1), libgnatvsn-dev (>= 
3.15p-17)
 
 Package: libasis-3.15p-1-dev
-Architecture: i386 powerpc sparc
+Architecture: i386 powerpc sparc kfreebsd-i386
 Section: libdevel
 Conflicts: libasis-3.14p-1-dev
 Replaces: libasis-3.14p-1-dev
@@ -20,7 +20,7 @@
  This package lets you build ASIS applications with GNAT.
 
 Package: asis-programs
-Architecture: i386 powerpc sparc
+Architecture: i386 powerpc sparc kfreebsd-i386
 Section: devel
 Depends: ${shlibs:Depends}
 Description: Ada Semantic Interface Specification (ASIS) example programs
@@ -32,7 +32,7 @@
  gnatstub) which are useful to understand or optimize Ada programs.
 
 Package: libasis-3.15p-1
-Architecture: i386 powerpc sparc
+Architecture: i386 powerpc sparc kfreebsd-i386
 Section: libs
 Depends: ${shlibs:Depends}
 Description: Ada Semantic Interface Specification (ASIS) runtime library

Reply via email to