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 697122 - Snappy name conflicts
Snappy name conflicts
Status: RESOLVED FIXED
Product: snappy
Classification: Other
Component: general
git
Other Linux
: Normal critical
: ---
Assigned To: Snappy maintainer(s)
Snappy maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-04-02 16:40 UTC by Antonio Trande
Modified: 2013-11-20 20:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Antonio Trande 2013-04-02 16:40:34 UTC
Binary name of Snappy collides with that one of other packages in Fedora, as well as its name. For example, actually in Fedora we have:

Available Packages
Name        : snappy
Repo        : fedora/18/x86_64
Summary     : Fast compression and decompression library
URL         : http://code.google.com/p/snappy/
License     : BSD

or binaries owned by other packages

$ repoquery --whatprovides /usr/bin/snappy
spice-gtk-tools-0:0.15.3-1.fc18.x86_64
spice-gtk-tools-0:0.14-1.fc18.x86_64

This would impede inclusion of Snappy (player) in official Fedora repos and above all could be a obstacle if someone wants Snappy and spice-gtk-tools installed together in the same system.

Is there a chance to change Snappy's binary name and its package name ? 

Regards.
Comment 1 Luis de Bethencourt 2013-04-02 17:39:01 UTC
Hello.

Thinking about if I can change the name or not, and what to change it to.

I knew about the snappy library Google released, but I didn't knew there was a /usr/bin/snappy executable as part of it. What does it do?
Comment 2 Antonio Trande 2013-04-02 17:52:46 UTC
Hi Luis.

Google compression library doesn't provide a binary but has same package name: http://rpmfind.net//linux/RPM/fedora/18/x86_64/s/snappy-1.0.5-2.fc18.i686.html

I spoke of spice-gtk-tools that provides a binary with same identical name (see at bottom of page): http://rpmfind.net//linux/RPM/fedora/updates/18/i386/spice-gtk-tools-0.15.3-1.fc18.i686.html

If you agree, a name like 'gnome-snappy' may be already good.
Comment 3 Luis de Bethencourt 2013-04-02 18:20:09 UTC
Antonio, I'm going to talk with the Spice people because they are going to find the same conflict when Spice is packaged for debian, Ubuntu, OpenSUSE and gentoo. Where the snappy player already owns the /usr/bin/snappy file.

Let me see what they think.
Comment 4 Andrew Brouwers 2013-04-03 20:22:46 UTC
What about just using 'snappy-player' as a name, and /usr/bin/snappy-player ?  Not only is there a snappy binary for spice-gtk, but the snappy package already exists in several distros.
Comment 5 Luis de Bethencourt 2013-04-03 20:35:32 UTC
Andrew,

That isn't an ideal solution and doesn't solve the problem spice-gtk will have in distros with snappy (player) already.
Comment 6 Antonio Trande 2013-04-03 21:21:53 UTC
In OpenSUSE, I seen the Google library named 'libsnappy' (https://build.opensuse.org/package/view_file?expand=1&file=libsnappy.spec&package=snappy&project=home%3Axkitty68) 

but 'spice-gtk' package owns an /usr/bin/snappy binary: https://build.opensuse.org/package/view_file?expand=1&file=spice-gtk.spec&package=spice-gtk&project=openSUSE%3A12.2

like it's snappy player https://build.opensuse.org/package/view_file?expand=1&file=snappy.spec&package=snappy&project=GNOME%3AApps

Both packages are in conflict therefore or someone changes own binary file otherwise both packages MUST be incompatible between them.
Comment 7 Luis de Bethencourt 2013-04-03 21:38:42 UTC
So it looks like it collides in most distros except debian.

I'm OK renaming the executable snappy-player.
Comment 8 Antonio Trande 2013-04-03 21:48:19 UTC
(In reply to comment #7)
> I'm OK renaming the executable snappy-player.

In my opinion, it's best and wise choice.
I wait new release of snappy so that I can introduce it in Fedora.
Comment 9 Luis de Bethencourt 2013-04-03 21:52:16 UTC
Sure. I will push those changes upstream soon.

Thanks for packaging snappy in Fedora :)
Comment 10 Andrew Brouwers 2013-04-03 22:21:32 UTC
(In reply to comment #5)
> Andrew,
> 
> That isn't an ideal solution and doesn't solve the problem spice-gtk will have
> in distros with snappy (player) already.

Sorry, I don't see why?  spice-gtk provides the "snappy" binary; the snappy library doesn't, but the name conflicts.  So, when I installed it on fedora, a 'yum upgrade' tried to upgrade my 0.3.5 package to the google library :-)
Comment 11 Luis de Bethencourt 2013-04-04 14:10:52 UTC
Andrew,

yum will upgrade the packages you already have installed. not sure I'm really understanding what you are saying.
Comment 12 Andrew Brouwers 2013-04-04 14:12:49 UTC
Sorry, ignore it :-)  I just meant, that not only the binary is taken, but also the package name on some distros.  ie, assuming it is 'libsnappy' everywhere isn't correct.  But, reading comment 7, it seems that was discussed already.
Comment 13 Luis de Bethencourt 2013-04-04 14:24:29 UTC
No problem Andrew :)
Comment 14 Antonio Trande 2013-04-04 14:30:23 UTC
(In reply to comment #12)
> Sorry, ignore it :-)  I just meant, that not only the binary is taken, but also
> the package name on some distros. 

This is right (see my initial comment). In Fedora in fact we have a 'snappy' library (not a 'libsnappy') and an /usr/bin/snappy owned by 
'spice-gtk-tools' package. It's a double conflict.

If Luis renames just the binary of snappy (player), I'll be compelled anyway to rename the package name to 'gnome-snappy' for example.
Comment 15 Luis de Bethencourt 2013-04-04 14:54:31 UTC
Talking to the developers of spice-gtk. We might have a good solution for this.

Discussing it in spice-devel so we can all agree.
Comment 16 Luis de Bethencourt 2013-04-09 16:45:51 UTC
A decision has been made in this Spice-devel mailing list thread:
http://lists.freedesktop.org/archives/spice-devel/2013-April/012953.html

"I suggest for upcoming release to rename snappy to something like
snappy-spice (that would be easy enough to discover when completing for ex)"

Soon a new spice-gtk release is going to come out, this will have moved the executable to /usr/bin/snappy-spice.

Then snappy (the player) can be packaged in Fedora as...
package name = snappy-player
executable = /usr/bin/snappy

Thanks Marc-Andre! :)