[OE-core] [PATCH] serf: cleanup recipe

Martin Jansa martin.jansa at gmail.com
Mon Jun 17 18:59:25 UTC 2019


Hello, now serf is failing to build here:


DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are
['TOPDIR/oe-core/meta/recipes-devtools/gcc/gcc-runtime_9.1.bb:do_populate_sysroot',
'TOPDIR/oe-core/meta/recipes-core/util-linux/util-linux_2.33.2.bb:do_populate_sysroot',
'virtual:native:TOPDIR/oe-core/meta/recipes-devtools/python/python3_3.7.3.bb:do_populate_sysroot',
'TOPDIR/oe-core/meta/recipes-core/expat/expat_2.2.6.bb:do_populate_sysroot',
'TOPDIR/oe-core/meta/recipes-core/glibc/glibc_2.29.bb:do_populate_sysroot',
'TOPDIR/oe-core/meta/recipes-support/apr/apr_1.7.0.bb:do_populate_sysroot',
'virtual:native:TOPDIR/oe-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot',
'TOPDIR/oe-core/meta/recipes-devtools/gcc/gcc-cross_9.1.bb:do_populate_sysroot',
'TOPDIR/oe-core/meta/recipes-support/apr/apr-util_1.6.1.bb:do_populate_sysroot',
'TOPDIR/oe-core/meta/recipes-devtools/python/python3-scons-native_3.0.5.bb:do_populate_sysroot',
'TOPDIR/oe-core/meta/recipes-connectivity/openssl/openssl_1.1.1c.bb:do_populate_sysroot',
'TOPDIR/oe-core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot',
'virtual:native:TOPDIR/oe-core/meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb:
do_populate_sysroot']
NOTE: Installed into sysroot: ['pseudo-native']
NOTE: Skipping as already exists in sysroot: ['gcc-runtime', 'util-linux',
'python3-native', 'expat', 'glibc', 'apr', 'gcc-cross-x86_64', 'apr-util',
'python3-scons-native', 'openssl', 'quilt-native',
'icecc-create-env-native', 'linux-libc-headers', 'libgcc',
'bash-completion', 'zlib', 'opkg-utils', 'libxcrypt', 'ncurses',
'gmp-native', 'libmpc-native', 'autoconf-native', 'zlib-native',
'mpfr-native', 'gnu-config-native', 'automake-native', 'libtool-native',
'xz-native', 'binutils-cross-x86_64', 'texinfo-dummy-native',
'flex-native', 'gdbm', 'libtirpc-native', 'sqlite3-native',
'util-linux-native', 'libffi-native', 'gdbm-native', 'bzip2-native',
'pkgconfig-native', 'readline-native', 'openssl-native', 'libnsl2-native',
'm4-native', 'gettext-minimal-native', 'ncurses-native']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_install
scons: Reading SConscript files ...
PermissionError: [Errno 13] Permission denied: '/usr/lib64':
  File
"TOPDIR/BUILD/work/qemux86-signage-linux/serf/1.3.9-r0/serf-1.3.9/SConstruct",
line 158:
    ENV = os.environ,
  File
"/TOPDIR/BUILD/work/qemux86-signage-linux/serf/1.3.9-r0/recipe-sysroot-native/usr/bin/../../usr/lib/python3.7/site-packages/SCons/Environment.py",
line 965:
    variables.Update(self)
  File
"/TOPDIR/BUILD/work/qemux86-signage-linux/serf/1.3.9-r0/recipe-sysroot-native/usr/bin/../../usr/lib/python3.7/site-packages/SCons/Variables/__init__.py",
line 227:
    option.validator(option.key, env.subst('${%s}'%option.key), env)
  File
"TOPDIR/BUILD/work/qemux86-signage-linux/serf/1.3.9-r0/serf-1.3.9/SConstruct",
line 60:
    return PathVariable.PathIsDirCreate(key, val, env)
  File
"/TOPDIR/BUILD/work/qemux86-signage-linux/serf/1.3.9-r0/recipe-sysroot-native/usr/bin/../../usr/lib/python3.7/site-packages/SCons/Variables/PathVariable.py",
line 101:
    os.makedirs(val)
  File
"TOPDIR/BUILD/work/qemux86-signage-linux/serf/1.3.9-r0/recipe-sysroot-native/usr/lib/python3.7/os.py",
line 221:
    mkdir(name, mode)
ERROR: scons install execution failed.
WARNING: exit code 1 from a shell command.

Maybe it fails only with multilib enabled, but it wasn't failing before the
cleanup.

Anyone else seeing this?

On Thu, Jun 13, 2019 at 2:01 AM Anuj Mittal <anuj.mittal at intel.com> wrote:

> * Inherit scons bbclass and use the task definitions from there.
> * Remove the DEPENDS on python3-scons-native that is already present in
> scons class.
>
> Signed-off-by: Anuj Mittal <anuj.mittal at intel.com>
> ---
>  meta/recipes-support/serf/serf_1.3.9.bb | 23 ++++++++++++-----------
>  1 file changed, 12 insertions(+), 11 deletions(-)
>
> diff --git a/meta/recipes-support/serf/serf_1.3.9.bb
> b/meta/recipes-support/serf/serf_1.3.9.bb
> index 706c86be47..92cd5ca061 100644
> --- a/meta/recipes-support/serf/serf_1.3.9.bb
> +++ b/meta/recipes-support/serf/serf_1.3.9.bb
> @@ -14,18 +14,19 @@ SRC_URI[sha256sum] =
> "549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf
>  LICENSE = "Apache-2.0"
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
>
> -DEPENDS = "python3-scons-native openssl apr apr-util util-linux expat"
> +inherit scons
>
> -do_compile() {
> -       ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} \
> -               CC="${CC}" \
> -               APR=`which apr-1-config` APU=`which apu-1-config` \
> -               CFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" \
> -               OPENSSL="${STAGING_EXECPREFIXDIR}"
> -}
> +DEPENDS += " openssl apr apr-util util-linux expat"
>
> -do_install() {
> -       ${STAGING_BINDIR_NATIVE}/scons PREFIX=${D}${prefix}
> LIBDIR=${D}${libdir} install
> -}
> +EXTRA_OESCONS = " \
> +                  LIBDIR=${libdir} \
> +                  --install-sandbox=${D} \
> +                  CC="${CC}" \
> +                  CFLAGS="${CFLAGS}" \
> +                  LINKFLAGS="${LDFLAGS}" \
> +                  APR=`which apr-1-config` \
> +                  APU=`which apu-1-config` \
> +                  OPENSSL="${STAGING_EXECPREFIXDIR}" \
> +                  "
>
>  BBCLASSEXTEND = "native"
> --
> 2.20.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190617/8cbcb80e/attachment-0001.html>


More information about the Openembedded-core mailing list