diff options
author | Barak A. Pearlmutter <barak+git@cs.nuim.ie> | 2012-11-30 11:51:56 +0000 |
---|---|---|
committer | Barak A. Pearlmutter <barak+git@cs.nuim.ie> | 2012-11-30 12:42:23 +0000 |
commit | 04fa26caa1c9b1a430a0bb51e5f5f92e2762b1e4 (patch) | |
tree | 27c53002e063e4fee656b659dc0449f23d6a308e /debian/bbdb.emacsen-install | |
parent | 911c365ad6abf0bff2db32f5abbc44057cdd62b7 (diff) |
fix for creation of /root/.gnupg during installation, thanks to Sébastien Villemot
debian/bbdb.emacsen-install: no longer create /root/.gnupg during
installation of the package. This is achieved by binding GNUPGHOME to
a temporary directory during bytecode compilation (Closes: #694417)
patch unmodified from attachment to http://bugs.debian/org/694417
Diffstat (limited to 'debian/bbdb.emacsen-install')
-rwxr-xr-x | debian/bbdb.emacsen-install | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/debian/bbdb.emacsen-install b/debian/bbdb.emacsen-install index ba90185..bbe45fe 100755 --- a/debian/bbdb.emacsen-install +++ b/debian/bbdb.emacsen-install @@ -74,6 +74,11 @@ case "${FLAVOR}" in # at ELCDIR ( cd ${ELCDIR} + + # Prevent epg from manipulating /root/.gnupg (#694417) + TMPGNUPGHOME=`mktemp -d --tmpdir gnupg.XXXXXXXXXX` + export GNUPGHOME=${TMPGNUPGHOME} + echo "Generating bbdb-autoloads..." echo "Generating bbdb-autoloads" >> $LOG make autoloads >> $LOG 2>&1 @@ -86,7 +91,7 @@ case "${FLAVOR}" in GNUSDIR=${GNUSDIR} \ MHEDIR=${MHEDIR} >> $LOG 2>&1 mv lisp/*.elc utils/*.el . - rm -rf tex utils lisp Makefile + rm -rf tex utils lisp Makefile ${TMPGNUPGHOME} ${FLAVOR} ${COMPILE} *.el >> $LOG 2>&1 ) cat > ${ELCDIR}/load-path.el <<EOF |