You are not logged in.

#226 2013-10-05 07:23:00

gothmog123
Member
Registered: 2012-10-31
Posts: 75

Re: OpenRC & eudev on Arch

Guys, I was wondering about installing eudev on top of Openrc. Does anyone have any tips? Can I just install, reboot and hope for the best?

Offline

#227 2013-10-09 00:33:37

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

gothmog123 wrote:

Guys, I was wondering about installing eudev on top of Openrc. Does anyone have any tips? Can I just install, reboot and hope for the best?

As far as I can tell, it works.
You can use the udev-init-scripts to trigger eudev.
However, you need to recompile several packages if you have eudev installed, eg dbus or syslog-ng.
They won't start unless you disable systemd in configure.

It is been some time I tested eudev, but it worked well apart from a bug at that time.

Edit:

I have made a eudev-1.3 pkgbuild with openrc integration enabled.
Feel free to test it.

https://github.com/udeved/pkgbuilds/tree/master/eudev

To point out again, my openrc version and scripts use the default locations in /etc, so no openrc subdir in /etc.
The AUR version uses  /etc/openrc/$subdir.

Last edited by artoo (2013-10-09 05:27:33)

Offline

#228 2013-10-09 01:04:27

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: OpenRC & eudev on Arch

Possibly it depends on what you have installed.

I have:

openrc-arch-services-git 0.25-1
openrc-git 0.11.105.ge451d17-1
openrc-sysvinit 2.88-9

I don't have eudev installed on this system (laptop) but I did read somewhere that you have to

Just open /etc/openrc/init.d/udev and change

command=/usr/lib/systemd/systemd-udevd

to

command=/usr/bin/udevd

It's all.

I do have eudev  installed on my desktop running good old sysV initscripts with zero problems,

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#229 2013-10-10 01:54:25

gothmog123
Member
Registered: 2012-10-31
Posts: 75

Re: OpenRC & eudev on Arch

artoo wrote:

However, you need to recompile several packages if you have eudev installed, eg dbus or syslog-ng.
They won't start unless you disable systemd in configure.

Ah! So is that why my connman daemon can't start under eudev?

Offline

#230 2013-10-13 10:28:39

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

gothmog123 wrote:
artoo wrote:

However, you need to recompile several packages if you have eudev installed, eg dbus or syslog-ng.
They won't start unless you disable systemd in configure.

Ah! So is that why my connman daemon can't start under eudev?

I don't know, I have never used connman.
But I probably find some time to test it and add it to github and binary repo.
Until I get to try it, you could provide some error output in the meantime.
Does the connman complain about a missing shared library libsystemd.xx.so? Something like that?


Edit1:
According to the connman runscript, it requires the net virtual.
I guess you are using the AUR version, which is compiled with newnet, which doesn't provide the net virtual.

So either you fix your script as desribed in post #222, or you use my repo, and do 'pacman -S openrc-base', no fix needed then.

I am about to test connman with eudev now.

Last edited by artoo (2013-10-13 13:43:39)

Offline

#231 2013-10-13 10:45:04

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

I would like to submit just "all-in-one" build to AUR, so as to not get in conflict with apq's openrc builds, and to avoid submitting over 50 pkgbuilds.
Has been split packages support added to AUR  lately?
The alternative would be to install the git repo in eg /home/$USER.

Any other ideas how to get this done in AUR?

Last edited by artoo (2013-10-13 10:57:18)

Offline

#232 2013-10-13 12:01:56

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 4,166

Re: OpenRC & eudev on Arch

artoo, there is a workaround to use split pacakges with AUR .

check https://aur.archlinux.org/packages/splittest/


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#233 2013-10-13 12:52:07

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

Lone_Wolf wrote:

artoo, there is a workaround to use split pacakges with AUR .

check https://aur.archlinux.org/packages/splittest/

Thanks you.
I will look into it. smile

Edit:
Looks good.

I will give it a test run with a small split pkg eg openrc-base.
It would theoretically install sysvinit, openrc, udev-init-scripts, netifrc, and eventually eudev.

Edit2: 
Nope. its no solution, I found this thread:

https://bbs.archlinux.org/viewtopic.php?id=156811

The crucial info, "there is only one build function", plus my pkgbuilds don't use an intermediary git repo anymore. They directly download the stuff from gentoo, and sed-fix them.

Last edited by artoo (2013-10-13 14:29:04)

Offline

#234 2013-10-13 13:04:20

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

I recently have added a eudev binary repo. It only contains eudev and packages which will need different compile options under eudev, "--disable-systemd" specifically.

For instructions, click the signature link.

The additional packages in eudev repo basically upgrade  openrc-init-script packages to a full build versions, replacing and upgrading eg dbus and dbus-openrc respectively.

If you encounter packages which do not start with eudev and openrc installed, then please post them, so we can make a list of packages which have to be recompiled.

The eudev recompile pkg current list:

dbus(done)
syslog-ng(done)
udisks2(done)
upower(done)
avahi(?)
cups(todo)

Edit:
gothmog123,
connman runs fine without recompiling. I bet its the missing net virtual on your system..

Last edited by artoo (2013-10-18 15:08:25)

Offline

#235 2013-10-15 11:07:29

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

small update:

I have merged udev-init-scripts into the openrc pkg.
openrc versions(>=0.12.2-4) are udev enabled after install.

@Lone_Wolf

I reconsidered the split pkg AUR trick.

After I made openrc udev enabled, I think it is possible to create say AUR versions going in line with the groups.
In order to submit openrc, I considered renaming it into openrc-udev, and all init-script split pkgs would depend explicitly on openrc-udev.
However, the name could be misleading, since my openrc build requires just a 'neutral' udev. So it runs either with systemd or eudev, or a theoretical udev standalone pkg.


split pkg for the dozens of init-scripts pkgs  should be doable for AUR.
Its maybe worth a try.

Last edited by artoo (2013-10-15 11:27:47)

Offline

#236 2013-10-15 12:18:30

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 4,166

Re: OpenRC & eudev on Arch

Artoo, from this thread i think you want to stay very close to the way gentoo installs/uses openrc ?

Maybe openrc-gentoo would be a good name ?


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#237 2013-10-15 14:10:58

x33a
Forum Moderator
Registered: 2009-08-15
Posts: 3,248
Website

Re: OpenRC & eudev on Arch

Lone_Wolf wrote:

Artoo, from this thread i think you want to stay very close to the way gentoo installs/uses openrc ?

Maybe openrc-gentoo would be a good name ?

Though it sounds good, it could be misleading since OpenRC is a gentoo project tongue

Another one could be openrc-anyudev.

Whatever you choose, do mention in the pkgdesc that it will work with any udev.

Last edited by x33a (2013-10-15 14:11:17)

Offline

#238 2013-10-15 14:59:07

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

Lone_Wolf wrote:

Artoo, from this thread i think you want to stay very close to the way gentoo installs/uses openrc ?

Maybe openrc-gentoo would be a good name ?

Yes, i sort of try to stay as close to gentoo setup as possible.
As mentioned, I think a subdir in /etc causes unwanted side effects. For example, I can't reproduce the /tmp with tmpfs error with my version, plus there are redundant config dirs in /etc, eg /etc/sysctl.d twice with AUR version.
However, the install process on Arch is different. Gentoo has a PDEPEND, a depend after the package is installed.
The closest thing on Arch is optdepends.

I am open for naming suggestions. smile

x33a wrote:
Lone_Wolf wrote:

Artoo, from this thread i think you want to stay very close to the way gentoo installs/uses openrc ?

Maybe openrc-gentoo would be a good name ?

Though it sounds good, it could be misleading since OpenRC is a gentoo project tongue

Another one could be openrc-anyudev.

Whatever you choose, do mention in the pkgdesc that it will work with any udev.

I sort of like the gentoo suffix, but I have had a similar thought.

I am looking for a consistent naming, which includes eudev and consolekit packages.
In fact, a project name is needed. I found openrc4arch too long somehow.


------------------------

Here is a snippet from the openrc-desktop split AUR pkg.

pkgbase=desktop
pkgname=desktop
true && pkgname=('dbus-openrc' 'display-manager-openrc' 'acpid-openrc')

package_dbus-openrc() {
	true
}

full build:
https://github.com/udeved/pkgbuilds/blo … t/PKGBUILD

Is there any restriction or requirement for pkgbase and pkgname to make it work in AUR? Do they need to match the name of package function?

PS: I think, I am going to include the kmod-static-nodes pkg in the openrc build too.

Last edited by artoo (2013-10-15 15:43:42)

Offline

#239 2013-10-16 16:44:43

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

Any opinion on naming openrc AUR packages?

I had the idea to call the openrc-0.12.2 pkg "openrc-base".
It includes ifnetrc, kmod-static-nodes and udev-init-scripts, and it is a single build.

The split pkgs are called openrc-misc, openrc-net, openrc-sys, openrc-mobile, openrc-devel. Each individual package implements a group of the split pkg name. 

Any suggestions regarding grouping? See github for details.

Last edited by artoo (2013-10-16 17:15:08)

Offline

#240 2013-10-16 17:48:43

x33a
Forum Moderator
Registered: 2009-08-15
Posts: 3,248
Website

Re: OpenRC & eudev on Arch

openrc-base sounds good, keeping in mind the naming of the other groups.

Regarding grouping:

  • glibc should be in openrc-sys not openrc-net.

  • cyrus-sasl should be in openrc-net instead of openrc-devel.

  • fcron and rsyslog should be in openrc-sys instead of openrc-misc.

  • openntpd should be in openrc-net instead of openrc-misc.

  • Also, openrc-mobile should probably be merged with openrc-net.

Before uploading packages to the AUR, you may want to seek apg's opinion, so that there is no confusion later on.

Offline

#241 2013-10-16 18:00:33

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

x33a wrote:

openrc-base sounds good, keeping in mind the naming of the other groups.

Regarding grouping:

  • glibc should be in openrc-sys not openrc-net.

  • cyrus-sasl should be in openrc-net instead of openrc-devel.

  • fcron and rsyslog should be in openrc-sys instead of openrc-misc.

  • openntpd should be in openrc-net instead of openrc-misc.

  • Also, openrc-mobile should probably be merged with openrc-net.

Before uploading packages to the AUR, you may want to seek apg's opinion, so that there is no confusion later on.


Some of the stuff in misc, such as openntpd and fcron make sense in misc, since if I move them to net and sys respectively, I get conflicts. ntp and openntpd conflict, so do the openrc addon pkgs. same for frcon and cronie.

Say you do 'pacman -S openrc-sys' and you can only install either cronie or fcron.
Same for openntpd and ntp in openrc-net.

I'll move glibc, cyrus and probably merge mobile into net.
Apq's openrc will conflict with openrc-base, but openrc-base provides an openrc group.
The split pkgs will conflict with the openrc-arch-services-git
I am still bit away from uploading to AUR atm.

Thanks for input,

Last edited by artoo (2013-10-16 18:04:36)

Offline

#242 2013-10-17 16:36:39

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

I think I'd be ready for AUR upload.

I summarized grouping here:

https://github.com/udeved/pkgbuilds/blo … /README.md

Is there anybody willing to give the install files and general msg printing some love?
I am bit short of time.

Should the displaymanager move to openrc-sys group, so users don't have to build openrc-misc just for one pkg?

Last edited by artoo (2013-10-17 19:33:50)

Offline

#243 2013-10-17 23:45:07

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

I have uploaded openrc-base-0.12.2 and openrc-sys-split to AUR.

A question:

How to fix the description for openrc-sys-split?
AUR appears to take the description of the last package of the split pkg.

possible solutions:
Either make a standard description, or possibly add a dummy description package function at the very bottom of the split pkg?

Last edited by artoo (2013-10-18 00:03:28)

Offline

#244 2013-10-18 00:14:51

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,485
Website

Re: OpenRC & eudev on Arch

The AUR does not support split packages, so expect some odd behavior when using them.

All the best,

-HG


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Offline

#245 2013-10-18 11:14:46

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

HalosGhost wrote:

The AUR does not support split packages, so expect some odd behavior when using them.

All the best,

-HG

Surprisingly, the AUR does handle the split pkgs well, apart from the description thingy.

I tested the builds in vbox,  on a clean plain arch system with yaourt installed.

So far, some minor stuff to correct, but it works.


------------------------------------------------


About displaymanager, I think, I'll move it to openrc-sys.
If the user with desktop wants to just install openrc and required desktop service, openrc-sys would be enough to install.
Atm, openrc-misc is required, which removes eg cronie in favour of fcron also.
I think, its more elegant to put it in openrc-sys.

I also considered moving the eudev-openrc postmount script to openrc-misc, to have a clean and independent eudev instead of a split eudev depending on openrc-base.

Last edited by artoo (2013-10-18 14:42:57)

Offline

#246 2013-11-17 19:07:46

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

I have come across a very interesting discussion on oldnet and newnet for openrc, when looking for eventual plans to make newnet default on gentoo. Thankfully, it is not the plan.

http://us.generation-nt.com/answer/gent … 04242.html

The bottom line seems to be this:

The name is also per robbat2's request. I asked him about other names,
but he specifically wanted oldnet in the name.

A little bit of historical background may be in order here.

In a nutshell, it is called old because Roy wanted to deprecate the
whole thing eventually and switch us over to the newnet scripts that
OpenRC has.
name.

We thought about killing off newnet entirely for a while in OpenRC, but
I have since found that people do use it. It is more similar to what
happens on the *bsd side, and it works well for simple setups.

Also, I think it is more like what some other distros do for their
network interfaces.

The primary disadvantages of newnet are that services can't depend on a
single network interface, and it is not possible to stop/start a single
interface.

William

Another helpful link:
https://wiki.gentoo.org/wiki/Systemd

Comparison of openrc and systemd services.

Last edited by artoo (2013-11-17 23:05:19)

Offline

#247 2013-12-13 05:10:44

x33a
Forum Moderator
Registered: 2009-08-15
Posts: 3,248
Website

Re: OpenRC & eudev on Arch

Since sysvinit-tools was removed from the repos, and pidof was merged into procps-ng (upstream), we are left without killall5.

This results in errors on shutdown, due to the killprocs script failing. Though the shutdown proceeds as normal.

How should we deal with this situation?

One way is to provide a package containing killall5 in the AUR.

And, if there is a better alternative for killall5, maybe we can convince OpenRC devs to switch to that.

Comments please.

Offline

#248 2013-12-13 05:45:52

progandy
Member
Registered: 2012-05-17
Posts: 2,146

Re: OpenRC & eudev on Arch

x33a wrote:

How should we deal with this situation?

One way is to provide a package containing killall5 in the AUR.

That's not a bad idea. You could also use busybox and create a symlink for killall5.

And, if there is a better alternative for killall5, maybe we can convince OpenRC devs to switch to that.

There is pkill --inverse -s0,1 , but it is missing the functionality to filter system processes.

Offline

#249 2013-12-13 07:59:15

x33a
Forum Moderator
Registered: 2009-08-15
Posts: 3,248
Website

Re: OpenRC & eudev on Arch

Well, it seems that the sysvinit package in AUR was updated to include killall5 (and more) recently.

https://aur.archlinux.org/packages/sysvinit/

Offline

#250 2013-12-13 10:49:23

artoo
Member
Registered: 2012-09-04
Posts: 175
Website

Re: OpenRC & eudev on Arch

All is fine on my box with updated sysvinit and rebuild openrc.

killall5 is part of sysvinit source,  openrc does not strictly depend on sysvinit.
There are alternatives to sysvinit in gentoo portage tree, but I momentarily forgot their package name.

Edit: The alternatrive is runit.
I tried it once, but found it to be bigger than really needed, as it provides kind of own rc.

Last edited by artoo (2013-12-13 11:05:24)

Offline

Board footer

Powered by FluxBB