PDA

View Full Version : Compiz extra debian package


fab
November 11th, 2006, 05:45 PM
Hello !
I made debian packages for the compiz-extra plugins !
They are available for amd64 and i386 archis ( I have two computer one in both arch so it is easy to make both packages )

I think some improvement can be made. Here are the things i think are not good :

- the lib*.o and lib*.la libraries are installed and i think they shouldn't ( I don't know how not to put them ... i thought putting a install file in the debian sub dir was meant for it but that doesn't work )

- I put the schemas in /etc/gconf/schemas that is ok but when you install the package only a fixed set of schemas are really installed into gconf, this should be made dependent on the plugins installed but i don't see how creating the postinst files depending on an environment variable.

Apart from that it works fine.

Well it seems i can't attach files so here are the two debian files and the tar.gz of the source with the new debian folder.
If someone used to debian packages could tell me how to correct my previous error i'll be really glad !

By the way i also put my debian packages for current compiz git version.
you can grab all of them here : Packages (http://fabs0028.free.fr/compiz/).

Bye

mikedee
November 11th, 2006, 06:08 PM
I put the schemas in /etc/gconf/schemas that is ok but when you install the package only a fixed set of schemas are really installed into gconf, this should be made dependent on the plugins installed but i don't see how creating the postinst files depending on an environment variable.

I think it should be possible to write a script which joins all of the schema files together and then appends the correct enclosing xml. When I dump each plugin's schema, I open it in my editor and manually add this to the top (as well as the corresponding closing tags at the bottom).

<gconfschemafile>
<schemalist>

This is so that you can load each one individually. It would be easier for me to not have to do this, so if I leave them as I come it should be easy enough to script the installation of the schemas in one hit.

ie something like

#!/bin/sh

$DUMP_FILE=/tmp/compiz-extra.schemas
echo "<gconfschemafile><schemalist>" > $DUMP_FILE
cat */*.schema >> $DUMP_FILE
echo "</schemalist></gconfschemafile>" >> $DUMP_FILE
gconftool-2 --install-schema-file=$DUMP_FILE
rm -f $DUMP_FILE

fab
November 11th, 2006, 07:29 PM
Yes i agree, i saw that it shouldn't be hard but i wanted to talk about it here so that we could find a solution.

The only problem i saw is that it is a problem if you wanna distribute the plugins alone not in a subpackage because the file is not ok !

So if you agree i'll do the following :

Remove the two surroundings tags.
Make a script as you made and create a compiz-extra.schema that will be installed instead of each separate schema file.

I'll keep you updated here !

mikedee
November 11th, 2006, 08:29 PM
I think in the long run it is better that everything is distributed together so that it is as easy as possible for everyone. If anyone wants to compile an individual plugin then they should be able to modify the schema file themselves.

I have put all of the unaltered schema files for each plugin into a tarball here

http://www.anykeysoftware.co.uk/compiz/plugins/schemas.tar.gz

It would probably be easier to manage them in their own folder, but if you want them in the plugin specific folder, you can modify the generate script

fab
November 12th, 2006, 11:41 AM
Thanx for the file.
I agree that in the long run it would be better to manage them alltogether.

I think maybe we should make a plugins (or src) folder with the sources and a schemas folder so that all are together.

I can do that if you agree on the layout !

RAOF
November 13th, 2006, 10:16 PM
Just to help avoid duplicated effort, what are the differences between this package and Gandalfn's compiz-freedesktop-extra packages?