From patchwork Tue Aug 14 10:44:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tzafrir Cohen X-Patchwork-Id: 1318991 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id DE42FE010A for ; Tue, 14 Aug 2012 10:45:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752610Ab2HNKpN (ORCPT ); Tue, 14 Aug 2012 06:45:13 -0400 Received: from local.xorcom.com ([81.218.177.19]:36969 "EHLO local.xorcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752859Ab2HNKpM (ORCPT ); Tue, 14 Aug 2012 06:45:12 -0400 Received: from sweetmorn.in.xorcom.com (sweetmorn [192.168.0.134]) by local.xorcom.com (Postfix) with ESMTP id B62D1138484; Tue, 14 Aug 2012 13:45:11 +0300 (IDT) From: Tzafrir Cohen To: Linux Kbuild Cc: Linux Kernel , Tzafrir Cohen Subject: [PATCH] builddeb: remove unneeded explicit Architecture Date: Tue, 14 Aug 2012 13:44:52 +0300 Message-Id: <1344941092-31312-1-git-send-email-tzafrir.cohen@xorcom.com> X-Mailer: git-send-email 1.7.10.4 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Architecture was set explicitly in debian/control for one of the three packages (linux-libc-dev) but not for the other two. When cross-building it gives me an error: dpkg-gencontrol: error: current host architecture 'armhf' does not appear in package's architecture list (amd64) Also note that if used, dpkg --print-architecture should have been replaced with dpkg-architecture. Signed-off-by: Tzafrir Cohen --- scripts/package/builddeb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index acb8650..d9c71a6 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -252,13 +252,12 @@ mkdir -p "$destdir" (cd $objtree; tar -c -f - -T "$objtree/debian/hdrobjfiles") | (cd $destdir; tar -xf -) ln -sf "/usr/src/linux-headers-$version" "$kernel_headers_dir/lib/modules/$version/build" rm -f "$objtree/debian/hdrsrcfiles" "$objtree/debian/hdrobjfiles" -arch=$(dpkg --print-architecture) cat <> debian/control Package: $kernel_headers_packagename Provides: linux-headers, linux-headers-2.6 -Architecture: $arch +Architecture: any Description: Linux kernel headers for $KERNELRELEASE on $arch This package provides kernel header files for $KERNELRELEASE on $arch .