Bug 269415 - multimedia/Bento4: Missing headers needed for multimedia/kodi-addon-inputstream.adaptive
Summary: multimedia/Bento4: Missing headers needed for multimedia/kodi-addon-inputstre...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Rodrigo Osorio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-08 18:12 UTC by Daniel Ebdrup Jensen
Modified: 2023-04-13 07:16 UTC (History)
4 users (show)

See Also:
fernape: maintainer-feedback? (rodrigo)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Ebdrup Jensen freebsd_committer freebsd_triage 2023-02-08 18:12:09 UTC
According to bug #268987, comment #4 there are headers that are missing from this port, which are required in order to get one of the kodi plugins to function properly.

The inputstream add-on, among other things, is used by the youtube and twitch Kodi add-ons to ensure that streams (especially live broadcasts) gets delivered with much lower latency - which is central to the viewing experience if you're watching a live stream and communicating with other people regarding the stream.
Additionally, the inputstream add-on also significantly reduces the delay when scrubbing through video-on-demand on both the youtube and twitch kodi add-ons.

So I'd like to know if it's possible that this port can be fixed so that the headers are installed properly. This would allow the port for the inputstream add-on to be unbroken, and permit users of existing configurations to update kodi, without having to reconfigure add-ons to not use inputstream.
Comment 1 Rodrigo Osorio freebsd_committer freebsd_triage 2023-02-09 16:32:21 UTC
Looking at it.
Comment 2 Rodrigo Osorio freebsd_committer freebsd_triage 2023-02-13 19:40:07 UTC
bento4 project generate tarfiles with all the headers (144 files)
at the same location, include, which means /usr/include for our case.

This is one of the header line in the archive for linux:

Bento4-SDK-1-6-0-639.x86_64-unknown-linux/include/Ap4Array.h

I suggest for FreeBSD to use an additional directory "Bento4"
to store all the header on it. 

/usr/local/include/Bento4/Ap4Array.h

As a result, source code using Bento4 API can include it in both ways

#include <Ap4Array.h> with -H /usr/local/include/Bento4/
or
#include <Bento4/Ap4Array.h> with -H /usr/local/include/


If this solution looks good for you I can commit the fix ASAP

cheers
-- rodrigo
Comment 3 Daniel Ebdrup Jensen freebsd_committer freebsd_triage 2023-02-13 19:45:52 UTC
(In reply to Rodrigo Osorio from comment #2)
I think it's up to decke@ whether that works, as he's the maintainer of the inputstream port.
Comment 4 Bernhard Froehlich freebsd_committer freebsd_triage 2023-02-13 20:06:32 UTC
(In reply to Rodrigo Osorio from comment #2)
That sounds good to me since I would not want to pollute our standard include path either. So yes please go ahead and I will fix the inputstream plugin accordingly.
Comment 5 commit-hook freebsd_committer freebsd_triage 2023-02-13 21:52:05 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5a29e56fee6ff5e9e599b513b969e44c78d5b12e

commit 5a29e56fee6ff5e9e599b513b969e44c78d5b12e
Author:     Rodrigo Osorio <rodrigo@FreeBSD.org>
AuthorDate: 2023-02-13 21:05:44 +0000
Commit:     Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2023-02-13 21:39:30 +0000

    multimedia/Bento4: Fix packaging

    Add missing header files required by multimedia/kodi-addon-inputstream.adaptive
    Bump portrevision

    PR:             269415
    Reported by:    debdrup

 multimedia/Bento4/Makefile  |   5 +-
 multimedia/Bento4/pkg-plist | 145 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 149 insertions(+), 1 deletion(-)
Comment 6 Rodrigo Osorio freebsd_committer freebsd_triage 2023-02-13 21:52:58 UTC
Committed, thanks
Comment 7 Daniel Ebdrup Jensen freebsd_committer freebsd_triage 2023-02-14 13:05:55 UTC
Bernhard, do you want me to open a report for the inputstream port?
Comment 8 Lars Herschke 2023-04-13 07:16:33 UTC
(In reply to Daniel Ebdrup Jensen from comment #7)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270794