Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618662 - net-im/telegram-desktop-bin was updated outside portage
Summary: net-im/telegram-desktop-bin was updated outside portage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Henning Schild
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-16 14:59 UTC by Agostino Sarubbo
Modified: 2018-09-28 18:25 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
screenshot (Screenshot_20170516_165731.png,221.88 KB, image/png)
2017-05-16 14:59 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2017-05-16 14:59:35 UTC
Created attachment 472796 [details]
screenshot

$summary, see the mismatch in the screenshot
Comment 1 Gleb 2017-05-17 18:57:57 UTC
The app is totally unsafe and do this nasty stuff. It also constantly creates .dekstop file (at least on Xfce) at ~/.local/share/applications/ even when .desktop file is already present in the system.
Comment 2 pva 2017-05-22 09:21:39 UTC
Currenlty as a workaround your are suggested to disable automatic update manyally in settings.
Comment 3 Victor Gaydov 2017-10-04 09:38:51 UTC
It seems that currently the only way to disable automatic updates is either to disable them at compile time (TDESKTOP_DISABLE_AUTOUPDATE) or disable them via the settings GUI.

I see no way to do this automatically in this ebuild. Though it would be possible if we eventually merge a ebuild that builds telegram from sources.

The major reason why it wasn't accepted earlier[1] was that it required a patched Qt. However, it seems that there is some progress in this direction[2], so we could give it another try.

[1] https://github.com/gentoo/gentoo/pull/1551
[2] https://github.com/telegramdesktop/tdesktop/issues/1815
Comment 4 Jonas Stein gentoo-dev 2018-06-14 20:54:27 UTC
Any news?
Comment 5 Henning Schild 2018-06-25 21:16:14 UTC
Well the -bin version has a builtin updater that can not be disabled when packaging. The source version is hard to build, so there is no ebuild for that at the moment.
The only advise i can give is to disable the updates in the GUI. But that has to be done by every user on each machine. Uncheck "Settings" -> "General" -> "Update automatically". We could think about publishing an enews item on that, but people would still get hit by the automatic update.

The real solution would be to build from source or switch to i.e. cutegram. I have got some cutegram ebuilds, but that is not easy to compile either ...

Feel free to comment further, but i think that one is ready to get closed with "wontfix".
Comment 6 Henning Schild 2018-06-25 21:46:03 UTC
https://github.com/telegramdesktop/tdesktop/issues/4895

lets see ...
Comment 7 Joonas Niilola gentoo-dev 2018-06-26 06:54:44 UTC
(In reply to Henning Schild from comment #5)
> The only advise i can give is to disable the updates in the GUI. But that
> has to be done by every user on each machine. Uncheck "Settings" ->
> "General" -> "Update automatically". We could think about publishing an
> enews item on that, but people would still get hit by the automatic update.
> 

What about some ewarn or elog messages in pkg_postinst? I know many people don't read them either, but at least it would gain some visibility.
Comment 8 Henning Schild 2018-06-27 20:14:32 UTC
@Joonas
that is what i meant when i said enews, but i used the wrong term

Seems like upstream tdesktop is willing to provide a better solution, so let us wait for that
Comment 9 Henning Schild 2018-07-13 17:11:02 UTC
Talking to upstream helped, the latest release allows one to disable the updater with an argument.

https://github.com/gentoo/gentoo/pull/9218
Comment 10 Larry the Git Cow gentoo-dev 2018-07-16 05:02:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea989a3b275aa2e2b473450178b881626f2d7ac5

commit ea989a3b275aa2e2b473450178b881626f2d7ac5
Author:     Henning Schild <henning@hennsch.de>
AuthorDate: 2018-07-13 17:04:28 +0000
Commit:     NP-Hardass <NP-Hardass@gentoo.org>
CommitDate: 2018-07-16 05:01:15 +0000

    net-im/telegram-desktop-bin: bump to 1.3.10 and disable auto-updates
    
    This version bump uses a new upstream feature to tell the binary that it
    should not check for updates itself. The ebuild installs the binary to
    /usr/lib/ and deploys a wrapper to /usr/bin/.
    
    Closes: https://bugs.gentoo.org/618662
    Closes: https://github.com/gentoo/gentoo/pull/9218
    Signed-off-by: Henning Schild <henning@hennsch.de>
    Signed-off-by: NP-Hardass <NP-Hardass@gentoo.org>

 net-im/telegram-desktop-bin/Manifest               |  3 ++
 .../files/telegram-desktop-bin                     |  5 ++
 .../telegram-desktop-bin-1.3.10.ebuild             | 60 ++++++++++++++++++++++
 3 files changed, 68 insertions(+)
Comment 11 Henning Schild 2018-08-30 07:06:29 UTC
I have to reopen that one since an update with portage will still trigger one part of the internal updater again. The part that creates the .desktop file, which will start the application with the internal updater enabled again.

https://github.com/telegramdesktop/tdesktop/issues/5118
Comment 12 Henning Schild 2018-08-30 07:24:14 UTC
Once we have a release with this fixed, it might also be time for an "einfo" in the ebuild. To tell users to get rid of the desktop file in .local.
Comment 13 Larry the Git Cow gentoo-dev 2018-09-28 18:25:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a02a2ea013889486148f7abaf6cc7146277cb279

commit a02a2ea013889486148f7abaf6cc7146277cb279
Author:     Henning Schild <henning@hennsch.de>
AuthorDate: 2018-09-28 16:07:30 +0000
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2018-09-28 18:25:13 +0000

    net-im/telegram-desktop-bin: Version bump to 1.4.0
    
    Signed-off-by: Henning Schild <henning@hennsch.de>
    Closes: https://bugs.gentoo.org/618662
    Closes: https://github.com/gentoo/gentoo/pull/10005

 net-im/telegram-desktop-bin/Manifest               |  3 +
 .../telegram-desktop-bin-1.4.0.ebuild              | 64 ++++++++++++++++++++++
 2 files changed, 67 insertions(+)