Am Mittwoch, 5. Juni 2024, 13:20:48 MESZ schrieb daniel.garcia@suse.com:
On mié, 2024-06-05 at 13:05 +0200, Axel Braun wrote:
Hi, has anyone an example or documentation on how to use the meson build system in OBS? oS-wiki does not provide info....
Thanks Axel
All the GNOME stack uses meson, so maybe you can look to some package in GNOME:Factory project, for example nautilus [1]
Thank you both, that was quite helpful! When I hand over the parameter like in the mentioned example %meson \ -D usbdropdir=%{ifddir} \ -D docdir=%{_docdir}/%{name} \ -D with-systemdsystemunitdir=%{_unitdir} \ -D polkit=TRUE I get an error: [ 5s] + /usr/bin/meson setup --buildtype=plain --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload --auto-features=enabled . x86_64-suse-linux -D usbdropdir=/usr/lib64/readers ' ' [ 5s] usage: meson [-h] [ 5s] {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,help} [ 5s] ... [ 5s] meson: error: unrecognized arguments: [ 5s] error: Bad exit status from /var/tmp/rpm-tmp.mI4pnD (%build) any idea about this unrecognized argument? https://build.opensuse.org/package/show/home:DocB:branches:security:chipcard... Thanks Axel