lastlog2: use update-alternatives to solve conflicts with util-linux
PATCH 1/1 lastlog2: use update-alternatives to solve conflicts with util-linux
From: Wang Mingyu <[email protected]>
Error: Transaction test error:
file /usr/bin/lastlog2 conflicts between attempted installs of lastlog2-1.2.0-r0.core2_64 and util-linux-lastlog2-2.40.1-r0.core2_64 file /usr/lib/security/pam_lastlog2.so conflicts between attempted installs of lastlog2-1.2.0-r0.core2_64 and util-linux-lastlog2-2.40.1-r0.core2_64
util-linux also uses the file '/usr/bin/lastlog2' and '/usr/lib/security/pam_lastlog2.so'. util-linux has a priority of 80.
--- meta-oe/recipes-extended/lastlog2/lastlog2_1.3.1.bb | 9 +++++++++ 1 file changed, 9 insertions(+)
meta-oe/recipes-extended/lastlog2/lastlog2_1.3.1.bb +9 -0
@@ -22,6 +22,15 @@ SYSTEMD_SERVICE:${PN} = "lastlog2-import.service" EXTRA_OEMESON = " -Dpamlibdir=${base_libdir}/security" +inherit update-alternatives + +ALTERNATIVE:${PN} += "lastlog2 pam_lastlog2" +ALTERNATIVE_LINK_NAME[lastlog2] = "${bindir}/lastlog2" +ALTERNATIVE_TARGET[pam_lastlog2] = "${libdir}/security/pam_lastlog2.so" +ALTERNATIVE_LINK_NAME[pam_lastlog2] = "${libdir}/security/pam_lastlog2.so" + +ALTERNATIVE_PRIORITY = "100" + do_install:append () { if [ -d ${D}${prefix}/lib/systemd -a ${D}${prefix}/lib != `dirname ${D}${systemd_unitdir}` ]; then # Fix makefile hardcoded path assumptions for systemd (assumes $prefix)
Signature · 1 line
2.34.1
PATCH 1/1 polkit: use update-alternatives to solve conflicts with systemd
From: Wang Mingyu <[email protected]>
Error: Transaction test error:
file /usr/share/polkit-1/rules.d conflicts between attempted installs of polkit-125-r0.core2_64 and systemd-1:256.5-r0.core2_64
systemd also uses the doc '/usr/share/polkit-1/rules.d'. systemd has a priority of 50.
--- meta-oe/recipes-extended/polkit/polkit_125.bb | 7 +++++++ 1 file changed, 7 insertions(+)
meta-oe/recipes-extended/polkit/polkit_125.bb +7 -0
@@ -43,6 +43,13 @@ USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysco SYSTEMD_SERVICE:${PN} = "${BPN}.service" SYSTEMD_AUTO_ENABLE = "disable" +inherit update-alternatives + +ALTERNATIVE_PRIORITY = "100" +ALTERNATIVE:${PN} = "rules.d" +ALTERNATIVE_TARGET[rules.d] = "${datadir}/polkit-1/rules.d" +ALTERNATIVE_LINK_NAME[rules.d] = "${datadir}/polkit-1/rules.d" + do_install:append() { #Fix up permissions on polkit rules.d to work with rpm4 constraints if ${@bb.utils.contains('PACKAGECONFIG', 'libs-only', 'false', 'true', d)}; then
Signature · 1 line
2.34.1
Re: [oe] [meta-oe] [PATCH] polkit: use update-alternatives to solve conflicts with systemd
This is problematic for the same reason as the similar change to systemd proposed in oe-core, and shouldn't be merged.
Alex
Quoted 44 lines · wangmy via lists.openembedded.org
From: Wang Mingyu <[email protected]>
Error: Transaction test error:
file/usr/share/polkit-1/rules.dconflicts between attempted installs of polkit-125-r0.core2_64 and systemd-1:256.5-r0.core2_64systemd also uses the doc '
/usr/share/polkit-1/rules.d'. systemd has a priority of 50.Signed-off-by Wang Mingyu <[email protected]>--- meta-oe/recipes-extended/polkit/polkit_125.bb | 7 +++++++ 1 file changed, 7 insertions(+)meta-oe/recipes-extended/polkit/polkit_125.bb +7
-1@@ -43,6 +43,13 @@ USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysco SYSTEMD_SERVICE:${PN} = "${BPN}.service" SYSTEMD_AUTO_ENABLE = "disable" +inherit update-alternatives + +ALTERNATIVE_PRIORITY = "100" +ALTERNATIVE:${PN} = "rules.d" +ALTERNATIVE_TARGET[rules.d] = "${datadir}/polkit-1/rules.d" +ALTERNATIVE_LINK_NAME[rules.d] = "${datadir}/polkit-1/rules.d" + do_install:append() { #Fix up permissions on polkit rules.d to work with rpm4 constraints if ${@bb.utils.contains('PACKAGECONFIG', 'libs-only', 'false', 'true', d)}; then --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#112026): https://lists.openembedded.org/g/openembedded-devel/message/112026
Mute This Topic: https://lists.openembedded.org/mt/108138519/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hi,
I think we can drop this recipe as it has been merged into util-linux 2.40. As the maintainer said: https://github.com/thkukuk/lastlog2/blob/main/README.md
//Yi
Quoted 41 lines · wangmy via lists.openembedded.org
Error: Transaction test error:
file/usr/bin/lastlog2conflicts between attempted installs of lastlog2-1.2.0-r0.core2_64 and util-linux-lastlog2-2.40.1-r0.core2_64 file/usr/lib/security/pam_lastlog2.soconflicts between attempted installs of lastlog2-1.2.0-r0.core2_64 and util-linux-lastlog2-2.40.1-r0.core2_64util-linux also uses the file '
/usr/bin/lastlog2' and '/usr/lib/security/pam_lastlog2.so'. util-linux has a priority of 80.Signed-off-by Wang Mingyu <[email protected]>--- meta-oe/recipes-extended/lastlog2/lastlog2_1.3.1.bb | 9 +++++++++ 1 file changed, 9 insertions(+)meta-oe/recipes-extended/lastlog2/lastlog2_1.3.1.bb +9
-1@@ -22,6 +22,15 @@ SYSTEMD_SERVICE:${PN} = "lastlog2-import.service" EXTRA_OEMESON = " -Dpamlibdir=${base_libdir}/security" +inherit update-alternatives + +ALTERNATIVE:${PN} += "lastlog2 pam_lastlog2" +ALTERNATIVE_LINK_NAME[lastlog2] = "${bindir}/lastlog2" +ALTERNATIVE_TARGET[pam_lastlog2] = "${libdir}/security/pam_lastlog2.so" +ALTERNATIVE_LINK_NAME[pam_lastlog2] = "${libdir}/security/pam_lastlog2.so" + +ALTERNATIVE_PRIORITY = "100" + do_install:append () { if [ -d ${D}${prefix}/lib/systemd -a ${D}${prefix}/lib != `dirname ${D}${systemd_unitdir}` ]; then # Fix makefile hardcoded path assumptions for systemd (assumes $prefix) -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#112025): https://lists.openembedded.org/g/openembedded-devel/message/112025
Mute This Topic: https://lists.openembedded.org/mt/108138518/7283133
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-