From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MDOX7-0006s4-G5 for garchives@archives.gentoo.org; Sun, 07 Jun 2009 19:59:57 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5AD50E026B; Sun, 7 Jun 2009 19:59:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 21E19E026B for ; Sun, 7 Jun 2009 19:59:56 +0000 (UTC) Received: from mail.isohunt.com (b01.ext.isohunt.com [208.71.112.51]) by smtp.gentoo.org (Postfix) with ESMTP id 7DA3565CF9 for ; Sun, 7 Jun 2009 19:59:55 +0000 (UTC) Received: (qmail 1859 invoked from network); 7 Jun 2009 19:59:53 -0000 Received: from tsi-static.orbis-terrarum.net (HELO curie.orbis-terrarum.net) (76.10.188.108) (smtp-auth username robbat2@isohunt.com, mechanism login) by mail.isohunt.com (qpsmtpd/0.33-dev on beta01) with (AES256-SHA encrypted) ESMTPSA; Sun, 07 Jun 2009 19:59:53 +0000 Received: (qmail 26462 invoked by uid 10000); 7 Jun 2009 12:59:50 -0700 Date: Sun, 7 Jun 2009 12:59:50 -0700 From: "Robin H. Johnson" To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Detecting Baselayout2/OpenRC from init.d scripts (summary of debate and plans from bug 270646) Message-ID: <20090607195950.GI22927@orbis-terrarum.net> 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; protocol="application/pgp-signature"; boundary="q5r20fdKX+PFtYHw" Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 77fd0570-da40-4aa9-8d74-799414198610 X-Archives-Hash: f04243ea21207f1bf5127549cf3c664d --q5r20fdKX+PFtYHw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi folks, This is a summary of how to detect Baselayout-2/OpenRC from within init.d scripts. We raised it in January, without any actual final agreement: http://archives.gentoo.org/gentoo-dev/msg_5959bcfaf3ba566c551823039643f5c5.= xml Also, there were some items that weren't raised in the previous discussion: - The Vserver team needs the actual version of OpenRC, AND it must be available without any exec()/fork()/clone() calls. - init.d/sysfs might be removed on some embedded systems. The final solution that everybody agreed on is as follows. 1. OpenRC will provide /libexec/rc/version, a text file containing the version (possible including a git ID) of the release. 2. Right now, every init.d script that needs to detection should revbump and change to the following: [[ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /libexec/rc/version ]] This allows a safe migration. 3. Approximately 6 months after OpenRC and Baselayout2 go stable, the detection will drop to: [[ -f /libexec/rc/version ]] 4. For vserver and anybody else that needs the version details of OpenRC, you get to read the file, and RDEPEND on the minimal package version you want. GDP team: (I didn't hear from you in the bug) Could you please update: - handbook section "Writing Init scripts" - OpenRC migration guide --=20 Robin Hugh Johnson Gentoo Linux Developer & Infra Guy E-Mail : robbat2@gentoo.org GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 --q5r20fdKX+PFtYHw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Robbat2 @ Orbis-Terrarum Networks - The text below is a digital signature. If it doesn't make any sense to you, ignore it. iEYEARECAAYFAkosHDYACgkQPpIsIjIzwizplgCeM2FwUrsLrNAq3oIteLEUAFPE /dQAnA8+ZE8pTQBNPMFOwLNRyBp/SR39 =9OFx -----END PGP SIGNATURE----- --q5r20fdKX+PFtYHw--