All of lore.kernel.org
 help / color / mirror / Atom feed
* [morty][PATCH] sstate.bbclass: update .siginfo atime
@ 2017-03-20 17:38 Denys Dmytriyenko
  2017-04-21 23:18 ` Denys Dmytriyenko
  0 siblings, 1 reply; 8+ messages in thread
From: Denys Dmytriyenko @ 2017-03-20 17:38 UTC (permalink / raw)
  To: openembedded-core; +Cc: Denys Dmytriyenko

From: Ed Bartosh <ed.bartosh@linux.intel.com>

.siginfo files are not being accessed from local or NFS-mounted
sstate mirrors when sstate package is installed, so their atime
is not updated. If sstate mirror is cleaned based on access time,
they get deleted, even though they are still being used.

Updated atime of .siginfo symlinks with 'touch -a'. This command
dereferences symlinks pointing to the local mirror and updates
atime of the .siginfo file on the mirror.

[YOCTO #10857]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 meta/classes/sstate.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 8643f3d..4fdfcc8 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -724,6 +724,8 @@ python sstate_sign_package () {
 #
 sstate_unpack_package () {
 	tar -xvzf ${SSTATE_PKG}
+	# update .siginfo atime on local/NFS mirror
+	[ -h ${SSTATE_PKG}.siginfo ] && touch -a ${SSTATE_PKG}.siginfo
 	# Use "! -w ||" to return true for read only files
 	[ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG}
 	[ ! -w ${SSTATE_PKG}.sig ] || [ ! -e ${SSTATE_PKG}.sig ] || touch --no-dereference ${SSTATE_PKG}.sig
-- 
2.7.4



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

* Re: [morty][PATCH] sstate.bbclass: update .siginfo atime
  2017-03-20 17:38 [morty][PATCH] sstate.bbclass: update .siginfo atime Denys Dmytriyenko
@ 2017-04-21 23:18 ` Denys Dmytriyenko
  2017-04-24 16:08   ` akuster808
  0 siblings, 1 reply; 8+ messages in thread
From: Denys Dmytriyenko @ 2017-04-21 23:18 UTC (permalink / raw)
  To: openembedded-core

Ping. It's been over a month now...


On Mon, Mar 20, 2017 at 01:38:20PM -0400, Denys Dmytriyenko wrote:
> From: Ed Bartosh <ed.bartosh@linux.intel.com>
> 
> .siginfo files are not being accessed from local or NFS-mounted
> sstate mirrors when sstate package is installed, so their atime
> is not updated. If sstate mirror is cleaned based on access time,
> they get deleted, even though they are still being used.
> 
> Updated atime of .siginfo symlinks with 'touch -a'. This command
> dereferences symlinks pointing to the local mirror and updates
> atime of the .siginfo file on the mirror.
> 
> [YOCTO #10857]
> 
> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
> Signed-off-by: Ross Burton <ross.burton@intel.com>
> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> ---
>  meta/classes/sstate.bbclass | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> index 8643f3d..4fdfcc8 100644
> --- a/meta/classes/sstate.bbclass
> +++ b/meta/classes/sstate.bbclass
> @@ -724,6 +724,8 @@ python sstate_sign_package () {
>  #
>  sstate_unpack_package () {
>  	tar -xvzf ${SSTATE_PKG}
> +	# update .siginfo atime on local/NFS mirror
> +	[ -h ${SSTATE_PKG}.siginfo ] && touch -a ${SSTATE_PKG}.siginfo
>  	# Use "! -w ||" to return true for read only files
>  	[ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG}
>  	[ ! -w ${SSTATE_PKG}.sig ] || [ ! -e ${SSTATE_PKG}.sig ] || touch --no-dereference ${SSTATE_PKG}.sig
> -- 
> 2.7.4
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [morty][PATCH] sstate.bbclass: update .siginfo atime
  2017-04-21 23:18 ` Denys Dmytriyenko
@ 2017-04-24 16:08   ` akuster808
  2017-05-16 21:50     ` Denys Dmytriyenko
  0 siblings, 1 reply; 8+ messages in thread
From: akuster808 @ 2017-04-24 16:08 UTC (permalink / raw)
  To: openembedded-core



On 04/21/2017 04:18 PM, Denys Dmytriyenko wrote:
> Ping. It's been over a month now...
its in my stagging since 4/1.  The AB has been failing with my current 
changes.

- armin
>
>
> On Mon, Mar 20, 2017 at 01:38:20PM -0400, Denys Dmytriyenko wrote:
>> From: Ed Bartosh <ed.bartosh@linux.intel.com>
>>
>> .siginfo files are not being accessed from local or NFS-mounted
>> sstate mirrors when sstate package is installed, so their atime
>> is not updated. If sstate mirror is cleaned based on access time,
>> they get deleted, even though they are still being used.
>>
>> Updated atime of .siginfo symlinks with 'touch -a'. This command
>> dereferences symlinks pointing to the local mirror and updates
>> atime of the .siginfo file on the mirror.
>>
>> [YOCTO #10857]
>>
>> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
>> Signed-off-by: Ross Burton <ross.burton@intel.com>
>> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
>> ---
>>   meta/classes/sstate.bbclass | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
>> index 8643f3d..4fdfcc8 100644
>> --- a/meta/classes/sstate.bbclass
>> +++ b/meta/classes/sstate.bbclass
>> @@ -724,6 +724,8 @@ python sstate_sign_package () {
>>   #
>>   sstate_unpack_package () {
>>   	tar -xvzf ${SSTATE_PKG}
>> +	# update .siginfo atime on local/NFS mirror
>> +	[ -h ${SSTATE_PKG}.siginfo ] && touch -a ${SSTATE_PKG}.siginfo
>>   	# Use "! -w ||" to return true for read only files
>>   	[ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG}
>>   	[ ! -w ${SSTATE_PKG}.sig ] || [ ! -e ${SSTATE_PKG}.sig ] || touch --no-dereference ${SSTATE_PKG}.sig
>> -- 
>> 2.7.4
>>
>> -- 
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core



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

* Re: [morty][PATCH] sstate.bbclass: update .siginfo atime
  2017-04-24 16:08   ` akuster808
@ 2017-05-16 21:50     ` Denys Dmytriyenko
  2017-05-16 23:05       ` akuster808
  0 siblings, 1 reply; 8+ messages in thread
From: Denys Dmytriyenko @ 2017-05-16 21:50 UTC (permalink / raw)
  To: akuster808; +Cc: openembedded-core

On Mon, Apr 24, 2017 at 09:08:55AM -0700, akuster808 wrote:
> On 04/21/2017 04:18 PM, Denys Dmytriyenko wrote:
> >Ping. It's been over a month now...
> its in my stagging since 4/1.  The AB has been failing with my
> current changes.

Is morty now dead?


> >On Mon, Mar 20, 2017 at 01:38:20PM -0400, Denys Dmytriyenko wrote:
> >>From: Ed Bartosh <ed.bartosh@linux.intel.com>
> >>
> >>.siginfo files are not being accessed from local or NFS-mounted
> >>sstate mirrors when sstate package is installed, so their atime
> >>is not updated. If sstate mirror is cleaned based on access time,
> >>they get deleted, even though they are still being used.
> >>
> >>Updated atime of .siginfo symlinks with 'touch -a'. This command
> >>dereferences symlinks pointing to the local mirror and updates
> >>atime of the .siginfo file on the mirror.
> >>
> >>[YOCTO #10857]
> >>
> >>Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
> >>Signed-off-by: Ross Burton <ross.burton@intel.com>
> >>Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> >>---
> >>  meta/classes/sstate.bbclass | 2 ++
> >>  1 file changed, 2 insertions(+)
> >>
> >>diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> >>index 8643f3d..4fdfcc8 100644
> >>--- a/meta/classes/sstate.bbclass
> >>+++ b/meta/classes/sstate.bbclass
> >>@@ -724,6 +724,8 @@ python sstate_sign_package () {
> >>  #
> >>  sstate_unpack_package () {
> >>  	tar -xvzf ${SSTATE_PKG}
> >>+	# update .siginfo atime on local/NFS mirror
> >>+	[ -h ${SSTATE_PKG}.siginfo ] && touch -a ${SSTATE_PKG}.siginfo
> >>  	# Use "! -w ||" to return true for read only files
> >>  	[ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG}
> >>  	[ ! -w ${SSTATE_PKG}.sig ] || [ ! -e ${SSTATE_PKG}.sig ] || touch --no-dereference ${SSTATE_PKG}.sig
> >>-- 
> >>2.7.4
> >>
> >>-- 
> >>_______________________________________________
> >>Openembedded-core mailing list
> >>Openembedded-core@lists.openembedded.org
> >>http://lists.openembedded.org/mailman/listinfo/openembedded-core
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [morty][PATCH] sstate.bbclass: update .siginfo atime
  2017-05-16 21:50     ` Denys Dmytriyenko
@ 2017-05-16 23:05       ` akuster808
  2017-06-13  6:21         ` Martin Jansa
  0 siblings, 1 reply; 8+ messages in thread
From: akuster808 @ 2017-05-16 23:05 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: openembedded-core



On 05/16/2017 02:50 PM, Denys Dmytriyenko wrote:
> On Mon, Apr 24, 2017 at 09:08:55AM -0700, akuster808 wrote:
>> On 04/21/2017 04:18 PM, Denys Dmytriyenko wrote:
>>> Ping. It's been over a month now...
>> its in my stagging since 4/1.  The AB has been failing with my
>> current changes.
> Is morty now dead?

No. why do you say that? I just sent a pull request over the weekend for 
both Krogoth and Morty. Krogoth is the one heading to community 
supported now that Pyro is out.

this changes is in the pull request
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/meta/classes/sstate.bbclass?h=akuster/morty-next&id=838580431a8923bf38820f10963aca4af51f6f97

- armin


>
>
>>> On Mon, Mar 20, 2017 at 01:38:20PM -0400, Denys Dmytriyenko wrote:
>>>> From: Ed Bartosh <ed.bartosh@linux.intel.com>
>>>>
>>>> .siginfo files are not being accessed from local or NFS-mounted
>>>> sstate mirrors when sstate package is installed, so their atime
>>>> is not updated. If sstate mirror is cleaned based on access time,
>>>> they get deleted, even though they are still being used.
>>>>
>>>> Updated atime of .siginfo symlinks with 'touch -a'. This command
>>>> dereferences symlinks pointing to the local mirror and updates
>>>> atime of the .siginfo file on the mirror.
>>>>
>>>> [YOCTO #10857]
>>>>
>>>> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
>>>> Signed-off-by: Ross Burton <ross.burton@intel.com>
>>>> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
>>>> ---
>>>>   meta/classes/sstate.bbclass | 2 ++
>>>>   1 file changed, 2 insertions(+)
>>>>
>>>> diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
>>>> index 8643f3d..4fdfcc8 100644
>>>> --- a/meta/classes/sstate.bbclass
>>>> +++ b/meta/classes/sstate.bbclass
>>>> @@ -724,6 +724,8 @@ python sstate_sign_package () {
>>>>   #
>>>>   sstate_unpack_package () {
>>>>   	tar -xvzf ${SSTATE_PKG}
>>>> +	# update .siginfo atime on local/NFS mirror
>>>> +	[ -h ${SSTATE_PKG}.siginfo ] && touch -a ${SSTATE_PKG}.siginfo
>>>>   	# Use "! -w ||" to return true for read only files
>>>>   	[ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG}
>>>>   	[ ! -w ${SSTATE_PKG}.sig ] || [ ! -e ${SSTATE_PKG}.sig ] || touch --no-dereference ${SSTATE_PKG}.sig
>>>> -- 
>>>> 2.7.4
>>>>
>>>> -- 
>>>> _______________________________________________
>>>> Openembedded-core mailing list
>>>> Openembedded-core@lists.openembedded.org
>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>> -- 
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core



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

* Re: [morty][PATCH] sstate.bbclass: update .siginfo atime
  2017-05-16 23:05       ` akuster808
@ 2017-06-13  6:21         ` Martin Jansa
  2017-06-13  6:33           ` Richard Purdie
  2018-01-26 19:03           ` Martin Jansa
  0 siblings, 2 replies; 8+ messages in thread
From: Martin Jansa @ 2017-06-13  6:21 UTC (permalink / raw)
  To: akuster808; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 3639 bytes --]

Unfortunately this nice change breaks quite common scenario when developers
have read-only mount of sstate mirror and this touch causes all _setscene
tasks to fail, because they fail to update atime on symlink which points to
read-only mount.

Please backport the fix for this as well ASAP:
http://git.openembedded.org/openembedded-core/commit/meta/classes/sstate.bbclass?id=b8f26c011d5ed888d85fef040bd821400d54c8fe

On Wed, May 17, 2017 at 1:05 AM, akuster808 <akuster808@gmail.com> wrote:

>
>
> On 05/16/2017 02:50 PM, Denys Dmytriyenko wrote:
>
>> On Mon, Apr 24, 2017 at 09:08:55AM -0700, akuster808 wrote:
>>
>>> On 04/21/2017 04:18 PM, Denys Dmytriyenko wrote:
>>>
>>>> Ping. It's been over a month now...
>>>>
>>> its in my stagging since 4/1.  The AB has been failing with my
>>> current changes.
>>>
>> Is morty now dead?
>>
>
> No. why do you say that? I just sent a pull request over the weekend for
> both Krogoth and Morty. Krogoth is the one heading to community supported
> now that Pyro is out.
>
> this changes is in the pull request
> http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commi
> t/meta/classes/sstate.bbclass?h=akuster/morty-next&id=838580
> 431a8923bf38820f10963aca4af51f6f97
>
> - armin
>
>
>
>>
>> On Mon, Mar 20, 2017 at 01:38:20PM -0400, Denys Dmytriyenko wrote:
>>>>
>>>>> From: Ed Bartosh <ed.bartosh@linux.intel.com>
>>>>>
>>>>> .siginfo files are not being accessed from local or NFS-mounted
>>>>> sstate mirrors when sstate package is installed, so their atime
>>>>> is not updated. If sstate mirror is cleaned based on access time,
>>>>> they get deleted, even though they are still being used.
>>>>>
>>>>> Updated atime of .siginfo symlinks with 'touch -a'. This command
>>>>> dereferences symlinks pointing to the local mirror and updates
>>>>> atime of the .siginfo file on the mirror.
>>>>>
>>>>> [YOCTO #10857]
>>>>>
>>>>> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
>>>>> Signed-off-by: Ross Burton <ross.burton@intel.com>
>>>>> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
>>>>> ---
>>>>>   meta/classes/sstate.bbclass | 2 ++
>>>>>   1 file changed, 2 insertions(+)
>>>>>
>>>>> diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
>>>>> index 8643f3d..4fdfcc8 100644
>>>>> --- a/meta/classes/sstate.bbclass
>>>>> +++ b/meta/classes/sstate.bbclass
>>>>> @@ -724,6 +724,8 @@ python sstate_sign_package () {
>>>>>   #
>>>>>   sstate_unpack_package () {
>>>>>         tar -xvzf ${SSTATE_PKG}
>>>>> +       # update .siginfo atime on local/NFS mirror
>>>>> +       [ -h ${SSTATE_PKG}.siginfo ] && touch -a ${SSTATE_PKG}.siginfo
>>>>>         # Use "! -w ||" to return true for read only files
>>>>>         [ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG}
>>>>>         [ ! -w ${SSTATE_PKG}.sig ] || [ ! -e ${SSTATE_PKG}.sig ] ||
>>>>> touch --no-dereference ${SSTATE_PKG}.sig
>>>>> --
>>>>> 2.7.4
>>>>>
>>>>> --
>>>>> _______________________________________________
>>>>> Openembedded-core mailing list
>>>>> Openembedded-core@lists.openembedded.org
>>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>>>>
>>>> --
>>> _______________________________________________
>>> Openembedded-core mailing list
>>> Openembedded-core@lists.openembedded.org
>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>>
>>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

[-- Attachment #2: Type: text/html, Size: 6196 bytes --]

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

* Re: [morty][PATCH] sstate.bbclass: update .siginfo atime
  2017-06-13  6:21         ` Martin Jansa
@ 2017-06-13  6:33           ` Richard Purdie
  2018-01-26 19:03           ` Martin Jansa
  1 sibling, 0 replies; 8+ messages in thread
From: Richard Purdie @ 2017-06-13  6:33 UTC (permalink / raw)
  To: Martin Jansa, akuster808; +Cc: Patches and discussions about the oe-core layer

On Tue, 2017-06-13 at 08:21 +0200, Martin Jansa wrote:
> Unfortunately this nice change breaks quite common scenario when
> developers have read-only mount of sstate mirror and this touch
> causes all _setscene tasks to fail, because they fail to update atime
> on symlink which points to read-only mount.
> 
> Please backport the fix for this as well ASAP:
> http://git.openembedded.org/openembedded-core/commit/meta/classes/sst
> ate.bbclass?id=b8f26c011d5ed888d85fef040bd821400d54c8fe

Done.

Cheers,

Richard


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

* Re: [morty][PATCH] sstate.bbclass: update .siginfo atime
  2017-06-13  6:21         ` Martin Jansa
  2017-06-13  6:33           ` Richard Purdie
@ 2018-01-26 19:03           ` Martin Jansa
  1 sibling, 0 replies; 8+ messages in thread
From: Martin Jansa @ 2018-01-26 19:03 UTC (permalink / raw)
  To: akuster808; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 5475 bytes --]

I'm sorry to revive this old thread, but today I've noticed a bit
surprising (to me) aspect of this.

I've recently started using sshfs to temporary share sstate-cache between
various builders.

The files on the other builder are owned by different user and the
SSTATE_MIRROR should be used as read-only.

drwxrwxr-x 1 jenkins jenkins 52K Jan 26 18:29 sshfs-mount/sstate-cache/fd/
-rw-r--r-- 1 jenkins jenkins 38K Jan 26 18:09
sshfs-mount/sstate-cache/fd/sstate:foo:bar:1.0:r0:MACHINE:3:fd13a9949f4915ff611d5757cd18d8b4_package_qa.tgz.siginfo

touch under my user fails:
touch
sshfs-mount/sstate-cache/fd/sstate:foo:bar:1.0:r0:MACHINE:3:fd13a9949f4915ff611d5757cd18d8b4_package_qa.tgz.siginfo
touch: cannot touch
'sshfs-mount/sstate-cache/fd/sstate:foo:bar:1.0:r0:MACHINE:3:fd13a9949f4915ff611d5757cd18d8b4_package_qa.tgz.siginfo':
Permission denied

but test -w is successful:
test
-w sshfs-mount/sstate-cache/fd/sstate:foo:bar:1.0:r0:MACHINE:3:fd13a9949f4915ff611d5757cd18d8b4_package_qa.tgz.siginfo
&& echo writeable
writeable

and all setscene tasks are failing as shown e.g. in
log.do_package_qa_setscene.22663
DEBUG: Executing shell function sstate_unpack_package
touch: cannot touch
'sshfs-mount/sstate-cache/fd/sstate:foo:bar:1.0:r0:MACHINE:3:fd13a9949f4915ff611d5757cd18d8b4_package_qa.tgz.siginfo':
Permission denied
WARNING: exit code 1 from a shell command.
DEBUG: Python function do_package_qa_setscene finished

Anyone seeing similar issue?

The simple fix for this is to use "-o ro" when mounting with sshfs, but it
was a bit surprising to me that it didn't work OOTB.

Regards,


On Tue, Jun 13, 2017 at 8:21 AM, Martin Jansa <martin.jansa@gmail.com>
wrote:

> Unfortunately this nice change breaks quite common scenario when
> developers have read-only mount of sstate mirror and this touch causes all
> _setscene tasks to fail, because they fail to update atime on symlink which
> points to read-only mount.
>
> Please backport the fix for this as well ASAP:
> http://git.openembedded.org/openembedded-core/commit/meta/
> classes/sstate.bbclass?id=b8f26c011d5ed888d85fef040bd821400d54c8fe
>
> On Wed, May 17, 2017 at 1:05 AM, akuster808 <akuster808@gmail.com> wrote:
>
>>
>>
>> On 05/16/2017 02:50 PM, Denys Dmytriyenko wrote:
>>
>>> On Mon, Apr 24, 2017 at 09:08:55AM -0700, akuster808 wrote:
>>>
>>>> On 04/21/2017 04:18 PM, Denys Dmytriyenko wrote:
>>>>
>>>>> Ping. It's been over a month now...
>>>>>
>>>> its in my stagging since 4/1.  The AB has been failing with my
>>>> current changes.
>>>>
>>> Is morty now dead?
>>>
>>
>> No. why do you say that? I just sent a pull request over the weekend for
>> both Krogoth and Morty. Krogoth is the one heading to community supported
>> now that Pyro is out.
>>
>> this changes is in the pull request
>> http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commi
>> t/meta/classes/sstate.bbclass?h=akuster/morty-next&id=838580
>> 431a8923bf38820f10963aca4af51f6f97
>>
>> - armin
>>
>>
>>
>>>
>>> On Mon, Mar 20, 2017 at 01:38:20PM -0400, Denys Dmytriyenko wrote:
>>>>>
>>>>>> From: Ed Bartosh <ed.bartosh@linux.intel.com>
>>>>>>
>>>>>> .siginfo files are not being accessed from local or NFS-mounted
>>>>>> sstate mirrors when sstate package is installed, so their atime
>>>>>> is not updated. If sstate mirror is cleaned based on access time,
>>>>>> they get deleted, even though they are still being used.
>>>>>>
>>>>>> Updated atime of .siginfo symlinks with 'touch -a'. This command
>>>>>> dereferences symlinks pointing to the local mirror and updates
>>>>>> atime of the .siginfo file on the mirror.
>>>>>>
>>>>>> [YOCTO #10857]
>>>>>>
>>>>>> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
>>>>>> Signed-off-by: Ross Burton <ross.burton@intel.com>
>>>>>> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
>>>>>> ---
>>>>>>   meta/classes/sstate.bbclass | 2 ++
>>>>>>   1 file changed, 2 insertions(+)
>>>>>>
>>>>>> diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
>>>>>> index 8643f3d..4fdfcc8 100644
>>>>>> --- a/meta/classes/sstate.bbclass
>>>>>> +++ b/meta/classes/sstate.bbclass
>>>>>> @@ -724,6 +724,8 @@ python sstate_sign_package () {
>>>>>>   #
>>>>>>   sstate_unpack_package () {
>>>>>>         tar -xvzf ${SSTATE_PKG}
>>>>>> +       # update .siginfo atime on local/NFS mirror
>>>>>> +       [ -h ${SSTATE_PKG}.siginfo ] && touch -a ${SSTATE_PKG}.siginfo
>>>>>>         # Use "! -w ||" to return true for read only files
>>>>>>         [ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG}
>>>>>>         [ ! -w ${SSTATE_PKG}.sig ] || [ ! -e ${SSTATE_PKG}.sig ] ||
>>>>>> touch --no-dereference ${SSTATE_PKG}.sig
>>>>>> --
>>>>>> 2.7.4
>>>>>>
>>>>>> --
>>>>>> _______________________________________________
>>>>>> Openembedded-core mailing list
>>>>>> Openembedded-core@lists.openembedded.org
>>>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>>>>>
>>>>> --
>>>> _______________________________________________
>>>> Openembedded-core mailing list
>>>> Openembedded-core@lists.openembedded.org
>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>>>
>>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>
>
>

[-- Attachment #2: Type: text/html, Size: 8716 bytes --]

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

end of thread, other threads:[~2018-01-26 19:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-20 17:38 [morty][PATCH] sstate.bbclass: update .siginfo atime Denys Dmytriyenko
2017-04-21 23:18 ` Denys Dmytriyenko
2017-04-24 16:08   ` akuster808
2017-05-16 21:50     ` Denys Dmytriyenko
2017-05-16 23:05       ` akuster808
2017-06-13  6:21         ` Martin Jansa
2017-06-13  6:33           ` Richard Purdie
2018-01-26 19:03           ` Martin Jansa

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.