From: "Frank A. Kingswood" <frank@kingswood-consulting.co.uk>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] user-specified temporary directory for deb-pkg
Date: Sat, 07 Apr 2012 10:33:31 +0100 [thread overview]
Message-ID: <jlp1lc$g0p$1@dough.gmane.org> (raw)
Hi,
The Debian package build can be very slow when running against a slow
NFS server. This patch allows the user to set the BUILDTMP environment
variable to move these temporaries somewhere local.
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index f6cbc3d..2f9d2ee 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -74,10 +74,20 @@ if [ -n "$KDEB_PKGVERSION" ]; then
else
packageversion=$version-$revision
fi
-tmpdir="$objtree/debian/tmp"
-fwdir="$objtree/debian/fwtmp"
-kernel_headers_dir="$objtree/debian/hdrtmp"
-libc_headers_dir="$objtree/debian/headertmp"
+
+if [ -n "$BUILDTMP" ] ; then
+ mkdir -p "$BUILDTMP/debian"
+ tmpdir="$BUILDTMP/debian/tmp"
+ fwdir="$BUILDTMP/debian/fwtmp"
+ kernel_headers_dir="$BUILDTMP/debian/hdrtmp"
+ libc_headers_dir="$BUILDTMP/debian/headertmp"
+else
+ tmpdir="$objtree/debian/tmp"
+ fwdir="$objtree/debian/fwtmp"
+ kernel_headers_dir="$objtree/debian/hdrtmp"
+ libc_headers_dir="$objtree/debian/headertmp"
+fi
+
packagename=linux-image-$version
fwpackagename=linux-firmware-image
kernel_headers_packagename=linux-headers-$version
next reply other threads:[~2012-04-07 9:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-07 9:33 Frank A. Kingswood [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-04-16 12:39 [PATCH] user-specified temporary directory for deb-pkg Frank Kingswood
2012-04-23 18:59 ` Michal Marek
2012-04-24 7:33 ` Frank A. Kingswood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='jlp1lc$g0p$1@dough.gmane.org' \
--to=frank@kingswood-consulting.co.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.