From patchwork Sun Jun 9 16:14:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel de Perthuis X-Patchwork-Id: 2694361 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id B40003FD4F for ; Sun, 9 Jun 2013 16:14:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751546Ab3FIQOO (ORCPT ); Sun, 9 Jun 2013 12:14:14 -0400 Received: from mail-wg0-f45.google.com ([74.125.82.45]:55558 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751401Ab3FIQON (ORCPT ); Sun, 9 Jun 2013 12:14:13 -0400 Received: by mail-wg0-f45.google.com with SMTP id n12so4241784wgh.0 for ; Sun, 09 Jun 2013 09:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=qZaeKhLrPY6feLkQVrXbT8RF3ZLlm+mx6Rvwo2QIOZ0=; b=tc9V3v6JLsfBQIqJZo/Lvou4XRt52DLikxFY6Jo4IXzmmd4aPOZeu4/g3GVXgYcBOp ztecdYd6BkpqH2OZK4T6ddLbiihOK5fZse3WxclG6OHdQc5aStBHtgWiAng1UFnvej9h 86sOn1MCTc3LlKcAuSdMNRA8q04t9O3MCYMOodxVGUpQVR/nDIzAw2Q6EwutQBFsdvDJ /necD/08lMqXWMqqZw0QgOP3KDcUmvD7t0iT+Eg0S83sjV9dNlwhkK8gYerCpe6ixcY0 x8qu5JMOLkHAjk3ZKsuvKfGqsZU6tWQVJAepOQid75YHzTuwLLLTtofSLKjK9EKK1WII puBg== X-Received: by 10.180.184.83 with SMTP id es19mr2838102wic.54.1370794452202; Sun, 09 Jun 2013 09:14:12 -0700 (PDT) Received: from ?IPv6:2a01:e35:8a2c:b230:6118:7f58:9a94:b3e8? ([2a01:e35:8a2c:b230:6118:7f58:9a94:b3e8]) by mx.google.com with ESMTPSA id u9sm6774407wif.6.2013.06.09.09.14.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 09 Jun 2013 09:14:11 -0700 (PDT) Message-ID: <51B4A9D1.7070502@gmail.com> Date: Sun, 09 Jun 2013 18:14:09 +0200 From: Gabriel de Perthuis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Michal Marek CC: linux-kbuild@vger.kernel.org Subject: [PATCH] deb-pkg: Don't run find across mountpoints Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Signed-off-by: Gabriel de Perthuis --- scripts/package/builddeb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index acb8650..1435f5a 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -16,11 +16,11 @@ create_package() { local pname="$1" pdir="$2" cp debian/copyright "$pdir/usr/share/doc/$pname/" cp debian/changelog "$pdir/usr/share/doc/$pname/changelog.Debian" gzip -9 "$pdir/usr/share/doc/$pname/changelog.Debian" - sh -c "cd '$pdir'; find . -type f ! -path './DEBIAN/*' -printf '%P\0' \ + sh -c "cd '$pdir'; find . -xdev -type f ! -path './DEBIAN/*' -printf '%P\0' \ | xargs -r0 md5sum > DEBIAN/md5sums" # Fix ownership and permissions chown -R root:root "$pdir" chmod -R go-w "$pdir" @@ -241,11 +241,11 @@ Description: Linux kernel, version $version EOF fi # Build header package -(cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles") +(cd $srctree; find . -xdev -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles") (cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles") (cd $objtree; find arch/$SRCARCH/include .config Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles") destdir=$kernel_headers_dir/usr/src/linux-headers-$version mkdir -p "$destdir" (cd $srctree; tar -c -f - -T "$objtree/debian/hdrsrcfiles") | (cd $destdir; tar -xf -)