[oolite] 05/11: * Provide a writable XDG_CONFIG_HOME to libreoffice when converting .odt to PDF, lowering the severity of #730893.
Nicolas Boulenguez
nicolas.boulenguez at free.fr
Mon Aug 31 02:01:14 UTC 2015
This is an automated email from the git hooks/post-receive script.
nicobou-guest pushed a commit to branch master
in repository oolite.
commit eacac4dbd2b897cd635e55e1e48300ae7b03f0d2
Author: Nicolas Boulenguez <nicolas.boulenguez at free.fr>
Date: Sun Jul 19 01:15:04 2015 +0200
* Provide a writable XDG_CONFIG_HOME to libreoffice when converting .odt
to PDF, lowering the severity of #730893.
---
debian/changelog | 2 ++
debian/rules | 11 ++++++++++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index fd585a3..a25b2b7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,8 @@ oolite (1.80b-1) UNRELEASED; urgency=medium
* Reactivate libespeak support, see #591717.
* Standards-Version: 3.9.6 (no changes).
* debian/README: web page snippets that may be useful for users.
+ * Provide a writable XDG_CONFIG_HOME to libreoffice when converting .odt
+ to PDF, lowering the severity of #730893.
-- Nicolas Boulenguez <nicolas at debian.org> Thu, 29 May 2014 10:30:54 +0200
diff --git a/debian/rules b/debian/rules
index c78eae1..b6103d6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@
# Copyright (c) 2007-2009 Chris Crowther <hikari at hikari.org.uk>
# Copyright (c) 2009 Darren Salt <linux at youmustbejoking.demon.co.uk>
# Copyright (c) 2009 Michael Werle <micha at michaelwerle.com>
-# Copyright (c) 2010-2014 Nicolas Boulenguez <nicolas at debian.org>
+# Copyright (c) 2010-2015 Nicolas Boulenguez <nicolas at debian.org>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -118,6 +118,15 @@ PDF_FROM_ODT := \
Doc/OoliteReadMe.pdf \
Doc/OoliteRS.pdf
+# Attempt to circumvent #730893.
+TMP_LOFFICE_HOME := debian/tmp_loffice_config
+$(PDF_FROM_ODT): export XDG_CONFIG_HOME := $(TMP_LOFFICE_HOME)
+$(PDF_FROM_ODT): $(TMP_LOFFICE_HOME)
+$(TMP_LOFFICE_HOME):
+ mkdir $@
+override_dh_auto_clean::
+ rm -fr $(TMP_LOFFICE_HOME)
+
override_dh_auto_build-indep: $(PDF_FROM_DOC) $(PDF_FROM_ODT)
$(PDF_FROM_DOC): %.pdf: %.doc
libreoffice --headless --convert-to pdf --outdir $(dir $@) $<
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/oolite.git
More information about the Pkg-games-commits
mailing list