diff options
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/opkg-utils/opkg-utils/0001-update-alternatives-warn-when-multiple-providers-hav.patch | 26 | ||||
-rw-r--r-- | meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 3 |
2 files changed, 28 insertions, 1 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/0001-update-alternatives-warn-when-multiple-providers-hav.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/0001-update-alternatives-warn-when-multiple-providers-hav.patch new file mode 100644 index 0000000000..afce1e1cc2 --- /dev/null +++ b/meta/recipes-devtools/opkg-utils/opkg-utils/0001-update-alternatives-warn-when-multiple-providers-hav.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | Subject: update-alternatives: warn when multiple providers have the same priority | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
6 | --- | ||
7 | update-alternatives | 3 +++ | ||
8 | 1 file changed, 3 insertions(+) | ||
9 | |||
10 | diff --git a/update-alternatives b/update-alternatives | ||
11 | index ca01d5d..ffad853 100644 | ||
12 | --- a/update-alternatives | ||
13 | +++ b/update-alternatives | ||
14 | @@ -90,6 +90,9 @@ add_alt() { | ||
15 | local path="$2" | ||
16 | local priority="$3" | ||
17 | remove_alt $name $path | ||
18 | + if grep -qw "$priority" $ad/$name; then | ||
19 | + echo "Warn: update-alternatives: $name has multiple providers with the same priority, please check $ad/$name for details" | ||
20 | + fi | ||
21 | echo "$path $priority" >> $ad/$name | ||
22 | } | ||
23 | |||
24 | -- | ||
25 | 2.8.3 | ||
26 | |||
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb index 19a852ec62..7b01bfc346 100644 --- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | |||
@@ -10,7 +10,8 @@ PROVIDES += "${@bb.utils.contains('PACKAGECONFIG', 'update-alternatives', 'virtu | |||
10 | SRCREV = "3ffece9bf19a844edacc563aa092fd1fbfcffeee" | 10 | SRCREV = "3ffece9bf19a844edacc563aa092fd1fbfcffeee" |
11 | PV = "0.3.2+git${SRCPV}" | 11 | PV = "0.3.2+git${SRCPV}" |
12 | 12 | ||
13 | SRC_URI = "git://git.yoctoproject.org/opkg-utils" | 13 | SRC_URI = "git://git.yoctoproject.org/opkg-utils \ |
14 | file://0001-update-alternatives-warn-when-multiple-providers-hav.patch" | ||
14 | SRC_URI_append_class-native = " file://tar_ignore_error.patch" | 15 | SRC_URI_append_class-native = " file://tar_ignore_error.patch" |
15 | 16 | ||
16 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |