Package Details: toggldesktop 7.5.363-3

Git Clone URL: https://aur.archlinux.org/toggldesktop.git (read-only, click to copy)
Package Base: toggldesktop
Description: Toggl time tracking software
Upstream URL: https://github.com/toggl-open-source/toggldesktop
Keywords: toggl
Licenses: BSD
Conflicts: toggl-bin, toggldesktop-bin
Submitter: midnightfox
Maintainer: Miller.EC
Last Packager: Miller.EC
Votes: 25
Popularity: 0.000000
First Submitted: 2016-02-27 16:04 (UTC)
Last Updated: 2023-03-18 02:19 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

flops commented on 2018-01-29 18:55 (UTC)

@swalladge i can support and keep things up to date cause i'm using this package. But i'm not a C\C++ dev, so won't be so useful as phi-mah could be. As you say i just took his patches and updated version.

<deleted-account> commented on 2018-01-22 06:18 (UTC)

@flops thanks! Would you like to be added as a comaintainer? (that goes for @phi-mah too, since after reading through the comments I see you came up with the original fixes)

flops commented on 2018-01-20 12:46 (UTC) (edited on 2018-01-20 12:47 (UTC) by flops)

Please update PKGBUILD https://gist.githubusercontent.com/flops/4c0a6f08d8c5155fe20255163c781ce3/raw/e635ad2b6bddf732e667a151a8fcc7a010200ddc/patch - here 4.7.90 version bump and fix for network error

abhinavd commented on 2017-12-21 13:04 (UTC) (edited on 2017-12-21 19:01 (UTC) by abhinavd)

I installed old gstreamer libraries and see that the binary from Toggl works for now, so I am not trying again. Thanks though, your work will surely help someone else!

EDIT: I did try it and it works great! The compile time stumped me too. Thanks again.

phi-mah commented on 2017-12-21 07:16 (UTC) (edited on 2017-12-21 07:19 (UTC) by phi-mah)

Yes, the changes described in systemlibs.patch are needed to turn off build and linkage of toggldesktop's own openssl/poco libs. Thus the patched PKGBUILD prepare function applies the new systemlibs.patch after extracting the sources.

In principle this should all happen automatically. Use a clean checkout of the aur toggldesktop repo and e.g. use:

curl https://gist.githubusercontent.com/phi-mah/e597bb7b70ebcab9d3ae8152850cf864/raw/23114fe3887ab782a86e3934a12809d3444348f6/diff_to_aur | git apply

(When I do this, I get some errors of the type: <stdin>:64: trailing whitespace, just ignore them)</stdin>

to make all the changes that are mentioned in the gist file.

After that, just run makepkg. This way I got a working pkg. Lets hope that it will work as well in your case!

abhinavd commented on 2017-12-20 19:38 (UTC)

@phi-mah, thanks for this! However, for me I still get the ssl error with this build (with plenty of lines saying: SSL Exception: Cannot create SSL_CTX object: error:140A90A1:SSL routines:SSL_CTX_new:library has no ciphers)

Also, just to confirm that I have this right: the file in your gist has two parts: one a patch for the PKGBUILD, and the other the systemlibs.patch file, is it not? I patched the PKGBUILD, and saw the changes. I also removed these lines from the systemlibs.patch file and modified my PKGBUILD to update the last sha512sum (I realise I could have let the lines remain in the systemlibs.patch file and kept the automatically generated sha512sum e2084ecaf7ba3d3c630597450f5aff6bb65844002f2f7332a01228f0f0f0a2c8dae7b7af5f28063db63c5ce10dcd0b21d92adfb5fd8e25677e94eaa0c578c34d, but that hadn't worked for me so I tried it in the way I describe).

Ironic that a time-tracker app is eating way too much of my time in trying to get it to build right. The binary downloaded from the site doesn't work either since I need old gst libraries that are flagged out of date in Arch.

phi-mah commented on 2017-12-20 12:34 (UTC) (edited on 2017-12-20 12:46 (UTC) by phi-mah)

Yep, the problem is probably related with the openssl libraries used.

If I change the build files to make use of the poco/openssl system libraries, I benefit from multiple advantages:

  • way faster build process

  • build works in symlinked directories (poco related)

and most important:

  • the app is working again!

https://gist.github.com/phi-mah/e597bb7b70ebcab9d3ae8152850cf864

phi-mah commented on 2017-12-19 09:34 (UTC) (edited on 2017-12-19 21:21 (UTC) by phi-mah)

Concerning the build process, I found the problem:

https://github.com/pocoproject/poco/blob/develop/README#L217

(I specified a dedicated build directory, which in turn is a symlink)

I am definitely not an expert in this field, but I tried to investigate the linkage to libssl.

ldd /opt/toggldesktop/TogglDesktop | grep ssl

/opt/toggldesktop libssl.so.1.1 => /usr/lib/libssl.so.1.1 (0x00007f3563963000) libssl.so.1.0.0 => /home/philipp/builds/arch-pkg/toggldesktop/src/toggldesktop-7.4.76/src/ui/linux/TogglDesktop/../../../lib/linux/TogglDesktopLibrary/build/release/libssl.so.1.0.0 (0x00007f3561dea000)

So there are still artifacts from the build process linked in (as well as the system libssl).

Renaming the build dir let them disappear:

mv /home/philipp/builds/arch-pkg/toggldesktop{,.bak}

ldd /opt/toggldesktop/TogglDesktop | grep ssl

/opt/toggldesktop libssl.so.1.1 => /usr/lib/libssl.so.1.1 (0x00007f28b683c000)

But it still results in the same error.

Renaming the ssl libs in /usr/lib is probably a stupid idea (I tried it anyhow :-)) but then toggl will not even start. And I tried to move toggls own libssl into /opt/toggldesktop/lib (initially it is not there) as /opt/toggldesktop/TogglDesktop.sh considers this directory in its LD_LIBRARY_PATH.

My toogl logs start on December the 13th, directly reporting this error. I don't know why there aren't any other events logged prior to this date. However on that same day, pacman pulled in qt5.10.

Openssl-1.0 got updated on December the 15t [openssl-1.0 (1.0.2.l-1 -> 1.0.2.n-1)], so to a time when the problem was already apparent. Downgrading did not help.

At the beginning of December, toggldesktop was still functional.

<deleted-account> commented on 2017-12-19 02:47 (UTC)

I suspect this has something to do with the fact that it bundles a version of openssl with it (and probably is getting built against it). If that version is very different from that shipped with arch, then we have a problem. Debugging help appreciated! :)

<deleted-account> commented on 2017-12-19 02:31 (UTC)

@phil-mah I can't reproduce the build errors you are getting. It builds fine for me in a clean chroot.

Yes I also noticed the SSL errors in the log (I haven't used Toggl for a while so not sure when it began). That may be an upstream issue - I'll open an issue on their github repo. [EDIT: on second thoughts that sounds more like an issue on openssl's side or the configuration...]