Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openelec 8.0 #5063

Open
wants to merge 228 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
228 commits
Select commit Hold shift + click to select a range
f22a6ee
new addon: (re)add addon 'tools.file'
sraue Apr 3, 2017
4ccc025
new addon: (re)add addon 'debug.tools.htop'
sraue Apr 3, 2017
b6fdd8f
new addon: (re)add addon 'tools.mesa-demos'
sraue Apr 3, 2017
75f5f97
new addon: (re)add addon 'debug.tools.strace'
sraue Apr 3, 2017
f544402
new addon: (re)add addon 'tools.mc'
sraue Apr 3, 2017
4c47751
scripts/build: search in $INSTALL/lib and $INSTALL/usr/lib for kernel…
sraue Apr 3, 2017
3b47528
libva: fix build, cleanup
sraue Apr 3, 2017
5c0ff9e
script.config.vdr: update PKG_ADDON_REPOVERSION
sraue Apr 3, 2017
e9fef74
linux: update to linux-a196d98
sraue Apr 3, 2017
dc0a557
openssh: remove sftp server and client support
sraue Apr 4, 2017
9876311
glfw: fix build, build libs only
sraue Apr 5, 2017
9a942f5
new addon: (re)add addon 'tools.w_scan'
sraue Apr 5, 2017
9fe846e
kodi: update repository.openelec.tv to 8.1.0
sraue Apr 5, 2017
d7ef92e
libdrm: update to libdrm-2.4.77
sraue Apr 6, 2017
3954e71
libpciaccess: update to libpciaccess-0.13.5
sraue Apr 6, 2017
6259ff7
vdr: add upstream patch to dynamically resize buffer for caids
sraue Apr 6, 2017
25387c8
bump to vdr-addon-8.1.1, update changelog
sraue Apr 6, 2017
db22e11
projects/WeTek_*/linux: switch to CONFIG_CPU_FREQ_DEFAULT_GOV_HOTPLUG
sraue Apr 7, 2017
4e10d7b
new addon: add addon 'screen'
sraue Apr 8, 2017
ecc0fee
libdrm: update to libdrm-2.4.78
sraue Apr 8, 2017
a7a0f36
linux: update to linux-4.9.21/3f53e78
sraue Apr 8, 2017
52a1cc9
bcm2835-firmware: update to bcm2835-firmware-b038854
sraue Apr 8, 2017
e15338a
libdrm: update to libdrm-2.4.79
sraue Apr 8, 2017
75b5f78
libpng: update to libpng-1.6.29
sraue Apr 8, 2017
a1f4af4
psplash: use standard font for now
sraue Apr 9, 2017
f494188
busybox: wait a bit after progress message is written
sraue Apr 9, 2017
c4693b6
screen: cleanup leftovers
sraue Apr 9, 2017
0d4ea03
config/version: set version to 8.0.0
sraue Apr 10, 2017
1e0d784
config/version: set version back to 'devel'
sraue Apr 10, 2017
3356fa0
wetekdvb: update to wetekdvb-20170404
sraue Apr 11, 2017
3bcc436
libva: update to libva-1.8.1
sraue Apr 11, 2017
22c7101
intel-vaapi-driver: update to intel-vaapi-driver-1.8.1
sraue Apr 11, 2017
63a8e74
busybox: show messages on the splashscreen in fs-resize script
sraue Apr 11, 2017
c062131
Revert "openssh: remove sftp server and client support"
sraue Apr 11, 2017
baaeaa1
linux: update to linux-5e4ee83
sraue Apr 11, 2017
3bd5391
systemd: use external blkid
sraue Apr 11, 2017
d176945
udevil: use external blkid
sraue Apr 11, 2017
a508a1e
kodi-addons: update binary addons
sraue Apr 12, 2017
5eb070b
linux: enable CONFIG_NET_SCH_FQ_CODEL
sraue Apr 14, 2017
86ce5af
samba: rename userconfig and sample config
sraue Apr 14, 2017
bea5525
busybox: fix check for fs-resize
sraue Apr 14, 2017
bfe9361
nano: update to nano-2.8.1
sraue Apr 14, 2017
d305652
mediacenter: install inputstream.rtmp and inputstream.adaptive by def…
sraue Apr 14, 2017
c0963ec
kodi: rename old database files. KODI fails on *every* major upgrade …
sraue Apr 11, 2017
6befa2b
ffmpeg: update RPi upstream patch
sraue Apr 14, 2017
77ccd29
kodi: update to kodi-39e9963
sraue Apr 14, 2017
2d75217
imx6-status-led: fix systemd startscript
sraue Apr 14, 2017
f9dec9a
imx6: dont install iwlwifi-firmware
sraue Apr 14, 2017
48928a1
Revert "linux: build network support and lan drivers as modules"
sraue Apr 14, 2017
1a5c5b9
Revert "linux: build nfs support as modules"
sraue Apr 14, 2017
8691dac
config/version: set version to 8.0.1
sraue Apr 14, 2017
178f30a
config/version: set version back to 'devel'
sraue Apr 15, 2017
4c70a78
libdrm: update to libdrm-2.4.80
sraue Apr 15, 2017
249dd91
installer: quit splash and switch to terminal 2
sraue Apr 16, 2017
a69f3d0
linux: disable CONFIG_RTL8XXXU, this driver actually dont work with r…
sraue Apr 16, 2017
4ade1d8
mesa: update to mesa-17.0.4
sraue Apr 18, 2017
d6f72bb
linux: add CONFIG_SND_SOC_STA32X and CONFIG_SND_SOC_WM8804_I2C for RP…
sraue Apr 18, 2017
02d272d
kodi: remove 0 byte database files
sraue Apr 18, 2017
f34d634
linux: update to linux-4.9.23/7213439
sraue Apr 18, 2017
0d4359d
curl: update to curl-7.54.0
sraue Apr 19, 2017
e04d894
kodi: add patch which cleansup FindSSE.cmake, force building libsse4.…
sraue Apr 19, 2017
df5ecb3
remove package 'boost'
sraue Apr 20, 2017
8a7f97d
kodi-platform: cleanup
sraue Apr 20, 2017
cd1d953
p8-platform: cleanup
sraue Apr 20, 2017
84deac5
kodi: set WITH_CPU for x86_64
sraue Apr 20, 2017
09a2091
packages/linux-drivers/gpu-aml: Use RFC date in version string to avo…
codesnake Apr 21, 2017
e4653b7
linux: update to linux-4.9.24/53460a0
sraue Apr 22, 2017
b110e11
busybox: /var should not be unmounted on shutdown/reboot
sraue Apr 22, 2017
432da91
dbus: update to dbus-1.10.18
sraue Apr 22, 2017
586fbd5
fuse: use own systemd startscript
sraue Apr 22, 2017
a0e3fd8
linux: load configs from /storage/.config/modules-load.d too
sraue Apr 22, 2017
1223fa5
fuse: load module on boot
sraue Apr 22, 2017
bac7a15
kodi: add PR11619
sraue Apr 22, 2017
4deeaf1
alsa-lib: add upstream patches
sraue Apr 22, 2017
420c8b8
linux: enable CONFIG_FSCACHE
sraue Apr 22, 2017
1996376
linux: enable CONFIG_NFS_FSCACHE
sraue Apr 22, 2017
bc74bda
config/version: set version to 8.0.2
sraue Apr 15, 2017
f220b29
config/version: set version back to 'devel'
sraue Apr 23, 2017
d4ff49e
scripts/create_addon: dont mess with Kodis library version, simply pr…
sraue Apr 23, 2017
3bc9baf
screensavers.rsxs: dont mess with Kodis library version, simply provi…
sraue Apr 23, 2017
d777eef
htop: simplyfing changelog
sraue Apr 23, 2017
7501875
strace: simplyfing changelog
sraue Apr 23, 2017
23f6bf2
hdhomerun: simplyfing changelog
sraue Apr 23, 2017
fc45d04
imon-mce: simplyfing changelog
sraue Apr 23, 2017
56f72d2
sundtek-mediatv: simplyfing changelog
sraue Apr 23, 2017
f4aef88
repository.unofficial.addon.pro: simplyfing changelog
sraue Apr 23, 2017
a53dbc6
boblightd: simplyfing changelog
sraue Apr 23, 2017
3542d55
vdr-addon: simplyfing changelog
sraue Apr 23, 2017
632f043
screen: simplyfing changelog
sraue Apr 23, 2017
ee3be81
file: simplyfing changelog
sraue Apr 23, 2017
996a49a
mc: simplyfing changelog
sraue Apr 23, 2017
0fac7ac
mesa-demos: simplyfing changelog
sraue Apr 23, 2017
5321d54
w_scan: simplyfing changelog
sraue Apr 23, 2017
21a1524
kodi: remove hack
sraue Apr 24, 2017
f2c7766
htop: remove $PKG_ADDON_REPOVERSION
sraue Apr 24, 2017
fc5a4fc
strace: remove $PKG_ADDON_REPOVERSION
sraue Apr 24, 2017
dc41883
hdhomerun: remove $PKG_ADDON_REPOVERSION
sraue Apr 24, 2017
e104275
imon-mce: remove $PKG_ADDON_REPOVERSION
sraue Apr 24, 2017
e2132b3
sundtek-mediatv: remove $PKG_ADDON_REPOVERSION
sraue Apr 24, 2017
5a239da
script.config.vdr: remove $PKG_ADDON_REPOVERSION
sraue Apr 24, 2017
b6b13f1
boblightd: remove $PKG_ADDON_REPOVERSION
sraue Apr 24, 2017
0df9a6a
vdr-addon: remove $PKG_ADDON_REPOVERSION
sraue Apr 24, 2017
fc1bf54
file: remove $PKG_ADDON_REPOVERSION
sraue Apr 24, 2017
5b24d1d
mc: remove $PKG_ADDON_REPOVERSION
sraue Apr 24, 2017
9beda9d
mesa-demos: remove $PKG_ADDON_REPOVERSION
sraue Apr 24, 2017
0c0ac25
w_scan: remove $PKG_ADDON_REPOVERSION
sraue Apr 24, 2017
f24d787
screen: remove $PKG_ADDON_REPOVERSION
sraue Apr 24, 2017
059e577
imon-mce: bump PKG_VERSION
sraue Apr 24, 2017
6ad544f
sundtek-mediatv: bump PKG_VERSION
sraue Apr 24, 2017
f87df67
repository.unofficial.addon.pro: bump PKG_VERSION
sraue Apr 24, 2017
e6a7f69
vdr-addon: bump PKG_VERSION
sraue Apr 24, 2017
383e765
config/version: bump $ADDON_VERSION
sraue Apr 24, 2017
5a646f6
projects/RPi*/linux: disable CONFIG_USB_UAS
sraue Apr 25, 2017
2965346
config/path: suffix CCACHE_DIR path with OS_VERSION
sraue Apr 25, 2017
d65e762
mariadb: update to mariadb-10.1.22
sraue Apr 25, 2017
22d8856
samba: update to samba-4.6.3
sraue Apr 25, 2017
2bd6c64
kodi: update upstream patches
sraue Apr 26, 2017
eb9f2d2
kodi: add upstream patches
sraue Apr 26, 2017
42b2d14
connman: update to connman-1.34
sraue Apr 27, 2017
f403caa
libsndfile: update to libsndfile-1.0.28
sraue Apr 28, 2017
140bd87
linux: update to linux-4.9.25/525571c
sraue Apr 28, 2017
90c63a5
projects/*/options: remove references to dropped ATV client support
sraue Apr 28, 2017
cbe83f5
libinput: update to libinput-1.7.1
sraue Apr 28, 2017
73e81eb
libcec: update to libcec-3953f8d
sraue Apr 28, 2017
80305c9
bcm2835-firmware: update to bcm2835-firmware-481748f
sraue Apr 28, 2017
6594767
mesa: update to mesa-17.0.5
sraue Apr 29, 2017
9d5a51d
kodi: force using SMB3 support
sraue Apr 29, 2017
9a5bbeb
installer: reset screen then clearing, dont clear on menu reload
sraue Apr 29, 2017
75c1c96
kodi: update to repository.openelec.tv-8.2.0
sraue Apr 30, 2017
1d0530b
config/version: set version to 8.0.3
sraue Apr 28, 2017
cdebf35
config/version: set version back to 'devel'
sraue May 1, 2017
5f75276
libpng: enable SSE support on x86_64 builds
sraue May 1, 2017
2e42547
cmake: update to cmake-3.8.1
sraue May 2, 2017
05df913
libhdhomerun: update to libhdhomerun-20161117
sraue May 3, 2017
33f3de4
projects/*/options: build libhdhomerun
sraue May 3, 2017
82f4691
remove package 'dvbhdhomerun'
sraue May 3, 2017
38da747
projects/*/linux: use CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND instead CO…
sraue May 3, 2017
f0906ce
mariadb: update to mariadb-10.1.23
sraue May 4, 2017
216abd5
nano: update to nano-2.8.2
sraue May 5, 2017
e457236
xf86-input-libinput: update to xf86-input-libinput-0.25.1
sraue May 5, 2017
884730e
linux: update to linux-4.9.26
sraue May 7, 2017
c610f3f
projects/imx6/linux: disable CONFIG_MX3_IPU
sraue May 7, 2017
74cde54
newt: update to newt-0.52.20
sraue May 7, 2017
a25e0ff
libepoxy: update to libepoxy-1.4.2
sraue May 7, 2017
616150a
bluez: update to bluez-5.45
sraue May 7, 2017
5a4083e
libssh: update to libssh-0.7.5
sraue May 7, 2017
5c40189
fuse-exfat: update to fuse-exfat-1.2.6
sraue May 7, 2017
38d1215
keyutils: update to keyutils-1.5.10
sraue May 7, 2017
890786f
libevdev: update to libevdev-1.5.7
sraue May 7, 2017
62d555a
libusb: update to libusb-1.0.21
sraue May 7, 2017
24d46a9
pciutils: update to pciutils-3.5.4
sraue May 7, 2017
90102b0
v4l-utils: update to v4l-utils-1.12.3
sraue May 7, 2017
4484987
xkbcomp: update to xkbcomp-1.4.0
sraue May 7, 2017
7d85693
xkeyboard-config: update to xkeyboard-config-2.20
sraue May 7, 2017
a468871
remove package 'irqbalance'
sraue May 7, 2017
2fe0f6f
pkg-config: update to pkg-config-0.29.2
sraue May 7, 2017
0985aee
swig: update to swig-3.0.12
sraue May 7, 2017
5e5ea4f
hdparm: update to hdparm-9.52
sraue May 7, 2017
ac8946b
flex: update to flex-2.6.4
sraue May 7, 2017
2696102
distributions/OpenELEC/options: move $GRAPHIC_DRIVERS to project options
sraue May 7, 2017
e9bbde0
psplash: install v86d with enabled uvesafb support enabled
sraue May 10, 2017
5f54573
Revert "connman: update to connman-1.34"
sraue May 10, 2017
989604c
kodi: remove network-online service file
sraue May 11, 2017
bfb3f4f
kodi: merge kodi-autostart.service with kodi.service
sraue May 11, 2017
d7449e7
connman: cleanup network-online.service file
sraue May 11, 2017
daa7488
libnfs: update to libnfs-14adfbf
sraue May 11, 2017
ca3c9e9
linux: install v86d:init from here
sraue May 11, 2017
38601ee
mesa: update to mesa-17.0.6
sraue May 17, 2017
de9538b
bcm2835-firmware: update to bcm2835-firmware-f3b0e1f
sraue May 17, 2017
200b527
linux: update to linux-4.9.27
sraue May 17, 2017
2547b01
kodi: merge kodi-cleanlogs.service with kodi.service
sraue May 17, 2017
84b4ce0
alsa-lib: update to alsa-lib-1.1.4
sraue May 17, 2017
d28c3e9
alsa-utils: update to alsa-utils-1.1.4
sraue May 17, 2017
c840415
nano: update to nano-2.8.3
sraue May 19, 2017
ba5d8e1
xorg-server: remove doxygen generation
malaterre May 19, 2017
7e272ae
libxcb: disable building of docs
malaterre May 19, 2017
22276b9
libevdev: disable doxygen build using /bin/true
malaterre May 19, 2017
794455f
libsndfile: add fPIC cflags
malaterre May 18, 2017
423afd7
sbc: add fPIC cflags
malaterre May 18, 2017
50c42d0
soxr: add fPIC cflags
malaterre May 18, 2017
674f51c
speex: add fPIC cflags
malaterre May 18, 2017
ca96e88
sqlite: add fPIC cflags
malaterre May 18, 2017
0dc2c2d
lcms2: add fPIC cflags
malaterre May 18, 2017
dcf8cd6
libugpio: add fPIC cflags
malaterre May 18, 2017
e8e5e19
netbsd-curses: add fPIC cflags
malaterre May 18, 2017
aab66d0
popt: add fPIC cflags
malaterre May 18, 2017
8d27c3d
readline: add fPIC cflags
malaterre May 18, 2017
87daf51
freetype: add fPIC cflags
malaterre May 18, 2017
e09a720
libgpg-error: add fPIC cflags
malaterre May 18, 2017
f1f330b
rtmpdump: add fPIC cflags
malaterre May 18, 2017
6bffb92
mtdev: add fPIC cflags
malaterre May 18, 2017
13267d4
fontconfig: add fPIC cflag/cxxflags
malaterre May 19, 2017
b76a597
libjpeg-turbo: fix compilation on mipsel
malaterre May 19, 2017
277e300
gcc: add libatomic option
malaterre May 2, 2017
5d8a8f5
systemd: fix systemsleepdir
sraue May 20, 2017
067664c
mariadb: use libatomic to emulate 64bits atomic ops
malaterre May 19, 2017
8d2c741
mariadb: handle unaligned buffers in TYPBLK class
malaterre May 19, 2017
a25cb71
mariadb: ensure groonga is build with libatomic
malaterre May 19, 2017
12fc5b1
mariadb: fix DEFAULT_MACHINE on mips
malaterre May 19, 2017
1b4eade
mariadb: remove some tests
malaterre May 19, 2017
78bcc51
linux: update to linux-4.9.29/2f502e7
sraue May 21, 2017
95d98ff
bcm2835-firmware: update to bcm2835-firmware-89ec375
sraue May 21, 2017
5355a27
sqlite: update to sqlite-autoconf-3190000
sraue May 24, 2017
d749725
nano: update to nano-2.8.4
sraue May 25, 2017
1303f00
smaba: update to samba-4.6.4
sraue May 25, 2017
e70f331
sqlite: update to sqlite-autoconf-3190200
sraue May 27, 2017
88901ba
Revert "udevil: use external blkid"
sraue May 27, 2017
507b415
Revert "systemd: use external blkid"
sraue May 27, 2017
08957c1
Revert "systemd: disable blkid support"
sraue May 27, 2017
bc1cda6
projects/RPi*/linux: enable CONFIG_I2C_BCM2835 and CONFIG_RTC_DRV_PCF…
sraue May 28, 2017
9e9e1d1
projects/*/linux: enable CONFIG_EXTCON
sraue May 28, 2017
516d1ce
projects/*/linux: enable CONFIG_REGULATOR and CONFIG_REGULATOR_FIXED_…
sraue May 28, 2017
7eb3961
linux: enable CONFIG_SND_SOC_ADAU7002,CONFIG_SND_SOC_CS4265 and CONFI…
sraue May 28, 2017
3e10ffb
kodi: update to kodi-17.3
sraue May 28, 2017
16c0386
autoconf-archive: update to autoconf-archive-2017.03.21
sraue May 28, 2017
db0422a
libdrm: update to libdrm-2.4.81
sraue May 28, 2017
ddf841a
libva: update to libva-1.8.2
sraue May 28, 2017
6edcbcd
intel-vaapi-driver: update to intel-vaapi-driver-1.8.2
sraue May 28, 2017
04a0009
dosfstools: update to dosfstools-4.1
sraue May 28, 2017
fbc6533
projects/RPi2/linux: enable CONFIG_KERNEL_MODE_NEON
sraue May 28, 2017
af15d96
linux: update to linux-4.9.30
sraue May 29, 2017
9134af2
alsa-lib: update to alsa-lib-1.1.4.1
sraue Jun 1, 2017
2e72a69
cmake: update to cmake-3.8.2
sraue Jun 1, 2017
e12e4df
mesa: update to mesa-17.0.7
sraue Jun 2, 2017
c9084d4
Revert "kodi: merge kodi-autostart.service with kodi.service"
sraue Jun 2, 2017
ecca152
wetekdvb: update to wetekdvb-20170602
sraue Jun 3, 2017
e32c2f5
config/version: set version to 8.0.4
sraue May 2, 2017
3adeb5f
config/version: set version back to 'devel'
sraue Jun 4, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/path
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ SED="sed -i"
. config/optimize

if [ -z "$CCACHE_DIR" ]; then
export CCACHE_DIR=$HOME/.ccache-openelec
export CCACHE_DIR=$HOME/.ccache-openelec-$OS_VERSION
fi
export MAKEFLAGS=-j$CONCURRENCY_MAKE_LEVEL
export PKG_CONFIG=$ROOT/$TOOLCHAIN/bin/pkg-config
Expand Down
2 changes: 1 addition & 1 deletion config/version
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
OS_VERSION="8.0"

# ADDON_VERSION: Addon version
ADDON_VERSION="8.1"
ADDON_VERSION="8.2"

7 changes: 1 addition & 6 deletions distributions/OpenELEC/options
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
# for a list of additinoal drivers see packages/linux-drivers
# Space separated list is supported,
# e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2"
ADDITIONAL_DRIVERS="RTL8192DU RTL8192EU RTL8812AU mt7610u" # todo: dvbhdhomerun
ADDITIONAL_DRIVERS="RTL8192DU RTL8192EU RTL8812AU mt7610u libhdhomerun"

# build and install bluetooth support (yes / no)
BLUETOOTH_SUPPORT="yes"
Expand Down Expand Up @@ -145,11 +145,6 @@
# Windowmanager to use (ratpoison / fluxbox / none)
WINDOWMANAGER="fluxbox"

# Xorg Graphic drivers to use (all / i915,i965,r200,r300,r600,nvidia)
# Space separated list is supported,
# e.g. GRAPHIC_DRIVERS="i915 i965 r300 r600 radeonsi nvidia"
GRAPHIC_DRIVERS="r200 r300 r600 radeonsi i915 i965 nvidia nvidia-legacy"

# build and install remote support (yes / no)
REMOTE_SUPPORT="yes"

Expand Down
5 changes: 3 additions & 2 deletions packages/addons/depends/graphics/glfw/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ if [ ! "$OPENGL" = "mesa" ] ; then
fi

make_target() {
make x11 PREFIX=$SYSROOT_PREFIX/usr
make lib/x11/Makefile.x11
make -C lib/x11 -f Makefile.x11 PREFIX=$SYSROOT_PREFIX/usr libglfw.a
}

makeinstall_target() {
make x11-install PREFIX=$SYSROOT_PREFIX/usr
make -C lib/x11 -f Makefile.x11 PREFIX=$SYSROOT_PREFIX/usr install
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
Description: dynamically resize buffer for caids
Forwarded: yes
Author: Lars Hanisch <[email protected]>

diff --git a/ci.c b/ci.c
index ffc7ff7..8bfae23 100644
--- a/ci.c
+++ b/ci.c
@@ -25,6 +25,8 @@
#include "skins.h"
#include "tools.h"

+#define CAID_BUFSIZE 1024
+
// Set these to 'true' for debug output:
static bool DumpTPDUDataTransfer = false;
static bool DebugProtocol = false;
@@ -763,9 +765,12 @@ private:
int transponder;
int programNumber;
int caSystemIds[MAXCASYSTEMIDS + 1]; // list is zero terminated!
+ uint8_t *caDescriptors;
+ int caBufSize;
void AddCaDescriptors(int Length, const uint8_t *Data);
public:
cCiCaPmt(uint8_t CmdId, int Source, int Transponder, int ProgramNumber, const int *CaSystemIds);
+ ~cCiCaPmt(void);
uint8_t CmdId(void) { return cmdId; }
void SetListManagement(uint8_t ListManagement);
uint8_t ListManagement(void) { return capmt[0]; }
@@ -784,8 +789,15 @@ cCiCaPmt::cCiCaPmt(uint8_t CmdId, int Source, int Transponder, int ProgramNumber
caSystemIds[i] = CaSystemIds[i];
}
caSystemIds[i] = 0;
- uint8_t caDescriptors[512];
- int caDescriptorsLength = GetCaDescriptors(source, transponder, programNumber, caSystemIds, sizeof(caDescriptors), caDescriptors, 0);
+ caBufSize = CAID_BUFSIZE;
+ caDescriptors = new uint8_t[caBufSize];
+ int caDescriptorsLength = GetCaDescriptors(source, transponder, programNumber, caSystemIds, caBufSize, caDescriptors, 0);
+ if (caDescriptorsLength < 0) {
+ delete [] caDescriptors;
+ caBufSize = -caDescriptorsLength + 8;
+ caDescriptors = new uint8_t[caBufSize];
+ caDescriptorsLength = GetCaDescriptors(source, transponder, programNumber, caSystemIds, caBufSize, caDescriptors, 0);
+ }
length = 0;
capmt[length++] = CPLM_ONLY;
capmt[length++] = (ProgramNumber >> 8) & 0xFF;
@@ -797,6 +809,11 @@ cCiCaPmt::cCiCaPmt(uint8_t CmdId, int Source, int Transponder, int ProgramNumber
AddCaDescriptors(caDescriptorsLength, caDescriptors);
}

+cCiCaPmt::~cCiCaPmt(void)
+{
+ delete [] caDescriptors;
+}
+
void cCiCaPmt::SetListManagement(uint8_t ListManagement)
{
capmt[0] = ListManagement;
@@ -805,21 +822,34 @@ void cCiCaPmt::SetListManagement(uint8_t ListManagement)
void cCiCaPmt::AddPid(int Pid, uint8_t StreamType)
{
if (Pid) {
- uint8_t caDescriptors[512];
- int caDescriptorsLength = GetCaDescriptors(source, transponder, programNumber, caSystemIds, sizeof(caDescriptors), caDescriptors, Pid);
- //XXX buffer overflow check???
- capmt[length++] = StreamType;
- capmt[length++] = (Pid >> 8) & 0xFF;
- capmt[length++] = Pid & 0xFF;
- esInfoLengthPos = length;
- capmt[length++] = 0x00; // ES_info_length H (at ES level)
- capmt[length++] = 0x00; // ES_info_length L
- AddCaDescriptors(caDescriptorsLength, caDescriptors);
+ int caDescriptorsLength = GetCaDescriptors(source, transponder, programNumber, caSystemIds, caBufSize, caDescriptors, Pid);
+ if (caDescriptorsLength < 0) {
+ delete [] caDescriptors;
+ caBufSize = -caDescriptorsLength + 8;
+ caDescriptors = new uint8_t[caBufSize];
+ caDescriptorsLength = GetCaDescriptors(source, transponder, programNumber, caSystemIds, caBufSize, caDescriptors, Pid);
+ }
+ if (length + 5 < int(sizeof(capmt))) {
+ capmt[length++] = StreamType;
+ capmt[length++] = (Pid >> 8) & 0xFF;
+ capmt[length++] = Pid & 0xFF;
+ esInfoLengthPos = length;
+ capmt[length++] = 0x00; // ES_info_length H (at ES level)
+ capmt[length++] = 0x00; // ES_info_length L
+ AddCaDescriptors(caDescriptorsLength, caDescriptors);
+ }
+ else
+ esyslog("ERROR: buffer overflow in CA descriptor");
}
}

void cCiCaPmt::AddCaDescriptors(int Length, const uint8_t *Data)
{
+ if (Length < 0) {
+ dsyslog("DEBUG: calling AddCaDescriptors with Length %d", Length);
+ return;
+ }
+
if (esInfoLengthPos) {
if (length + Length < int(sizeof(capmt))) {
if (Length || cmdId == CPCI_QUERY) {
diff --git a/pat.c b/pat.c
index 98d306e..9dfbc62 100644
--- a/pat.c
+++ b/pat.c
@@ -165,21 +165,25 @@ int cCaDescriptors::GetCaDescriptors(const int *CaSystemIds, int BufSize, uchar
return 0;
if (BufSize > 0 && Data) {
int length = 0;
+ bool tooSmall = false;
for (cCaDescriptor *d = caDescriptors.First(); d; d = caDescriptors.Next(d)) {
if (EsPid < 0 || d->EsPid() == EsPid) {
const int *caids = CaSystemIds;
do {
if (*caids == 0xFFFF || d->CaSystem() == *caids) {
- if (length + d->Length() <= BufSize) {
+ if (length + d->Length() <= BufSize)
memcpy(Data + length, d->Data(), d->Length());
- length += d->Length();
- }
else
- return -1;
+ tooSmall = true;
+ length += d->Length();
}
} while (*++caids);
}
}
+ if (tooSmall) {
+ dsyslog("DEBUG: buffer for ca-descriptors too small (%d, needed %d)", BufSize, length);
+ return -length;
+ }
return length;
}
return -1;
diff --git a/pat.h b/pat.h
index 19e60dc..8bf0738 100644
--- a/pat.h
+++ b/pat.h
@@ -45,7 +45,7 @@ int GetCaDescriptors(int Source, int Transponder, int ServiceId, const int *CaSy
///< are copied that match one of the given CA system IDs (or all of them, if CaSystemIds
///< is 0xFFFF).
///< Returns the number of bytes copied into Data (0 if no CA descriptors are
- ///< available), or -1 if BufSize was too small to hold all CA descriptors.
+ ///< available), or -(NeededBufSize) if BufSize was too small to hold all CA descriptors.

int GetCaPids(int Source, int Transponder, int ServiceId, const int *CaSystemIds, int BufSize, int *Pids);
///< Gets all CA pids for a given channel.

1 change: 1 addition & 0 deletions packages/addons/official/debug/htop/changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
see https://github.com/OpenELEC/OpenELEC.tv/tree/master/packages/addons/official
Binary file added packages/addons/official/debug/htop/icon/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions packages/addons/official/debug/htop/package.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2017 Stephan Raue ([email protected])
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################

PKG_NAME="htop"
PKG_VERSION="2.0.2"
PKG_REV="0"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://htop.sourceforge.net/"
PKG_URL="http://hisham.hm/htop/releases/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain netbsd-curses"
PKG_PRIORITY="optional"
PKG_SECTION="debug/tools"
PKG_SHORTDESC="htop: Htop is an ncurses based interactive process viewer for Linux."
PKG_LONGDESC="Htop is an ncurses based interactive process viewer for Linux."

PKG_IS_ADDON="yes"
PKG_ADDON_TYPE="xbmc.python.script"
PKG_ADDON_PROVIDES=""

PKG_AUTORECONF="yes"

PKG_CONFIGURE_OPTS_TARGET="ac_cv_lib_curses_refresh=yes \
--enable-cgroup \
--disable-vserver \
--disable-unicode \
--enable-proc \
--disable-hwloc \
--with-gnu-ld"

pre_configure_target() {
# htop fails to build in subdirs
cd $ROOT/$PKG_BUILD
rm -rf .$HOST_NAME

export LIBS="-lncurses -lterminfo"
}

makeinstall_target() {
: # nop
}

addon() {
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin
cp -P $PKG_BUILD/htop $ADDON_BUILD/$PKG_ADDON_ID/bin
}
26 changes: 26 additions & 0 deletions packages/addons/official/debug/htop/patches/htop-curses.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff -Naur htop-2.0.2/configure.ac htop-2.0.2.patch/configure.ac
--- htop-2.0.2/configure.ac 2016-07-21 21:54:31.000000000 +0200
+++ htop-2.0.2.patch/configure.ac 2017-01-02 13:49:04.712274123 +0100
@@ -191,9 +191,10 @@
HTOP_CHECK_LIB([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW],
HTOP_CHECK_LIB([ncursesw], [addnwstr], [HAVE_LIBNCURSESW],
HTOP_CHECK_LIB([ncurses], [addnwstr], [HAVE_LIBNCURSESW],
+ HTOP_CHECK_LIB([curses], [addnwstr], [HAVE_LIBNCURSESW],
missing_libraries="$missing_libraries libncursesw"
AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.])
- ))))))
+ )))))))

AC_CHECK_HEADERS([ncursesw/curses.h],[:],
[AC_CHECK_HEADERS([ncurses/ncurses.h],[:],
@@ -204,8 +205,9 @@
HTOP_CHECK_SCRIPT([ncurses], [refresh], [HAVE_LIBNCURSES], "ncurses5-config",
HTOP_CHECK_LIB([ncurses6], [refresh], [HAVE_LIBNCURSES],
HTOP_CHECK_LIB([ncurses], [refresh], [HAVE_LIBNCURSES],
+ HTOP_CHECK_LIB([curses], [refresh], [HAVE_LIBNCURSES],
missing_libraries="$missing_libraries libncurses"
- ))))
+ )))))

AC_CHECK_HEADERS([curses.h],[:],
[AC_CHECK_HEADERS([ncurses/curses.h],[:],
21 changes: 21 additions & 0 deletions packages/addons/official/debug/htop/source/default.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2017 Stephan Raue ([email protected])
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
import xbmcgui

dialog = xbmcgui.Dialog()
dialog.ok('', 'This is a console-only addon')
1 change: 1 addition & 0 deletions packages/addons/official/debug/strace/changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
see https://github.com/OpenELEC/OpenELEC.tv/tree/master/packages/addons/official
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions packages/addons/official/debug/strace/package.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2017 Stephan Raue ([email protected])
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################

PKG_NAME="strace"
PKG_VERSION="4.16"
PKG_REV="0"
PKG_ARCH="any"
PKG_LICENSE="BSD"
PKG_SITE="http://sourceforge.net/projects/strace/"
PKG_URL="$SOURCEFORGE_SRC/strace/strace/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="debug/tools"
PKG_SHORTDESC="strace: Trace system calls and signals"
PKG_LONGDESC="In the simplest case strace runs the specified command until it exits. It intercepts and records the system calls which are called by a process and the signals which are received by a process. The name of each system call, its arguments and its return value are printed on standard error or to the file specified with the -o option."

PKG_IS_ADDON="yes"
PKG_ADDON_TYPE="xbmc.python.script"
PKG_ADDON_PROVIDES=""

PKG_AUTORECONF="no"

makeinstall_target() {
: # nothing to do here
}

addon() {
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin
cp -P $PKG_BUILD/.$TARGET_NAME/strace $ADDON_BUILD/$PKG_ADDON_ID/bin
}
21 changes: 21 additions & 0 deletions packages/addons/official/debug/strace/source/default.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2017 Stephan Raue ([email protected])
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
import xbmcgui

dialog = xbmcgui.Dialog()
dialog.ok('', 'This is a console-only addon')
Loading