pkg-config based project don't work with kde-neon extension
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
### Bug Description
since https://github.com/snapcore/snapcraft/pull/4242 PKG_CONFIG_PATH is no longer provided for kde-neon, this means that project using pkg-config to get their dependencies won't be able to get them from the kde-neon-sdk image. While kf5 libraries don't supply .pc files, kde-neon is the recommended way to build qt5 application which provides such files.
https://github.com/snapcore/snapcraft/pull/4242 only work around the issue as most kde application uses CMake. the root cause is that the installation prefix is incorrect in the provided .pc
for instance
```
head -n 1 /snap/kf5-5-108-qt-5-15-10-core22-sdk/current/usr/lib/x86_64-linux-gnu/pkgconfig/Qt5Core.pc
prefix=/build/snapcraft-kf5-5-108-qt-5-15-10-core22-sdk-eb909be8ec5bfbbae4a03c09e3a7bdd2/stage/usr
```
note that the gnome plugin (gnome-42-2204-sdk) doesn't have this issue:
```
head -n 1 /snap/gnome-42-2204-sdk/current/usr/lib/x86_64-linux-gnu/pkgconfig/gtk4.pc
prefix=/snap/gnome-42-2204-sdk/current/usr
```
### To Reproduce
run `snapcraft build` with the supplied snapcraft.yaml
### Environment
the issue has been experience in `destructive-mode` as qt5 packages may not be installed on the host, but the sample `snapcraft.yaml` demonstrate the issue in other (LXD) environment.
Snapcraft: 8.0.2
system host: Ubuntu 22.04.3 LTS
### snapcraft.yaml
```shell
name: name
summary: summary
description: some description
version: test
grade: stable
confinement: strict
base: core22
apps:
myapp:
command: yes
extensions: [kde-neon]
parts:
myapp:
plugin: nil
source: .
override-build: |
pkg-config Qt5WebView --cflags
```
### Relevant log output
```shell
2024-02-07 13:54:09.670 Starting Snapcraft 8.0.2
2024-02-07 13:54:09.671 lifecycle command: 'try', arguments: Namespace(destructive_mode=False, use_lxd=True, debug=False, enable_manifest=False, manifest_image_information=None, bind_ssh=False, build_for=None, http_proxy=None, https_proxy=None, ua_token=None, enable_experimental_ua_services=False, enable_experimental_plugins=False, enable_experimental_extensions=False, enable_developer_debug=False, enable_experimental_target_arch=False, target_arch=None, provider=None)
2024-02-07 13:54:09.671 command: try, arguments: Namespace(destructive_mode=False, use_lxd=True, debug=False, enable_manifest=False, manifest_image_information=None, bind_ssh=False, build_for=None, http_proxy=None, https_proxy=None, ua_token=None, enable_experimental_ua_services=False, enable_experimental_plugins=False, enable_experimental_extensions=False, enable_developer_debug=False, enable_experimental_target_arch=False, target_arch=None, provider=None)
2024-02-07 13:54:09.677 CPU count (from process affinity): 8
2024-02-07 13:54:09.677 Invalid SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT ''
2024-02-07 13:54:09.677 Running on amd64 for amd64
2024-02-07 13:54:09.679 Checking build provider availability
2024-02-07 13:54:09.684 Retrieved snap config: {}
2024-02-07 13:54:09.684 Using provider 'lxd' passed as an argument.
2024-02-07 13:54:09.935 Executing on host: lxc --project default profile show local:default
2024-02-07 13:54:10.137 Using hostname 'snapcraft-name-on-amd64-for-amd64-13329032'
2024-02-07 13:54:10.137 Launching instance...
2024-02-07 13:54:10.137 Executing on host: lxc remote list --format=yaml
2024-02-07 13:54:10.215 Remote 'craft-com.ubuntu.cloud-buildd' already exists.
2024-02-07 13:54:10.215 Executing on host: lxc project list local: --format=yaml
2024-02-07 13:54:10.271 Set LXD instance name to 'snapcraft-name-on-amd64-for-amd64-13329032'
2024-02-07 13:54:10.271 Checking for instance 'snapcraft-name-on-amd64-for-amd64-13329032' in project 'snapcraft' in remote 'local'
2024-02-07 13:54:10.271 Executing on host: lxc --project snapcraft list local: --format=yaml
2024-02-07 13:54:10.467 Instance 'snapcraft-name-on-amd64-for-amd64-13329032' does not exist.
2024-02-07 13:54:10.475 Set LXD instance name to 'base-instance-snapcraft-buildd-base-v40--fd08e731c976fdc7c5bc'
2024-02-07 13:54:10.475 Checking for base instance 'base-instance-snapcraft-buildd-base-v40--fd08e731c976fdc7c5bc' in project 'snapcraft' in remote 'local'
2024-02-07 13:54:10.475 Executing on host: lxc --project snapcraft list local: --format=yaml
2024-02-07 13:54:10.633 Checking validity of instance 'base-instance-snapcraft-buildd-base-v40--fd08e731c976fdc7c5bc'.
2024-02-07 13:54:10.633 Executing on host: lxc --project snapcraft info local:base-instance-snapcraft-buildd-base-v40--fd08e731c976fdc7c5bc
2024-02-07 13:54:10.696 Executing on host: lxc --project snapcraft info local:base-instance-snapcraft-buildd-base-v40--fd08e731c976fdc7c5bc
2024-02-07 13:54:10.757 Executing on host: lxc --project snapcraft config get local:base-instance-snapcraft-buildd-base-v40--fd08e731c976fdc7c5bc user.craft_providers.status
2024-02-07 13:54:10.870 Instance 'base-instance-snapcraft-buildd-base-v40--fd08e731c976fdc7c5bc' is ready.
2024-02-07 13:54:10.871 Instance is valid.
2024-02-07 13:54:10.871 Creating instance from base instance
2024-02-07 13:54:10.871 Creating instance from base instance 'base-instance-snapcraft-buildd-base-v40--fd08e731c976fdc7c5bc'.
2024-02-07 13:54:10.871 Executing on host: lxc --project snapcraft list local: --format=yaml
2024-02-07 13:54:11.073 Executing on host: lxc --project snapcraft copy local:base-instance-snapcraft-buildd-base-v40--fd08e731c976fdc7c5bc local:snapcraft-name-on-amd64-for-amd64-13329032
2024-02-07 13:54:11.693 Executing on host: lxc --project snapcraft list local: --format=yaml
2024-02-07 13:54:11.865 Executing on host: lxc --project snapcraft config set local:snapcraft-name-on-amd64-for-amd64-13329032 raw.idmap 'both 1000 0'
2024-02-07 13:54:12.059 Executing on host: lxc --project snapcraft config get local:snapcraft-name-on-amd64-for-amd64-13329032 raw.idmap
2024-02-07 13:54:12.189 Got LXD idmap for instance 'snapcraft-name-on-amd64-for-amd64-13329032': 'both 1000 0'
2024-02-07 13:54:12.189 Starting instance
2024-02-07 13:54:12.189 Executing on host: lxc --project snapcraft start local:snapcraft-name-on-amd64-for-amd64-13329032
2024-02-07 13:54:13.361 Executing on host: lxc --project snapcraft file push /tmp/tmpiymrqvzc local:snapcraft-name-on-amd64-for-amd64-13329032/etc/hostname --mode=0644
2024-02-07 13:54:13.736 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 chown root:root /etc/hostname
2024-02-07 13:54:14.032 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 hostname -F /etc/hostname
2024-02-07 13:54:14.543 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 test -f /etc/craft-instance.conf
2024-02-07 13:54:14.909 Executing on host: lxc --project snapcraft file pull local:snapcraft-name-on-amd64-for-amd64-13329032/etc/craft-instance.conf /home/pierre/tmpvmdmax2l.tmp-craft/tmp171k5xch
2024-02-07 13:54:15.080 Instance has already been setup.
2024-02-07 13:54:15.080 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 cat /etc/os-release
2024-02-07 13:54:15.210 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 test -f /etc/craft-instance.conf
2024-02-07 13:54:15.324 Executing on host: lxc --project snapcraft file pull local:snapcraft-name-on-amd64-for-amd64-13329032/etc/craft-instance.conf /home/pierre/tmp0cg4q7ei.tmp-craft/tmprf2q21i_
2024-02-07 13:54:15.406 Instance is compatible with compatibility tag 'snapcraft-buildd-base-v4.0'
2024-02-07 13:54:15.406 No cache path set, not mounting cache directories.
2024-02-07 13:54:15.406 Waiting for environment to be ready...
2024-02-07 13:54:15.406 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2024-02-07 13:54:15.636 systemctl is-system-running status: starting
2024-02-07 13:54:15.887 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2024-02-07 13:54:15.982 systemctl is-system-running status: starting
2024-02-07 13:54:16.232 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2024-02-07 13:54:16.448 Waiting for networking to be ready...
2024-02-07 13:54:16.448 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 getent hosts snapcraft.io
2024-02-07 13:54:16.643 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 snap unset system proxy.http
2024-02-07 13:54:17.041 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 snap unset system proxy.https
2024-02-07 13:54:17.346 Installing snap 'snapcraft' with channel=None and classic=True
2024-02-07 13:54:17.346 Installing snap 'snapcraft' from host (classic=True)
2024-02-07 13:54:17.355 Installing base snap 'core22' for 'snapcraft' from host
2024-02-07 13:54:17.355 Installing snap 'core22' from host (classic=False)
2024-02-07 13:54:17.359 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 test -f /etc/craft-instance.conf
2024-02-07 13:54:17.474 Executing on host: lxc --project snapcraft file pull local:snapcraft-name-on-amd64-for-amd64-13329032/etc/craft-instance.conf /home/pierre/tmp7z5sp468.tmp-craft/tmpbl9fuvum
2024-02-07 13:54:17.539 Revisions found: host='1033', target='1033'
2024-02-07 13:54:17.539 Skipping snap injection: target is already up-to-date with revision on host
2024-02-07 13:54:17.539 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 test -f /etc/craft-instance.conf
2024-02-07 13:54:17.654 Executing on host: lxc --project snapcraft file pull local:snapcraft-name-on-amd64-for-amd64-13329032/etc/craft-instance.conf /home/pierre/tmpvg5yjn9m.tmp-craft/tmpw2za4xzm
2024-02-07 13:54:17.836 Revisions found: host='10436', target='10436'
2024-02-07 13:54:17.836 Skipping snap injection: target is already up-to-date with revision on host
2024-02-07 13:54:17.998 Setting instance timezone to match host timezone 'Europe/Paris'.
2024-02-07 13:54:17.998 Executing on host: lxc --project snapcraft config set local:snapcraft-name-on-amd64-for-amd64-13329032 environment.TZ Europe/Paris
2024-02-07 13:54:18.117 Executing on host: lxc --project snapcraft config device show local:snapcraft-name-on-amd64-for-amd64-13329032
2024-02-07 13:54:18.201 Executing on host: lxc --project snapcraft config device add local:snapcraft-name-on-amd64-for-amd64-13329032 disk-/root/project disk source=/home/pierre/workspace/vlc-docker/vlc-snap path=/root/project
2024-02-07 13:54:18.308 Executing on host: lxc --project snapcraft file push /tmp/tmpm501u0zl local:snapcraft-name-on-amd64-for-amd64-13329032/root/.bashrc --mode=644
2024-02-07 13:54:18.387 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 chown root:root /root/.bashrc
2024-02-07 13:54:18.458 Emitter: Pausing control of the terminal
2024-02-07 13:55:54.109 Emitter: Resuming control of the terminal
2024-02-07 13:55:54.110 Executing in container: lxc --project snapcraft exec local:snapcraft-name-on-amd64-for-amd64-13329032 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 test -f /tmp/snapcraft.log
2024-02-07 13:55:54.475 Executing on host: lxc --project snapcraft file pull local:snapcraft-name-on-amd64-for-amd64-13329032/tmp/snapcraft.log /home/pierre/tmpeg_wy630.tmp-craft/tmpslpinc1y
2024-02-07 13:55:54.810 Logs retrieved from managed instance:
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.511 Starting Snapcraft 8.0.2
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.513 lifecycle command: 'try', arguments: Namespace(destructive_mode=False, use_lxd=False, debug=False, enable_manifest=False, manifest_image_information=None, bind_ssh=False, build_for='amd64', http_proxy=None, https_proxy=None, ua_token=None, enable_experimental_ua_services=False, enable_experimental_plugins=False, enable_experimental_extensions=False, enable_developer_debug=False, enable_experimental_target_arch=False, target_arch=None, provider=None)
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.513 command: try, arguments: Namespace(destructive_mode=False, use_lxd=False, debug=False, enable_manifest=False, manifest_image_information=None, bind_ssh=False, build_for='amd64', http_proxy=None, https_proxy=None, ua_token=None, enable_experimental_ua_services=False, enable_experimental_plugins=False, enable_experimental_extensions=False, enable_developer_debug=False, enable_experimental_target_arch=False, target_arch=None, provider=None)
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.519 CPU count (from process affinity): 8
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.519 Invalid SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT ''
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.519 Running on amd64 for amd64
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.522 Initializing parts lifecycle
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.522 is_snap: True, SNAP_NAME set to snapcraft
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.524 process kde-neon/sdk:Step.PULL
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.524 add action kde-neon/sdk:Step.PULL(ActionType.RUN)
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.524 process myapp:Step.PULL
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.524 add action myapp:Step.PULL(ActionType.RUN)
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.525 process kde-neon/sdk:Step.BUILD
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.525 add action kde-neon/sdk:Step.BUILD(ActionType.RUN)
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.525 process myapp:Step.BUILD
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.525 add action myapp:Step.BUILD(ActionType.RUN)
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.525 process kde-neon/sdk:Step.STAGE
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.525 add action kde-neon/sdk:Step.STAGE(ActionType.RUN)
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.526 process myapp:Step.STAGE
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.526 add action myapp:Step.STAGE(ActionType.RUN)
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.526 process kde-neon/sdk:Step.PRIME
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.526 add action kde-neon/sdk:Step.PRIME(ActionType.RUN)
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.527 process myapp:Step.PRIME
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.527 add action myapp:Step.PRIME(ActionType.RUN)
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.529 ignore patterns: ['*.snap']
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.530 plugin build packages: {'gcc', 'make'}
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.530 part build snaps: ['kf5-5-108-qt-5-15-10-core22-sdk']
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.530 ignore patterns: ['*.snap']
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.530 Installing build-packages
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:23.531 Requested build-packages: ['gcc', 'make']
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:25.116 Marking gcc (and its dependencies) to be fetched
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:25.116 package: gcc
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:25.126 Marking make (and its dependencies) to be fetched
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:25.126 package: make
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:25.174 Requested build-packages already installed: ['gcc', 'make']
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:25.422 Installing build-snaps
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:25.641 Installing snap: gtk-common-themes
2024-02-07 13:55:54.810 :: 2024-02-07 13:54:43.457 Installing snap: kf5-5-108-qt-5-15-10-core22
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:15.817 Installing snap: kf5-5-108-qt-5-15-10-core22-sdk
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.479 verify plugin environment for part 'kde-neon/sdk'
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.483 verify plugin environment for part 'myapp'
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.486 Pulling kde-neon/sdk
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.490 execute action kde-neon/sdk:Action(part_name='kde-neon/sdk', step=Step.PULL, action_type=ActionType.RUN, reason=None, project_vars=None, properties=ActionProperties(changed_files=None, changed_dirs=None))
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.511 Pulling myapp
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.512 execute action myapp:Action(part_name='myapp', step=Step.PULL, action_type=ActionType.RUN, reason=None, project_vars=None, properties=ActionProperties(changed_files=None, changed_dirs=None))
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.547 Building kde-neon/sdk
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.548 execute action kde-neon/sdk:Action(part_name='kde-neon/sdk', step=Step.BUILD, action_type=ActionType.RUN, reason=None, project_vars=None, properties=ActionProperties(changed_files=None, changed_dirs=None))
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.549 load state file: /root/parts/kde-neon/sdk/state/pull
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.561 remove directory /root/parts/kde-neon/sdk/build
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.564 Executing PosixPath('/root/parts/kde-neon/sdk/run/build.sh')
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.569 :: + make -j8 PLATFORM_PLUG=kf5-5-108-qt-5-15-10-core22
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.584 :: + make -j8 install PLATFORM_PLUG=kf5-5-108-qt-5-15-10-core22 DESTDIR=/root/parts/kde-neon/sdk/install
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.586 :: install -d /root/parts/kde-neon/sdk/install/data-dir
2024-02-07 13:55:54.810 :: 2024-02-07 13:55:52.588 :: install -d /root/parts/kde-neon/sdk/install/data-dir/kf5
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:52.590 :: install -D -m755 desktop-launch "/root/parts/kde-neon/sdk/install/snap/command-chain"/desktop-launch
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:52.593 :: install -D -m755 locale-gen "/root/parts/kde-neon/sdk/install/snap/command-chain"/locale-gen
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:52.597 :: install -D -m755 hooks-configure-desktop "/root/parts/kde-neon/sdk/install/snap/command-chain"/hooks-configure-desktop
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.338 Building myapp
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.338 execute action myapp:Action(part_name='myapp', step=Step.BUILD, action_type=ActionType.RUN, reason=None, project_vars=None, properties=ActionProperties(changed_files=None, changed_dirs=None))
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.339 load state file: /root/parts/myapp/state/pull
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.347 remove directory /root/parts/myapp/build
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.358 :: + pkg-config Qt5WebView --cflags
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.387 :: Package Qt5WebView was not found in the pkg-config search path.
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.388 :: Perhaps you should add the directory containing `Qt5WebView.pc'
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.388 :: to the PKG_CONFIG_PATH environment variable
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.388 :: No package 'Qt5WebView' found
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.558 'override-build' in part 'myapp' failed with code 1.
2024-02-07 13:55:54.811 :: Review the scriptlet and make sure it's correct.
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.568 Traceback (most recent call last):
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 File "/snap/snapcraft/10436/lib/python3.10/site-packages/snapcraft/parts/parts.py", line 190, in run
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 aex.execute(action, stdout=stream, stderr=stream)
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 File "/snap/snapcraft/10436/lib/python3.10/site-packages/craft_parts/executor/executor.py", line 318, in execute
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 self._executor.execute(actions, stdout=stdout, stderr=stderr)
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 File "/snap/snapcraft/10436/lib/python3.10/site-packages/craft_parts/executor/executor.py", line 137, in execute
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 self._run_action(act, stdout=stdout, stderr=stderr)
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 File "/snap/snapcraft/10436/lib/python3.10/site-packages/craft_parts/executor/executor.py", line 205, in _run_action
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 handler.run_action(action, stdout=stdout, stderr=stderr)
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 File "/snap/snapcraft/10436/lib/python3.10/site-packages/craft_parts/executor/part_handler.py", line 172, in run_action
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 state = handler(step_info, stdout=stdout, stderr=stderr)
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 File "/snap/snapcraft/10436/lib/python3.10/site-packages/craft_parts/executor/part_handler.py", line 309, in _run_build
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 self._run_step(
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 File "/snap/snapcraft/10436/lib/python3.10/site-packages/craft_parts/executor/part_handler.py", line 485, in _run_step
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 step_handler.run_scriptlet(
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 File "/snap/snapcraft/10436/lib/python3.10/site-packages/craft_parts/executor/step_handler.py", line 280, in run_scriptlet
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 raise errors.ScriptletRunError(
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 craft_parts.errors.ScriptletRunError: 'override-build' in part 'myapp' failed with code 1.
2024-02-07 13:55:54.811 :: 2024-02-07 13:55:53.569 Review the scriptlet and make sure it's correct.
2024-02-07 13:55:54.811 Executing on host: lxc --project snapcraft config device show local:snapcraft-name-on-amd64-for-amd64-13329032
2024-02-07 13:55:54.864 Executing on host: lxc --project snapcraft config device remove local:snapcraft-name-on-amd64-for-amd64-13329032 disk-/root/prime
2024-02-07 13:55:55.006 Executing on host: lxc --project snapcraft config device remove local:snapcraft-name-on-amd64-for-amd64-13329032 disk-/root/project
2024-02-07 13:55:55.160 Executing on host: lxc --project snapcraft stop local:snapcraft-name-on-amd64-for-amd64-13329032
2024-02-07 13:55:59.536 Failed to execute try in instance.
2024-02-07 13:55:59.540 Traceback (most recent call last):
2024-02-07 13:55:59.540 File "/snap/snapcraft/10436/lib/python3.10/site-packages/snapcraft/parts/lifecycle.py", line 469, in _run_in_provider
2024-02-07 13:55:59.540 instance.execute_run(cmd, check=True, cwd=output_dir)
2024-02-07 13:55:59.540 File "/snap/snapcraft/10436/lib/python3.10/site-packages/craft_providers/lxd/lxd_instance.py", line 293, in execute_run
2024-02-07 13:55:59.540 return self.lxc.exec(
2024-02-07 13:55:59.540 File "/snap/snapcraft/10436/lib/python3.10/site-packages/craft_providers/lxd/lxc.py", line 387, in exec
2024-02-07 13:55:59.540 return runner(final_cmd, timeout=timeout, check=check, **kwargs)
2024-02-07 13:55:59.540 File "/snap/snapcraft/10436/usr/lib/python3.10/subprocess.py", line 526, in run
2024-02-07 13:55:59.540 raise CalledProcessError(retcode, process.args,
2024-02-07 13:55:59.540 subprocess.CalledProcessError: Command '['lxc', '--project', 'snapcraft', 'exec', 'local:snapcraft-name-on-amd64-for-amd64-13329032', '--cwd', '/root/project', '--', 'env', 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin', 'SNAPCRAFT_MANAGED_MODE=1', 'snapcraft', 'try', '--verbosity=brief', '--build-for', 'amd64']' returned non-zero exit status 1.
2024-02-07 13:55:59.540 Recommended resolution: Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
2024-02-07 13:55:59.540 Full execution log: '/home/pierre/.local/state/snapcraft/log/snapcraft-20240207-135409.669600.log
```
### Additional context
_No response_
Evaluation history
No evaluation history available.