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 65193139694 for ; Tue, 2 May 2017 16:21:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0A8AE0DD6; Tue, 2 May 2017 16:21:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9363AE0D59 for ; Tue, 2 May 2017 16:21:42 +0000 (UTC) Received: from mail-io0-f176.google.com (mail-io0-f176.google.com [209.85.223.176]) (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 90D5234164B for ; Tue, 2 May 2017 16:21:41 +0000 (UTC) Received: by mail-io0-f176.google.com with SMTP id o22so34610072iod.0 for ; Tue, 02 May 2017 09:21:41 -0700 (PDT) X-Gm-Message-State: AN3rC/74sDsjDKkbNuyK/4qJlGQBdKPPy1aWgYUAyILDlL4mwPBT7Ss8 u2uQAYKygqU3UFAvdNMltW00EDUdfQ== X-Received: by 10.107.160.77 with SMTP id j74mr27600586ioe.58.1493742099640; Tue, 02 May 2017 09:21:39 -0700 (PDT) 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 Received: by 10.107.19.87 with HTTP; Tue, 2 May 2017 09:21:19 -0700 (PDT) In-Reply-To: <20170502143842.GA22289@linux1> References: <20170430190655.9946-1-mgorny@gentoo.org> <20170502143842.GA22289@linux1> From: Mike Gilbert Date: Tue, 2 May 2017 12:21:19 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [gentoo-dev] [PATCH 1/3] tmpfiles.eclass: Support using on non-Linux systems To: Gentoo Dev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: afacba5b-2b02-41f2-9478-e8b815a99edb X-Archives-Hash: e7853fb01262d13544c24c3f81c4ff57 On Tue, May 2, 2017 at 10:38 AM, William Hubbs wrote: > On Sun, Apr 30, 2017 at 09:06:53PM +0200, Micha=C5=82 G=C3=B3rny wrote: >> Fix the eclass code to remove the misguided Linux conditionals. >> The whole purpose of the eclass was to avoid having to implement >> fallback logic for systems not having service manager tmpfiles.d >> support. Making it conditional to Linux implied that for non-Linux >> systems (Prefix, FreeBSD) we would have to implement explicit fallback >> to create the necessary directories. >> >> While systemd (and therefore systemd-tmpfilesd) is indeed >> Linux-specific, the opentmpfiles implementation should be pretty >> portable and there is no reason to restrict it to Linux only, or to >> prevent using it on non-Linux OpenRC (and non-OpenRC) systems. > > Opentmpfiles can run right now on non-openrc systems, but it requires a > linux host; that is why the Linux conditionals are there. We currently su= pport > selinux and even more specific linux code is coming with the btrfs > subvolume support. My Linux system does not support selinux. Other people have Linux systems which do not support btrfs. tmpfiles still works on such systems. What exactly breaks on non-Linux systems?