-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.0 Beta1
-
None
-
-
0.1
-
bdc5526f0 (dev), b7dd88b62 (6.8)
QtPDF depends on cups-config during 'bitbake <image> -c populate_sdk'.
Without the attached patch the build fails with:
| CMake Error at /oe/tmp/work/cortexa72-cortexa53-crypto-poky-linux/qtpdf/6.8.0/git/cmake/Gn.cmake:80 (message):
| -- GN FAILED
| ERROR at //printing/BUILD.gn:456:16: Script returned non-zero exit code.
| libs = exec_script("cups_config_helper.py",
| ^----------
| Current dir:
| /oe/tmp/work/cortexa72-cortexa53-crypto-poky-linux/qtpdf/6.8.0/build/src/pdf/Release/aarch64/
| Command:
| /oe/tmp/work/cortexa72-cortexa53-crypto-poky-linux/qtpdf/6.8.0/recipe-sysroot-native/usr/bin/python3-native/python3
| /oe/tmp/work/cortexa72-cortexa53-crypto-poky-linux/qtpdf/6.8.0/git/src/3rdparty/chromium/printing/cups_config_helper.py
| --libs-for-gn
| Returned 1.
| stderr:
| Traceback (most recent call last):
| File "/oe/tmp/work/cortexa72-cortexa53-crypto-poky-linux/qtpdf/6.8.0/git/src/3rdparty/chromium/printing/cups_config_helper.py", line 108,
| sys.exit(main())
| ^^^^^^
| File "/oe/tmp/work/cortexa72-cortexa53-crypto-poky-linux/qtpdf/6.8.0/git/src/3rdparty/chromium/printing/cups_config_helper.py", line 92, in main
| flags = run_cups_config(cups_config, mode)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/oe/tmp/work/cortexa72-cortexa53-crypto-poky-linux/qtpdf/6.8.0/git/src/3rdparty/chromium/printing/cups_config_helper.py", line 35, in run_cups_config
| cups = subprocess.Popen([cups_config, '--cflags', '--ldflags', '--libs'],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/oe/tmp/work/cortexa72-cortexa53-crypto-poky-linux/qtpdf/6.8.0/recipe-sysroot-native/usr/lib/python3.12/subprocess.py", line 1026, in __init__
| self._execute_child(args, executable, preexec_fn, close_fds,
| File "/oe/tmp/work/cortexa72-cortexa53-crypto-poky-linux/qtpdf/6.8.0/recipe-sysroot-native/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
| raise child_exception_type(errno_num, err_msg, err_filename)
| FileNotFoundError: [Errno 2] No such file or directory: 'cups-config'
| See //content/web_test/BUILD.gn:369:15: which caused the file to be
| included.
| deps += [ "//printing" ]
| ^-----------
| ninja: build stopped: subcommand failed.