Skip to content

Bitbake 2.0 refuses to run in pyrex; inclusive language violations #80

@amstewart

Description

@amstewart

When running any bitbake version >= 2.0 within a pyrex container, bitbake will throw a fatal error during recipe parsing and return code 1.

[0] usr0:build$ bitbake -e glibc
ERROR: Variable BB_ENV_EXTRAWHITE has been renamed to BB_ENV_PASSTHROUGH_ADDITIONS
ERROR: Variable BB_ENV_EXTRAWHITE from the shell environment has been renamed to BB_ENV_PASSTHROUGH_ADDITIONS
ERROR: Exiting to allow enviroment variables to be corrected

The error source is here, and it was added to enforce restrictions on insufficiently inclusive variables being defined in the environment. Bitbake will error whenever BB_ENV_EXTRAWHITE is defined in the execution environment, and it is unconditionally defined by pyrex.

pyrex/pyrex.py

Lines 554 to 557 in bebe3f9

# Pass along BB_ENV_EXTRAWHITE and anything it has whitelisted
if "BB_ENV_EXTRAWHITE" in os.environ:
engine_args.extend(["-e", "BB_ENV_EXTRAWHITE"])
container_envvars.extend(os.environ["BB_ENV_EXTRAWHITE"].split())

pyrex/image/capture.sh

Lines 100 to 103 in bebe3f9

"export": {
"BB_ENV_EXTRAWHITE": "$BB_ENV_EXTRAWHITE",
"BUILDDIR": "$BUILDDIR"
}

Bitbake 2.0 support is needed for pyrex users to build the OE kirkstone release and beyond.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions