Skip to contentSkip to conversation

dnf-plugin-tui: create symlinks from /usr/ to /.

PATCH In review [email protected] 3 participants 6 messages Oct 17, 2023 – Oct 20, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 dnf-plugin-tui: create symlinks from /usr/ to /.

From: Wang Mingyu <[email protected]>

From Poky 4.3, by default, usrmerge has been enabled. Some important binaries have been installed to /usr/sbin instead of /sbin such as init. So it is necessary to create symlinks from /usr/ to /, such as /usr/sbin to /sbin, /usr/bin to /bin.

---
 meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_git.bb +1 -1
index 94023922a2..0709019056 100644
@@ -4,7 +4,7 @@ LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
 SRC_URI = "git://github.com/ubinux/dnf-plugin-tui.git;branch=master;protocol=https"
-SRCREV = "83917a3935ac7ce1d8d96e914d96a6679319a336"
+SRCREV = "baac322a8a6d57e62c703f6ed523152baec18b4f"
 PV = "1.3"
 
 SRC_URI:append:class-target = " file://oe-remote.repo.sample"
Signature · 1 line
2.34.1
#1 lore raw

Isn’t this what create_merged_usr_symlinks in image.bbclass does? Why does a DNF plugin need to do this, and not anything else?

Ross

Quoted 37 lines · wangmy via lists.openembedded.org

From Poky 4.3, by default, usrmerge has been enabled. Some important binaries have been installed to /usr/sbin instead of /sbin such as init. So it is necessary to create symlinks from /usr/ to /, such as /usr/sbin to /sbin, /usr/bin to /bin.

---
meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_git.bb | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_git.bb +0 -0
index 94023922a2..0709019056 100644
@@ -4,7 +4,7 @@ LICENSE = "GPL-2.0-only"

LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

SRC_URI = "git://github.com/ubinux/dnf-plugin-tui.git;branch=master;protocol=https"

meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_git.bb +1 -1
-SRCREV = "83917a3935ac7ce1d8d96e914d96a6679319a336"
+SRCREV = "baac322a8a6d57e62c703f6ed523152baec18b4f"

PV = "1.3"

SRC_URI:append:class-target = " file://oe-remote.repo.sample"

Signature · 10 lines
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#105550): https://lists.openembedded.org/g/openembedded-devel/message/105550
Mute This Topic: https://lists.openembedded.org/mt/102013374/6875888
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw
Quoted 2 lines

Isn’t this what create_merged_usr_symlinks in image.bbclass does? Why does a DNF plugin need to do this, and not anything else?

Because dnf-plugin-tui is used to created rootfs in any nativesdk environment. It is not in a bitbake environment, so image.bbclass cannot be used.
  --
Best Regards
---------------------------------------------------
Wang Mingyu
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]
http://www.fujitsu.com/cn/fnst/

Quoted 57 lines

-----Original Message-----
From: Ross Burton <[email protected]>
Sent: Tuesday, October 17, 2023 5:51 PM
To: Wang, Mingyu/王 鸣瑜 <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-oe] [PATCH v3] dnf-plugin-tui: create symlinks from /usr/ to /.

Isn’t this what create_merged_usr_symlinks in image.bbclass does? Why does a DNF plugin need to do this, and not anything else?

Ross

Quoted 1 line

On 17 Oct 2023, at 08:23, wangmy via lists.openembedded.org

Quoted 18 lines · <[email protected]> wrote:

From Poky 4.3, by default, usrmerge has been enabled. Some important binaries have been installed to /usr/sbin instead of /sbin such as init. So it is necessary to create symlinks from /usr/ to /, such as /usr/sbin to /sbin, /usr/bin to /bin.

---
meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_git.bb | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_git.bb b/meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_git.bb index 94023922a2..0709019056 100644

meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_git.bb +0 -0
@@ -4,7 +4,7 @@ LICENSE = "GPL-2.0-only"
Quoted 1 line

LIC_FILES_CHKSUM =

"file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

Quoted 2 lines

SRC_URI =

"git://github.com/ubinux/dnf-plugin-tui.git;branch=master;protocol=https"

Quoted 19 lines
meta-oe/recipes-devtools/dnf-plugin-tui/dnf-plugin-tui_git.bb +1 -1
-SRCREV = "83917a3935ac7ce1d8d96e914d96a6679319a336"
+SRCREV = "baac322a8a6d57e62c703f6ed523152baec18b4f"

PV = "1.3"

SRC_URI:append:class-target = " file://oe-remote.repo.sample" --
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#105550):
https://lists.openembedded.org/g/openembedded-devel/message/105550
Mute This Topic: https://lists.openembedded.org/mt/102013374/6875888
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 5 lines · Mingyu Wang (Fujitsu)
Quoted 3 lines

Isn’t this what create_merged_usr_symlinks in image.bbclass does? Why does a DNF plugin need to do this, and not anything else?

Because dnf-plugin-tui is used to created rootfs in any nativesdk environment. It is not in a bitbake environment, so image.bbclass cannot be used.

Sounds a bit like the symlink creation should be moved into base-files...

Ross

#4 lore raw
Quoted 1 line

Sounds a bit like the symlink creation should be moved into base-files...

Yes, we also think that it should be moved into base-files.

  --
Best Regards
---------------------------------------------------
Wang Mingyu
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]
http://www.fujitsu.com/cn/fnst/

Quoted 19 lines

-----Original Message-----
From: Ross Burton <[email protected]>
Sent: Thursday, October 19, 2023 5:05 PM
To: Wang, Mingyu/王 鸣瑜 <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-oe] [PATCH v3] dnf-plugin-tui: create symlinks from /usr/ to /.

Quoted 5 lines · Mingyu Wang (Fujitsu)
Quoted 3 lines

Isn’t this what create_merged_usr_symlinks in image.bbclass does? Why does a DNF plugin need to do this, and not anything else?

Because dnf-plugin-tui is used to created rootfs in any nativesdk environment. It is not in a bitbake environment, so image.bbclass cannot be used.

Sounds a bit like the symlink creation should be moved into base-files...

Ross

#5 lore raw
Quoted 3 lines · wangmy
Quoted 2 lines

Sounds a bit like the symlink creation should be moved into base-files...

Yes, we also think that it should be moved into base-files.

Right until then I will install this patch.

Quoted 42 lines

--
Best Regards
---------------------------------------------------
Wang Mingyu
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]
http://www.fujitsu.com/cn/fnst/

Quoted 11 lines

-----Original Message-----
From: Ross Burton <[email protected]>
Sent: Thursday, October 19, 2023 5:05 PM
To: Wang, Mingyu/王 鸣瑜 <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-oe] [PATCH v3] dnf-plugin-tui: create symlinks from /usr/ to /.

Quoted 1 line · Mingyu Wang (Fujitsu)
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Isn’t this what create_merged_usr_symlinks in image.bbclass does? Why does a DNF plugin need to do this, and not anything else?

Because dnf-plugin-tui is used to created rootfs in any nativesdk environment. It is not in a bitbake environment, so image.bbclass cannot be used.

Sounds a bit like the symlink creation should be moved into base-files...

Ross

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#105606): https://lists.openembedded.org/g/openembedded-devel/message/105606
Mute This Topic: https://lists.openembedded.org/mt/102013374/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-