On Fri, 2021-01-15 at 17:45 +0800, hongxu wrote:
> 1. Add nativesdk support
> - Apply the same patches of native
> - Generate the same apt.conf.sample of native
> 
> 2. Create user '_apt' to fix apt runtime warning
> [snip]
> $ apt update
> ...
> W: No sandbox user '_apt' on the system, can not drop privileges
> [snip]
> 
> Signed-off-by: Hongxu Jia <[email protected]>
> ---
>  meta/recipes-devtools/apt/apt_1.8.2.1.bb | 24 +++++++++++++++++++++---
>  1 file changed, 21 insertions(+), 3 deletions(-)
> 
> diff --git a/meta/recipes-devtools/apt/apt_1.8.2.1.bb 
> b/meta/recipes-devtools/apt/apt_1.8.2.1.bb
> index de0e150a2e..57bd7ca600 100644
> --- a/meta/recipes-devtools/apt/apt_1.8.2.1.bb
> +++ b/meta/recipes-devtools/apt/apt_1.8.2.1.bb
> @@ -17,6 +17,12 @@ SRC_URI_append_class-native = " \
>             file://0001-Do-not-configure-packages-on-installation.patch \
>             "
>  
> 
> 
> 
> 
> 
> 
> 
> +SRC_URI_append_class-nativesdk = " \
> +           file://0001-Do-not-init-tables-from-dpkg-configuration.patch \
> +           
> file://0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch \
> +           file://0001-Do-not-configure-packages-on-installation.patch \
> +           "
> +
>  SRC_URI[sha256sum] = 
> "6d447f2e9437ec24e78350b63bb0592bee1f050811d51990b0c783183b0983f8"
>  LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263"
>  
> 
> 
> 
> 
> 
> 
> 
> @@ -24,9 +30,12 @@ LIC_FILES_CHKSUM = 
> "file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263"
>  # so we check the latest upstream from a directory that does get updated
>  UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/a/apt/"
>  
> 
> 
> 
> 
> 
> 
> 
> -inherit cmake perlnative bash-completion upstream-version-is-even
> +inherit cmake perlnative bash-completion upstream-version-is-even useradd
> +
> +USERADD_PACKAGES = "${PN}"
> +USERADD_PARAM_${PN} = "--system --home /nonexistent --no-create-home _apt"
> 

I think meta-selftest/files/static-passwd  will need this adding for
the selftests to pass?

Cheers,

Richard

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

Reply via email to