Skip to content

TEST_DEPENDS aren't taken from packages #1131

@arrowd

Description

@arrowd

When Poudriere 3.4.1 installs {BUILD,LIB}_DEPENDS it passes USE_PACKAGE_DEPENDS_ONLY=1 to force using packages:

=======================<phase: lib-depends    >============================
===== env: DEVELOPER_MODE=yes USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0

Turns out this is not the case for TEST_DEPENDS during the package phase:

=======================<phase: package        >============================
===== env: DEVELOPER_MODE=yes PACKAGES=/tmp/pkgs PKGREPOSITORY=/tmp/pkgs PKGLATESTREPOSITORY=/tmp/pkgs/Latest 'PKG_NOTES=build_timestamp built_by' 'PKG_NOTE_build_timestamp=2024-03-06T15:50:56+0000' 'PKG_NOTE_built_by=poudriere-git-3.4.1' STRICT_DEPENDS=yes USER=nobody UID=65534 GID=65534

This leads to

===>  Testing for libjxl-0.10.1
===>   libjxl-0.10.1 depends on package: googletest>0 - not found
===>   googletest-1.14.0 depends on file: /usr/local/sbin/pkg - found
=> google-googletest-v1.14.0_GH0.tar.gz doesn't seem to exist in /portdistfiles/.
=> /portdistfiles/ is not writable by you; cannot fetch.
*** Error code 1

The make test stage gets hooked into the package phase via Mk/Features/testing.mk that I've added recently.

I guess, this can easily be fixed by making Poudriere pass USE_PACKAGE_DEPENDS_ONLY=1 for the package phase?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions