[Pkg-e-devel] Bug#883833: Bug#883833: e17: FTBFS if $HOME is not writable

Ross Vandegrift ross at kallisti.us
Sun Dec 10 00:47:54 UTC 2017


Control: tags -1 pending

Looks good, patch applied.

Ross

On Fri, Dec 08, 2017 at 08:07:31AM +0100, Andreas Metzler wrote:
> Control: tags -1 patch
> 
> On 2017-12-08 Andreas Beckmann <anbe at debian.org> wrote:
> > Source: e17
> > Version: 0.22.1-1
> > Severity: serious
> > Justification: fails to build from source (but built successfully in the past)
> 
> > e17 FTBFS if $HOME is not existent (and therefore not writable) as
> > enforced by current pbuilder.
> > See also Policy 9.2.3.
> 
> > From the attached log:
> 
> > FATAL: Cannot create run dir '/nonexistent/.run' - errno=2
> 
> edje_cc seems to need a writeable ~/.
> 
> cu Andreas
> -- 
> `What a good friend you are to him, Dr. Maturin. His other friends are
> so grateful to you.'
> `I sew his ears on from time to time, sure'

> From 68546024af75578f47e42236077792ec33eb8646 Mon Sep 17 00:00:00 2001
> From: Andreas Metzler <ametzler at bebt.de>
> Date: Fri, 8 Dec 2017 08:03:54 +0100
> Subject: [PATCH] Fix FTBFS with HOME="/nonexistent".
> 
> Copy fake_home.sh from efl and run dh_auto_build under it. edje_cc needs a
> writeable HOME. Closes: #883833
> ---
>  debian/changelog    |  7 +++++++
>  debian/fake_home.sh | 15 +++++++++++++++
>  debian/rules        |  4 ++++
>  3 files changed, 26 insertions(+)
>  create mode 100755 debian/fake_home.sh
> 
> diff --git a/debian/changelog b/debian/changelog
> index 316806a9f..6f1bee871 100644
> --- a/debian/changelog
> +++ b/debian/changelog
> @@ -1,3 +1,10 @@
> +e17 (0.22.1-2) UNRELEASED; urgency=medium
> +
> +  * Copy fake_home.sh from efl and run dh_auto_build under it. edje_cc needs a
> +    writeable HOME. Closes: #883833
> +
> + -- Andreas Metzler <ametzler at debian.org>  Fri, 08 Dec 2017 08:01:08 +0100
> +
>  e17 (0.22.1-1) experimental; urgency=medium
>  
>    * New upstream release
> diff --git a/debian/fake_home.sh b/debian/fake_home.sh
> new file mode 100755
> index 000000000..2902878e1
> --- /dev/null
> +++ b/debian/fake_home.sh
> @@ -0,0 +1,15 @@
> +#!/bin/sh
> +
> +cleanup () {
> +    [ -n "$temp_HOME" ] && rm -r "$temp_HOME"
> +    [ -n "$temp_XDG_RUNTIME_DIR" ] && rm -r "$temp_XDG_RUNTIME_DIR"
> +}
> +
> +trap cleanup EXIT
> +
> +temp_HOME=$(mktemp -d)
> +temp_XDG_RUNTIME_DIR=$(mktemp -d)
> +
> +env HOME="$temp_HOME" \
> +    XDG_RUNTIME_DIR="$temp_XDG_RUNTIME_DIR" \
> +    $*
> diff --git a/debian/rules b/debian/rules
> index eafe076d0..de55ca691 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -11,6 +11,10 @@ ARCH_PATH=$(DEB_HOST_GNU_SYSTEM)-$(DEB_HOST_GNU_CPU)-$(RELEASE)
>  override_dh_auto_configure:
>  	dh_auto_configure --verbose
>  
> +override_dh_auto_build:
> +	$(CURDIR)/debian/fake_home.sh \
> +		dh_auto_build -O--buildsystem=meson --verbose
> +
>  override_dh_lintian:
>  	sed -e "s/MULTIARCH/$(DEB_TARGET_MULTIARCH)/" \
>  		-e "s/ARCH_PATH/$(ARCH_PATH)/" \
> -- 
> 2.15.0
> 

> _______________________________________________
> Pkg-e-devel mailing list
> Pkg-e-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-e-devel



More information about the Pkg-e-devel mailing list