After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757733 - Fix build on newer distributions
Fix build on newer distributions
Status: RESOLVED FIXED
Product: moserial
Classification: Other
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: moserial-maint
moserial-maint
Depends on:
Blocks:
 
 
Reported: 2015-11-07 13:58 UTC by Bastien Nocera
Modified: 2015-11-10 14:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix failing initialisation (1.01 KB, patch)
2015-11-07 13:58 UTC, Bastien Nocera
rejected Details | Review
Disambiguate Gtk.ListStore usage (2.04 KB, patch)
2015-11-07 13:58 UTC, Bastien Nocera
committed Details | Review
Port from long-obsolete gnome-doc-utils to yelp (2.35 KB, patch)
2015-11-07 13:58 UTC, Bastien Nocera
rejected Details | Review
doc: Port from long-obsolete gnome-doc-utils to yelp (2.73 KB, patch)
2015-11-07 14:57 UTC, Bastien Nocera
none Details | Review
build: Remove obsolete PKG_NAME (620 bytes, patch)
2015-11-07 14:58 UTC, Bastien Nocera
committed Details | Review
doc: Port from long-obsolete gnome-doc-utils to yelp (178.22 KB, patch)
2015-11-09 16:13 UTC, Bastien Nocera
none Details | Review
doc: Port from long-obsolete gnome-doc-utils to yelp (3.67 KB, patch)
2015-11-10 10:45 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2015-11-07 13:58:30 UTC
.
Comment 1 Bastien Nocera 2015-11-07 13:58:35 UTC
Created attachment 315041 [details] [review]
Fix failing initialisation

Vala doesn't know how to assign a negative integer to a char. This would
probably still fail on platforms where char is unsigned (like on PPC32).
Comment 2 Bastien Nocera 2015-11-07 13:58:41 UTC
Created attachment 315042 [details] [review]
Disambiguate Gtk.ListStore usage

Now that there's a liststore in both GTK+ and GLib.
Comment 3 Bastien Nocera 2015-11-07 13:58:46 UTC
Created attachment 315043 [details] [review]
Port from long-obsolete gnome-doc-utils to yelp

Allowing moserial to build on a recent distribution.
Comment 4 Bastien Nocera 2015-11-07 14:57:57 UTC
Created attachment 315048 [details] [review]
doc: Port from long-obsolete gnome-doc-utils to yelp

Allowing moserial to build on a recent distribution.
Comment 5 Bastien Nocera 2015-11-07 14:58:40 UTC
Created attachment 315049 [details] [review]
build: Remove obsolete PKG_NAME

From gnome-common:
***Warning*** PKG_NAME is deprecated, you may remove it from autogen.sh
Comment 6 Michael Chudobiak 2015-11-09 14:38:26 UTC
Review of attachment 315042 [details] [review]:

Thank you!
Comment 7 Michael Chudobiak 2015-11-09 14:45:27 UTC
Review of attachment 315041 [details] [review]:

Thanks! I patched this a little differently to avoid negative numbers entirely.
Comment 8 Michael Chudobiak 2015-11-09 14:49:59 UTC
Review of attachment 315049 [details] [review]:

Thanks!
Comment 9 Michael Chudobiak 2015-11-09 14:53:51 UTC
Review of attachment 315043 [details] [review]:

Earlier version of patch 315048, I think...
Comment 10 Michael Chudobiak 2015-11-09 15:32:59 UTC
Review of attachment 315048 [details] [review]:

Does this launch the manual correctly for you? I get "The URI ‘ghelp:moserial’ does not point to a valid page."
Comment 11 Bastien Nocera 2015-11-09 15:57:28 UTC
(In reply to Michael Chudobiak from comment #10)
> Review of attachment 315048 [details] [review] [review]:
> 
> Does this launch the manual correctly for you? I get "The URI
> ‘ghelp:moserial’ does not point to a valid page."

It opens the system-installed moserial help page, as yelp is installed system-wide for me. It might be that I broke installation of the documentation.
Comment 12 Bastien Nocera 2015-11-09 16:13:11 UTC
Created attachment 315129 [details] [review]
doc: Port from long-obsolete gnome-doc-utils to yelp

Allowing moserial to build on a recent distribution.
Comment 13 Bastien Nocera 2015-11-09 16:14:19 UTC
(In reply to Bastien Nocera from comment #12)
> Created attachment 315129 [details] [review] [review]
> doc: Port from long-obsolete gnome-doc-utils to yelp
> 
> Allowing moserial to build on a recent distribution.

That one worked, just needed to fix the call to yelp (might or might not have helped, but that's the right way to do things), and renaming the .xml files to index.docbook
Comment 14 Michael Chudobiak 2015-11-09 18:36:14 UTC
Is there a reason the patch contains translated files like fr/index.docbook, instead of changing "moserial.xml" references to "index.docbook" in fr.po (for example)?

It's been a while since I've done much work on gnome stuff, so I may have lost track of translation practices.
Comment 15 Bastien Nocera 2015-11-09 18:39:58 UTC
(In reply to Michael Chudobiak from comment #14)
> Is there a reason the patch contains translated files like fr/index.docbook,
> instead of changing "moserial.xml" references to "index.docbook" in fr.po
> (for example)?
> 
> It's been a while since I've done much work on gnome stuff, so I may have
> lost track of translation practices.

Looks at the patch once applied, I'm just renaming the moserial.xml to index.docbook, as expected by yelp. Those aren't translated through POTFILES (thankfully!).
Comment 16 Michael Chudobiak 2015-11-09 19:08:31 UTC
Sorry, I'm still not getting it. I see that the master untranslated doc/C/moserial.xml was renamed to doc/C/index.docbook, but it was translated previously using translator files like doc/fr/fr.po.

Are the translator files like doc/fr/fr.po obsolete now? Are they replaced by full files like doc/fr/index.docbook?

Apologies if I'm being dense; I just don't want to offend the volunteer translators...
Comment 17 Bastien Nocera 2015-11-10 10:45:51 UTC
Created attachment 315182 [details] [review]
doc: Port from long-obsolete gnome-doc-utils to yelp

Allowing moserial to build on a recent distribution.
Comment 18 Bastien Nocera 2015-11-10 10:51:59 UTC
(In reply to Michael Chudobiak from comment #16)
> Sorry, I'm still not getting it. I see that the master untranslated
> doc/C/moserial.xml was renamed to doc/C/index.docbook, but it was translated
> previously using translator files like doc/fr/fr.po.
> 
> Are the translator files like doc/fr/fr.po obsolete now? Are they replaced
> by full files like doc/fr/index.docbook?
> 
> Apologies if I'm being dense; I just don't want to offend the volunteer
> translators...

No, you were right, I added generated files to git, which I shouldn't have. Seems to work now, let me know.
Comment 19 Michael Chudobiak 2015-11-10 14:12:21 UTC
Review of attachment 315182 [details] [review]:

Many thanks for the patches!