### Qubes OS release
R4.2
### Brief summary
I want to try out the q…ubes-builderv2 using local executor in appvm based on fedora-38-xfce template with all required dependences installed:
```
$ sudo dnf install python3-packaging python3-click python3-lxml createrepo_c devscripts gpg python3-pyyaml rpm docker python3-docker podman python3-podman reprepro python3-pathspec rpm-sign mktorrent openssl tree mock python3-jinja2-cli pacman m4 asciidoc rsync
```
And `mkmetalink` installed as described in qubes-builderv2 readme.
But I'm getting this error when trying to prep the `gui-agent-linux` component:
```
[user@qubes-builderv2-local-tst qubes-builderv2]$ ./qb -c gui-agent-linux package fetch prep
...
20:39:00,557 [executor:local:/tmp/133103405300048c975c2a2/builder] output: sed: can't read /tmp/133103412689680f82e47a6/builder/gui-agent-linux/debian/control: No such file or directory
...
```
I can successfully `fetch prep build` for most of other components (with a few other exceptions that fail in similar way to gui-agent-linux e.g. desktop-linux-xfce4-xfwm4, desktop-linux-i3 and some others).
I'm using example-configs/qubes-os-r4.2.yml config but with local executor:
```
user@qubes-builderv2-local-tst:~/qubes-builderv2$ diff example-configs/qubes-os-r4.2.yml builder.yml
186,188c186
< type: qubes
< options:
< dispvm: "qubes-builder-dvm"
---
> type: local
```
This issue only happens with debian distributions. If I comment out - `vm-bullseye` from `distributions:` and leave `- host-fc37` and `- vm-fc38` then gui-agent-linux will successfully `fetch prep build` for fedora distribution.
<details>
<summary>Full log</summary>
<pre>
[user@qubes-builderv2-local-tst qubes-builderv2]$ ./qb -c gui-agent-linux package fetch prep
Running stage: fetch
20:38:37,633 [executor:local:/tmp/133103414018256f6ad1487/builder] Executing 'bash -c cd /tmp/133103414018256f6ad1487/builder&&/tmp/133103414018256f6ad1487/builder/plugins/fetch/scripts/get-and-verify-source.py https://github.com/QubesOS/qubes-gui-agent-linux.git /tmp/133103414018256f6ad1487/builder/gui-agent-linux /tmp/133103414018256f6ad1487/builder/keyring /tmp/133103414018256f6ad1487/builder/plugins/fetch/keys --git-branch release4.2 --minimum-distinct-maintainers 1 --maintainer 0064428F455451B3EBE78A7F063938BA42CFA724 --maintainer 274E12AB03F2FE293765FC06DA0434BC706E1FCF'.
20:38:57,204 [executor:local:/tmp/133103414018256f6ad1487/builder] output: --> Verifying tags...
20:38:57,204 [executor:local:/tmp/133103414018256f6ad1487/builder] output: ---> Good tag 536fe14efdaf871405a1eeee6520f89e52d3ad1f.
20:38:57,204 [executor:local:/tmp/133103414018256f6ad1487/builder] output: Enough distinct tag signatures. Found 1, mandatory minimum is 1.
20:38:57,204 [executor:local:/tmp/133103414018256f6ad1487/builder] output: --> Switching branch from release4.2 branch to release4.2
20:38:58,631 [executor:local:/tmp/133103414018256f6ad1487/builder] Executing 'bash -c rm -f /tmp/133103414018256f6ad1487/builder/gui-agent-linux/hash /tmp/133103414018256f6ad1487/builder/gui-agent-linux/vtags&&cd /tmp/133103414018256f6ad1487/builder&&git -C /tmp/133103414018256f6ad1487/builder/gui-agent-linux rev-parse 'HEAD^{}' >> /tmp/133103414018256f6ad1487/builder/gui-agent-linux/hash&&git -C /tmp/133103414018256f6ad1487/builder/gui-agent-linux tag --points-at HEAD --list 'v*' >> /tmp/133103414018256f6ad1487/builder/gui-agent-linux/vtags'.
Running stage: prep
20:38:59,329 [executor:local:/tmp/133103405300048c975c2a2/builder] Executing 'bash -c /tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/modify-changelog-for-build /tmp/133103405300048c975c2a2/builder/gui-agent-linux debian bullseye deb11u &&/tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/get-source-info /tmp/133103405300048c975c2a2/builder/gui-agent-linux debian'.
20:38:59,332 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + test 4 -lt 4
20:38:59,333 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + SOURCE_DIR=/tmp/133103405300048c975c2a2/builder/gui-agent-linux
20:38:59,333 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + DEBIAN_DIRECTORY=debian
20:38:59,333 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + DIST_NAME=bullseye
20:38:59,333 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + DIST_TAG=deb11u
20:38:59,333 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + DEVEL_VERSION=
20:38:59,333 [executor:local:/tmp/133103405300048c975c2a2/builder] output: ++ dirname /tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/modify-changelog-for-build
20:38:59,336 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + SCRIPTS_DIR=/tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts
20:38:59,336 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + cd /tmp/133103405300048c975c2a2/builder/gui-agent-linux
20:38:59,336 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + '[' 0 -gt 0 ']'
20:38:59,336 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + /tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/debian-changelog --verify
20:38:59,577 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + debchange -t -l+deb11u 'Build for bullseye'
20:38:59,865 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + debchange -t --force-distribution -r -D bullseye bullseye
20:38:59,975 [executor:local:/tmp/133103405300048c975c2a2/builder] output: libdistro-info-perl is not installed, Debian release names are not known.
20:38:59,975 [executor:local:/tmp/133103405300048c975c2a2/builder] output: libdistro-info-perl is not installed, Ubuntu release names are not known.
20:38:59,981 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + /tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/clamp-changelog-entry-date /tmp/133103405300048c975c2a2/builder/gui-agent-linux/debian/changelog
20:39:00,004 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + test 2 -ne 2
20:39:00,004 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + SOURCE_DIR=/tmp/133103405300048c975c2a2/builder/gui-agent-linux
20:39:00,005 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + DEBIAN_DIRECTORY=debian
20:39:00,005 [executor:local:/tmp/133103405300048c975c2a2/builder] output: ++ basename debian
20:39:00,006 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + DIRECTORY_BN=debian
20:39:00,006 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + DIRECTORY_MANGLE_PATH=debian
20:39:00,006 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + DIRECTORY_MANGLE_PATH=debian
20:39:00,006 [executor:local:/tmp/133103405300048c975c2a2/builder] output: ++ dirname /tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/get-source-info
20:39:00,008 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + SCRIPTS_DIR=/tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts
20:39:00,008 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + /tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/debian-parser changelog --package-release-name /tmp/133103405300048c975c2a2/builder/gui-agent-linux/debian/changelog
20:39:00,133 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + /tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/debian-parser changelog --package-release-name-full /tmp/133103405300048c975c2a2/builder/gui-agent-linux/debian/changelog
20:39:00,220 [executor:local:/tmp/133103405300048c975c2a2/builder] output: + grep -Po '(?<=^3.0 \()\w+'
20:39:00,553 [executor:local:/tmp/133103405300048c975c2a2/builder] Executing 'bash -c sed -i "s/, pulseaudio-qubes/, pipewire-qubes/" /tmp/133103412689680f82e47a6/builder/gui-agent-linux/debian/control&&/tmp/133103405300048c975c2a2/builder/plugins/fetch/scripts/create-archive /tmp/133103405300048c975c2a2/builder/gui-agent-linux qubes-gui-agent_4.2.11.orig.tar.gz&&mv /tmp/133103405300048c975c2a2/builder/gui-agent-linux/qubes-gui-agent_4.2.11.orig.tar.gz /tmp/133103405300048c975c2a2/builder&&/tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/modify-changelog-for-build /tmp/133103405300048c975c2a2/builder/gui-agent-linux debian bullseye deb11u &&mkdir -p /tmp/133103405300048c975c2a2/builder/build&&cd /tmp/133103405300048c975c2a2/builder/build&&cp -a /tmp/133103405300048c975c2a2/builder/gui-agent-linux/debian .&&chmod -R -- u+rwX,g+rX-w,o+rX-w .&&chmod +x debian/rules&&dpkg-source -b .&&/tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/debian-get-packages-list /tmp/133103405300048c975c2a2/builder/qubes-gui-agent_4.2.11-1+deb11u1.dsc >/tmp/133103405300048c975c2a2/builder/debian_packages.list'.
20:39:00,557 [executor:local:/tmp/133103405300048c975c2a2/builder] output: sed: can't read /tmp/133103412689680f82e47a6/builder/gui-agent-linux/debian/control: No such file or directory
Error: gui-agent-linux:vm-debian-11.amd64:debian: Failed to generate source: Failed to run '['bash', '-c', 'sed -i "s/, pulseaudio-qubes/, pipewire-qubes/" /tmp/133103412689680f82e47a6/builder/gui-agent-linux/debian/control&&/tmp/133103405300048c975c2a2/builder/plugins/fetch/scripts/create-archive /tmp/133103405300048c975c2a2/builder/gui-agent-linux qubes-gui-agent_4.2.11.orig.tar.gz&&mv /tmp/133103405300048c975c2a2/builder/gui-agent-linux/qubes-gui-agent_4.2.11.orig.tar.gz /tmp/133103405300048c975c2a2/builder&&/tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/modify-changelog-for-build /tmp/133103405300048c975c2a2/builder/gui-agent-linux debian bullseye deb11u &&mkdir -p /tmp/133103405300048c975c2a2/builder/build&&cd /tmp/133103405300048c975c2a2/builder/build&&cp -a /tmp/133103405300048c975c2a2/builder/gui-agent-linux/debian .&&chmod -R -- u+rwX,g+rX-w,o+rX-w .&&chmod +x debian/rules&&dpkg-source -b .&&/tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/debian-get-packages-list /tmp/133103405300048c975c2a2/builder/qubes-gui-agent_4.2.11-1+deb11u1.dsc >/tmp/133103405300048c975c2a2/builder/debian_packages.list']' (status=2)..
Traceback (most recent call last):
File "/home/user/qubes-builderv2/qubesbuilder/plugins/source_deb/__init__.py", line 310, in run
executor.run(cmd, copy_in, copy_out, environment=self.environment)
File "/home/user/qubes-builderv2/qubesbuilder/executors/local.py", line 153, in run
raise ExecutorError(f"Failed to run '{final_cmd}' (status={rc}).")
qubesbuilder.executors.ExecutorError: Failed to run '['bash', '-c', 'sed -i "s/, pulseaudio-qubes/, pipewire-qubes/" /tmp/133103412689680f82e47a6/builder/gui-agent-linux/debian/control&&/tmp/133103405300048c975c2a2/builder/plugins/fetch/scripts/create-archive /tmp/133103405300048c975c2a2/builder/gui-agent-linux qubes-gui-agent_4.2.11.orig.tar.gz&&mv /tmp/133103405300048c975c2a2/builder/gui-agent-linux/qubes-gui-agent_4.2.11.orig.tar.gz /tmp/133103405300048c975c2a2/builder&&/tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/modify-changelog-for-build /tmp/133103405300048c975c2a2/builder/gui-agent-linux debian bullseye deb11u &&mkdir -p /tmp/133103405300048c975c2a2/builder/build&&cd /tmp/133103405300048c975c2a2/builder/build&&cp -a /tmp/133103405300048c975c2a2/builder/gui-agent-linux/debian .&&chmod -R -- u+rwX,g+rX-w,o+rX-w .&&chmod +x debian/rules&&dpkg-source -b .&&/tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/debian-get-packages-list /tmp/133103405300048c975c2a2/builder/qubes-gui-agent_4.2.11-1+deb11u1.dsc >/tmp/133103405300048c975c2a2/builder/debian_packages.list']' (status=2).
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/user/qubes-builderv2/qubesbuilder/cli/cli_base.py", line 65, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
rv.append(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/click/decorators.py", line 38, in new_func
return f(get_current_context().obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/qubes-builderv2/qubesbuilder/cli/cli_package.py", line 74, in prep
_component_stage(
File "/home/user/qubes-builderv2/qubesbuilder/cli/cli_package.py", line 40, in _component_stage
p.run(stage=stage_name)
File "/home/user/qubes-builderv2/qubesbuilder/plugins/source_deb/__init__.py", line 313, in run
raise SourceError(msg) from e
qubesbuilder.plugins.source.SourceError: gui-agent-linux:vm-debian-11.amd64:debian: Failed to generate source: Failed to run '['bash', '-c', 'sed -i "s/, pulseaudio-qubes/, pipewire-qubes/" /tmp/133103412689680f82e47a6/builder/gui-agent-linux/debian/control&&/tmp/133103405300048c975c2a2/builder/plugins/fetch/scripts/create-archive /tmp/133103405300048c975c2a2/builder/gui-agent-linux qubes-gui-agent_4.2.11.orig.tar.gz&&mv /tmp/133103405300048c975c2a2/builder/gui-agent-linux/qubes-gui-agent_4.2.11.orig.tar.gz /tmp/133103405300048c975c2a2/builder&&/tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/modify-changelog-for-build /tmp/133103405300048c975c2a2/builder/gui-agent-linux debian bullseye deb11u &&mkdir -p /tmp/133103405300048c975c2a2/builder/build&&cd /tmp/133103405300048c975c2a2/builder/build&&cp -a /tmp/133103405300048c975c2a2/builder/gui-agent-linux/debian .&&chmod -R -- u+rwX,g+rX-w,o+rX-w .&&chmod +x debian/rules&&dpkg-source -b .&&/tmp/133103405300048c975c2a2/builder/plugins/source_deb/scripts/debian-get-packages-list /tmp/133103405300048c975c2a2/builder/qubes-gui-agent_4.2.11-1+deb11u1.dsc >/tmp/133103405300048c975c2a2/builder/debian_packages.list']' (status=2)..
</details>