Skip to content

Conversation

@littlewu2508
Copy link

This reverts 50a338b and continues #672

@heroxbd and I use openrc inside Gentoo Prefix to manage services, so we'd like to see this feature back

@littlewu2508 littlewu2508 force-pushed the DPREFIX branch 3 times, most recently from 5b1176a to 798afad Compare January 25, 2025 03:43
This will place the RC_SVCDIR to ${gentooprefix}/run/openrc. In Gentoo
Prefix, user may not have root permission to use /run/openrc, and can
only access directories inside ${gentooprefix}

RC_PREFIX is now always set to ${gentooprefix}

Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
@navi-desu
Copy link
Member

i'll talk to the folks about PREFIX, seems like it wasn't well supported. but specially now that openrc-user is being merged, we might have a better case to keep it.

@williamh
Copy link
Contributor

I reached out to the prefix team multiple times about this in the past, and there didn't seem to be any interest in supporting it. This is the reason it was removed, so I'm against this unless we have more interest from that team.

@littlewu2508
Copy link
Author

I reached out to the prefix team multiple times about this in the past, and there didn't seem to be any interest in supporting it. This is the reason it was removed, so I'm against this unless we have more interest from that team.

Thank you for explanation. @heroxbd is the Lead of Prefix Project and also my mentor. He talked to me privately that we need OpenRC support in Gentoo Prefix and should maintain it, and that's why I created this PR.

@heroxbd
Copy link
Contributor

heroxbd commented Feb 23, 2025

Hi William,

I reached out to the prefix team multiple times about this in the past, and there didn't seem to be any interest in supporting it. This is the reason it was removed, so I'm against this unless we have more interest from that team.

I hope everything is going on well.

Did you contact me via my email or IRC? Sorry that I missed your message. I am still catch up with my inbox. We are interested in supporting OpenRC on Prefix.

The previous stopper was the Prefix support for meson, which is now fixed. Please assign future bugs and request review of PRs to the Prefix team (and me) regarding Prefix support of OpenRC when you see appropriate.

Yours,
Benda

@navi-desu
Copy link
Member

navi-desu commented Nov 12, 2025

with #942, openrc will take svcdir from the env var RC_SVCDIR, and respect XDG_CONFIG_DIRS for init scripts.

i'll follow it up with another patch for rc.conf, so it'll be possible to add $prefix/etc/ to XDG_CONFIG_DIRS or RC_PATH, and in there have rc.conf that sets rc_sys=prefix

those two changes move the build time checks this PR adds to runtime checks, does gentoo prefix need anything else? i'd rather not have #ifdef PREFIX options across the codebase if all we realistically need is flexibility on file lookups

@littlewu2508
Copy link
Author

does gentoo prefix need anything else?

I think setting the correct RC_PATH and RC_SVCDIR is enough for prefix. Thank you!

@navi-desu
Copy link
Member

closing this as #942 was merged. please let me know if any other issues pop up with prefix support!

@navi-desu navi-desu closed this Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants