Bug 795241 - glabels has invalid schema file
Summary: glabels has invalid schema file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: glabels
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Gordon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 795582
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-20 04:03 UTC by Daniel Belton
Modified: 2012-06-13 06:24 UTC (History)
3 users (show)

Fixed In Version: glabels-3.0.0-14.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-22 21:42:05 UTC
Type: ---


Attachments (Terms of Use)
org.gnome.glabels-3.gschema.xml (5.62 KB, text/xml)
2012-02-20 04:03 UTC, Daniel Belton
no flags Details

Description Daniel Belton 2012-02-20 04:03:29 UTC
Created attachment 564278 [details]
org.gnome.glabels-3.gschema.xml

Description of problem:
glabels gives errors due to invalid schema file

Version-Release number of selected component (if applicable): glabels 3.0.0-8.fc16


How reproducible:

Anytime a yum update is run that executes a post install 

%posttrans
glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas ||:


Steps to Reproduce:
1. run yum update 
2. If package is updated that runs glib-compile-schemas
3. then error occurs
  
Actual results:

Error when yum updates:

warning: undefined reference to <schema id='org.gnome.glabels.locale'/>
warning: undefined reference to <schema id='org.gnome.glabels.objects'/>
warning: undefined reference to <schema id='org.gnome.glabels.history'/>
warning: undefined reference to <schema id='org.gnome.glabels.ui'/>

package being updated ran this:
%posttrans
glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas ||:


Expected results:

No errors


Additional info:

attached schema file that I believe is causing error. In one location the first schema listed above is referenced as org.gnome.glabels.locale and then all other places it is referenced as org.gnome.glabels-3.locale (likewise for the other ones)

Comment 1 Peter Gordon 2012-02-20 18:53:24 UTC
Thanks for the bug report - I'll look into it right away. The first thing that strikes me as odd is that the %posttrans script in the spec file does not have the "--allow-any-name" option. 

Oh well. I'll patch the schema to use org.gnome.glabels-3 instead of org.gnome.glabels and see if that fixes it. :)

Comment 2 Peter Gordon 2012-02-21 00:50:45 UTC
[ Adding a bug dependency on 795582, as building gLabels with this fix requires libqrencode to fix its pkgconfig file. ]

Comment 3 Daniel Belton 2012-03-06 07:30:58 UTC
so what is the status of this?

I can verify that changing the schema file to use org.gnome-glabels-3 instead of org.gnome.glabels does indeed fix the issue, and have manually edited mine here in the meantime.

Comment 4 Peter Gordon 2012-03-09 03:43:22 UTC
Hi, Daniel.

I've been very busy this past week with school projects and whatnot; but I will get to the qrencode fixes tomorrow and then gLabels fixes will be done shortly thereafter. :)

Thanks

Comment 5 Fedora Update System 2012-03-22 07:28:12 UTC
glabels-3.0.0-14.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/glabels-3.0.0-14.fc17

Comment 6 Fedora Update System 2012-03-22 16:31:59 UTC
glabels-3.0.0-14.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/glabels-3.0.0-14.fc16

Comment 7 Daniel Belton 2012-03-22 21:42:05 UTC
Thanks for fixing this, Peter :)

The updated packages fix the error, and don't seem to create any new one, so I am going to mark this one as fixed. It can always be re-opened if needed.

Comment 8 Fedora Update System 2012-04-12 03:34:59 UTC
glabels-3.0.0-14.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2012-04-18 19:34:16 UTC
glabels-3.0.0-14.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2012-06-13 06:24:59 UTC
glabels-3.0.0-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/glabels-3.0.0-2.fc15


Note You need to log in before you can comment on or make changes to this bug.