mate-desktop / mate-control-center

Utilities to configure the MATE desktop
https://mate-desktop.org
GNU General Public License v2.0
68 stars 59 forks source link

Add meson build support #733

Closed zhuyaliang closed 11 months ago

zhuyaliang commented 1 year ago

test meson

meson setup _build --prefix=/usr 
ninja -C _build

DESTDIR=/tmp/meson_dir meson install -C _build

test make

 ./autogen.sh --prefix=/usr 
make

make install DESTDIR=/tmp/make_dir
raveit65 commented 1 year ago

When PR is still in progress you can convert them to a draft. grafik This feature is also in gitlab available.

lukefromdc commented 12 months ago

The previous problems are fixed but the menu file is not found. Trying to launch the control center I get ** (mate-control-center:102205): WARNING **: 01:54:45.669: Menu tree loading got error:Failed to look up menu_file for "matecc.menu"

matecc.menu turned up in /etc/xdg/autostart

zhuyaliang commented 12 months ago

@lukefromdc Please delete /etc/xdg/autostart/matecc.menu

zhuyaliang commented 12 months ago

Please test again

lukefromdc commented 12 months ago

if we can get another review, ideally different distro and with accountsservice installed it would be nice. Debian Unstable here

raveit65 commented 11 months ago

Mime dir is at the wrong place and a lot of files are missing. Please use your own installation instructions and compare.

[rave@mother ~]$ ls -la /tmp/meson_dir/usr/mime/
insgesamt 0
drwxr-xr-x 3 rave rave  60 21. Dez 16:20 .
drwxr-xr-x 7 rave rave 140 21. Dez 16:20 ..
drwxr-xr-x 2 rave rave  60 21. Dez 16:20 packages
[rave@mother ~]$ ls -la /tmp/make_dir/usr/share/mime/
insgesamt 32
drwxr-xr-x  4 rave rave 320 21. Dez 16:27 .
drwxr-xr-x 14 rave rave 280 21. Dez 16:27 ..
-rw-r--r--  1 rave rave   0 21. Dez 16:27 aliases
drwxr-xr-x  2 rave rave  60 21. Dez 16:27 application
-rw-r--r--  1 rave rave   0 21. Dez 16:27 generic-icons
-rw-r--r--  1 rave rave 131 21. Dez 16:27 globs
-rw-r--r--  1 rave rave 134 21. Dez 16:27 globs2
-rw-r--r--  1 rave rave   0 21. Dez 16:27 icons
-rw-r--r--  1 rave rave  12 21. Dez 16:27 magic
-rw-r--r--  1 rave rave 244 21. Dez 16:27 mime.cache
drwxr-xr-x  2 rave rave  60 21. Dez 16:27 packages
-rw-r--r--  1 rave rave  62 21. Dez 16:27 subclasses
-rw-r--r--  1 rave rave  16 21. Dez 16:27 treemagic
-rw-r--r--  1 rave rave  33 21. Dez 16:27 types
-rw-r--r--  1 rave rave   4 21. Dez 16:27 version
-rw-r--r--  1 rave rave   0 21. Dez 16:27 XMLnamespaces
raveit65 commented 11 months ago

The rest of the installation is the same as with autotools. Function of applications aren't tested because i do not use meson for my RPMs for fedora. I am to lazy to rewrite my spec files :-)

zhuyaliang commented 11 months ago

Need to run update-mime-database -V /tmp/meson_dir/usr/share/mime/ update mime data,I have added meson_post_istall. py, and the mime data will be updated after the installation is completed

raveit65 commented 11 months ago

Not sure if this is a good idea to add meson_post_install.py, because all this commands glib-compile-schemas, 'gtk-update-icon-cache' and 'update-mime-database` are done with rpm package installation process. So this is a double action. I am sure debian and archlinux packaging do the same.

raveit65 commented 11 months ago

Btw. the script itself might be OK. But should this be called by meson.build?

raveit65 commented 11 months ago

After running update-mime-database -V /tmp/meson_dir/usr/share/mime/ the mime data are the same as with autotools. Also the mime datadir are the same now. I thought you wants to run the meson_post_install.py with meson.build ? This didn't happen here and i am fine with it.

lukefromdc commented 11 months ago

The package should be installable directly with ninja -C build install in which case we then need to recompile schemas from the build system as the packaging system is bypassed.

raveit65 commented 11 months ago

I tested it again and mine dir are the same after running update-mime-database -V /tmp/meson_dir/usr/share/mime/.