From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LOKGV-0000k9-03 for garchives@archives.gentoo.org; Sat, 17 Jan 2009 23:07:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 22C9CE042C; Sat, 17 Jan 2009 23:07:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CF824E042C for ; Sat, 17 Jan 2009 23:07:38 +0000 (UTC) Received: from mail.isohunt.com (b01.ext.isohunt.com [208.71.112.51]) by smtp.gentoo.org (Postfix) with ESMTP id 0DADF6463F for ; Sat, 17 Jan 2009 23:07:37 +0000 (UTC) Received: (qmail 22206 invoked from network); 17 Jan 2009 23:07:36 -0000 Received: from S010600022af11287.vc.shawcable.net (HELO curie.orbis-terrarum.net) (24.84.179.214) (smtp-auth username robbat2@isohunt.com, mechanism login) by mail.isohunt.com (qpsmtpd/0.33-dev on beta01) with (AES256-SHA encrypted) ESMTPSA; Sat, 17 Jan 2009 23:07:36 +0000 Received: (qmail 6855 invoked by uid 10000); 17 Jan 2009 15:07:33 -0800 Date: Sat, 17 Jan 2009 15:07:33 -0800 From: "Robin H. Johnson" To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Detecting Baselayout2/openrc - no-symlink profiles leading to breakage Message-ID: <20090117230733.GV7944@curie-int.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="Zbynv6TNPa9FrOf6" Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: f411adfd-f2f5-484f-b54f-8cb1b928b4f4 X-Archives-Hash: 5959bcfaf3ba566c551823039643f5c5 --Zbynv6TNPa9FrOf6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm raising this as an extension of bug 253076, but also because I see the potential for danger. To date, for an init script that has baselayout2-specific behavior, we have had some variant of [ -e /lib/librc.so ] in the init script. On a multilib profile with no symlinks and a 64-bit userspace, the .so file would be installed in /lib64/librc.so, and the check would mistakenly have the wrong result.=20 There's one fix that has started to turn up already, but I'm not sure if it's going to be safe always: [ -f /etc/init.d/sysfs ] This happens to work as openrc installs that init script. As a long term solution, can we just consume an inode and have some file like /etc/baselayout2? The file must reside on the / partition even when the major trees /usr, /var, /tmp, /opt, /boot, /home, /dev, /root are separate mountpoints. Affected and broken profiles: - amd64's 2005.0/no-symlink (it was very widely deployed. It's not supported or in the tree anymore, but there ARE still people using it) - default/linux/sparc/2008.0 (unconfirmed) - Any profile that sets SYMLINK_LIB=3D"no" AND the userspace is 64-bit. - Wouldn't surprise me if some of the N32 style mips stuff was broken too. Affected, but not broken profiles: These are multilib, but with the default as 32-bit causes the lib to be in right place. - arch/powerpc/ppc64/32ul - hardened/linux/powerpc/ppc64/2008.0/32bit-userland - Any other profile that inherits features/32bit-userland --=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 --Zbynv6TNPa9FrOf6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (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. iEYEARECAAYFAklyZLUACgkQPpIsIjIzwiwipQCdHRK42PXCss3PYRF6v10jEv6u JK8AoP1ENbbym7ckZ+VFETO/34nJ0ihy =JEap -----END PGP SIGNATURE----- --Zbynv6TNPa9FrOf6--