There is an overlay with an ebuild available: simply install layman, and then layman -a openrc.choogi wrote:I've been reading a bit about baselayout-2 and OpenRC (which seems to be popular). Which one do you all use? I want to try OpenRC but it's not in portage...do I just download the source and run a "make install"?

Code: Select all
Calculating dependencies... done!
[ebuild U ] sys-apps/baselayout-2.0.0 [1.12.11.1] USE="-bootstrap -build (-static%) (-unicode%*)" 29 kB [0=>1]
[ebuild N ] sys-apps/openrc-9999 USE="ncurses pam unicode -static" 0 kB [1]
[blocks B ] <sys-fs/udev-118-r2 (is blocking sys-apps/openrc-9999)
Total: 2 packages (1 upgrade, 1 new, 1 block), Size of downloads: 29 kB
Portage tree and overlays:
[0] /usr/portage
[1] /usr/portage/local/layman/openrc
!!! Error: The above package list contains packages which cannot be installed
!!! at the same time on the same system.
For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
Code: Select all
quickpkg --include-config=y udevCode: Select all
emerge -1 udevCode: Select all
make[1]: Leaving directory `/var/tmp/portage/sys-apps/openrc-9999/work/openrc-9999/runlevels'
>>> Completed installing openrc-9999 into /var/tmp/portage/sys-apps/openrc-9999/image/
ecompressdir: bzip2 -9 /usr/share/man
strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment
lib/librc.so.1
lib/libeinfo.so.1
sbin/rc
usr/lib/librc.a
usr/lib/libeinfo.a
making executable: lib/libeinfo.so.1
making executable: lib/librc.so.1
* checking 236 files for package collisions
>>> Merging sys-apps/openrc-9999 to /
* No state found, and no state exists
* You should reboot this host
--- /bin/
--- /etc/
--- /etc/pam.d/
>>> /etc/pam.d/start-stop-daemon
--- /etc/conf.d/
>>> /etc/conf.d/net
>>> /etc/conf.d/fsck
>>> /etc/conf.d/keymaps
>>> /etc/conf.d/._cfg0004_clock
>>> /etc/conf.d/local
>>> /etc/conf.d/consolefont
>>> /etc/conf.d/modules
>>> /etc/conf.d/._cfg0003_hostname
>>> /etc/conf.d/urandom
>>> /etc/conf.d/._cfg0003_bootmisc
--- /etc/init.d/
>>> /etc/init.d/fsck
>>> /etc/init.d/mtab
>>> /etc/init.d/root
>>> /etc/init.d/swap
>>> /etc/init.d/keymaps
>>> /etc/init.d/._cfg0004_clock
>>> /etc/init.d/local
>>> /etc/init.d/._cfg0003_localmount
>>> /etc/init.d/consolefont
>>> /etc/init.d/modules
>>> /etc/init.d/hostname
>>> /etc/init.d/._cfg0003_halt.sh
Traceback (most recent call last):
File "/usr/bin/emerge", line 6971, in <module>
retval = emerge_main()
File "/usr/bin/emerge", line 6965, in emerge_main
myopts, myaction, myfiles, spinner)
File "/usr/bin/emerge", line 6395, in action_build
retval = mergetask.merge(pkglist, favorites, mtimedb)
File "/usr/bin/emerge", line 3981, in merge
return self._merge(mylist, favorites, mtimedb)
File "/usr/bin/emerge", line 4259, in _merge
prev_mtimes=ldpath_mtimes)
File "/usr/lib/portage/pym/portage.py", line 4818, in doebuild
vartree=vartree, prev_mtimes=prev_mtimes)
File "/usr/lib/portage/pym/portage.py", line 5013, in merge
mydbapi=mydbapi, prev_mtimes=prev_mtimes)
File "/usr/lib/portage/pym/portage.py", line 9486, in merge
mydbapi=mydbapi, prev_mtimes=prev_mtimes)
File "/usr/lib/portage/pym/portage.py", line 9494, in _merge
cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes)
File "/usr/lib/portage/pym/portage.py", line 9063, in treewalk
if self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime):
File "/usr/lib/portage/pym/portage.py", line 9366, in mergeme
join(offset, x), cfgfiledict, thismtime):
File "/usr/lib/portage/pym/portage.py", line 9366, in mergeme
join(offset, x), cfgfiledict, thismtime):
File "/usr/lib/portage/pym/portage.py", line 9294, in mergeme
mydest = new_protect_filename(mydest,newmd5=newmd5)
File "/usr/lib/portage/pym/portage_util.py", line 1044, in new_protect_filename
os.path.join(real_dirname, last_pfile)) == newmd5:
File "/usr/lib/portage/pym/portage_checksum.py", line 114, in perform_md5
return perform_checksum(x, "MD5", calc_prelink)[0]
File "/usr/lib/portage/pym/portage_checksum.py", line 228, in perform_checksum
raise portage_exception.FileNotFound(myfilename)
portage_exception.FileNotFound: /etc/init.d/._cfg0001_net.lo
Look closer!choogi wrote:okay cool! i added udev to my package.keywords.
now i'm emerging openrc but i get this error at the end:
Code: Select all
make[1]: Leaving directory `/var/tmp/portage/sys-apps/openrc-9999/work/openrc-9999/runlevels' >>> Completed installing openrc-9999 into /var/tmp/portage/sys-apps/openrc-9999/image/ ecompressdir: bzip2 -9 /usr/share/man strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment lib/librc.so.1 lib/libeinfo.so.1 sbin/rc usr/lib/librc.a usr/lib/libeinfo.a making executable: lib/libeinfo.so.1 making executable: lib/librc.so.1 * checking 236 files for package collisions >>> Merging sys-apps/openrc-9999 to / * No state found, and no state exists * You should reboot this host
Code: Select all
Partition /dev/sda5 is mounted with write permissions, cannot check itErm, you must be jokingchoogi wrote:No...I don't know how to use etc-update...
That's exactly what a layman -a openrc gives you.Dagger wrote:isn't it easier to use Uberlord OpenRC overlay?
git://git.overlays.gentoo.org/dev/uberlord.git

don't laugh !choogi hat Folgendes geschrieben:
No...I don't know how to use etc-update...
Erm, you must be joking
You HAVE TO upgrade the config files and init scripts. There is etc-update, dispatch-conf, etc-proposals - get used to one of those, or better don't touch baselayout and the system init. Not doing so WILL break things.
Code: Select all
etc-updateCode: Select all
pleadian ~ $ ls -l /etc/localtime
lrwxrwxrwx 1 root root 31 Мар 20 10:52 /etc/localtime -> /usr/share/zoneinfo/Europe/Kiev
pleadian ~ $ grep clock= /etc/conf.d/clock
clock="local"
Here it only worked during startup, if i *copied* and not symlinked it. Maybe that's because /usr is on a seperate partition, not sure.Nick C wrote:i think the /etc/conf.d/clock is deprecated in newer versions of openrc/baselayout-2 in favour of *just* using the /etc/localtime symlink.
Worst case set /etc/conf.d/clock to local and link /etc/localtime to the right zone and then set the correct date/time using the date command and hopefully all will be ok

Yes, that's why. "/etc/localtime" is used before all of the mounts in "/etc/fstab" are done, so, if your "/usr" is on a different partition, the symlink method will fail. I like using symlinks when the partitioning is simple, though, because then the time information is automatically updated when updates to sys-libs/timezone-data are released.gimpel wrote:Here it only worked during startup, if i *copied* and not symlinked it. Maybe that's because /usr is on a seperate partition, not sure.
Code: Select all
smashed git-src # git clone git://git.overlays.gentoo.org/proj/openrc.git
Initialized empty Git repository in /usr/portage/distfiles/git-src/openrc/.git/
fatal: The remote end hung up unexpectedly
fetch-pack from 'git://git.overlays.gentoo.org/proj/openrc.git' failed.
Code: Select all
smashed git-src # ponly sys-fs/udev
/usr/bin/_paludis_wrapper.bash: line 75: /etc/init.d/functions.sh: No such file or directory
Building target list...
hooker.bash: Cannot read functions.sh
/usr/bin/paludis@1206647030: [WARNING] Hook '/usr/share/paludis/hooks/auto/update-eix.hook' returned failure '2' for auto hook names
Building dependency list...
These packages will be installed:
* sys-apps/openrc::openrc [N 9999]
"OpenRC manages the services, startup and shutdown of a host"
ncurses pam -static unicode kernel: (-FreeBSD) (linux)
* sys-fs/udev [U 115-r1 -> 118-r2] <target>
(-selinux)
195.17 kBytes to download
Total: 2 packages (1 new, 1 upgrade), at most 195.17 kBytes to download
Use flags:
* ncurses: Adds ncurses support (console display library)
* pam: Adds support PAM (Pluggable Authentication Modules) - DANGEROUS to arbitrarily flip
* static: !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically
* unicode: Adds support for Unicode
kernel:
* FreeBSD: KERNEL setting for system using the FreeBSD kernel.
* linux: KERNEL setting for systems using the Linux kernel
paludis-ask> * Do you want to perform this operation ...
paludis-ask> Type y/yes/ENTER to continue ... [Y/n]
(1 of 2) Installing sys-apps/openrc-9999:0::openrc
>>> Running ebuild phase killold as root:root...
>>> Starting builtin_killold
>>> Done builtin_killold
>>> Completed ebuild phase killold
>>> Running ebuild phases init saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_init
>>> Done builtin_init
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases init saveenv
>>> Running ebuild phases loadenv setup saveenv as root:root...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting pkg_setup
>>> Done pkg_setup
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases loadenv setup saveenv
>>> Running ebuild phases loadenv unpack compile saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting src_unpack
* git clone start -->
* repository: git://git.overlays.gentoo.org/proj/openrc.git
Initialized empty Git repository in /usr/portage/distfiles/git-src/openrc/
fatal: The remote end hung up unexpectedly
fetch-pack from 'git://git.overlays.gentoo.org/proj/openrc.git' failed.
!!! ERROR in sys-apps/openrc-9999:
!!! In git_fetch at line 2671
!!! git.eclass: can't fetch from git://git.overlays.gentoo.org/proj/openrc.git.
!!! Call stack:
!!! * git_fetch (/var/tmp/paludis/sys-apps/openrc-9999/temp/loadsaveenv:2671)
!!! * git_src_unpack (/var/tmp/paludis/sys-apps/openrc-9999/temp/loadsaveenv:2695)
!!! * src_unpack (/var/tmp/paludis/sys-apps/openrc-9999/temp/loadsaveenv:3788)
!!! * ebuild_f_unpack (/usr/libexec/paludis/0/src_unpack.bash:42)
!!! * ebuild_main (/usr/libexec/paludis/ebuild.bash:462)
!!! * main (/usr/libexec/paludis/ebuild.bash:480)
diefunc: making ebuild PID 21052 exit with error
die trap: exiting with error.
Code: Select all
smashed git-src # rc-config start fancontrol
Starting init script
/usr/share/eselect//modules/rc.eselect: line 69: /sbin/runscript: No such file or directory