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
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] [1] https://build.opensuse.org/projects/GNOME:Factory/packages/nautilus/files/na... -- Daniel García Moreno Python Packager
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
On Thu, Jun 6, 2024 at 9:37 AM Axel Braun <docb@opensuse.org> wrote:
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:
The error I get with your project is: meson.build:12:0: ERROR: Unknown options: "docdir, with-systemdsystemunitdir" And yes, neither docdir nor with-systemdsystemunitdir are valid options of this package. Look in meson.options of that package what valid options are. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect, Future Technologies SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nuernberg, Germany Managing Director: Ivo Totev, Andrew McDonald, Werner Knoblich (HRB 36809, AG Nürnberg)
Hi, quite simple: BuildRequires: meson And now use meson according to the project documentation in your spec file (%build and %install sections). As example: https://build.opensuse.org/package/show/Linux-PAM/wtmpdb So in the end you use it in the same way as autoconf and friends. Thorsten On Wed, Jun 5, 2024 at 1:06 PM Axel Braun <docb@opensuse.org> 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
-- Thorsten Kukuk, Distinguished Engineer, Senior Architect, Future Technologies SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nuernberg, Germany Managing Director: Ivo Totev, Andrew McDonald, Werner Knoblich (HRB 36809, AG Nürnberg)
participants (3)
-
Axel Braun
-
daniel.garcia@suse.com
-
Thorsten Kukuk