GNOME Bugzilla – Bug 169772
[PATCH] GOption command-line parsing
Last modified: 2005-10-10 15:58:02 UTC
The API seems to only allow for popt to be used right now. GOption support would help i18n, and portability.
Created attachment 38515 [details] [review] patch implementing that This patch implements gst_init_get_option_group, which is in name similar to _get_popt_table(). It can be used in combination with gtk_get_option_group() and all the like. With this, we could even obsolete all popt functions already. That said, some people have proposed to remove all commandlineoptions in 0.9 alltogether. I don't have a strong preference of what will happen in 0.9 w.r.t. commandline parsing, but it has to be said that Gtk+ does use GOption, so it would make sense to follow their trend.
Oh, obviously, the above patch doesn't make gst_init() use GOption yet (it still picks the popt one). It'd be nice to do that, too.
GStreamer depends on glib 2.2. So I guess it's kinda impossible to add that.
Created attachment 48270 [details] [review] 0.9 version, also removes popt alltogether
For great justice, we should look at this patch.
This is only really an option (no pun intended) if we decide to bump the GLib requirement to 2.6. Not sure what the result of the discussion on the mailing list was, but it looked to me like we're gonna stick to 2.4 for now.
My rule, which seemed to have some traction, is "Packages we depend on should exist in the latest stable release of both Fedora and Ubuntu." This includes glib-2.6, but excludes 2.8 for a few more months. Of course, we don't have to gratuitously use the latest glib, but I think GOption warrants it.
I asked for votes, and we got three votes out of five maintainers: 1) require 2.8 now 2) require 2.4 forever 3) what dave said I'll go with dave's vote (I'm (1) right now), which means (3) is decided. We'll depend on 2.8 when Breezy/FC5 are released.
Applied to HEAD. Good riddance popt!