Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498668 - C implementation of LSB headers parser
Summary: C implementation of LSB headers parser
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: OpenRC Team
URL: https://github.com/xaionaro/openrc-lsb
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-20 11:01 UTC by Dmitry Yu Okunev
Modified: 2023-01-29 02:58 UTC (History)
1 user (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 Yu Okunev 2014-01-20 11:01:53 UTC
Hello.

I've made LSB headers parser using GNU C99 for OpenRC.

It's licensed with BSD-2-Clause and accessible via [1].

[1] https://github.com/xaionaro/openrc-lsb

What should I do or how can I help to integrate this module into OpenRC upstream?
Comment 1 Benda Xu gentoo-dev 2014-01-20 11:12:16 UTC
This tool parses a LSB header such as

# Provides:          rsyslog
# Required-Start:    $remote_fs $time
# Required-Stop:     umountnfs $time
# X-Stop-After:      sendsigs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: enhanced syslogd
# Description:       Rsyslog is an enhanced multi-threaded syslogd.

to

description="enhanced syslogd"

depend () {
        need mountnfs mountnfs-bootclean umountnfs sendsigs hwclock
        provide syslog rsyslog
}

Which extends OpenRC functionality to the management of LSB scripts, such as those from Debian, Redhat, etc.
Comment 2 Dmitry Yu Okunev 2014-01-20 19:25:43 UTC
I've made a fallback from "hsearch_r" to "tsearch" to make the program be portable.
Comment 3 William Hubbs gentoo-dev 2014-01-25 21:04:52 UTC
I spoke with Thomas Goirand from Debian, and he states that OpenRC is in
a good position to be Debian's startup system for their alternate
platforms. If this happens, they will drop the lsb init scripts and
convert to runscripts. in that case, I'm not sure OpenRC needs
lsb support. I want to hold off on adding this until I know what they
are going to do.
Comment 4 martha simons 2019-05-10 05:56:50 UTC
# Provides:          rsyslog
# Required-Start:    $remote_fs $time
# Required-Stop:     umountnfs $time
# X-Stop-After:      sendsigs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: enhanced syslogd https://goo.gl/LhppLn
# Description:       Rsyslog is an enhanced multi-threaded syslogd.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-29 02:58:42 UTC
We're _maybe_ open to this if submitted as a proper set of patches to the github repo as a PR and cleaned up, but we're not really sure of the need for LSB.