Hello,
thank you very much for your explanation. Very useful tips.
I started from the docs, but this is (unfortunately) a problematic project I suppose.
Also using your yaml file it still doesn’t work.
Reading the makefile, it seems to only build the mo files (hypnotix/Makefile at master · linuxmint/hypnotix · GitHub) is that fine?
your snapcraft returns the following (I also did some tests changing some arguments but I was not able to make it work)
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.343 Failed to run the build script for part ‘hypnotix’.
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 Traceback (most recent call last):
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 File "/snap/snapcraft/8931/lib/python3.8/site-packages/craft_parts/executor/step_handler.py", line 144, in _builtin_build
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 subprocess.run(
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 File "/snap/snapcraft/8931/usr/lib/python3.8/subprocess.py", line 516, in run
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 raise CalledProcessError(retcode, process.args,
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 subprocess.CalledProcessError: Command '['/root/parts/hypnotix/run/build.sh']' returned non-zero exit status 2.
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 The above exception was the direct cause of the following exception:
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 Traceback (most recent call last):
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 File "/snap/snapcraft/8931/lib/python3.8/site-packages/snapcraft/parts/parts.py", line 171, in run
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 aex.execute(action, stdout=stream, stderr=stream)
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 File "/snap/snapcraft/8931/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 304, in execute
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 self._executor.execute(actions, stdout=stdout, stderr=stderr)
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 File "/snap/snapcraft/8931/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 128, in execute
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 self._run_action(act, stdout=stdout, stderr=stderr)
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 File "/snap/snapcraft/8931/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 193, in _run_action
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 handler.run_action(action, stdout=stdout, stderr=stderr)
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 File "/snap/snapcraft/8931/lib/python3.8/site-packages/craft_parts/executor/part_handler.py", line 168, in run_action
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 state = handler(step_info, stdout=stdout, stderr=stderr)
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 File "/snap/snapcraft/8931/lib/python3.8/site-packages/craft_parts/executor/part_handler.py", line 305, in _run_build
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 self._run_step(
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 File "/snap/snapcraft/8931/lib/python3.8/site-packages/craft_parts/executor/part_handler.py", line 489, in _run_step
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 return step_handler.run_builtin()
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 File "/snap/snapcraft/8931/lib/python3.8/site-packages/craft_parts/executor/step_handler.py", line 106, in run_builtin
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 return handler()
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 File "/snap/snapcraft/8931/lib/python3.8/site-packages/craft_parts/executor/step_handler.py", line 152, in _builtin_build
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 raise errors.PluginBuildError(part_name=self._part.name) from process_error
2023-04-29 11:40:11.965 :: 2023-04-29 09:40:11.352 craft_parts.errors.PluginBuildError: Failed to run the build script for part 'hypnotix'.
