Project

General

Profile

When will tvh support for the Ubuntu 20.04 ?

Added by Anonymous over 4 years ago

Thank you!


Replies (13)

RE: When will tvh support for the Ubuntu 20.04 ? - Added by sat fan over 4 years ago

Autobuild is not working.

When using

./Autobuild.sh -t bionic-amd64

it stops with
dpkg-checkbuilddeps: error: Unmet build dependencies: python-requests
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)

python-requests package is absent in Ubuntu 20.04

I tried to install it via

apt install python2
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
python2 get-pip.py
pip install requests

But that does not help.

Maybe someone have any fixes?

I can't find where to modify script so it would not check for this dependency.

Also, when building latest 4.3 there was break, which is fixed by this modification in the source code of

.../build.linux/ffmpeg/build/ffmpeg/include/libavutil/mem.h

https://phabricator.services.mozilla.com/D15595#395496
Might help someone.

RE: When will tvh support for the Ubuntu 20.04 ? - Added by sat fan over 4 years ago

Thank you!
But that does not help )

Found myself, that dependency check for python-requests package is in this file in lines 5 and 11:

.../debian/control

Deleted python-requests from two lines and Autobuild.sh went OK!

Don't know for now if `pip install requests` was needed.

RE: When will tvh support for the Ubuntu 20.04 ? - Added by sat fan over 4 years ago

I did

pip3 install requests

That did not help.
I think dependency check script is looking not for python requests itself, but for Debian package `python-requests`, which is not possible to install in Ubuntu 20.04, so manual editing of `control` file is needed, so autobuild.sh script to work.

RE: When will tvh support for the Ubuntu 20.04 ? - Added by Robert Accettura over 4 years ago

I'm running into the same issue on Ubuntu 20.04. I see a few new commits into master but nothing that seems to remedy this yet.

RE: When will tvh support for the Ubuntu 20.04 ? - Added by Flole Systems over 4 years ago

How about all the commits that mention support for focal?

RE: When will tvh support for the Ubuntu 20.04 ? - Added by Robert Accettura over 4 years ago

Looks like this commit got things farther:
https://github.com/tvheadend/tvheadend/pull/1338

The new error is:

/home/raccettura/tvheadend/build.linux/ffmpeg/build/ffmpeg/include/libavutil/mem.h:342:1: error: ‘alloc_size’ attribute ignored on a function returning ‘int’ [-Werror=attributes]
  342 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~
cc1: all warnings being treated as errors

RE: When will tvh support for the Ubuntu 20.04 ? - Added by Ron L over 4 years ago

That is ffmpeg source failing to build. Not sure if that is even addressable from the TVH end of things. One might need to go to ffmpeg and submit a bug that it fails to build on 20.04. Pretty sure it's something they would address quickly. Perhaps TVH build source may need to be set to pull in a new ffmpeg version???

RE: When will tvh support for the Ubuntu 20.04 ? - Added by Flole Systems over 4 years ago

New version is planned, it's still in the test phase to make sure it doesn't cause any issues. Should be merged in the next few days.

RE: When will tvh support for the Ubuntu 20.04 ? - Added by Robert Accettura over 4 years ago

Thanks. I'll stay tuned to retest.

RE: When will tvh support for the Ubuntu 20.04 ? - Added by Robert Accettura over 4 years ago

Builds successfully now.

Thanks!

    (1-13/13)