opkg-utils: allow disabling update-alternatives
PATCH 1/1 opkg-utils: allow disabling update-alternatives
From: Sujith H <[email protected]>
This is needed to deal with the situation where we're using ipk packaging, so opkg-utils must be built regardless of what update-alternatives provider we prefer. The downside to the current implementation is the need to adjust PACKAGECONFIG as well as PREFERRED_PROVIDER, but it is more explicit that way.
--- meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-devtools/opkg-utils/opkg-utils_git.bb +5 -1
@@ -19,11 +19,15 @@ TARGET_CC_ARCH += "${LDFLAGS}" PYTHONRDEPS = "python python-shell python-io python-math python-crypt python-logging python-fcntl python-subprocess python-pickle python-compression python-textutils python-stringold" PYTHONRDEPS_class-native = "" -PACKAGECONFIG = "python" +PACKAGECONFIG = "python update-alternatives" PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}" +PACKAGECONFIG[update-alternatives] = ",,," do_install() { oe_runmake PREFIX=${prefix} DESTDIR=${D} install + if ${@'true' if 'update-alternatives' not in PACKAGECONFIG.split() else 'false'}; then + rm -f "${D}${bindir}/update-alternatives" + fi } PACKAGES =+ "update-alternatives-opkg"
Signature · 1 line
1.8.4
Quoted 21 lines · Sujith H
From: Sujith H <[email protected]>
This is needed to deal with the situation where we're using ipk packaging, so opkg-utils must be built regardless of what update-alternatives provider we prefer. The downside to the current implementation is the need to adjust PACKAGECONFIG as well as
PREFERRED_PROVIDER, but it is more explicit that way.Signed-off-by Christopher Larson <[email protected]>Signed-off-by Sujith H <[email protected]>--- meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)meta/recipes-devtools/opkg-utils/opkg-utils_git.bb +0
-0@@ -19,11 +19,15 @@ TARGET_CC_ARCH += "${LDFLAGS}" PYTHONRDEPS = "python python-shell python-io python-math python-crypt python-logging python-fcntl python-subprocess python-pickle python-compression python-textutils python-stringold" PYTHONRDEPS_class-native = ""
meta/recipes-devtools/opkg-utils/opkg-utils_git.bb TARGET_CC_ARCH += "${LDFLAGS}" · line 30
Quoted 10 lines
meta/recipes-devtools/opkg-utils/opkg-utils_git.bb +5
-1-PACKAGECONFIG = "python" +PACKAGECONFIG = "python update-alternatives" PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}" +PACKAGECONFIG[update-alternatives] = ",,," do_install() { oe_runmake PREFIX=${prefix} DESTDIR=${D} install + if ${@'true' if 'update-alternatives' not in PACKAGECONFIG.split() else 'false'}; then + rm -f "${D}${bindir}/update-alternatives" + fi
Would @bb.utils.contains() be better here? I think that is the correct thing to use.
Sau!
Quoted 4 lines
meta/recipes-devtools/opkg-utils/opkg-utils_git.bb +0
-0} PACKAGES =+ "update-alternatives-opkg"
Quoted 34 lines · Saul Wold
Quoted 32 lines · Sujith H
From: Sujith H <[email protected]>
This is needed to deal with the situation where we're using ipk packaging, so
opkg-utils must be built regardless of what update-alternatives provider we
prefer. The downside to the current implementation is the need to adjust PACKAGECONFIG as well asPREFERRED_PROVIDER, but it is more explicit that way.Signed-off-by Christopher Larson <[email protected]>Signed-off-by Sujith H <[email protected]>--- meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)meta/recipes-devtools/opkg-utils/opkg-utils_git.bb +0
-0@@ -19,11 +19,15 @@ TARGET_CC_ARCH += "${LDFLAGS}" PYTHONRDEPS = "python python-shell python-io python-math python-cryptpython-logging python-fcntl python-subprocess python-pickle python-compression python-textutils python-stringold"
PYTHONRDEPS_class-native = ""meta/recipes-devtools/opkg-utils/opkg-utils_git.bb +2
-1-PACKAGECONFIG = "python" +PACKAGECONFIG = "python update-alternatives" PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}" +PACKAGECONFIG[update-alternatives] = ",,,"
Quoted 11 lines
meta/recipes-devtools/opkg-utils/opkg-utils_git.bb TARGET_CC_ARCH += "${LDFLAGS}" · line 30
Quoted 7 lines
do_install() { oe_runmake PREFIX=${prefix} DESTDIR=${D} install+ if ${@'true' if 'update-alternatives' not in
PACKAGECONFIG.split()else 'false'}; thenmeta/recipes-devtools/opkg-utils/opkg-utils_git.bb +2
-0+ rm -f "${D}${bindir}/update-alternatives" + fiWould @bb.utils.contains() be better here? I think that is the correct thing to use.
Sure.
Quoted 7 lines
Sau!
}Quoted 4 lines
PACKAGES =+ "update-alternatives-opkg"
Signature · 5 lines
സുജിത് ഹരിദാസന് Bangalore <Project>Contributor to KDE project http://fci.wikia.com/wiki/Anti-DRM-Campaign <Blog> http://sujithh.info