Bug 197510 - [PATCH] Update audio/tomahawk to 0.8.2
Summary: [PATCH] Update audio/tomahawk to 0.8.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Tilman Keskinoz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-10 10:09 UTC by Nicola Vitale
Modified: 2015-07-19 09:07 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (arved)


Attachments
Patch to update audio/tomahawk to 0.8.2 (28.25 KB, text/plain)
2015-02-10 10:09 UTC, Nicola Vitale
no flags Details
Current state of patch as of 2015-03-11 (28.18 KB, patch)
2015-03-11 22:47 UTC, Tilman Keskinoz
no flags Details | Diff
Update to 0.8.4 (28.20 KB, patch)
2015-07-16 21:21 UTC, Tilman Keskinoz
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicola Vitale freebsd_committer freebsd_triage 2015-02-10 10:09:44 UTC
Created attachment 152835 [details]
Patch to update audio/tomahawk to 0.8.2

- Update to 0.8.2
- Remove patch/patch-CMakeModules__FindCLucene.cmake,
  patch/patch-src_libtomahawk_utils_TomahawkUtils.cpp.orig,
  patch/patch-src__main.cpp
- Add patch/patch-src_libtomahawk_utils_TomahawkUtils.cpp
- Add devel/google-sparsehash, security/gnutls, and security/qtkeychain
  to dependencies
- Use textproc/luceneplusplus instead of textproc/clucene
  as library dependency
- Build a release distribution to disable debug and test tools
- Sort variables
- Remove XINE option because the relative phonon backend is not
  supported
- Use vlc as default phonon backend, because the gstreamer one gives
  the error: "GStreamer-CRITICAL **: gst_mini_object_unref: assertion `mini_object->refcount > 0' failed" at runtime
- Add option HATCHET (default ON) to enable hatchet plugin
  (see https://hatchet.is )
- Use option helpers
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-02-10 10:09:44 UTC
Auto-assigned to maintainer arved@FreeBSD.org
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2015-02-10 10:58:32 UTC
Hi Nicola,

Thanks for your work.

I also started a patch, but i was struggling with audio output so i did not complete it yet. I have not tested it yet and just compared your patch with mine and i have two questions:

- Can you check if the qtweetlib option is still relevant? I think the dependency has been removed because it is referenced nowhere in the sourcecode or documentation anymore
- websocketpp is just header files so adding it as a runtime dependency looks wrong. 

Since i am not sure i will be able to test it in the next time, 

- Did you build test it? (I needed a lot more patches to the cmake files, see github pullrequest 280 for details)
- Did audio output work for you?
Comment 3 Nicola Vitale freebsd_committer freebsd_triage 2015-02-10 13:47:06 UTC
Hi Tilman,

you are right: Qtweetlib is no longer required and websocketpp is only a build dependency.

I built the port on FreeBSD-10 amd64 with poudriere, here is the full log: http://people.freebsd.org/~nivit/logs/tomahawk-0.8.2.log.

About the audio output: with phonon-gstreamer backend there's no audio, and appears the error message said before. With phonon-vlc backend all works fine.

P.S. Maybe we have to add also another option to support Telepathy via net-im/telepathy-qt4?
Comment 4 Nicola Vitale freebsd_committer freebsd_triage 2015-02-10 13:58:11 UTC
Hi, I just saw your pullrequest on github. I don't know, maybe adding -I${LOCALBASE}/include to CXXFLAGS solves the problem with attica includes...
Comment 5 Tilman Keskinoz freebsd_committer freebsd_triage 2015-02-11 12:14:51 UTC
Tested your version.

I noticed that gstreamer might be used if it is installed even if vlc is selected in make config. I am currently thinking about removing the gstreamer option or marking it as broken  and adding a pkg-message to warn people of broken phonon-gstreamer. 

I agree adding a dependency on telepathy-qt4 might be a good idea.
Comment 6 Nicola Vitale freebsd_committer freebsd_triage 2015-02-11 13:32:40 UTC
(In reply to Tilman Keskinoz from comment #5)

Indeed , if you have also installed phonon-gstreamer, then there is no audio. A possible workaround is to launch tomahawk with the following command:

$ env PHONON_BACKEND=phonon_vlc tomahawk

Maybe you could add it in pkg-message.

I agree with you to remove/mark broken gstreamer option.
Comment 7 Tilman Keskinoz freebsd_committer freebsd_triage 2015-03-11 20:49:45 UTC
Just to follow up on this. 

I don't have much time to work on this. 

Other issues that came up so far:

1. google_sparsehash is also a header only port, so only a BUILD_DEPENDS is necessary

2. telepathy-qt4 is autodected if installed. affects also plist

3. the CMAKE_BUILD_TYPE expansion in pkg-plist creates pkg-plist issues with WITH_DEBUG is specified

4. There are still some segfaults for me.

so stay tuned...
Comment 8 Tilman Keskinoz freebsd_committer freebsd_triage 2015-03-11 22:47:23 UTC
Created attachment 154229 [details]
Current state of patch as of 2015-03-11

Add my current wip patch

Changes:
- Removed the HATCHET option, as it is just one builddep
- Removed VLC option and made it a rundep
- Add TELEPATHY option (Not sure about the Name and description yet)
- Add pkg-message
- pkg-plist fixes

TODO:
- Testing (poudriere)
Comment 9 Tilman Keskinoz freebsd_committer freebsd_triage 2015-07-16 21:05:43 UTC
Meanwhile 0.8.4 has been released. I have started to work on an updated patch, but don't hold your breath.
Comment 10 Tilman Keskinoz freebsd_committer freebsd_triage 2015-07-16 21:21:05 UTC
Created attachment 158872 [details]
Update to 0.8.4
Comment 11 Tilman Keskinoz freebsd_committer freebsd_triage 2015-07-19 09:07:50 UTC
I committed my patch.

Thanks for your help