Skip to contentSkip to conversation

sstate.bbclass: drop obsolete codes

PATCH New Chen Qi 1 participant 2 messages Apr 27, 2018

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

cover sstate.bbclass: drop obsolete codes

The following changes since commit b6bc5b2840246ac0f0e5d8cebcdffc1a0ca2518f:

bitbake: toaster: add 'Sumo' to release selection (2018-04-26 11:43:26 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib ChenQi/sstate-obsolete-codes
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/sstate-obsolete-codes

Chen Qi (1):
sstate.bbclass: drop obsolete codes

 meta/classes/sstate.bbclass | 5 -----
 1 file changed, 5 deletions(-)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/1 sstate.bbclass: drop obsolete codes

The SSTATECLEANFUNCS mechanism was introduced to solve user/group deletion problem. After RSS mechanism was introduced, there's no need to do so.

There was a patch to remove these obsolete codes for useradd.bbclass, but the codes in sstate.bbclass were not removed. So clean it up.

---
 meta/classes/sstate.bbclass | 5 -----
 1 file changed, 5 deletions(-)
meta/classes/sstate.bbclass +0 -5
index 0b28850..1a95f8f 100644
@@ -59,7 +59,6 @@ SSTATEPREINSTFUNCS = ""
 SSTATEPOSTUNPACKFUNCS = "sstate_hardcode_path_unpack"
 SSTATEPOSTINSTFUNCS = ""
 EXTRA_STAGING_FIXMES ?= "HOSTTOOLS_DIR"
-SSTATECLEANFUNCS = ""
 
 # Check whether sstate exists for tasks that support sstate and are in the
 # locked signatures file.
@@ -507,10 +506,6 @@ def sstate_clean(ss, d):
                 stfile.endswith(rm_nohash):
             oe.path.remove(stfile)
 
-    # Removes the users/groups created by the package
-    for cleanfunc in (d.getVar('SSTATECLEANFUNCS') or '').split():
-        bb.build.exec_func(cleanfunc, d)
-
 sstate_clean[vardepsexclude] = "SSTATE_MANFILEPREFIX"
 
 CLEANFUNCS += "sstate_cleanall"
Signature · 1 line
1.9.1