lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <jlp1lc$g0p$1@dough.gmane.org>
Date:	Sat, 07 Apr 2012 10:33:31 +0100
From:	"Frank A. Kingswood" <frank@...gswood-consulting.co.uk>
To:	linux-kernel@...r.kernel.org
Subject: [PATCH] user-specified temporary directory for deb-pkg

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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ