[Fedora-packaging] Gconf schema files in packages

Ankur Sinha sanjay.ankur at gmail.com
Mon Dec 2 00:58:46 UTC 2013


Hi,

I've submitted a review ticket for hamster-time-tracker[1] and the build
system employed (waf) installs the schema to the correct location
%{_sysconfir}/gconf/schemas. The guidelines however say that it
shouldnt[2]. I checked another package, revelation (build.log)[3], and
the build system does *place* the file in the correct location, but
doesn't employ the gconftool-2 to *register* the schemas. So, the
question is:

Should the build system *place* the file, but not *register* it? Or
should the source's build system not *place* the file at all, and just
*generate* it? RPM doesn't appear to pick up the file and place it if
the build system doesn't. (I tested this by patching out the place
schema command in the wscript for my package. It wasn't picked up
automatically.)

If the wiki page[2] means: *place* the file in the correct location but
do not *register* it with the gconf daemon, can the language be
improved? It currently says:
"For packaging purposes, we have to disable schema *installation* during
build, and also *register* the values in the [NAME] .schemas file with
the gconf daemon on installation and unregister them on removal. Due to
the ordering of the scriptlets, this is a four step process. "

It would be clearer if it read something on the lines of:

"For packaging purposes, we let the source's build system
(autotools/waf/cmake/etc.) place the file in the correct location, but
disable schema *registration/un-registration* using the methods
described below. We register or un-register the schemas manually in the
spec using the following scriptlets."

Basically, it isn't clear what "disable install in the build" implies.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1036254
[2] http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GConf
[3]
http://kojipkgs.fedoraproject.org//packages/revelation/0.4.14/5.fc20/data/logs/x86_64/build.log
-- 
Thanks,
Warm regards,
Ankur (FranciscoD)

http://fedoraproject.org/wiki/User:Ankursinha

Join Fedora! Come talk to us!
http://fedoraproject.org/wiki/Fedora_Join_SIG

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://lists.fedoraproject.org/pipermail/packaging/attachments/20131202/aa8e1051/attachment.sig>


More information about the packaging mailing list