All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] oe-core: Fix base-files wrong softlink of /var/run and /var/lock
@ 2016-02-18  2:10 fupan.li
  2016-02-18  8:19 ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: fupan.li @ 2016-02-18  2:10 UTC (permalink / raw)
  To: openembedded-core

From: fli <fupan.li@windriver.com>

OE-CORE's fs-perms.txt force /var/run to link /run and
/var/lock to /run/lock, so in order to match with it,
make base-files /var/run and /var/lock link the absolute
path too.

Signed-off-by: fli <fupan.li@windriver.com>
---
 meta/recipes-core/base-files/base-files_3.0.14.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb
index f643c8b..82c97da 100644
--- a/meta/recipes-core/base-files/base-files_3.0.14.bb
+++ b/meta/recipes-core/base-files/base-files_3.0.14.bb
@@ -103,8 +103,8 @@ do_install () {
 		ln -sf volatile/$d ${D}${localstatedir}/$d
 	done
 
-	ln -snf ../run ${D}${localstatedir}/run
-	ln -snf ../run/lock ${D}${localstatedir}/lock
+	ln -snf /run ${D}${localstatedir}/run
+	ln -snf /run/lock ${D}${localstatedir}/lock
 
 	${BASEFILESISSUEINSTALL}
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] oe-core: Fix base-files wrong softlink of /var/run and /var/lock
  2016-02-18  2:10 [PATCH] oe-core: Fix base-files wrong softlink of /var/run and /var/lock fupan.li
@ 2016-02-18  8:19 ` Richard Purdie
  2016-02-18  8:32   ` fupan
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2016-02-18  8:19 UTC (permalink / raw)
  To: fupan.li, openembedded-core

On Wed, 2016-02-17 at 18:10 -0800, fupan.li@windriver.com wrote:
> From: fli <fupan.li@windriver.com>
> 
> OE-CORE's fs-perms.txt force /var/run to link /run and
> /var/lock to /run/lock, so in order to match with it,
> make base-files /var/run and /var/lock link the absolute
> path too.

You really need to explain what the issue you're solving is here. You
appear to be replacing two relative paths with absolute paths? Why does
this matter?

Cheers,

Richard


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] oe-core: Fix base-files wrong softlink of /var/run and /var/lock
  2016-02-18  8:19 ` Richard Purdie
@ 2016-02-18  8:32   ` fupan
  0 siblings, 0 replies; 3+ messages in thread
From: fupan @ 2016-02-18  8:32 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core

On 02/18/2016 04:19 PM, Richard Purdie wrote:
> On Wed, 2016-02-17 at 18:10 -0800, fupan.li@windriver.com wrote:
>> From: fli <fupan.li@windriver.com>
>>
>> OE-CORE's fs-perms.txt force /var/run to link /run and
>> /var/lock to /run/lock, so in order to match with it,
>> make base-files /var/run and /var/lock link the absolute
>> path too.
> You really need to explain what the issue you're solving is here. You
> appear to be replacing two relative paths with absolute paths? Why does
> this matter?
>
> Cheers,
>
> Richard
>
>
when base-files linked /var/run to relative path of ../run
  and other packages linked /var/run to absolute path of /run by
OE-CORE's fs-perms.txt processing, this will cause two rpm packages
installed two the same name file but they are different , which will
cause files confliction.

Fupan


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-18  8:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-18  2:10 [PATCH] oe-core: Fix base-files wrong softlink of /var/run and /var/lock fupan.li
2016-02-18  8:19 ` Richard Purdie
2016-02-18  8:32   ` fupan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.