Skip to content

Additional packages in buildroot when building SRPM #3627

@FrostyX

Description

@FrostyX

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    journey/advancedIssues affecting advanced users and complex workflowsuser/communityAffects individual community packagers using public Copr instances

    Type

    No type

    Projects

    Status

    In 2 years

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions