Skip to content

build/config/linux/pkg-config.py should not append sysroot paths #132152

@aduskett

Description

@aduskett

Is there an existing issue for this?

Steps to reproduce

git clone https://gitlab.com/aduskett/buildroot-flutter.git
cd buildroot-flutter
make flutter_aarch64_defconfig
rm package/flutter-engine/0004-pkg-config.py-do-not-prepend-sysroot-path.patch
make -Otarget -j$(nproc) flutter-engine-depends
make flutter-engine

Actual results

Buildroot uses the standard PKG_CONFIG_SYSROOT_DIR variable, so what the pkg-config.py script is doing doesn't make sense. There is no need to prepend the sysroot, and flutter should let pkg-config use the PKG_CONFIG_SYSROOT_DIR variable.

Without the patch, the pkg-config.py script double prepends the sysroot path.
IE: output/host/.../sysroot/output/host/.../sysroot

Logs

Logs
<!-- Paste your logs here -->

Flutter Doctor output

Doctor output
<!-- Paste your output here -->

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: proposalA detailed proposal for a change to Flutterengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions