Package Details: tvheadend 4.2.8-5

Git Clone URL: https://aur.archlinux.org/tvheadend.git (read-only, click to copy)
Package Base: tvheadend
Description: TV streaming server for Linux
Upstream URL: https://tvheadend.org/projects/tvheadend
Keywords: tvheadend
Licenses: GPL3
Conflicts: tvheadend-git
Provides: tvheadend
Submitter: BELzEBUB
Maintainer: LukyLX (Louis)
Last Packager: Louis
Votes: 113
Popularity: 0.023664
First Submitted: 2012-10-25 08:49 (UTC)
Last Updated: 2023-05-15 20:45 (UTC)

Dependencies (11)

Required by (0)

Sources (4)

Latest Comments

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

Neil commented on 2020-10-03 19:27 (UTC)

@pelle

Here's my git diff:

# git diff
diff --git a/PKGBUILD b/PKGBUILD
index 5a45b9f..5795410 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -30,6 +30,8 @@ sha256sums=    ('1aef889373d5fad2a7bd2f139156d4d5e34a64b6d38b87b868a2df415f01f7ad'
 prepare() {
     cd "${srcdir}/${pkgname}-${pkgver}"

+    CFLAGS="${CFLAGS} -Wno-error=format-truncation"
+
     # Patch tvheadend.service for Arch Linux
     patch -p1 -i "${srcdir}/tvheadend-service.patch"

As you can see I just added the line above to the prepare() function in PKGBUILD.

Hope this helps,

Neil.

pelle commented on 2020-10-01 09:04 (UTC) (edited on 2020-10-01 09:05 (UTC) by pelle)

@Neil

I've tried it too and fail.

I've tried the following:

...

detect libavresample and prepare for using it
uselibav=""
if [ -f /usr/include/libavresample/avresample.h ]; then
    echo "libavresample found, enabling use of libav!"
    CFLAGS="$CFLAGS -Wno-error=format-truncation"
else

...

I get the error message, see @pokabjoern.

What am I doing wrong?

thanks in advance

Neil commented on 2020-09-23 22:08 (UTC)

Thanks @pokabjoern - now I can build tvheadend also :-)

pokabjoern commented on 2020-08-15 06:52 (UTC)

I had to add

CFLAGS="$CFLAGS -Wno-error=format-truncation"
to PKGBUILD's build section, otherwise makepkg fails:

CC              src/epggrab/module/xmltv.o
src/epggrab/module/xmltv.c: In Funktion »_xmltv_parse«:
src/epggrab/module/xmltv.c:197:47: Fehler: Ausgabe der »%s«-Direktive könnte abgeschnitten sein, beim Schreiben von 2 bis 2147483645 Bytes in eine Region der Größe 115 [-Werror=format-truncation=]
  197 |   snprintf(buf, sizeof(buf)-1, "ddprogid://%s/%s", mod->id, s);
      |                                               ^~
src/epggrab/module/xmltv.c:197:3: Anmerkung: »snprintf« hat 15 oder mehr Bytes (angenommen 2147483658) in das Ziel der Größe 127 ausgegeben
  197 |   snprintf(buf, sizeof(buf)-1, "ddprogid://%s/%s", mod->id, s);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: Alle Warnungen werden als Fehler behandelt
make: *** [Makefile:643: /home/sascha/tvheadend/src/tvheadend-4.2.8/build.linux/src/epggrab/module/xmltv.o] Fehler 1
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...

elParaguayo commented on 2020-06-29 09:00 (UTC)

libavresample.so is shows as an optional dependency. Is it worth flagging that it needs to be installed when tvheadend is built if you want transcoding support?

berturion commented on 2020-06-18 11:23 (UTC)

Hello, thank you for this package. I wanted to say that the compilation via yay doesn't work. I had to go to ~/.cache/yay/tvheadend and execute makepkg to successfully compile the program.

The error via yay is :

In function ‘transcoder_init_video’,
    inlined from ‘transcoder_start’ at src/plumbing/transcoding.c:2006:12,
    inlined from ‘transcoder_input’ at src/plumbing/transcoding.c:2061:10:
src/plumbing/transcoding.c:1807:3: error: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 127 [-Werror=stringop-truncation]
 1807 |   strncpy(codec_list, tp->tp_src_vcodec, sizeof(tp->tp_src_vcodec)-1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC              src/descrambler/emm_reass.o
CC              src/descrambler/capmt.o
CC              src/descrambler/constcw.o
CC              src/descrambler/ffdecsa/ffdecsa_interface.o
src/plumbing/transcoding.c: In function ‘transcoder_set_properties’:
src/plumbing/transcoding.c:2133:3: error: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Werror=stringop-truncation]
 2133 |   strncpy(tp->tp_vcodec, props->tp_vcodec, sizeof(tp->tp_vcodec)-1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/plumbing/transcoding.c:2134:3: error: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Werror=stringop-truncation]
 2134 |   strncpy(tp->tp_vcodec_preset, props->tp_vcodec_preset, sizeof(tp->tp_vcodec_preset)-1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/plumbing/transcoding.c:2135:3: error: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Werror=stringop-truncation]
 2135 |   strncpy(tp->tp_acodec, props->tp_acodec, sizeof(tp->tp_acodec)-1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/plumbing/transcoding.c:2136:3: error: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Werror=stringop-truncation]
 2136 |   strncpy(tp->tp_scodec, props->tp_scodec, sizeof(tp->tp_scodec)-1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/plumbing/transcoding.c:2144:3: error: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 127 [-Werror=stringop-truncation]
 2144 |   strncpy(tp->tp_src_vcodec, props->tp_src_vcodec, sizeof(tp->tp_src_vcodec)-1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC              src/descrambler/ffdecsa/ffdecsa_int.o
cc1: all warnings being treated as errors
make: *** [Makefile:643: /home/cthulhu/.cache/yay/tvheadend/src/tvheadend-4.2.8/build.linux/src/plumbing/transcoding.o] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
    Aborting...
Error making: tvheadend

Using makepkg directly, errors become warnings:

In function ‘transcoder_init_video’,
    inlined from ‘transcoder_start’ at src/plumbing/transcoding.c:2006:12,
    inlined from ‘transcoder_input’ at src/plumbing/transcoding.c:2061:10:
src/plumbing/transcoding.c:1807:3: warning: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation]
 1807 |   strncpy(codec_list, tp->tp_src_vcodec, sizeof(tp->tp_src_vcodec)-1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC              src/descrambler/capmt.o
CC              src/descrambler/constcw.o
CC              src/descrambler/ffdecsa/ffdecsa_interface.o
CC              src/descrambler/ffdecsa/ffdecsa_sse2.o
src/plumbing/transcoding.c: In function ‘transcoder_set_properties’:
src/plumbing/transcoding.c:2133:3: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation]
 2133 |   strncpy(tp->tp_vcodec, props->tp_vcodec, sizeof(tp->tp_vcodec)-1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/plumbing/transcoding.c:2134:3: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation]
 2134 |   strncpy(tp->tp_vcodec_preset, props->tp_vcodec_preset, sizeof(tp->tp_vcodec_preset)-1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/plumbing/transcoding.c:2135:3: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation]
 2135 |   strncpy(tp->tp_acodec, props->tp_acodec, sizeof(tp->tp_acodec)-1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/plumbing/transcoding.c:2136:3: warning: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation]
 2136 |   strncpy(tp->tp_scodec, props->tp_scodec, sizeof(tp->tp_scodec)-1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/plumbing/transcoding.c:2144:3: warning: ‘strncpy’ output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation]
 2144 |   strncpy(tp->tp_src_vcodec, props->tp_src_vcodec, sizeof(tp->tp_src_vcodec)-1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC              src/descrambler/libaesdec/libaesdec.o
CC              src/dbus.o

rndl commented on 2020-05-30 11:26 (UTC)

Hello, Now installation without issues . THANKS !!!!

m31aur commented on 2020-05-30 05:36 (UTC)

@LuckLX : After the patch it builds just fine. Many thanks for the response, time and work you spent.

zman0900 commented on 2020-05-29 17:52 (UTC)

@LuckLX: There is an upstream bug: https://tvheadend.org/issues/5862. I'm sure they would appreciate your patch.

I took the lazy route with the tvheadend-git package and just built with the "-fcommon" flag turned on.

LukyLX commented on 2020-05-29 17:06 (UTC)

Apparently, GCC 10 activated -fno-common by default which caused some issues building up until 4.2.8-3.

I added a patch in 4.2.8-4 so it should be able to build again. Please let me know if you encounter issues.