[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#78014: [PROPOSAL] dpkg Build Directory



Package: debian-policy
Version: 3.2.1.0
Severity: normal

Let me start by saying that i am not in any way attached to this
specific amendment to policy. What i would like is to be able to
cause the files that are normally placed in the parent directory
while building a package to be placed instead in some other
directory. An environment variable would be nice because i could
set it once and never worry about it again, but i don't really
care how this ends up being done.

Below is a diff to policy.sgml in CVS. It requires a change in
how binary and source packages are built. dpkg already supports
the change, but dpkg-source will need to be modified. It doesn't
support a build directory at the moment. I describe the
'-o' option in this patch, but i am not attached to that
particular one.

Index: policy.sgml
===================================================================
RCS file: /cvs/debian-policy/debian-policy/policy.sgml,v
retrieving revision 1.22
diff -a -u -r1.22 policy.sgml
--- policy.sgml	2000/08/24 07:08:37	1.22
+++ policy.sgml	2000/11/23 02:27:16
@@ -1119,6 +1119,27 @@
 	    <prgn>&lt;stdarg.h&gt;</prgn> and <tt>ncurses</tt> when
 	    they are built.</p>
 	</sect1>
+
+	<sect1>
+          <heading>Package build directory</heading>
+
+          <p>
+	    All Debian packages must be built with the command
+	    <tt>dpkg --build ${DPKG_BUILD_LOC:-..}</tt>.  This
+	    allows the person compiling the package to specify a
+	    directory in which to store the resulting packages by
+	    setting the DPKG_BUILD_LOC environment variable.  '..'
+	    is used as the default if DPKG_BUILD_LOC is not set
+	    because that is where packages have historically been
+	    built.</p>
+
+	  <p>
+	    For the same reason, Debian source packages must be
+	    built with the command <tt>dpkg-source -o
+	    ${DPKG_BUILD_LOC:-..}</tt>, along with any other
+	    options that must be passed to
+	    <prgn>dpkg-source</prgn>.</p>
+	</sect1>
       </sect></chapt>
       
     <chapt><heading>The Operating System</heading>


-- System Information
Debian Release: woody
Architecture: i386
Kernel: Linux vger 2.2.17 #1 Tue Oct 24 16:53:35 EST 2000 i586

Versions of packages debian-policy depends on:
ii  fileutils                     4.0.32-1   GNU file management utilities.    




Reply to: