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 1798E1381F3 for ; Wed, 24 Jul 2013 08:32:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 84A23E09F3; Wed, 24 Jul 2013 08:32:16 +0000 (UTC) Received: from juliette.telenet-ops.be (juliette.telenet-ops.be [195.130.137.74]) by pigeon.gentoo.org (Postfix) with ESMTP id 717C7E086F for ; Wed, 24 Jul 2013 08:32:15 +0000 (UTC) Received: from TOMWIJ-GENTOO ([94.226.55.127]) by juliette.telenet-ops.be with bizsmtp id 48YE1m00R2khLEN068YEU6; Wed, 24 Jul 2013 10:32:14 +0200 Date: Wed, 24 Jul 2013 10:28:28 +0200 From: Tom Wijsman To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [PATCH systemd.eclass] Introduce systemd_is_booted(). Message-ID: <20130724102828.65d63528@TOMWIJ-GENTOO> In-Reply-To: <1374650293-21212-1-git-send-email-mgorny@gentoo.org> References: <1374650293-21212-1-git-send-email-mgorny@gentoo.org> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.20; x86_64-pc-linux-gnu) 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 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/peuyeS60z_BsANzmYYyY8mJ"; protocol="application/pgp-signature" X-Archives-Salt: e132d924-37a4-4259-bfd6-4876aef29056 X-Archives-Hash: faee9828cf3314894d7da892a3f748bd --Sig_/peuyeS60z_BsANzmYYyY8mJ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 24 Jul 2013 09:18:13 +0200 Micha=C5=82 G=C3=B3rny wrote: > Pacho requested that to be able to warn users in GNOME packages that > do not work anymore without systemd. > > +# @FUNCTION: systemd_is_booted > +# @DESCRIPTION: > +# Check whether the system was booted using systemd. Can we have a short mention of that kind of usage in the description? There is some set of possible wrong usages, some of which are nasty, that this function should not be used for; for example, someone could use this as a check to install a file which I believe isn't permitted. Are there even other legit usages your original function would permit? Alternatively, you could change the function altogether into something more specific; eg. ewarn_systemd_boot and ewarn_no_systemd_boot. These functions would then take a message as parameter; then the resulting behavior of this function is in your hands, not the consumer. --=20 With kind regards, Tom Wijsman (TomWij) Gentoo Developer E-mail address : TomWij@gentoo.org GPG Public Key : 6D34E57D GPG Fingerprint : C165 AF18 AB4C 400B C3D2 ABF0 95B2 1FCD 6D34 E57D --Sig_/peuyeS60z_BsANzmYYyY8mJ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQEcBAEBAgAGBQJR75A0AAoJEJWyH81tNOV9eYgH/18nfmdSrXMJtrrrtlyTdUdD cSLtdMR7lGXa8McYfjIQlkNYUyiBvsztoItwEUza2y46tJ5i896nB56AdIbdWQwp UF6rQ9RI895zDqByK/f2MWiNaxgrz0lqw1HE2qjiRKlPtUimBY/A61kiWUwdAtN4 j8m3//79cY4Nfgzasxplu0hxkjgoLfAHX4Zo2lNl784M6DcSkjIx/euGEzAqDBa+ t4rLO+qMbnGUcyYUaqiAXvlP5prwY4kIASoP9CVuL6VbHY9q/sRAwe0dvHOqizVn 8TSOuSw7eaYucvYdMbzwVx3CBqlpZd52Z4e8nJktfTa1XOxcv0cgqRh2lHjSAb4= =q+h/ -----END PGP SIGNATURE----- --Sig_/peuyeS60z_BsANzmYYyY8mJ--