Skip to content

Additional packages in buildroot when building SRPM #3627

Open
@FrostyX

Description

From Matrix

pgnd:
with a simple test.spec, https://is.gd/vRBpwO, and jq added to pkg build chroot,
i still get the ""stderr: sh: line 1: jq: command not found"".
stumped. or missing the obvious ...
if anyone can spare a look --> https://download.copr.fedorainfracloud.org/results/pgfed/vulkan-wsi-layer-pgnd/srpm-builds/08653401/builder-live.log.gz

FrostyX:
thats because the failure is when building a SRPM and at that point we are
probably not installing the additional packages into the buildroot. IIRC we do
so only for custom method. Thank you for this minimal reproducer, it was
helpful. At the moment I am not sure what should we do about it though

The specfile is here: https://pagure.io/pgnd/vulkan-wsi-layer-pgnd/blob/main/f/vulkan-wsi-layer.spec
The package does something like this at the very top:

%global _test      %( curl -s "https://filesamples.com/samples/code/json/sample1.json" | jq .fruit )

which looks insane to me but it is obviously meant as a reproducer. I am not sure what the real use-case is.

However, this seems like an easyfix? We can just do this for SRPM builds as well

build_record["buildroot_pkgs"] = build_config.get("additional_packages")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status

      In 2 years

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions