From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 22A3B138334 for ; Mon, 2 Sep 2019 17:04:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A8114E081B; Mon, 2 Sep 2019 17:04:46 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7C8DCE07FE; Mon, 2 Sep 2019 17:04:46 +0000 (UTC) Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 6816334AA3F; Mon, 2 Sep 2019 17:04:45 +0000 (UTC) Received: by mail-io1-f43.google.com with SMTP id f12so12796968iog.12; Mon, 02 Sep 2019 10:04:45 -0700 (PDT) X-Gm-Message-State: APjAAAUbqeuhgaCyRCoVUuwPAneQWv30f75GLqeOGr1BTS5rzRuUaylv pAUw5ebf73eThcVyHiCjFnlV8j8SYqsz/yCCYrs= X-Google-Smtp-Source: APXvYqxiI1sJJSRZZ8k9sJQudp6KChN5QoHzQ5zA5/CXc6iVk0XqYRICiQunAjHu9RBe0QrcEDbiFfssN9AGHHb5l5Y= X-Received: by 2002:a05:6602:186:: with SMTP id m6mr2752821ioo.162.1567443883589; Mon, 02 Sep 2019 10:04:43 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 From: Mike Gilbert Date: Mon, 2 Sep 2019 13:04:32 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: [gentoo-portage-dev] Home directory for the 'portage' user To: Gentoo Dev Cc: gentoo-portage-dev@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 22857351-86f7-4f31-aa27-6163f17bb80e X-Archives-Hash: 83d8d7b5e2bb5a855508f4cbd25d092e I would like to create an acct-user package for the 'portage' user, but I'm having trouble deciding on a home directory. baselayout currently sets it to /var/tmp/portage, and this just seems like a bad idea to me. I'm pretty sure we have a QA policy against installing files there anyway. If we set the home directory to /dev/null, this may cause problems for unit tests that expect the account to have a valid home directory. For example, see this bug report for app-shells/ksh, which is about a test case that fails when the HOME environment variable is unset. It also fails if the home directory is not a directory (/dev/null). https://github.com/att/ast/issues/1391 /x/portage/app-shells/ksh-2020.0.0_beta1/work/ksh-2020.0.0_beta1-build/src/cmd/ksh93/ksh[5]: cd: /dev/null: [Not a directory] builtins[494]: cd with no arguments fails if HOME is unset builtins[-1]: error_count = 1 So, I guess we should pick somewhere to create an empty directory for portage. Any suggestions?