~ubuntu-branches/ubuntu/vivid/bc/vivid-proposed

« back to all changes in this revision

Viewing changes to debian/patch-bug285304

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-12-05 12:24:03 UTC
  • mfrom: (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20071205122403-rv1a7x90ktu1wl95
Tags: 1.06.94-3ubuntu1
* Merge with Debian; remaining changes:
  - Make bc/dc notice read and write errors on its input and output.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Date: Sun, 12 Dec 2004 21:43:35 +0900
2
 
From: NIIBE Yutaka <gniibe@fsij.org>
3
 
To: Debian Bug Tracking System <submit@bugs.debian.org>
4
 
Reply-To: NIIBE Yutaka <gniibe@fsij.org>, 285304@bugs.debian.org
5
 
Subject: Bug#285304: bc: [PATCH] cross build
6
 
 
7
 
Package: bc
8
 
Version: 1.06-15
9
 
Severity: wishlist
10
 
 
11
 
Cross-building bc package, I needed following patch.
12
 
Could you please consider to include this fix in next release?
13
 
 
14
 
  * debian/rules: Do configure --host on cross build.
15
 
 
16
 
 -- NIIBE Yutaka <gniibe@fsij.org>  Sun, 12 Dec 2004 21:40:25 +0900
17
 
 
18
 
--- bc-1.06/debian/rules
19
 
+++ bc-1.06/debian/rules
20
 
@@ -10,10 +10,15 @@
21
 
 
22
 
 #export DH_VERBOSE=1
23
 
 
24
 
+DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
25
 
+DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
26
 
+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
27
 
+CONFARGS = --host=$(DEB_HOST_GNU_TYPE)
28
 
+endif
29
 
 build: build-stamp
30
 
 build-stamp:
31
 
        dh_testdir
32
 
-       ./configure --prefix=/usr --with-readline
33
 
+       ./configure --prefix=/usr --with-readline $(CONFARGS)
34
 
        $(MAKE) CFLAGS="-O2 -g -Wall -D_POSIX_SOURCE -DDOT_IS_LAST"
35
 
        (cd doc; texi2html -monolithic -expandinfo -number $(package2).texi)
36
 
        touch build-stamp
37