diff options
author | Adrian Bunk <bunk@stusta.de> | 2019-08-25 20:21:15 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-29 14:05:12 +0100 |
commit | bac4bc9aa6a1f2fcf2ce9644925615185cc8e847 (patch) | |
tree | 9ef8ba7038907331db8f6d1f57f2915b3b6cf410 /meta/recipes-extended/lsb/lsb | |
parent | 1af3e4bea666e944a610025ca8979098b59b1174 (diff) | |
download | poky-bac4bc9aa6a1f2fcf2ce9644925615185cc8e847.tar.gz |
Remove LSB support
LSB as a standard isn't current and isn't well suited to embedded
anyway. Its putting artifical constraints on the system and with modern
layer technology, would now be better off as its own layer. As such
its time to split it out.
The only part with some (marginal) usage is lsb_release,
which is split from the lsb package into an own lsb-release
package.
(From OE-Core rev: fb064356af615d67d85b65942103bf943d84d290)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lsb/lsb')
6 files changed, 0 insertions, 166 deletions
diff --git a/meta/recipes-extended/lsb/lsb/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch b/meta/recipes-extended/lsb/lsb/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch deleted file mode 100644 index 0175752067..0000000000 --- a/meta/recipes-extended/lsb/lsb/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | From cba901945c5a6da9586550498f8e3787c57c3098 Mon Sep 17 00:00:00 2001 | ||
2 | From: Athanasios Oikonomou <athoik@gmail.com> | ||
3 | Date: Fri, 17 Feb 2017 21:04:04 +0200 | ||
4 | Subject: [PATCH] fix lsb_release to work with busybox head and find | ||
5 | |||
6 | Upstream-Status: Inappropriate [oe-core specific] | ||
7 | Signed-off-by: Athanasios Oikonomou <athoik@gmail.com> | ||
8 | |||
9 | diff --git a/lsb_release b/lsb_release | ||
10 | index e7d6024..233b8c1 100755 | ||
11 | --- a/lsb_release | ||
12 | +++ b/lsb_release | ||
13 | @@ -209,7 +209,7 @@ EASE ($DISTRIB_CODENAME)" | ||
14 | || [ -n "$(echo $DISTRIB_DESCRIPTION | \ | ||
15 | sed -e "s/.*$DESCSTR_DELI.*//")" ] | ||
16 | then | ||
17 | - TMP_DISTRIB_DESC=$(head -1 $FILENAME 2>/dev/null) | ||
18 | + TMP_DISTRIB_DESC=$(head -n 1 $FILENAME 2>/dev/null) | ||
19 | [ -z "$DISTRIB_DESCRIPTION" ] \ | ||
20 | && DISTRIB_DESCRIPTION=$TMP_DISTRIB_DESC | ||
21 | else | ||
22 | @@ -249,10 +249,10 @@ GetDistribInfo() { | ||
23 | then | ||
24 | CHECKFIRST=$(find $INFO_ROOT/ -maxdepth 1 \ | ||
25 | -name \*$INFO_DISTRIB_SUFFIX \ | ||
26 | - -and ! -name $INFO_LSB_FILE \ | ||
27 | - -and -type f \ | ||
28 | + -type f \ | ||
29 | 2>/dev/null \ | ||
30 | - | head -1 ) # keep one of the files found (if many) | ||
31 | + | grep -v $INFO_LSB_FILE \ | ||
32 | + | head -n 1 ) # keep one of the files found (if many) | ||
33 | fi | ||
34 | InitDistribInfo $CHECKFIRST | ||
35 | fi | ||
36 | -- | ||
37 | 2.1.4 | ||
38 | |||
diff --git a/meta/recipes-extended/lsb/lsb/init-functions b/meta/recipes-extended/lsb/lsb/init-functions deleted file mode 100755 index 7c1dce24cf..0000000000 --- a/meta/recipes-extended/lsb/lsb/init-functions +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # LSB initscript functions, as defined in the LSB Spec 1.1.0 | ||
4 | # | ||
5 | # Lawrence Lim <llim@core.com> - Tue, 26 June 2007 | ||
6 | # Updated to the latest LSB 3.1 spec | ||
7 | # http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic_lines.txt | ||
8 | |||
9 | start_daemon () { | ||
10 | /etc/core-lsb/lsb_start_daemon "$@" | ||
11 | } | ||
12 | |||
13 | killproc () { | ||
14 | /etc/core-lsb/lsb_killproc "$@" | ||
15 | } | ||
16 | |||
17 | pidofproc () { | ||
18 | /etc/core-lsb/lsb_pidofproc "$@" | ||
19 | } | ||
20 | |||
21 | log_success_msg () { | ||
22 | /etc/core-lsb/lsb_log_message success "$@" | ||
23 | } | ||
24 | |||
25 | log_failure_msg () { | ||
26 | /etc/core-lsb/lsb_log_message failure "$@" | ||
27 | } | ||
28 | |||
29 | log_warning_msg () { | ||
30 | /etc/core-lsb/lsb_log_message warning "$@" | ||
31 | } | ||
32 | |||
33 | # int log_begin_message (char *message) | ||
34 | log_begin_msg () { | ||
35 | if [ -z "$1" ]; then | ||
36 | return 1 | ||
37 | fi | ||
38 | echo " * $@" | ||
39 | } | ||
40 | |||
41 | |||
42 | log_end_msg () { | ||
43 | /etc/core-lsb/lsb_log_message end "$@" | ||
44 | } | ||
diff --git a/meta/recipes-extended/lsb/lsb/lsb_killproc b/meta/recipes-extended/lsb/lsb/lsb_killproc deleted file mode 100755 index 866c1a9c63..0000000000 --- a/meta/recipes-extended/lsb/lsb/lsb_killproc +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | . /etc/init.d/functions | ||
4 | |||
5 | LSB=LSB-1.1 killproc $* | ||
6 | exit $? | ||
diff --git a/meta/recipes-extended/lsb/lsb/lsb_log_message b/meta/recipes-extended/lsb/lsb/lsb_log_message deleted file mode 100755 index 10343b0819..0000000000 --- a/meta/recipes-extended/lsb/lsb/lsb_log_message +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | . /etc/init.d/functions | ||
4 | |||
5 | ACTION=$1 | ||
6 | shift | ||
7 | |||
8 | case "$ACTION" in | ||
9 | success) | ||
10 | echo -n $* | ||
11 | success "$*" | ||
12 | echo | ||
13 | ;; | ||
14 | failure) | ||
15 | echo -n $* | ||
16 | failure "$*" | ||
17 | echo | ||
18 | ;; | ||
19 | warning) | ||
20 | echo -n $* | ||
21 | warning "$*" | ||
22 | echo | ||
23 | ;; | ||
24 | *) | ||
25 | ;; | ||
26 | esac | ||
27 | exit 0 | ||
diff --git a/meta/recipes-extended/lsb/lsb/lsb_pidofproc b/meta/recipes-extended/lsb/lsb/lsb_pidofproc deleted file mode 100755 index 6d1fd0f249..0000000000 --- a/meta/recipes-extended/lsb/lsb/lsb_pidofproc +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | . /etc/init.d/functions | ||
4 | |||
5 | pidofproc $* | ||
6 | exit $? | ||
diff --git a/meta/recipes-extended/lsb/lsb/lsb_start_daemon b/meta/recipes-extended/lsb/lsb/lsb_start_daemon deleted file mode 100755 index de62c2344d..0000000000 --- a/meta/recipes-extended/lsb/lsb/lsb_start_daemon +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | . /etc/init.d/functions | ||
4 | |||
5 | nice= | ||
6 | force= | ||
7 | pidfile= | ||
8 | user= | ||
9 | check= | ||
10 | RETVAL= | ||
11 | while [ "$1" != "${1##[-+]}" ]; do | ||
12 | case $1 in | ||
13 | -f) | ||
14 | force="--force" | ||
15 | shift | ||
16 | ;; | ||
17 | -n) | ||
18 | nice=$2 | ||
19 | shift 2 | ||
20 | ;; | ||
21 | -p) | ||
22 | pidfile="--pidfile $2" | ||
23 | shift 2 | ||
24 | ;; | ||
25 | -u) | ||
26 | user="--user $2" | ||
27 | shift 2 | ||
28 | ;; | ||
29 | -c) | ||
30 | check="--check $2" | ||
31 | shift 2 | ||
32 | ;; | ||
33 | *) | ||
34 | echo "Unknown Option $1" | ||
35 | echo "Options are:" | ||
36 | echo "-f" | ||
37 | echo "-p {pidfile}" | ||
38 | echo "-n [+/-nicelevel]" | ||
39 | echo "-u {user}" | ||
40 | echo "-c {base}" | ||
41 | exit 1;; | ||
42 | esac | ||
43 | done | ||
44 | LSB=LSB-1.1 daemon ${force:-} ${nice:-} ${pidfile:-} ${user:-} ${check:-} $* | ||
45 | exit $? | ||