From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D4DF5138A3B for ; Sat, 25 Jan 2014 16:13:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB5DDE0A9E; Sat, 25 Jan 2014 16:13:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EF1B5E0A62 for ; Sat, 25 Jan 2014 16:13:40 +0000 (UTC) Received: from mail-ie0-f175.google.com (mail-ie0-f175.google.com [209.85.223.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 399A333F68E for ; Sat, 25 Jan 2014 16:13:40 +0000 (UTC) Received: by mail-ie0-f175.google.com with SMTP id ar20so4149581iec.20 for ; Sat, 25 Jan 2014 08:13:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:date:message-id:subject:from:to:content-type; bh=t1qYFxh+idig/FX0tutKORWet67NqENr3JNKkGjLnvY=; b=QIqrxDcormOjOZRXrvmHSMq0RY9LpFL3zp84pi/gNabHUoHD2lxAKIx3X5nRAwH47z CbJZ8SogswdNkMUB6X2X3mG2CGTbbdy4c9Wfv17XmFdrDsyY+KjK5VmtQGjfhCv6ivkG rgI86D8wAwtYUjTTiA6Okc+QMZPukCtwfvM4Jq18kqivpghQCe64eDDd2nMFKzJCjc0X okYefAsAbaPg6Am3edUnheiQ8xMv/vFzlk4PwwhPsqrGFOuEjBHUTH0/8bCOe+FSxkrc /rowgasReWVnREEaw5r9RfRLw1PMXLFRjwOFwto1BKiNJikIgaMlKIDgxTIFvmQcB3Xt WAWw== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.50.78.200 with SMTP id d8mr9846816igx.38.1390666418931; Sat, 25 Jan 2014 08:13:38 -0800 (PST) Received: by 10.64.86.234 with HTTP; Sat, 25 Jan 2014 08:13:38 -0800 (PST) Date: Sat, 25 Jan 2014 11:13:38 -0500 Message-ID: Subject: [gentoo-dev] Dealing with XDG directories in ebuild environment From: Mike Gilbert To: Gentoo Dev Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 68452028-0440-4a56-bf15-7ca5953c55a2 X-Archives-Hash: 3aaccb913b3713b85db3467cd3403f1d It seems having XDG variables like XDG_CONFIG_HOME set in the environment when calling emerge has a tendency to cause sandbox violations. For example, see the bugs blocking bug 499202. https://bugs.gentoo.org/show_bug.cgi?id=499202 If you grep for XDG_CONFIG_HOME in the eclass directory, you can see that several eclasses work around this by setting XDG_CONFIG_HOME="${T}" or "${T}/.config". gnome2-utils.eclass takes it a step further and creates empty directories for several other XDG variables. Is this something we can/should consolidate into some central place? Or should I just copy/paste something into distutils-r1.eclass?