Bug #214619 - Add support for a PORTAGE_BINPKG_TAR_OPTS variable that
authorZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 13:11:58 +0000 (13:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 13:11:58 +0000 (13:11 -0000)
allows the user to specify tar command options for binary package
creation. (trunk r9528)

svn path=/main/branches/2.1.2/; revision=9580

bin/isolated-functions.sh
bin/misc-functions.sh
man/make.conf.5
pym/portage.py

index ee73e7bcda3783786b29718366746d4760074149..2485012119b74862ba8e135049f235f10d50ceb2 100644 (file)
@@ -466,7 +466,7 @@ save_ebuild_env() {
                        LAST_E_CMD LAST_E_LEN LD_PRELOAD MISC_FUNCTIONS_ARGS MOPREFIX \
                        NORMAL PKGDIR PKGUSE PKG_LOGDIR PKG_TMPDIR \
                        PORTAGE_ACTUAL_DISTDIR PORTAGE_ARCHLIST PORTAGE_BASHRC \
-                       PORTAGE_BINPKG_TMPFILE PORTAGE_BUILDDIR \
+                       PORTAGE_BINPKG_TAR_OPTS PORTAGE_BINPKG_TMPFILE PORTAGE_BUILDDIR \
                        PORTAGE_COLORMAP PORTAGE_CONFIGROOT PORTAGE_DEBUG \
                        PORTAGE_DEPCACHEDIR PORTAGE_GID PORTAGE_INST_GID \
                        PORTAGE_INST_UID PORTAGE_LOG_FILE PORTAGE_MASTER_PID \
index d38c9a14fa9af0ac3c6a062a4d441f9503fbc045..27c2cc61843f002e82a24eacb7c8860a9455bcf6 100755 (executable)
@@ -534,7 +534,8 @@ dyn_package() {
        # Sandbox is disabled in case the user wants to use a symlink
        # for $PKGDIR and/or $PKGDIR/All.
        export SANDBOX_ON="0"
-       tar ${tar_options} -cf - . | bzip2 -f > "${pkg_tmp}" || \
+       tar $tar_options -cf - $PORTAGE_BINPKG_TAR_OPTS . | \
+               bzip2 -f > "${pkg_tmp}" || \
                die "Failed to create tarball"
        cd ..
        export PYTHONPATH=${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}
index 03e634ff3cd41117f5cdc6a02603a72457f4296f..ca03aa0359d3368f629e0cca9216895e88288618 100644 (file)
@@ -366,6 +366,10 @@ the get binary pkg options are given to \fBemerge\fR.  Review \fBemerge\fR(1)
 for more information.  Note that it should point to the 'All' directory on 
 the host that creates the binary packages and not to the root of the \fBPKGDIR\fR.
 .TP
+.B PORTAGE_BINPKG_TAR_OPTS
+This variable contains options to be passed to the tar command for creation
+of binary packages.
+.TP
 \fBPORTAGE_COMPRESS\fR = \fI"bzip2"\fR
 This variable contains the command used to compress documentation during the
 install phase.
index ecb391b6489afdc4f4c9ff4774c919bc4ed10e49..afbe04cffc3df23e22b706b8d7569af0fee8af84 100644 (file)
@@ -1013,7 +1013,8 @@ class config:
                "PKGUSE", "PKG_LOGDIR", "PKG_TMPDIR",
                "PORTAGE_ACTUAL_DISTDIR", "PORTAGE_ARCHLIST",
                "PORTAGE_BASHRC",
-               "PORTAGE_BINPKG_FILE", "PORTAGE_BINPKG_TMPFILE",
+               "PORTAGE_BINPKG_FILE", "PORTAGE_BINPKG_TAR_OPTS",
+               "PORTAGE_BINPKG_TMPFILE",
                "PORTAGE_BIN_PATH",
                "PORTAGE_BUILDDIR", "PORTAGE_COLORMAP",
                "PORTAGE_CONFIGROOT", "PORTAGE_DEBUG", "PORTAGE_DEPCACHEDIR",