Skip to content

xbps-src: XBPS_CHECK_PKGS with cross-builds #59889

@Duncaen

Description

@Duncaen

XBPS_CHECK_PKGS is a global "do we test packages" check, set with the -Q option or in etc/conf.

During cross builds this variable is still set true despite checkdepends not being installed and do_check not being used.

A lot of templates just check [ "$XBPS_CHECK_PKGS" ] which works in most cases, but not in cases where its used to explicitly disable tests because the build system might depend on something in checkdepends if tests are enabled:

if [ -z "$XBPS_CHECK_PKGS" ]; then
    configure_args+=" -Dtests=false"
fi

xbps-src itself usually does a check like [ "$XBPS_CHECK_PKGS" ] && [ -z "$XBPS_CROSS_BUILD" ].

I think we should either change XBPS_CHECK_PKGS to indicate whether checks are going to be run or add a new variable for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestxbps-srcxbps-src related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions