On Wed, Jun 1, 2016 at 12:19 PM, <devel-request@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > Date: Wed, 1 Jun 2016 17:38:15 +0200 > From: Kalev Lember <kalevlember@xxxxxxxxx> > Subject: Re: gnome-software integration > To: Development discussions related to Fedora > <devel@xxxxxxxxxxxxxxxxxxxxxxx> > Message-ID: <d00a45ad-8a00-7811-0e4a-6533d1326902@xxxxxxxxx> > Content-Type: text/plain; charset=utf-8 > > On 06/01/2016 05:24 PM, Greg Hellings wrote: >> I'm looking into a bug filed against one of my applications (BZ: >> https://bugzilla.redhat.com/show_bug.cgi?id=1330096). The complaint is >> that the gnome-software application picks up the xiphos-common package >> when the user tries to install from there, rather than picking up the >> actual GUI packages (which are available as xiphos-gtk2 and >> xiphos-gtk3). >> >> I need some advice on the proper way to handle this. First, a little >> explanation of the three packages. >> >> Upstream Xiphos includes some support for building against GTK3 but >> has no intention of moving to that for its primary support on its >> current roadmap. Thus, there are occasionally bugs against the GTK3 >> build that are left as low-priority tasks - sometimes these will >> render the GTK3 build completely unusable. Thus, upstream recommends >> building only against GTK2. >> >> To satisfy both camps, and to allow ease of bug reporting (i.e. >> identifying if the bug is a regression in GTK3 interfaces vs a bug in >> Xiphos) and for various other reasons, both xiphos-gtk{2,3} were made >> available. There are a small number of static or data files which can >> be shared between the two builds - translations, etc. These are >> packaged as xiphos-common, which is a dep of both the binary packages. >> >> One of those files that is shared between the two is the >> %{_datadir}/appdata/xiphos.appdata.xml, which appears to be what >> triggers gnome-software to consider a particular package the GUI >> app-containing package that ought to be installed. > > Don't share that, it's meant to be unique per app, and you have two > separate apps here. I really only have one app - Xiphos. It's just been compiled under two different toolkits. They are supposed to be feature-identical and complete, which they both are to my knowledge. It's just that one of them (GTK2) gets routine updates and fixes whereas the other (GTK3) does not receive the same level of concentration from upstream. I really only want the GTK2 to be exposed to casual users - which is what I suspect is the majority of users of the gnome-software interface. Anyone installing the xiphos-gtk3 should be someone who knows and wants that specific version. > > Instead, create two .appdata files, one for each .desktop file, and put > both the .desktop and .appdata files in the respective xiphos-gtk2 and > xiphos-gtk3 subpackages. Something like: > > xiphos-gtk2.rpm: > /usr/bin/xiphos-gtk2 > /usr/share/appdata/xiphos-gtk2.appdata.xml > /usr/share/applications/xiphos-gtk2.desktop > > xiphos-gtk3.rpm: > /usr/bin/xiphos-gtk3 > /usr/share/appdata/xiphos-gtk3.appdata.xml > /usr/share/applications/xiphos-gtk3.desktop Would it be better for me to leave only a single appdata.xml file, but move it to the xiphos-gtk2 package, then it would be exposed to gnome-software users? Then anyone wanting the GTK3 build could install through a package manager instead of the app manager? > > -- > Hope this helps, > Kalev > > ------------------------------ > > Date: Wed, 01 Jun 2016 11:43:46 -0400 > From: Matthias Clasen <mclasen@xxxxxxxxxx> > Subject: Re: gnome-software integration > To: Development discussions related to Fedora > <devel@xxxxxxxxxxxxxxxxxxxxxxx> > Message-ID: <1464795826.29236.0.camel@xxxxxxxxxx> > Content-Type: text/plain; charset="UTF-8" > > >> xiphos-gtk2.rpm: >> /usr/bin/xiphos-gtk2 >> /usr/share/appdata/xiphos-gtk2.appdata.xml >> /usr/share/applications/xiphos-gtk2.desktop >> >> xiphos-gtk3.rpm: >> /usr/bin/xiphos-gtk3 >> /usr/share/appdata/xiphos-gtk3.appdata.xml >> /usr/share/applications/xiphos-gtk3.desktop > > I have to ask though: is it really worth shipping 2 copies of the > application ? I would suggest to just ship one of them. There are users who have specifically requested the GTK3 version be made available, since they try to keep the GTK2 stack off their systems for a variety of reasons. Since upstream provides both, though with differing levels of support, upstream and users both ended up asking for different builds to be available. Upstream is primarily interested in GTK2 and simply defaults to telling users to install that version when a bug is first found in the GTK3 version. Some users, though, only wanted the GTK3 version. I'd like to keep it to only one instance of Xiphos appearing in the gnome-software interface that will cover the majority of users who are just looking for the application. They would get the GTK2 build, preferably. Anyone wanting the GTK3 build should be able to get it from the command line, directly. --Greg -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx