public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Detecting Baselayout2/openrc - no-symlink profiles leading to breakage
@ 2009-01-17 23:07 Robin H. Johnson
  2009-01-17 23:52 ` Friedrich Oslage
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Robin H. Johnson @ 2009-01-17 23:07 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1648 bytes --]

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. 

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="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

-- 
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

[-- Attachment #2: Type: application/pgp-signature, Size: 329 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-01-20 14:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-17 23:07 [gentoo-dev] Detecting Baselayout2/openrc - no-symlink profiles leading to breakage Robin H. Johnson
2009-01-17 23:52 ` Friedrich Oslage
2009-01-18  7:17   ` [gentoo-dev] " Duncan
2009-01-18  9:39   ` [gentoo-dev] " Peter Volkov
2009-01-19 16:18   ` Santiago M. Mola
2009-01-20 13:20     ` Peter Volkov
2009-01-19  3:11 ` Donnie Berkholz
2009-01-19  6:13   ` Robin H. Johnson
2009-01-20 14:17 ` Matthias Schwarzott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox