Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579048 - media-tv/tvheadend-9999: new use flags and configuration changes
Summary: media-tv/tvheadend-9999: new use flags and configuration changes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam Jorna (wraeth)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-04 19:58 UTC by Wojciech Myrda
Modified: 2017-12-04 22:23 UTC (History)
3 users (show)

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


Attachments
tvheadend-9999.ebuild (tvheadend-9999.ebuild,2.87 KB, text/plain)
2016-04-04 19:58 UTC, Wojciech Myrda
Details
Updated ebuild (tvheadend-9999.ebuild,2.88 KB, text/plain)
2016-05-08 19:54 UTC, Martin Bednar
Details
tvheadend-9999.ebuild (tvheadend-9999.ebuild,2.90 KB, text/plain)
2017-02-20 13:10 UTC, Martin Bednar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wojciech Myrda 2016-04-04 19:58:28 UTC
Created attachment 429652 [details]
tvheadend-9999.ebuild

Development version of tvheadend needs some love as there is many more options available. Version in the tree does not use below configuration options

  --disable-tsfile               Disable tsfile
  --disable-trace                Disable trace
  --disable-ffmpeg_static        Disable ffmpeg_static
  --disable-libx264              Disable libx264
  --disable-libx264_static       Disable libx264_static
  --disable-libx265              Disable libx265
  --disable-libx265_static       Disable libx265_static
  --disable-libvpx               Disable libvpx
  --disable-libvpx_static        Disable libvpx_static
  --disable-libtheora            Disable libtheora
  --disable-libtheora_static     Disable libtheora_static
  --disable-libvorbis            Disable libvorbis
  --disable-libvorbis_static     Disable libvorbis_static
  --disable-libfdkaac            Disable libfdkaac
  --disable-libfdkaac_static     Disable libfdkaac_static
  --disable-nvenc                Disable nvenc
  --enable-nvenc                 Enable nvenc
  --enable-qsv                   Enable qsv
  --disable-libmfx_static        Disable libmfx_static
  --disable-epoll                Disable epoll
  --enable-epoll                 Enable epoll
  --disable-tvhcsa               Disable tvhcsa
  --enable-tvhcsa                Enable tvhcsa
  --enable-bundle                Enable bundle
  --enable-dvbcsa                Enable dvbcsa
  --disable-dvben50221           Disable dvben50221
  --enable-dvben50221            Enable dvben50221
  --enable-kqueue                Enable kqueue
  --disable-dbus_1               Disable dbus_1
  --enable-dbus_1                Enable dbus_1
  --enable-android               Enable android
  --enable-tsdebug               Enable tsdebug
  --enable-gtimer_check          Enable gtimer_check
  --enable-slow_memoryinfo       Enable slow_memoryinfo
  --enable-libsystemd_daemon     Enable libsystemd_daemon
  --disable-bintray_cache        Disable bintray_cache

For ffmpeg option name has changed and ffmpeg is required instead libffmpeg. Same thing with dbus where we find dbus_1 instead of just dbus.

I reflected some of this changes within presented ebuild as I was not sure what to do with others. 

To use system ffmpeg one must also have ffmpeg-3.0 or higher otherwise compilation fails with

  checking for pkg libavfilter >=6.31.100 ...       fail (detected 5.40.101)
  checking for pkg libswresample >=2.0.101 ...      fail (detected 1.2.101)
  checking for pkg libavresample >=3.0.0 ...        fail (detected 2.1.0)
  checking for pkg libswscale >=4.0.100 ...         fail (detected 3.1.101)
  checking for pkg libavformat >=57.25.100 ...      fail (detected 56.40.101)
  checking for pkg libavcodec >=57.24.102 ...       fail (detected 56.60.100)
  checking for pkg libavutil >=55.17.103 ...        fail (detected 54.31.100)
WARNING: none or old ffmpeg libraries were detected
         * use --disable-libav or --enable-ffmpeg_static
ERROR: ffmpeg development support not found
Comment 1 Martin Bednar 2016-05-08 19:54:40 UTC
Created attachment 433680 [details]
Updated ebuild

Updated ebuild:
-Removed use flags pertaining to static ffmpeg
-Added systemd use flag.
-Merged cwc capmt and constcw based on 'enabled cwc || enabled capmt || enabled constcw' in configure script. (all lines referencing any of these are OR'ed like this)
-Added bundle use flag, not sure what it does...
-Removed dvbscan use flag (AFAIK used only to download current DVB broadcaster info)
-Added ffmpeg version dependency.

For some reson iconv keeps failing in the configure phase.

with ffmpeg disabled, it builds fine (don't have 3.0+ on my system)
Comment 2 Martin Bednar 2017-02-20 13:10:27 UTC
Created attachment 464422 [details]
tvheadend-9999.ebuild

Add dvb-apps dependency
Comment 3 Martin Bednar 2017-02-20 13:11:29 UTC
Also now that ffmpeg-3.2 is available on my system, I confirm it compiles fine with it.
Comment 4 Larry the Git Cow gentoo-dev 2017-12-04 22:20:28 UTC
The bug has been closed via the following commit(s):

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

commit f3544384630a818ea97571db41ee93919ad9c719
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2017-12-04 22:11:05 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2017-12-04 22:20:07 +0000

    media-tv/tvheadend: Version bump to 4.2.4 and 9999 update
    
    * Add support for dvbcsa via USE flag
    * Add support for dvben50221 via USE flag
    * Drop support for libav (fails version checks, missing symbols)
    * Source DTV scan tables from new media-tv/dtv-scan-tables package
    * Set tvheadend user HOME to /etc/tvheadend to allow for XMLTV data
    * Tighten up the systemd service unit
    * Add debug USE flag for trace support
    * Fix inotify kernel config check
    * Add ffmpeg sub-dependencies and associated USE flags (9999 only)
    
    Closes: https://bugs.gentoo.org/579048
    Closes: https://bugs.gentoo.org/579986
    Closes: https://bugs.gentoo.org/586448
    Closes: https://bugs.gentoo.org/588210
    Closes: https://bugs.gentoo.org/626238
    Package-Manager: Portage-2.3.16, Repoman-2.3.6

 media-tv/tvheadend/Manifest                        |   5 +-
 .../files/tvheadend-4.0.9-use_system_queue.patch   |  12 +++
 .../files/tvheadend-4.2.1-hdhomerun.patch          |  24 +++++
 .../files/tvheadend-4.2.2-dtv_scan_tables.patch    |  12 +++
 media-tv/tvheadend/files/tvheadend.service         |  15 ++-
 media-tv/tvheadend/metadata.xml                    |  12 ++-
 media-tv/tvheadend/tvheadend-4.2.4.ebuild          | 117 +++++++++++++++++++++
 media-tv/tvheadend/tvheadend-9999.ebuild           |  90 +++++++++++-----
 8 files changed, 253 insertions(+), 34 deletions(-)