You are not logged in.

#1 2011-08-27 13:48:04

ekd123
Member
Registered: 2011-08-21
Posts: 4

[SOLVED] Remove GSettings schemas when removing the package

Hi, there.

I'm packaging a software. It'll install a GSettings schema. `make install` will install it completely.

But when I want to uninstall it, I wrote:
--
uninstall () { make uninstall }
--

No. It didn't do anything. So how can I uninstall it completely? sad

Best Regards,
Mike.

Last edited by ekd123 (2011-08-27 16:31:45)

Offline

#2 2011-08-27 14:15:41

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] Remove GSettings schemas when removing the package

/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas

that needs to be run at post_install, post_upgrade and post_remove in a .install file


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2011-08-27 14:26:44

z0id
Member
From: Romania
Registered: 2010-02-02
Posts: 122

Re: [SOLVED] Remove GSettings schemas when removing the package

Not sure what your problem is.

The schema file should be installed (and removed) just as any other files in the package, I think. However, you must include a glib-compile-schemas in post_install and post_remove. Make sure the package doesn't include schemas.compiled (or smth) file. More on that here https://wiki.archlinux.org/index.php/Gn … guidelines

Also, when making a package, everything should be installed in $pkgdir, not on the root fs. Therefore, no need for uninstall, pacman does that.


/usr/bin/drinking

Offline

#4 2011-08-27 16:26:51

ekd123
Member
Registered: 2011-08-21
Posts: 4

Re: [SOLVED] Remove GSettings schemas when removing the package

Thank you very much! I almost forgot to use .install file.

Offline

Board footer

Powered by FluxBB