Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51018 - baselayout splitting
Summary: baselayout splitting
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-14 01:45 UTC by Dmitry S. Kulyabov
Modified: 2004-07-12 01:38 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry S. Kulyabov 2004-05-14 01:45:03 UTC
I propose to split baselayout

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Dmitry S. Kulyabov 2004-05-14 01:46:49 UTC
I propose to split baselayout into three packages:
1. baselayout.
2. initscripts ( gentoo-sysv initscripts ).
2. SysV init.
Comment 2 Jon Portnoy (RETIRED) gentoo-dev 2004-05-14 13:10:19 UTC
Why?
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-05-15 13:08:16 UTC
There's no point to this.  Please re-open if you can offer a detailed and persuasive explanation.
Comment 4 Norberto Bensa 2004-05-15 13:33:49 UTC
I always wondered why there's no separated sysvinit package (actually there is, but it's masked.)
Comment 5 Dmitry S. Kulyabov 2004-05-17 06:19:20 UTC
1. I think, this is common practice in linux distributions.
2. This is more flexible for support (z.B. for patches).
3. More simple to change initstyle.
Comment 6 SpanKY gentoo-dev 2004-05-17 17:43:28 UTC
1. so what, we're Gentoo, not other distro's
2. i dont see how
3. not really considering every package in Gentoo that supports 'init' comes with a 'Gentoo' init script and not 'some other init script'
Comment 7 Norberto Bensa 2004-05-17 17:55:35 UTC
No one asnwered #4; what's the reason why sysvinit isn't a separated package?
Comment 8 Aron Griffis (RETIRED) gentoo-dev 2004-05-18 09:27:47 UTC
I'll reopen this bug and consider it.  Dmitry has some good points, in particular I think it would be easier to maintain sysvinit if it were a separate package (which Norberto pointed out exists, though it's package-masked).  At the moment the sysvinit in baselayout is older than the released version according to freshmeat, and updating is a pain because I have to suck the sources into the rc-scripts cvs.

I might not get to this immediately but I'll discuss it with Azarah and Spanky.
Comment 9 solar (RETIRED) gentoo-dev 2004-06-27 15:37:52 UTC
Re comment #8

I'd also welcome this change..  
Perhaps splitting baselayout into it's 3 parts.

1) base (standard dirs and device nods/MAKEDEV)
2) sysvinit (user can use any init he/she wishes minit/busybox init/etc..)
3) rc-scripts (just the init scripts /etc/{init,conf}.d/ /etc/rc)
Comment 10 Aron Griffis (RETIRED) gentoo-dev 2004-06-29 14:27:25 UTC
ok, baselayout is split from sysvinit now in baselayout-1.10.1-r1 and sysvinit-2.84 (which is unmasked).  test and report bugs...
Comment 11 Gregorio Guidi (RETIRED) gentoo-dev 2004-06-30 00:57:39 UTC
what about splitting rc-scripts?
after all, it was the need to bump rc-scripts that often forced baselayout
upgrades and caused annoying updates of device nodes and core files,
which is what we are trying to avoid in first place.

BTW: the part in baselayout-1.10.1-r1.ebuild that executes
'sbin.init U' should be moved to the sysvinit ebuild.
Comment 12 Aron Griffis (RETIRED) gentoo-dev 2004-07-02 14:59:11 UTC
Ok, I'll reopen and consider.

"annoying updates of device nodes and core files,
which is what we are trying to avoid in first place"

What's annoying about them?
Comment 13 SpanKY gentoo-dev 2004-07-02 15:07:43 UTC
the only thing i can think of is /etc/{fstab,passwd,group} ...

all my machines use dynamic /dev (as do most people) so i dont think that's really an issue for the majority of users
Comment 14 Gregorio Guidi (RETIRED) gentoo-dev 2004-07-03 01:35:26 UTC
> /etc/{fstab,passwd,group} ...
yes, i was thinking of those.
About devices, the main issue is the time to run MAKEDEV,
I agree there's no risk in recreating device nodes.

Thanks for considering.
Comment 15 Aron Griffis (RETIRED) gentoo-dev 2004-07-11 20:13:53 UTC
Gregorio, I added fstab and group to the list of files whose ._cfg* entries are deleted automatically to ease your frustration.

Regarding the device nodes, they are only created if you don't have /lib/udev-state/devices.tar.bz2 already on your system.  I moved this stuff into pkg_postinst so it doesn't have to do dirty ${ROOT} tricks in src_install

This is in baselayout-1.10.1-r2.  I prototyped splitting into a separate rc-scripts ebuild.  It was a hairy process and I don't think it's worthwhile considering the changes I've now made.  Likely the split would lead to more maintainence than the current baselayout+rc-scripts setup.

Resolving FIXED since Gregorio's concerns should be met now.
Comment 16 Gregorio Guidi (RETIRED) gentoo-dev 2004-07-12 01:38:25 UTC
I'm fine with this solution, thanks a lot!