Tests try to install an executable to a system-wide location
not quite sure why that happens, but trying to run the tests with just meson test -C build
as a non-privileged user fails:
Compiling glycin-image-rs v0.1.0 (/home/patrycja/aports/community/glycin/src/glycin-0.1.1/loaders/glycin-image-rs)
Finished release [optimized] target(s) in 50.61sycin-image-rs(bin)
[12/12] Generating loaders/glycin-image-rs-cp-binary with a custom command
1/2 test-install FAIL 0.51s exit status 30
>>> MALLOC_PERTURB_=96 /usr/bin/meson install -C /home/patrycja/aports/community/glycin/src/glycin-0.1.1/output
―――――――――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――――――――――
stdout:
[1/8] Generating loaders/glycin-heif with a custom command (wrapped by meson to set env)
[2/8] Generating loaders/glycin-heif-cp-binary with a custom command
[3/8] Generating loaders/glycin-svg with a custom command (wrapped by meson to set env)
[4/8] Generating loaders/glycin-svg-cp-binary with a custom command
[5/8] Generating loaders/glycin-jxl with a custom command (wrapped by meson to set env)
[6/8] Generating loaders/glycin-jxl-cp-binary with a custom command
[7/8] Generating loaders/glycin-image-rs with a custom command (wrapped by meson to set env)
[8/8] Generating loaders/glycin-image-rs-cp-binary with a custom command
ERROR: Unhandled python OSError. This is probably not a Meson bug, but an issue with your build environment.
stderr:
ninja: entering directory '/home/patrycja/aports/community/glycin/src/glycin-0.1.1/output'
Finished release [optimized] target(s) in 0.07s
Finished release [optimized] target(s) in 0.10s
Finished release [optimized] target(s) in 0.07s
Finished release [optimized] target(s) in 0.08s
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/mesonbuild/mesonmain.py", line 194, in run
return options.run_func(options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mesonbuild/minstall.py", line 863, in run
installer.do_install(datafilename)
File "/usr/lib/python3.11/site-packages/mesonbuild/minstall.py", line 546, in do_install
self.install_targets(d, dm, destdir, fullprefix)
File "/usr/lib/python3.11/site-packages/mesonbuild/minstall.py", line 740, in install_targets
file_copied = self.do_copyfile(fname, outname, makedirs=(dm, outdir))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mesonbuild/minstall.py", line 411, in do_copyfile
dirmaker.makedirs(outdir, exist_ok=True)
File "/usr/lib/python3.11/site-packages/mesonbuild/minstall.py", line 114, in makedirs
self.makedirs_impl(path, exist_ok=exist_ok)
File "/usr/lib/python3.11/site-packages/mesonbuild/minstall.py", line 315, in makedirs
os.makedirs(*args, **kwargs)
File "<frozen os>", line 215, in makedirs
File "<frozen os>", line 225, in makedirs
OSError: [Errno 30] Read-only file system: '/usr/libexec/glycin-loaders'
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――