mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-10 10:10:28 +03:00
Compare commits
117 Commits
2020.02.9
...
2020.02.10
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5d3fc5a53 | ||
|
|
82684abc06 | ||
|
|
2fbe3f4b24 | ||
|
|
ae67317ca2 | ||
|
|
d85b9b06de | ||
|
|
2a3d563595 | ||
|
|
a1672c2e67 | ||
|
|
415dfcf03b | ||
|
|
d65cdf4aea | ||
|
|
3d7f510cc1 | ||
|
|
390fe636ba | ||
|
|
4faa0e0217 | ||
|
|
1e3485cad8 | ||
|
|
0bdb0ea013 | ||
|
|
dc0d1d63a0 | ||
|
|
69aafaf227 | ||
|
|
d5feb27b07 | ||
|
|
055e32773a | ||
|
|
607efd4997 | ||
|
|
a94df3f23f | ||
|
|
ce1f59f2e4 | ||
|
|
a1a58076bc | ||
|
|
6fe2a29743 | ||
|
|
dde2e66206 | ||
|
|
321af03966 | ||
|
|
27817eb999 | ||
|
|
3ed4f838e4 | ||
|
|
03d0006557 | ||
|
|
a9c79f84e5 | ||
|
|
48778b570d | ||
|
|
0ebee815e5 | ||
|
|
6753090e44 | ||
|
|
fb0225ae43 | ||
|
|
83f894b7bb | ||
|
|
0631273b4c | ||
|
|
9e9fad6b86 | ||
|
|
47b05d1bcc | ||
|
|
be7c3236d9 | ||
|
|
e55482a42e | ||
|
|
d14163707f | ||
|
|
338254bca4 | ||
|
|
3b0126258f | ||
|
|
749490e5f0 | ||
|
|
621867d690 | ||
|
|
23f5a5de30 | ||
|
|
06e14c4b03 | ||
|
|
d63af7f0a0 | ||
|
|
43d6e6036a | ||
|
|
b53a60a664 | ||
|
|
04f3a71001 | ||
|
|
745cea7f58 | ||
|
|
3c8c26bbcd | ||
|
|
7947224510 | ||
|
|
86a29e2874 | ||
|
|
fcdd9223ee | ||
|
|
42d0c1ca9f | ||
|
|
236c90d62b | ||
|
|
8d4325b8f3 | ||
|
|
3abea3caa5 | ||
|
|
087895f23b | ||
|
|
16d1d8f007 | ||
|
|
d37bfc522b | ||
|
|
bae94a9dd6 | ||
|
|
0fc67aa4c7 | ||
|
|
11b5fdfc51 | ||
|
|
a28ae964a1 | ||
|
|
f237c46b32 | ||
|
|
8e5eebd530 | ||
|
|
3bdae5980c | ||
|
|
689651a3fa | ||
|
|
21c2d104bc | ||
|
|
3586545a2c | ||
|
|
a3d8e257f5 | ||
|
|
08260e5ed3 | ||
|
|
1553422c8f | ||
|
|
fb5f9b67da | ||
|
|
8cfd2ede88 | ||
|
|
b8081da973 | ||
|
|
97e2609315 | ||
|
|
381864ee42 | ||
|
|
c676c2fc35 | ||
|
|
44fb5c67ef | ||
|
|
c0bcd2ee44 | ||
|
|
3b6397c10f | ||
|
|
9586b21315 | ||
|
|
3978e6b667 | ||
|
|
c360472856 | ||
|
|
c372155db0 | ||
|
|
8874dbc95c | ||
|
|
8afc088c12 | ||
|
|
18091b6886 | ||
|
|
949045a4cb | ||
|
|
f6fae6744b | ||
|
|
144c1afa57 | ||
|
|
2903bcc463 | ||
|
|
f00c4a5a3b | ||
|
|
0696b256f3 | ||
|
|
912bf39711 | ||
|
|
5a6cfc0692 | ||
|
|
ee84de11df | ||
|
|
48ac93d41e | ||
|
|
a0b9dc672b | ||
|
|
ce2ca35fc1 | ||
|
|
954ba08d1d | ||
|
|
08a3583c4d | ||
|
|
05224503fa | ||
|
|
16aee2cb19 | ||
|
|
b541a858f8 | ||
|
|
5a13105f60 | ||
|
|
eb4ce04c19 | ||
|
|
45f75fb357 | ||
|
|
7d7afdf58c | ||
|
|
dbdea2ed1f | ||
|
|
a6f2516c58 | ||
|
|
a66200f6b3 | ||
|
|
2269085064 | ||
|
|
ac856e5d0d |
37
CHANGES
37
CHANGES
@@ -1,3 +1,40 @@
|
||||
2020.02.10, released January 31st, 2021
|
||||
|
||||
Important / security related fixes.
|
||||
|
||||
Download: Ensure git submodules are correctly fetched if
|
||||
enabled for a package with <pkg>_GIT_SUBMODULES = YES and the
|
||||
host variant is downloaded first.
|
||||
|
||||
Toolchain: Mark CodeSourcery Aarch64 2014.11 toolchain as not
|
||||
having libatomic.
|
||||
|
||||
pkg-stats: Fix python 3.8+ deprecation warning.
|
||||
|
||||
meson: Ensure ccache is not detected and used, as it may
|
||||
conflict with the ccache handling in Buildroot.
|
||||
|
||||
New packages: libnpupnp
|
||||
|
||||
Updated/fixed packages: bctoolbox, brltty, dbus, dovecot,
|
||||
dovecot-pigeonhole, gcc, gerbera, gmrender-resurrect, gst-omx,
|
||||
gst1-plugins-bad, gst1-plugins-base, gst1-plugins-good,
|
||||
gst1-plugins-ugly, gst1-rtsp-server, gst1-vaapi,
|
||||
gst1-validate, gstreamer1, gstreamer1-editing-services,
|
||||
igd2-for-linux, libclc, libllcp, libtorrent-rasterbar,
|
||||
libupnp, libupnpp, lpc32xxcdl, luarocks, mpd, nfs-utils,
|
||||
nodejs, openjpeg, openldap, opentracing-cpp, openvpn, p11-kit,
|
||||
paho-mqtt-c, php, poppler, postgresql, python3, runc, sudo,
|
||||
syslog-ng, systemd, tini, trace-cmd, tzdata, ushare, vlc,
|
||||
wavpack, wireguard-linux-compat, wolfssl, xapp_xload, xorriso,
|
||||
zic
|
||||
|
||||
Removed packages: libupnp18
|
||||
|
||||
Issues resolved (http://bugs.uclibc.org):
|
||||
|
||||
#13471: package/mpd/mpd.conf make use of path not created
|
||||
|
||||
2020.02.9, released December 27th, 2020
|
||||
|
||||
Important / security related fixes.
|
||||
|
||||
@@ -146,6 +146,17 @@ endif
|
||||
|
||||
comment "Legacy options removed in 2020.02"
|
||||
|
||||
config BR2_PACKAGE_LIBUPNP18
|
||||
bool "libupnp18 package removed"
|
||||
select BR2_LEGACY
|
||||
select BR2_PACKAGE_LIBUPNP
|
||||
help
|
||||
Version 1.8.x of libupnp (i.e. libupnp18) has been removed
|
||||
because it will never be fixed against CallStranger a.k.a.
|
||||
CVE-2020-12695. The libupnp package (which has been updated to
|
||||
version 1.14.x) has been selected instead.
|
||||
|
||||
|
||||
config BR2_PACKAGE_PYTHON_PYCRYPTO
|
||||
bool "python-pycrypto package removed"
|
||||
select BR2_LEGACY
|
||||
|
||||
@@ -428,6 +428,7 @@ F: package/perl-netaddr-ip/
|
||||
F: package/perl-timedate/
|
||||
F: package/perl-uri/
|
||||
F: package/perl-www-robotrules/
|
||||
F: package/php/
|
||||
F: package/pixman/
|
||||
F: package/pngquant/
|
||||
F: package/pound/
|
||||
@@ -798,6 +799,8 @@ F: package/libmaxminddb/
|
||||
F: package/openzwave/
|
||||
|
||||
N: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
F: package/belle-sip/
|
||||
F: package/belr/
|
||||
F: package/boinc/
|
||||
F: package/cairo/
|
||||
F: package/duktape/
|
||||
@@ -835,6 +838,7 @@ F: package/libmatroska/
|
||||
F: package/libmpdclient/
|
||||
F: package/libnetfilter_conntrack/
|
||||
F: package/libnetfilter_queue/
|
||||
F: package/libnpupnp/
|
||||
F: package/liboping/
|
||||
F: package/libpfm4/
|
||||
F: package/libraw/
|
||||
@@ -845,7 +849,6 @@ F: package/librsync/
|
||||
F: package/libsoup/
|
||||
F: package/libsoxr/
|
||||
F: package/libupnp/
|
||||
F: package/libupnp18/
|
||||
F: package/libv4l/
|
||||
F: package/libxslt/
|
||||
F: package/mbedtls/
|
||||
@@ -2121,6 +2124,7 @@ F: package/ogre/
|
||||
F: package/openpowerlink/
|
||||
F: package/physfs/
|
||||
F: package/piglit/
|
||||
F: package/qemu/
|
||||
F: package/solarus/
|
||||
F: package/stress-ng/
|
||||
F: package/supertux/
|
||||
@@ -2414,7 +2418,7 @@ F: toolchain/
|
||||
N: Timo Ketola <timo.ketola@exertus.fi>
|
||||
F: package/fbgrab/
|
||||
|
||||
N: Titouan Christophe <titouan.christophe@railnova.eu>
|
||||
N: Titouan Christophe <titouanchristophe@gmail.com>
|
||||
F: package/avro-c/
|
||||
F: package/mosquitto/
|
||||
F: package/python-avro/
|
||||
|
||||
4
Makefile
4
Makefile
@@ -92,9 +92,9 @@ all:
|
||||
.PHONY: all
|
||||
|
||||
# Set and export the version string
|
||||
export BR2_VERSION := 2020.02.9
|
||||
export BR2_VERSION := 2020.02.10
|
||||
# Actual time the release is cut (for reproducible builds)
|
||||
BR2_VERSION_EPOCH = 1609088000
|
||||
BR2_VERSION_EPOCH = 1612128000
|
||||
|
||||
# Save running make version since it's clobbered by the make package
|
||||
RUNNING_MAKE_VERSION := $(MAKE_VERSION)
|
||||
|
||||
2
boot/lpc32xxcdl/lpc32xxcdl.hash
Normal file
2
boot/lpc32xxcdl/lpc32xxcdl.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed
|
||||
sha256 ded3fa936a96d3fb8188ca6214f57b5208bd49e5416bd69f38bfc810b34197bc lpc32xx_cdl-v2.11.zip
|
||||
@@ -4,9 +4,9 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LPC32XXCDL_VERSION = lpc32xx_cdl_v2.11
|
||||
LPC32XXCDL_SITE = http://git.lpcware.com/lpc3xxx_cdl.git
|
||||
LPC32XXCDL_SITE_METHOD = git
|
||||
LPC32XXCDL_VERSION = 2.11
|
||||
LPC32XXCDL_SOURCE = lpc32xx_cdl-v$(LPC32XXCDL_VERSION).zip
|
||||
LPC32XXCDL_SITE = https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/lpcware-archive/61/2
|
||||
|
||||
LPC32XXCDL_INSTALL_TARGET = NO
|
||||
LPC32XXCDL_INSTALL_IMAGES = YES
|
||||
@@ -45,13 +45,14 @@ LPC32XXCDL_BOARD_STARTUP_DIR = \
|
||||
# Source files are with dos newlines, which our patch infrastructure doesn't
|
||||
# handle. Work around it by converting the affected files to unix newlines
|
||||
# before patching
|
||||
define LPC32XXCDL_DOS2UNIX_FOR_PATCH
|
||||
define LPC32XXCDL_EXTRACT_CMDS
|
||||
unzip $(LPC32XXCDL_DL_DIR)/$(LPC32XXCDL_SOURCE) -d $(@D)
|
||||
mv $(@D)/lpc3xxx_cdl/* $(@D)
|
||||
rmdir $(@D)/lpc3xxx_cdl/
|
||||
sed -n 's|^[+-]\{3\} [^/]\+\([^ \t]*\)\(.*\)|$(@D)\1|p' \
|
||||
boot/lpc32xxcdl/*.patch| sort -u | xargs $(SED) 's/\x0D$$//'
|
||||
endef
|
||||
|
||||
LPC32XXCDL_POST_EXTRACT_HOOKS += LPC32XXCDL_DOS2UNIX_FOR_PATCH
|
||||
|
||||
define LPC32XXCDL_BUILD_CMDS
|
||||
$(MAKE1) $(LPC32XXCDL_BUILD_FLAGS) -C $(@D)
|
||||
$(MAKE1) $(LPC32XXCDL_BUILD_FLAGS) -C $(@D)/$(LPC32XXCDL_BOARD_STARTUP_DIR)/Burners/$(LPC32XXCDL_KICKSTART_BURNER)
|
||||
|
||||
@@ -126,14 +126,19 @@ typical packages will therefore only use a few of them.
|
||||
in the build step. These are passed after the +make+ command. By
|
||||
default, empty.
|
||||
|
||||
* +LIBFOO_INSTALL_OPTS+ contains the make options used to
|
||||
install the package to the host directory. By default, the value
|
||||
is +install+, which is correct for most CMake packages. It is still
|
||||
possible to override it.
|
||||
|
||||
* +LIBFOO_INSTALL_STAGING_OPTS+ contains the make options used to
|
||||
install the package to the staging directory. By default, the value
|
||||
is +DESTDIR=$(STAGING_DIR) install+, which is correct for most
|
||||
is +DESTDIR=$(STAGING_DIR) install/fast+, which is correct for most
|
||||
CMake packages. It is still possible to override it.
|
||||
|
||||
* +LIBFOO_INSTALL_TARGET_OPTS+ contains the make options used to
|
||||
install the package to the target directory. By default, the value
|
||||
is +DESTDIR=$(TARGET_DIR) install+. The default value is correct
|
||||
is +DESTDIR=$(TARGET_DIR) install/fast+. The default value is correct
|
||||
for most CMake packages, but it is still possible to override it if
|
||||
needed.
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ endif
|
||||
|
||||
config BR2_LINUX_KERNEL_VERSION
|
||||
string
|
||||
default "5.4.83" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
default "5.4.93" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
default "4.19.152-cip37" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
|
||||
default "4.19.152-cip37-rt16" if BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION
|
||||
default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# From https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc
|
||||
sha256 beec970bbb93de8ab839f27930f7ab00c7bd65af0ffa07a50e765affdc2561c6 linux-5.4.83.tar.xz
|
||||
sha256 d37449403664cc3b1bac96d0d9a199dbe619885cd899c0ae3108843f42e3d522 linux-5.4.93.tar.xz
|
||||
# From https://www.kernel.org/pub/linux/kernel/v4.x/sha256sums.asc
|
||||
sha256 e52a49ceb639d871478a143c314648c35e22222c317ecdf49866830fea5c3dfc linux-4.4.248.tar.xz
|
||||
sha256 4687268061c9933c298b30d28e4bf1a30dfbab7c0da4bee194968e4f81ffeccf linux-4.9.248.tar.xz
|
||||
sha256 0e1bc32c4842c3bbee3a15454408f528acd4d3c5e83312b93008d5ee2e9a0c79 linux-4.14.212.tar.xz
|
||||
sha256 3eeec4e5eb8a129be3536357ecb028fae7d82fac933dcfac0b6089ee398fc5fc linux-4.19.163.tar.xz
|
||||
sha256 661e98b9448cbac948c705fd44cd7d30200422ee1cb02950d142aa99a1b3985a linux-4.4.253.tar.xz
|
||||
sha256 9a5b51a8350201bd38e3ff13909323a6571b4572a7b3caed76e462b07619bc18 linux-4.9.253.tar.xz
|
||||
sha256 62a36a25431016d98d0f1cff98be432086c51f86fd79042bd10a867b3a924d11 linux-4.14.217.tar.xz
|
||||
sha256 f4e352fe0eb986e5b532b99d9b0725a67046cbb3e5f53fcd5b098cbaeb2ac60a linux-4.19.171.tar.xz
|
||||
# Locally computed
|
||||
sha256 d2a06f52143deb929b8d513cf9afc9bd065951389a80fa70bc4d63025b5b3fb9 linux-cip-4.19.152-cip37.tar.gz
|
||||
sha256 bc1dacd3d0f526de3e8754a444e8e02a54521527af639ddb907cb35cda775a8c linux-cip-4.19.152-cip37-rt16.tar.gz
|
||||
|
||||
@@ -1612,6 +1612,7 @@ menu "Networking"
|
||||
source "package/azmq/Config.in"
|
||||
source "package/azure-iot-sdk-c/Config.in"
|
||||
source "package/batman-adv/Config.in"
|
||||
source "package/belle-sip/Config.in"
|
||||
source "package/bluez5_utils-headers/Config.in"
|
||||
source "package/c-ares/Config.in"
|
||||
source "package/canfestival/Config.in"
|
||||
@@ -1675,6 +1676,7 @@ menu "Networking"
|
||||
source "package/libnftnl/Config.in"
|
||||
source "package/libnice/Config.in"
|
||||
source "package/libnl/Config.in"
|
||||
source "package/libnpupnp/Config.in"
|
||||
source "package/liboauth/Config.in"
|
||||
source "package/liboping/Config.in"
|
||||
source "package/libosip2/Config.in"
|
||||
@@ -1693,7 +1695,6 @@ menu "Networking"
|
||||
source "package/libtorrent/Config.in"
|
||||
source "package/libtorrent-rasterbar/Config.in"
|
||||
source "package/libupnp/Config.in"
|
||||
source "package/libupnp18/Config.in"
|
||||
source "package/libupnpp/Config.in"
|
||||
source "package/liburiparser/Config.in"
|
||||
source "package/libvncserver/Config.in"
|
||||
@@ -1744,6 +1745,7 @@ menu "Other"
|
||||
source "package/avro-c/Config.in"
|
||||
source "package/bctoolbox/Config.in"
|
||||
source "package/bdwgc/Config.in"
|
||||
source "package/belr/Config.in"
|
||||
source "package/boost/Config.in"
|
||||
source "package/c-capnproto/Config.in"
|
||||
source "package/capnproto/Config.in"
|
||||
|
||||
@@ -1,49 +1,37 @@
|
||||
From c0b3dbb43aa3a38c47311556c85eadc6072e2d68 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
|
||||
Date: Tue, 14 Feb 2017 22:02:26 +0100
|
||||
Subject: [PATCH] Fix Libs.private flags for mbedtls
|
||||
From b7f14a800bbdad193f45695bc5b8c5173f3882ba Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 10 Feb 2019 17:51:05 +0100
|
||||
Subject: [PATCH] CMakeLists.txt: fix mbedtls libraries in bctoolbox.pc
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Static linking with bctoolbox fails when using pkg-config as the
|
||||
generated bctoolbox.pc file only consists of an '-L' string without any
|
||||
search path or libraries flags.
|
||||
|
||||
That's because of an typo in `mbedtls_library_path`. However,
|
||||
`mbedtls_library_path` contains a string of the mbedtls libraries
|
||||
concatenated by an ';' which cannot be parsed by pkg-config.
|
||||
|
||||
Therefore, use `MBEDTLS_LIBRARY` instead of `MBEDTLS_LIBRARIES` to get
|
||||
the library path.
|
||||
|
||||
Furthermore, add the three mbedtls libraries *mbedtls*, *mbedcrypto*, and
|
||||
*mbedx509* to `LIBS_PRIVATE` so these libraries are added to the
|
||||
`Libs.private` field of bctoolbox.pc.
|
||||
|
||||
Upstream status: Pending
|
||||
bctoolbox.pc should not contain the full libraries path, path should be
|
||||
given by -L and library names by -l
|
||||
So sent back the fix already suggested by Jörg Krause in
|
||||
https://github.com/BelledonneCommunications/bctoolbox/pull/4
|
||||
|
||||
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status:
|
||||
https://github.com/BelledonneCommunications/bctoolbox/pull/7]
|
||||
---
|
||||
CMakeLists.txt | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
CMakeLists.txt | 5 ++---
|
||||
1 file changed, 2 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index ed7aa00..4127f0e 100644
|
||||
index 29f3eb6..b2f26c2 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -103,8 +103,8 @@ else()
|
||||
@@ -101,9 +101,8 @@ else()
|
||||
endif()
|
||||
|
||||
if(MBEDTLS_FOUND)
|
||||
- get_filename_component(mbedtls_library_path "${MBEDTLS_LIBRARIES}" PATH)
|
||||
- set(LIBS_PRIVATE "${LIBS_PRIVATE} -L${mbedlts_library_path}")
|
||||
- string(REPLACE ";" " " MBEDTLS_LIBRARIES_STR "${MBEDTLS_LIBRARIES}")
|
||||
- set(LIBS_PRIVATE "${LIBS_PRIVATE} ${MBEDTLS_LIBRARIES_STR}")
|
||||
+ get_filename_component(mbedtls_library_path "${MBEDTLS_LIBRARY}" PATH)
|
||||
+ set(LIBS_PRIVATE "${LIBS_PRIVATE} -L${mbedtls_library_path} -lmbedtls -lmbedcrypto -lmbedx509")
|
||||
endif()
|
||||
if(POLARSSL_FOUND)
|
||||
get_filename_component(polarssl_library_path "${POLARSSL_LIBRARIES}" PATH)
|
||||
--
|
||||
2.11.1
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@ config BR2_PACKAGE_BCTOOLBOX
|
||||
bool "bctoolbox"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # exception_ptr
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
help
|
||||
Utilities library used by Belledonne Communications
|
||||
softwares like belle-sip, mediastreamer2 and linphone.
|
||||
@@ -12,3 +14,6 @@ config BR2_PACKAGE_BCTOOLBOX
|
||||
|
||||
comment "bctoolbox needs a toolchain w/ C++, threads"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
comment "bctoolbox needs a toolchain not affected by GCC bug 64735"
|
||||
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 da7df7ff359a9829e9e6ef98dfe9fead0cf735b8a4a5da1b1047f467dee1b2a9 bctoolbox-0.4.0.tar.gz
|
||||
sha256 d8501e3793c10abbf913759d7a0e5f6eb3140af6bacf5e2bdcd532049bde69c0 bctoolbox-4.3.1.tar.gz
|
||||
sha256 849dd903d98f12a964466ccfbaf3a1de1f94ad0ebd49a59d12f8ce4506f9f647 COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BCTOOLBOX_VERSION = 0.4.0
|
||||
BCTOOLBOX_VERSION = 4.3.1
|
||||
BCTOOLBOX_SITE = $(call github,BelledonneCommunications,bctoolbox,$(BCTOOLBOX_VERSION))
|
||||
BCTOOLBOX_LICENSE = GPL-2.0+
|
||||
BCTOOLBOX_LICENSE_FILES = COPYING
|
||||
@@ -17,9 +17,13 @@ BCTOOLBOX_CONF_OPTS = \
|
||||
-DENABLE_STRICT=OFF \
|
||||
-DENABLE_TESTS_COMPONENT=OFF \
|
||||
-DENABLE_TESTS=OFF \
|
||||
-DGIT_EXECUTABLE=OFF \
|
||||
-DCMAKE_SKIP_RPATH=ON
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
BCTOOLBOX_DEPENDENCIES += libiconv
|
||||
BCTOOLBOX_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -liconv"
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MBEDTLS),y)
|
||||
BCTOOLBOX_DEPENDENCIES += mbedtls
|
||||
BCTOOLBOX_CONF_OPTS += -DENABLE_MBEDTLS=ON
|
||||
|
||||
22
package/belle-sip/Config.in
Normal file
22
package/belle-sip/Config.in
Normal file
@@ -0,0 +1,22 @@
|
||||
config BR2_PACKAGE_BELLE_SIP
|
||||
bool "belle-sip"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_STATIC_LIBS # dlfcn.h
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # bctoolbox
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_BCTOOLBOX
|
||||
# needs crypto support in bctoolbox
|
||||
select BR2_PACKAGE_MBEDTLS
|
||||
help
|
||||
Belle-sip is a modern library implementing SIP (RFC 3261)
|
||||
transport, transaction and dialog layers.
|
||||
|
||||
http://www.linphone.org/technical-corner/belle-sip
|
||||
|
||||
comment "belle-sip needs a toolchain w/ threads, C++, dynamic library, wchar"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
|
||||
|
||||
comment "belle-sip needs a toolchain not affected by GCC bug 64735"
|
||||
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
||||
3
package/belle-sip/belle-sip.hash
Normal file
3
package/belle-sip/belle-sip.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 3ac7051ea6ac758cccbf1483a5dd6cda4293b5cde1370a3f0d298e3a6f0ee032 belle-sip-4.3.1.tar.gz
|
||||
sha256 1b3782ccad7b8614100cda30d3faf42fc39f2e97932908c543005053b654ca68 LICENSE.txt
|
||||
35
package/belle-sip/belle-sip.mk
Normal file
35
package/belle-sip/belle-sip.mk
Normal file
@@ -0,0 +1,35 @@
|
||||
################################################################################
|
||||
#
|
||||
# belle-sip
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BELLE_SIP_VERSION = 4.3.1
|
||||
BELLE_SIP_SITE = \
|
||||
https://gitlab.linphone.org/BC/public/belle-sip/-/archive/$(BELLE_SIP_VERSION)
|
||||
BELLE_SIP_LICENSE = GPL-3.0+
|
||||
BELLE_SIP_LICENSE_FILES = LICENSE.txt
|
||||
BELLE_SIP_INSTALL_STAGING = YES
|
||||
BELLE_SIP_DEPENDENCIES = \
|
||||
bctoolbox \
|
||||
$(if $(BR2_PACKAGE_ZLIB),zlib)
|
||||
BELLE_SIP_CONF_OPTS = \
|
||||
-DENABLE_STRICT=OFF \
|
||||
-DENABLE_TESTS=OFF
|
||||
|
||||
ifeq ($(BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY),y)
|
||||
BELLE_SIP_CONF_OPTS += -DENABLE_MDNS=ON
|
||||
BELLE_SIP_DEPENDENCIES += avahi
|
||||
else
|
||||
BELLE_SIP_CONF_OPTS += -DENABLE_MDNS=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
BELLE_SIP_CONF_OPTS += -DENABLE_SHARED=OFF -DENABLE_STATIC=ON
|
||||
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
||||
BELLE_SIP_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=ON
|
||||
else ifeq ($(BR2_SHARED_LIBS),y)
|
||||
BELLE_SIP_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
19
package/belr/Config.in
Normal file
19
package/belr/Config.in
Normal file
@@ -0,0 +1,19 @@
|
||||
config BR2_PACKAGE_BELR
|
||||
bool "belr"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # bctoolbox
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # bctoolbox
|
||||
select BR2_PACKAGE_BCTOOLBOX
|
||||
help
|
||||
Belr is Belledonne Communications' language recognition
|
||||
library, written in C++11. It parses text inputs formatted
|
||||
according to a language defined by an ABNF grammar, such as
|
||||
the protocols standardized at IETF.
|
||||
|
||||
https://gitlab.linphone.org/BC/public/belr
|
||||
|
||||
comment "belr needs a toolchain w/ threads, C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
comment "belr needs a toolchain not affected by GCC bug 64735"
|
||||
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
||||
3
package/belr/belr.hash
Normal file
3
package/belr/belr.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 d6575c36c32828edcaf39df2775070b187019b21fe5fe274e7a85caf54284f05 belr-4.3.1.tar.gz
|
||||
sha256 1b3782ccad7b8614100cda30d3faf42fc39f2e97932908c543005053b654ca68 LICENSE.txt
|
||||
26
package/belr/belr.mk
Normal file
26
package/belr/belr.mk
Normal file
@@ -0,0 +1,26 @@
|
||||
################################################################################
|
||||
#
|
||||
# belr
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BELR_VERSION = 4.3.1
|
||||
BELR_SITE = https://gitlab.linphone.org/BC/public/belr/-/archive/$(BELR_VERSION)
|
||||
BELR_LICENSE = GPL-3.0+
|
||||
BELR_LICENSE_FILES = LICENSE.txt
|
||||
BELR_INSTALL_STAGING = YES
|
||||
BELR_DEPENDENCIES = bctoolbox
|
||||
BELR_CONF_OPTS = \
|
||||
-DENABLE_STRICT=OFF \
|
||||
-DENABLE_TESTS=OFF \
|
||||
-DENABLE_TOOLS=OFF
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
BELR_CONF_OPTS += -DENABLE_SHARED=OFF -DENABLE_STATIC=ON
|
||||
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
||||
BELR_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=ON
|
||||
else ifeq ($(BR2_SHARED_LIBS),y)
|
||||
BELR_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
@@ -92,6 +92,13 @@ else
|
||||
BRLTTY_CONF_OPTS += --without-rgx-package
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_POLKIT),y)
|
||||
BRLTTY_DEPENDENCIES += polkit
|
||||
BRLTTY_CONF_OPTS += --enable-polkit
|
||||
else
|
||||
BRLTTY_CONF_OPTS += --disable-polkit
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
BRLTTY_DEPENDENCIES += systemd
|
||||
BRLTTY_CONF_OPTS += --with-service-package
|
||||
|
||||
@@ -7,7 +7,7 @@ config BR2_PACKAGE_DBUS
|
||||
help
|
||||
The D-Bus message bus system.
|
||||
|
||||
http://www.freedesktop.org/wiki/Software/dbus
|
||||
https://www.freedesktop.org/wiki/Software/dbus
|
||||
|
||||
comment "dbus needs a toolchain w/ threads"
|
||||
depends on BR2_USE_MMU
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
# https://dbus.freedesktop.org/releases/dbus/dbus-1.12.18.tar.gz.asc
|
||||
# https://dbus.freedesktop.org/releases/dbus/dbus-1.12.20.tar.gz.asc
|
||||
# using key 36EC5A6448A4F5EF79BEFE98E05AE1478F814C4F
|
||||
sha256 64cf4d70840230e5e9bc784d153880775ab3db19d656ead8a0cb9c0ab5a95306 dbus-1.12.18.tar.gz
|
||||
sha256 f77620140ecb4cdc67f37fb444f8a6bea70b5b6461f12f1cbe2cec60fa7de5fe dbus-1.12.20.tar.gz
|
||||
|
||||
# Locally calculated
|
||||
sha256 0e46f54efb12d04ab5c33713bacd0e140c9a35b57ae29e03c853203266e8f3a1 COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DBUS_VERSION = 1.12.18
|
||||
DBUS_VERSION = 1.12.20
|
||||
DBUS_SITE = https://dbus.freedesktop.org/releases/dbus
|
||||
DBUS_LICENSE = AFL-2.1 or GPL-2.0+ (library, tools), GPL-2.0+ (tools)
|
||||
DBUS_LICENSE_FILES = COPYING
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally computed after checking signature
|
||||
sha256 0b972a441f680545ddfacd2f41fb2a705fb03249d46ed5ce7e01fe68b6cfb5f0 dovecot-2.3-pigeonhole-0.5.11.tar.gz
|
||||
sha256 911fe566da5b638eab1b11105314300bc9049cc3832d4bd2aed44c265013bf17 dovecot-2.3-pigeonhole-0.5.13.tar.gz
|
||||
sha256 fc9e9522216f2a9a28b31300e3c73c1df56acc27dfae951bf516e7995366b51a COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DOVECOT_PIGEONHOLE_VERSION = 0.5.11
|
||||
DOVECOT_PIGEONHOLE_VERSION = 0.5.13
|
||||
DOVECOT_PIGEONHOLE_SOURCE = dovecot-2.3-pigeonhole-$(DOVECOT_PIGEONHOLE_VERSION).tar.gz
|
||||
DOVECOT_PIGEONHOLE_SITE = https://pigeonhole.dovecot.org/releases/2.3
|
||||
DOVECOT_PIGEONHOLE_LICENSE = LGPL-2.1
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Locally computed after checking signature
|
||||
sha256 d3d9ea9010277f57eb5b9f4166a5d2ba539b172bd6d5a2b2529a6db524baafdc dovecot-2.3.11.3.tar.gz
|
||||
sha256 a363b132e494f662d98c820d1481297e6ae72f194c2c91b6c39e1518b86240a8 COPYING
|
||||
sha256 a3f875b80ec11a452480690108660030978c94fa8e796ad6d943a874b496f1c4 dovecot-2.3.13.tar.gz
|
||||
sha256 319a9830aab406109cd67cb45496587566a8123203d66d037b209ca3e13de02a COPYING
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LGPL
|
||||
sha256 52b8c95fabb19575281874b661ef7968ea47e8f5d74ba0dd40ce512e52b3fc97 COPYING.MIT
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
################################################################################
|
||||
|
||||
DOVECOT_VERSION_MAJOR = 2.3
|
||||
DOVECOT_VERSION = $(DOVECOT_VERSION_MAJOR).11.3
|
||||
DOVECOT_VERSION = $(DOVECOT_VERSION_MAJOR).13
|
||||
DOVECOT_SITE = https://dovecot.org/releases/$(DOVECOT_VERSION_MAJOR)
|
||||
DOVECOT_INSTALL_STAGING = YES
|
||||
DOVECOT_LICENSE = LGPL-2.1, MIT, Public Domain, BSD-3-Clause, Unicode-DFS-2015
|
||||
|
||||
@@ -0,0 +1,322 @@
|
||||
From bb9b71752267444b4360442b89129bfc0ae938d3 Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@gmail.com>
|
||||
Date: Wed, 20 Jan 2021 23:06:07 +0100
|
||||
Subject: [PATCH] Revert "re PR target/92095 (internal error with -O1
|
||||
-mcpu=niagara2 -fPIE)"
|
||||
|
||||
This reverts commit 3fcce773f0f914c0499b130c6e9efa0e45ee54a0.
|
||||
|
||||
Building the Buildroot defconfig qemu_sparc_ss10_defconfig using
|
||||
gcc 8.4, 9.3 and 10 produce a broken rootfs that trigger illegal
|
||||
instruction messages.
|
||||
|
||||
gcc 8.3, 9.2 are the latest working gcc version.
|
||||
git bisect between gcc 8.4 and 8.4 allowed to identify
|
||||
the commit that introcuce the regression.
|
||||
|
||||
Reverting this patch allowed to produce a working rootfs.
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
Cc: Eric Botcazou <ebotcazou@gcc.gnu.org>
|
||||
---
|
||||
gcc/config/sparc/sparc-protos.h | 1 -
|
||||
gcc/config/sparc/sparc.c | 121 +++++++-----------
|
||||
gcc/config/sparc/sparc.md | 5 +-
|
||||
.../gcc.c-torture/compile/20191108-1.c | 14 --
|
||||
gcc/testsuite/gcc.target/sparc/overflow-3.c | 2 +-
|
||||
gcc/testsuite/gcc.target/sparc/overflow-4.c | 2 +-
|
||||
gcc/testsuite/gcc.target/sparc/overflow-5.c | 2 +-
|
||||
7 files changed, 53 insertions(+), 94 deletions(-)
|
||||
delete mode 100644 gcc/testsuite/gcc.c-torture/compile/20191108-1.c
|
||||
|
||||
diff --git a/gcc/config/sparc/sparc-protos.h b/gcc/config/sparc/sparc-protos.h
|
||||
index b3f73c2f2bf..71a067e871c 100644
|
||||
--- a/gcc/config/sparc/sparc-protos.h
|
||||
+++ b/gcc/config/sparc/sparc-protos.h
|
||||
@@ -69,7 +69,6 @@ extern void sparc_split_reg_mem (rtx, rtx, machine_mode);
|
||||
extern void sparc_split_mem_reg (rtx, rtx, machine_mode);
|
||||
extern int sparc_split_reg_reg_legitimate (rtx, rtx);
|
||||
extern void sparc_split_reg_reg (rtx, rtx, machine_mode);
|
||||
-extern const char *output_load_pcrel_sym (rtx *);
|
||||
extern const char *output_ubranch (rtx, rtx_insn *);
|
||||
extern const char *output_cbranch (rtx, rtx, int, int, int, rtx_insn *);
|
||||
extern const char *output_return (rtx_insn *);
|
||||
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
|
||||
index 73032d33596..db1b428db90 100644
|
||||
--- a/gcc/config/sparc/sparc.c
|
||||
+++ b/gcc/config/sparc/sparc.c
|
||||
@@ -4200,6 +4200,13 @@ eligible_for_sibcall_delay (rtx_insn *trial)
|
||||
static bool
|
||||
sparc_cannot_force_const_mem (machine_mode mode, rtx x)
|
||||
{
|
||||
+ /* After IRA has run in PIC mode, it is too late to put anything into the
|
||||
+ constant pool if the PIC register hasn't already been initialized. */
|
||||
+ if ((lra_in_progress || reload_in_progress)
|
||||
+ && flag_pic
|
||||
+ && !crtl->uses_pic_offset_table)
|
||||
+ return true;
|
||||
+
|
||||
switch (GET_CODE (x))
|
||||
{
|
||||
case CONST_INT:
|
||||
@@ -4235,11 +4242,9 @@ sparc_cannot_force_const_mem (machine_mode mode, rtx x)
|
||||
}
|
||||
|
||||
/* Global Offset Table support. */
|
||||
-static GTY(()) rtx got_symbol_rtx = NULL_RTX;
|
||||
-static GTY(()) rtx got_register_rtx = NULL_RTX;
|
||||
static GTY(()) rtx got_helper_rtx = NULL_RTX;
|
||||
-
|
||||
-static GTY(()) bool got_helper_needed = false;
|
||||
+static GTY(()) rtx got_register_rtx = NULL_RTX;
|
||||
+static GTY(()) rtx got_symbol_rtx = NULL_RTX;
|
||||
|
||||
/* Return the SYMBOL_REF for the Global Offset Table. */
|
||||
|
||||
@@ -4252,6 +4257,27 @@ sparc_got (void)
|
||||
return got_symbol_rtx;
|
||||
}
|
||||
|
||||
+#ifdef HAVE_GAS_HIDDEN
|
||||
+# define USE_HIDDEN_LINKONCE 1
|
||||
+#else
|
||||
+# define USE_HIDDEN_LINKONCE 0
|
||||
+#endif
|
||||
+
|
||||
+static void
|
||||
+get_pc_thunk_name (char name[32], unsigned int regno)
|
||||
+{
|
||||
+ const char *reg_name = reg_names[regno];
|
||||
+
|
||||
+ /* Skip the leading '%' as that cannot be used in a
|
||||
+ symbol name. */
|
||||
+ reg_name += 1;
|
||||
+
|
||||
+ if (USE_HIDDEN_LINKONCE)
|
||||
+ sprintf (name, "__sparc_get_pc_thunk.%s", reg_name);
|
||||
+ else
|
||||
+ ASM_GENERATE_INTERNAL_LABEL (name, "LADDPC", regno);
|
||||
+}
|
||||
+
|
||||
/* Wrapper around the load_pcrel_sym{si,di} patterns. */
|
||||
|
||||
static rtx
|
||||
@@ -4271,78 +4297,30 @@ gen_load_pcrel_sym (rtx op0, rtx op1, rtx op2)
|
||||
return insn;
|
||||
}
|
||||
|
||||
-/* Output the load_pcrel_sym{si,di} patterns. */
|
||||
-
|
||||
-const char *
|
||||
-output_load_pcrel_sym (rtx *operands)
|
||||
-{
|
||||
- if (flag_delayed_branch)
|
||||
- {
|
||||
- output_asm_insn ("sethi\t%%hi(%a1-4), %0", operands);
|
||||
- output_asm_insn ("call\t%a2", operands);
|
||||
- output_asm_insn (" add\t%0, %%lo(%a1+4), %0", operands);
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- output_asm_insn ("sethi\t%%hi(%a1-8), %0", operands);
|
||||
- output_asm_insn ("add\t%0, %%lo(%a1-4), %0", operands);
|
||||
- output_asm_insn ("call\t%a2", operands);
|
||||
- output_asm_insn (" nop", NULL);
|
||||
- }
|
||||
-
|
||||
- if (operands[2] == got_helper_rtx)
|
||||
- got_helper_needed = true;
|
||||
-
|
||||
- return "";
|
||||
-}
|
||||
-
|
||||
-#ifdef HAVE_GAS_HIDDEN
|
||||
-# define USE_HIDDEN_LINKONCE 1
|
||||
-#else
|
||||
-# define USE_HIDDEN_LINKONCE 0
|
||||
-#endif
|
||||
-
|
||||
/* Emit code to load the GOT register. */
|
||||
|
||||
void
|
||||
load_got_register (void)
|
||||
{
|
||||
- rtx insn;
|
||||
+ if (!got_register_rtx)
|
||||
+ got_register_rtx = gen_rtx_REG (Pmode, GLOBAL_OFFSET_TABLE_REGNUM);
|
||||
|
||||
if (TARGET_VXWORKS_RTP)
|
||||
- {
|
||||
- if (!got_register_rtx)
|
||||
- got_register_rtx = pic_offset_table_rtx;
|
||||
-
|
||||
- insn = gen_vxworks_load_got ();
|
||||
- }
|
||||
+ emit_insn (gen_vxworks_load_got ());
|
||||
else
|
||||
{
|
||||
- if (!got_register_rtx)
|
||||
- got_register_rtx = gen_rtx_REG (Pmode, GLOBAL_OFFSET_TABLE_REGNUM);
|
||||
-
|
||||
/* The GOT symbol is subject to a PC-relative relocation so we need a
|
||||
helper function to add the PC value and thus get the final value. */
|
||||
if (!got_helper_rtx)
|
||||
{
|
||||
char name[32];
|
||||
-
|
||||
- /* Skip the leading '%' as that cannot be used in a symbol name. */
|
||||
- if (USE_HIDDEN_LINKONCE)
|
||||
- sprintf (name, "__sparc_get_pc_thunk.%s",
|
||||
- reg_names[REGNO (got_register_rtx)] + 1);
|
||||
- else
|
||||
- ASM_GENERATE_INTERNAL_LABEL (name, "LADDPC",
|
||||
- REGNO (got_register_rtx));
|
||||
-
|
||||
+ get_pc_thunk_name (name, GLOBAL_OFFSET_TABLE_REGNUM);
|
||||
got_helper_rtx = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (name));
|
||||
}
|
||||
|
||||
- insn
|
||||
- = gen_load_pcrel_sym (got_register_rtx, sparc_got (), got_helper_rtx);
|
||||
+ emit_insn (gen_load_pcrel_sym (got_register_rtx, sparc_got (),
|
||||
+ got_helper_rtx));
|
||||
}
|
||||
-
|
||||
- emit_insn (insn);
|
||||
}
|
||||
|
||||
/* Ensure that we are not using patterns that are not OK with PIC. */
|
||||
@@ -5494,7 +5472,7 @@ save_local_or_in_reg_p (unsigned int regno, int leaf_function)
|
||||
return true;
|
||||
|
||||
/* GOT register (%l7) if needed. */
|
||||
- if (got_register_rtx && regno == REGNO (got_register_rtx))
|
||||
+ if (regno == GLOBAL_OFFSET_TABLE_REGNUM && got_register_rtx)
|
||||
return true;
|
||||
|
||||
/* If the function accesses prior frames, the frame pointer and the return
|
||||
@@ -12475,9 +12453,10 @@ static void
|
||||
sparc_file_end (void)
|
||||
{
|
||||
/* If we need to emit the special GOT helper function, do so now. */
|
||||
- if (got_helper_needed)
|
||||
+ if (got_helper_rtx)
|
||||
{
|
||||
const char *name = XSTR (got_helper_rtx, 0);
|
||||
+ const char *reg_name = reg_names[GLOBAL_OFFSET_TABLE_REGNUM];
|
||||
#ifdef DWARF2_UNWIND_INFO
|
||||
bool do_cfi;
|
||||
#endif
|
||||
@@ -12514,22 +12493,17 @@ sparc_file_end (void)
|
||||
#ifdef DWARF2_UNWIND_INFO
|
||||
do_cfi = dwarf2out_do_cfi_asm ();
|
||||
if (do_cfi)
|
||||
- output_asm_insn (".cfi_startproc", NULL);
|
||||
+ fprintf (asm_out_file, "\t.cfi_startproc\n");
|
||||
#endif
|
||||
if (flag_delayed_branch)
|
||||
- {
|
||||
- output_asm_insn ("jmp\t%%o7+8", NULL);
|
||||
- output_asm_insn (" add\t%%o7, %0, %0", &got_register_rtx);
|
||||
- }
|
||||
+ fprintf (asm_out_file, "\tjmp\t%%o7+8\n\t add\t%%o7, %s, %s\n",
|
||||
+ reg_name, reg_name);
|
||||
else
|
||||
- {
|
||||
- output_asm_insn ("add\t%%o7, %0, %0", &got_register_rtx);
|
||||
- output_asm_insn ("jmp\t%%o7+8", NULL);
|
||||
- output_asm_insn (" nop", NULL);
|
||||
- }
|
||||
+ fprintf (asm_out_file, "\tadd\t%%o7, %s, %s\n\tjmp\t%%o7+8\n\t nop\n",
|
||||
+ reg_name, reg_name);
|
||||
#ifdef DWARF2_UNWIND_INFO
|
||||
if (do_cfi)
|
||||
- output_asm_insn (".cfi_endproc", NULL);
|
||||
+ fprintf (asm_out_file, "\t.cfi_endproc\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -13035,10 +13009,7 @@ sparc_init_pic_reg (void)
|
||||
edge entry_edge;
|
||||
rtx_insn *seq;
|
||||
|
||||
- /* In PIC mode, we need to always initialize the PIC register if optimization
|
||||
- is enabled, because we are called from IRA and LRA may later force things
|
||||
- to the constant pool for optimization purposes. */
|
||||
- if (!flag_pic || (!crtl->uses_pic_offset_table && !optimize))
|
||||
+ if (!crtl->uses_pic_offset_table)
|
||||
return;
|
||||
|
||||
start_sequence ();
|
||||
diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md
|
||||
index 468e2cc5d3b..25134bd1148 100644
|
||||
--- a/gcc/config/sparc/sparc.md
|
||||
+++ b/gcc/config/sparc/sparc.md
|
||||
@@ -1601,7 +1601,10 @@
|
||||
(clobber (reg:P O7_REG))]
|
||||
"REGNO (operands[0]) == INTVAL (operands[3])"
|
||||
{
|
||||
- return output_load_pcrel_sym (operands);
|
||||
+ if (flag_delayed_branch)
|
||||
+ return "sethi\t%%hi(%a1-4), %0\n\tcall\t%a2\n\t add\t%0, %%lo(%a1+4), %0";
|
||||
+ else
|
||||
+ return "sethi\t%%hi(%a1-8), %0\n\tadd\t%0, %%lo(%a1-4), %0\n\tcall\t%a2\n\t nop";
|
||||
}
|
||||
[(set (attr "type") (const_string "multi"))
|
||||
(set (attr "length")
|
||||
diff --git a/gcc/testsuite/gcc.c-torture/compile/20191108-1.c b/gcc/testsuite/gcc.c-torture/compile/20191108-1.c
|
||||
deleted file mode 100644
|
||||
index 7929751bb06..00000000000
|
||||
--- a/gcc/testsuite/gcc.c-torture/compile/20191108-1.c
|
||||
+++ /dev/null
|
||||
@@ -1,14 +0,0 @@
|
||||
-/* PR target/92095 */
|
||||
-/* Testcase by Sergei Trofimovich <slyfox@inbox.ru> */
|
||||
-
|
||||
-typedef union {
|
||||
- double a;
|
||||
- int b[2];
|
||||
-} c;
|
||||
-
|
||||
-double d(int e)
|
||||
-{
|
||||
- c f;
|
||||
- (&f)->b[0] = 15728640;
|
||||
- return e ? -(&f)->a : (&f)->a;
|
||||
-}
|
||||
diff --git a/gcc/testsuite/gcc.target/sparc/overflow-3.c b/gcc/testsuite/gcc.target/sparc/overflow-3.c
|
||||
index 18253bb6e5e..8cb24f52f7b 100644
|
||||
--- a/gcc/testsuite/gcc.target/sparc/overflow-3.c
|
||||
+++ b/gcc/testsuite/gcc.target/sparc/overflow-3.c
|
||||
@@ -1,5 +1,5 @@
|
||||
/* { dg-do compile } */
|
||||
-/* { dg-options "-O -fno-pie" } */
|
||||
+/* { dg-options "-O" } */
|
||||
/* { dg-require-effective-target lp64 } */
|
||||
|
||||
#include <stdbool.h>
|
||||
diff --git a/gcc/testsuite/gcc.target/sparc/overflow-4.c b/gcc/testsuite/gcc.target/sparc/overflow-4.c
|
||||
index fb30877efb9..868edea2b9e 100644
|
||||
--- a/gcc/testsuite/gcc.target/sparc/overflow-4.c
|
||||
+++ b/gcc/testsuite/gcc.target/sparc/overflow-4.c
|
||||
@@ -1,5 +1,5 @@
|
||||
/* { dg-do compile } */
|
||||
-/* { dg-options "-O -fno-pie -mno-vis3" } */
|
||||
+/* { dg-options "-O -mno-vis3" } */
|
||||
/* { dg-require-effective-target lp64 } */
|
||||
|
||||
#include <stdbool.h>
|
||||
diff --git a/gcc/testsuite/gcc.target/sparc/overflow-5.c b/gcc/testsuite/gcc.target/sparc/overflow-5.c
|
||||
index 509d957715d..501ce04f7a1 100644
|
||||
--- a/gcc/testsuite/gcc.target/sparc/overflow-5.c
|
||||
+++ b/gcc/testsuite/gcc.target/sparc/overflow-5.c
|
||||
@@ -1,5 +1,5 @@
|
||||
/* { dg-do compile } */
|
||||
-/* { dg-options "-O -fno-pie -mvis3" } */
|
||||
+/* { dg-options "-O -mvis3" } */
|
||||
/* { dg-require-effective-target lp64 } */
|
||||
|
||||
#include <stdbool.h>
|
||||
--
|
||||
2.25.4
|
||||
|
||||
@@ -0,0 +1,325 @@
|
||||
From 0d7fe4806d9dce76367c193d5199df6a2b98009f Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@gmail.com>
|
||||
Date: Wed, 20 Jan 2021 23:22:16 +0100
|
||||
Subject: [PATCH] Revert "re PR target/92095 (internal error with -O1
|
||||
-mcpu=niagara2 -fPIE)"
|
||||
|
||||
This reverts commit 6bf2990842388101897b6f465524cbc295ee8cf9.
|
||||
|
||||
Building the Buildroot defconfig qemu_sparc_ss10_defconfig using
|
||||
gcc 8.4, 9.3 and 10 produce a broken rootfs that trigger illegal
|
||||
instruction messages.
|
||||
|
||||
gcc 8.3, 9.2 are the latest working gcc version.
|
||||
git bisect between gcc 8.4 and 8.4 allowed to identify
|
||||
the commit that introcuce the regression.
|
||||
|
||||
Reverting this patch allowed to produce a working rootfs.
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
Cc: Eric Botcazou <ebotcazou@gcc.gnu.org>
|
||||
---
|
||||
gcc/config/sparc/sparc-protos.h | 1 -
|
||||
gcc/config/sparc/sparc.c | 121 +++++++-----------
|
||||
gcc/config/sparc/sparc.md | 5 +-
|
||||
.../gcc.c-torture/compile/20191108-1.c | 14 --
|
||||
gcc/testsuite/gcc.target/sparc/overflow-3.c | 2 +-
|
||||
gcc/testsuite/gcc.target/sparc/overflow-4.c | 2 +-
|
||||
gcc/testsuite/gcc.target/sparc/overflow-5.c | 2 +-
|
||||
7 files changed, 53 insertions(+), 94 deletions(-)
|
||||
delete mode 100644 gcc/testsuite/gcc.c-torture/compile/20191108-1.c
|
||||
|
||||
diff --git a/gcc/config/sparc/sparc-protos.h b/gcc/config/sparc/sparc-protos.h
|
||||
index ef1adb69ede..9bdae7b9faa 100644
|
||||
--- a/gcc/config/sparc/sparc-protos.h
|
||||
+++ b/gcc/config/sparc/sparc-protos.h
|
||||
@@ -69,7 +69,6 @@ extern void sparc_split_reg_mem (rtx, rtx, machine_mode);
|
||||
extern void sparc_split_mem_reg (rtx, rtx, machine_mode);
|
||||
extern int sparc_split_reg_reg_legitimate (rtx, rtx);
|
||||
extern void sparc_split_reg_reg (rtx, rtx, machine_mode);
|
||||
-extern const char *output_load_pcrel_sym (rtx *);
|
||||
extern const char *output_ubranch (rtx, rtx_insn *);
|
||||
extern const char *output_cbranch (rtx, rtx, int, int, int, rtx_insn *);
|
||||
extern const char *output_return (rtx_insn *);
|
||||
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
|
||||
index a993aab7639..2974d174e93 100644
|
||||
--- a/gcc/config/sparc/sparc.c
|
||||
+++ b/gcc/config/sparc/sparc.c
|
||||
@@ -4205,6 +4205,13 @@ eligible_for_sibcall_delay (rtx_insn *trial)
|
||||
static bool
|
||||
sparc_cannot_force_const_mem (machine_mode mode, rtx x)
|
||||
{
|
||||
+ /* After IRA has run in PIC mode, it is too late to put anything into the
|
||||
+ constant pool if the PIC register hasn't already been initialized. */
|
||||
+ if ((lra_in_progress || reload_in_progress)
|
||||
+ && flag_pic
|
||||
+ && !crtl->uses_pic_offset_table)
|
||||
+ return true;
|
||||
+
|
||||
switch (GET_CODE (x))
|
||||
{
|
||||
case CONST_INT:
|
||||
@@ -4240,11 +4247,9 @@ sparc_cannot_force_const_mem (machine_mode mode, rtx x)
|
||||
}
|
||||
|
||||
/* Global Offset Table support. */
|
||||
-static GTY(()) rtx got_symbol_rtx = NULL_RTX;
|
||||
-static GTY(()) rtx got_register_rtx = NULL_RTX;
|
||||
static GTY(()) rtx got_helper_rtx = NULL_RTX;
|
||||
-
|
||||
-static GTY(()) bool got_helper_needed = false;
|
||||
+static GTY(()) rtx got_register_rtx = NULL_RTX;
|
||||
+static GTY(()) rtx got_symbol_rtx = NULL_RTX;
|
||||
|
||||
/* Return the SYMBOL_REF for the Global Offset Table. */
|
||||
|
||||
@@ -4257,6 +4262,27 @@ sparc_got (void)
|
||||
return got_symbol_rtx;
|
||||
}
|
||||
|
||||
+#ifdef HAVE_GAS_HIDDEN
|
||||
+# define USE_HIDDEN_LINKONCE 1
|
||||
+#else
|
||||
+# define USE_HIDDEN_LINKONCE 0
|
||||
+#endif
|
||||
+
|
||||
+static void
|
||||
+get_pc_thunk_name (char name[32], unsigned int regno)
|
||||
+{
|
||||
+ const char *reg_name = reg_names[regno];
|
||||
+
|
||||
+ /* Skip the leading '%' as that cannot be used in a
|
||||
+ symbol name. */
|
||||
+ reg_name += 1;
|
||||
+
|
||||
+ if (USE_HIDDEN_LINKONCE)
|
||||
+ sprintf (name, "__sparc_get_pc_thunk.%s", reg_name);
|
||||
+ else
|
||||
+ ASM_GENERATE_INTERNAL_LABEL (name, "LADDPC", regno);
|
||||
+}
|
||||
+
|
||||
/* Wrapper around the load_pcrel_sym{si,di} patterns. */
|
||||
|
||||
static rtx
|
||||
@@ -4276,78 +4302,30 @@ gen_load_pcrel_sym (rtx op0, rtx op1, rtx op2)
|
||||
return insn;
|
||||
}
|
||||
|
||||
-/* Output the load_pcrel_sym{si,di} patterns. */
|
||||
-
|
||||
-const char *
|
||||
-output_load_pcrel_sym (rtx *operands)
|
||||
-{
|
||||
- if (flag_delayed_branch)
|
||||
- {
|
||||
- output_asm_insn ("sethi\t%%hi(%a1-4), %0", operands);
|
||||
- output_asm_insn ("call\t%a2", operands);
|
||||
- output_asm_insn (" add\t%0, %%lo(%a1+4), %0", operands);
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- output_asm_insn ("sethi\t%%hi(%a1-8), %0", operands);
|
||||
- output_asm_insn ("add\t%0, %%lo(%a1-4), %0", operands);
|
||||
- output_asm_insn ("call\t%a2", operands);
|
||||
- output_asm_insn (" nop", NULL);
|
||||
- }
|
||||
-
|
||||
- if (operands[2] == got_helper_rtx)
|
||||
- got_helper_needed = true;
|
||||
-
|
||||
- return "";
|
||||
-}
|
||||
-
|
||||
-#ifdef HAVE_GAS_HIDDEN
|
||||
-# define USE_HIDDEN_LINKONCE 1
|
||||
-#else
|
||||
-# define USE_HIDDEN_LINKONCE 0
|
||||
-#endif
|
||||
-
|
||||
/* Emit code to load the GOT register. */
|
||||
|
||||
void
|
||||
load_got_register (void)
|
||||
{
|
||||
- rtx insn;
|
||||
+ if (!got_register_rtx)
|
||||
+ got_register_rtx = gen_rtx_REG (Pmode, GLOBAL_OFFSET_TABLE_REGNUM);
|
||||
|
||||
if (TARGET_VXWORKS_RTP)
|
||||
- {
|
||||
- if (!got_register_rtx)
|
||||
- got_register_rtx = pic_offset_table_rtx;
|
||||
-
|
||||
- insn = gen_vxworks_load_got ();
|
||||
- }
|
||||
+ emit_insn (gen_vxworks_load_got ());
|
||||
else
|
||||
{
|
||||
- if (!got_register_rtx)
|
||||
- got_register_rtx = gen_rtx_REG (Pmode, GLOBAL_OFFSET_TABLE_REGNUM);
|
||||
-
|
||||
/* The GOT symbol is subject to a PC-relative relocation so we need a
|
||||
helper function to add the PC value and thus get the final value. */
|
||||
if (!got_helper_rtx)
|
||||
{
|
||||
char name[32];
|
||||
-
|
||||
- /* Skip the leading '%' as that cannot be used in a symbol name. */
|
||||
- if (USE_HIDDEN_LINKONCE)
|
||||
- sprintf (name, "__sparc_get_pc_thunk.%s",
|
||||
- reg_names[REGNO (got_register_rtx)] + 1);
|
||||
- else
|
||||
- ASM_GENERATE_INTERNAL_LABEL (name, "LADDPC",
|
||||
- REGNO (got_register_rtx));
|
||||
-
|
||||
+ get_pc_thunk_name (name, GLOBAL_OFFSET_TABLE_REGNUM);
|
||||
got_helper_rtx = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (name));
|
||||
}
|
||||
|
||||
- insn
|
||||
- = gen_load_pcrel_sym (got_register_rtx, sparc_got (), got_helper_rtx);
|
||||
+ emit_insn (gen_load_pcrel_sym (got_register_rtx, sparc_got (),
|
||||
+ got_helper_rtx));
|
||||
}
|
||||
-
|
||||
- emit_insn (insn);
|
||||
}
|
||||
|
||||
/* Ensure that we are not using patterns that are not OK with PIC. */
|
||||
@@ -5512,7 +5490,7 @@ save_local_or_in_reg_p (unsigned int regno, int leaf_function)
|
||||
return true;
|
||||
|
||||
/* GOT register (%l7) if needed. */
|
||||
- if (got_register_rtx && regno == REGNO (got_register_rtx))
|
||||
+ if (regno == GLOBAL_OFFSET_TABLE_REGNUM && got_register_rtx)
|
||||
return true;
|
||||
|
||||
/* If the function accesses prior frames, the frame pointer and the return
|
||||
@@ -12555,9 +12533,10 @@ static void
|
||||
sparc_file_end (void)
|
||||
{
|
||||
/* If we need to emit the special GOT helper function, do so now. */
|
||||
- if (got_helper_needed)
|
||||
+ if (got_helper_rtx)
|
||||
{
|
||||
const char *name = XSTR (got_helper_rtx, 0);
|
||||
+ const char *reg_name = reg_names[GLOBAL_OFFSET_TABLE_REGNUM];
|
||||
#ifdef DWARF2_UNWIND_INFO
|
||||
bool do_cfi;
|
||||
#endif
|
||||
@@ -12594,22 +12573,17 @@ sparc_file_end (void)
|
||||
#ifdef DWARF2_UNWIND_INFO
|
||||
do_cfi = dwarf2out_do_cfi_asm ();
|
||||
if (do_cfi)
|
||||
- output_asm_insn (".cfi_startproc", NULL);
|
||||
+ fprintf (asm_out_file, "\t.cfi_startproc\n");
|
||||
#endif
|
||||
if (flag_delayed_branch)
|
||||
- {
|
||||
- output_asm_insn ("jmp\t%%o7+8", NULL);
|
||||
- output_asm_insn (" add\t%%o7, %0, %0", &got_register_rtx);
|
||||
- }
|
||||
+ fprintf (asm_out_file, "\tjmp\t%%o7+8\n\t add\t%%o7, %s, %s\n",
|
||||
+ reg_name, reg_name);
|
||||
else
|
||||
- {
|
||||
- output_asm_insn ("add\t%%o7, %0, %0", &got_register_rtx);
|
||||
- output_asm_insn ("jmp\t%%o7+8", NULL);
|
||||
- output_asm_insn (" nop", NULL);
|
||||
- }
|
||||
+ fprintf (asm_out_file, "\tadd\t%%o7, %s, %s\n\tjmp\t%%o7+8\n\t nop\n",
|
||||
+ reg_name, reg_name);
|
||||
#ifdef DWARF2_UNWIND_INFO
|
||||
if (do_cfi)
|
||||
- output_asm_insn (".cfi_endproc", NULL);
|
||||
+ fprintf (asm_out_file, "\t.cfi_endproc\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -13115,10 +13089,7 @@ sparc_init_pic_reg (void)
|
||||
edge entry_edge;
|
||||
rtx_insn *seq;
|
||||
|
||||
- /* In PIC mode, we need to always initialize the PIC register if optimization
|
||||
- is enabled, because we are called from IRA and LRA may later force things
|
||||
- to the constant pool for optimization purposes. */
|
||||
- if (!flag_pic || (!crtl->uses_pic_offset_table && !optimize))
|
||||
+ if (!crtl->uses_pic_offset_table)
|
||||
return;
|
||||
|
||||
start_sequence ();
|
||||
diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md
|
||||
index 0a6e27ffa83..7af62d599b9 100644
|
||||
--- a/gcc/config/sparc/sparc.md
|
||||
+++ b/gcc/config/sparc/sparc.md
|
||||
@@ -1604,7 +1604,10 @@
|
||||
(clobber (reg:P O7_REG))]
|
||||
"REGNO (operands[0]) == INTVAL (operands[3])"
|
||||
{
|
||||
- return output_load_pcrel_sym (operands);
|
||||
+ if (flag_delayed_branch)
|
||||
+ return "sethi\t%%hi(%a1-4), %0\n\tcall\t%a2\n\t add\t%0, %%lo(%a1+4), %0";
|
||||
+ else
|
||||
+ return "sethi\t%%hi(%a1-8), %0\n\tadd\t%0, %%lo(%a1-4), %0\n\tcall\t%a2\n\t nop";
|
||||
}
|
||||
[(set (attr "type") (const_string "multi"))
|
||||
(set (attr "length")
|
||||
diff --git a/gcc/testsuite/gcc.c-torture/compile/20191108-1.c b/gcc/testsuite/gcc.c-torture/compile/20191108-1.c
|
||||
deleted file mode 100644
|
||||
index 7929751bb06..00000000000
|
||||
--- a/gcc/testsuite/gcc.c-torture/compile/20191108-1.c
|
||||
+++ /dev/null
|
||||
@@ -1,14 +0,0 @@
|
||||
-/* PR target/92095 */
|
||||
-/* Testcase by Sergei Trofimovich <slyfox@inbox.ru> */
|
||||
-
|
||||
-typedef union {
|
||||
- double a;
|
||||
- int b[2];
|
||||
-} c;
|
||||
-
|
||||
-double d(int e)
|
||||
-{
|
||||
- c f;
|
||||
- (&f)->b[0] = 15728640;
|
||||
- return e ? -(&f)->a : (&f)->a;
|
||||
-}
|
||||
diff --git a/gcc/testsuite/gcc.target/sparc/overflow-3.c b/gcc/testsuite/gcc.target/sparc/overflow-3.c
|
||||
index 52d6ab2b688..86dddfb09e6 100644
|
||||
--- a/gcc/testsuite/gcc.target/sparc/overflow-3.c
|
||||
+++ b/gcc/testsuite/gcc.target/sparc/overflow-3.c
|
||||
@@ -1,6 +1,6 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target lp64 } */
|
||||
-/* { dg-options "-O -fno-pie" } */
|
||||
+/* { dg-options "-O" } */
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
diff --git a/gcc/testsuite/gcc.target/sparc/overflow-4.c b/gcc/testsuite/gcc.target/sparc/overflow-4.c
|
||||
index c6121b958c3..019feee335c 100644
|
||||
--- a/gcc/testsuite/gcc.target/sparc/overflow-4.c
|
||||
+++ b/gcc/testsuite/gcc.target/sparc/overflow-4.c
|
||||
@@ -1,6 +1,6 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target lp64 } */
|
||||
-/* { dg-options "-O -fno-pie -mno-vis3 -mno-vis4" } */
|
||||
+/* { dg-options "-O -mno-vis3 -mno-vis4" } */
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
diff --git a/gcc/testsuite/gcc.target/sparc/overflow-5.c b/gcc/testsuite/gcc.target/sparc/overflow-5.c
|
||||
index f00283f6e7b..67d4ac38095 100644
|
||||
--- a/gcc/testsuite/gcc.target/sparc/overflow-5.c
|
||||
+++ b/gcc/testsuite/gcc.target/sparc/overflow-5.c
|
||||
@@ -1,6 +1,6 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target lp64 } */
|
||||
-/* { dg-options "-O -fno-pie -mvis3" } */
|
||||
+/* { dg-options "-O -mvis3" } */
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
--
|
||||
2.25.4
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
From 64f49c6131f4112e5efd8b69094235f13882ccf5 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Fri, 31 Jan 2020 17:14:11 +0100
|
||||
Subject: [PATCH] cmake/FindLibMagic.cmake: fix static linking
|
||||
|
||||
libmagic can optionally depends on xz (for lzma) or bzip2 since version
|
||||
5.38 and
|
||||
https://github.com/file/file/commit/b259a07ea95827f565faa20f0316e5b2704064f7
|
||||
so use pkg-config to retrieve those static dependencies and avoid the
|
||||
following build failure:
|
||||
|
||||
[100%] Linking CXX executable gerbera
|
||||
/home/br-user/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: /home/br-user/autobuild/run/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libmagic.a(compress.o): in function `uncompressbuf':
|
||||
compress.c:(.text+0x69c): undefined reference to `BZ2_bzDecompressInit'
|
||||
/home/br-user/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: compress.c:(.text+0x710): undefined reference to `BZ2_bzDecompress'
|
||||
/home/br-user/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: compress.c:(.text+0x730): undefined reference to `BZ2_bzDecompressEnd'
|
||||
/home/br-user/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: compress.c:(.text+0x7bc): undefined reference to `lzma_auto_decoder'
|
||||
/home/br-user/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: compress.c:(.text+0x828): undefined reference to `lzma_code'
|
||||
/home/br-user/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: compress.c:(.text+0x848): undefined reference to `lzma_end'
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/37b1ef54dc41100689f311fbc31fc9300dc6ae63
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
cmake/FindLibMagic.cmake | 15 +++++++++++++--
|
||||
1 file changed, 13 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/cmake/FindLibMagic.cmake b/cmake/FindLibMagic.cmake
|
||||
index f68ab923..04995af4 100644
|
||||
--- a/cmake/FindLibMagic.cmake
|
||||
+++ b/cmake/FindLibMagic.cmake
|
||||
@@ -1,11 +1,22 @@
|
||||
INCLUDE (FindPackageHandleStandardArgs)
|
||||
|
||||
-FIND_PATH(MAGIC_INCLUDE_DIR magic.h)
|
||||
-FIND_LIBRARY(MAGIC_LIBRARIES NAMES magic)
|
||||
+find_package(PkgConfig QUIET)
|
||||
+
|
||||
+pkg_check_modules(PC_MAGIC QUIET libmagic)
|
||||
+
|
||||
+FIND_PATH(MAGIC_INCLUDE_DIR magic.h
|
||||
+ HINTS ${PC_MAGIC_INCLUDEDIR} ${PC_MAGIC_INCLUDE_DIRS})
|
||||
+FIND_LIBRARY(MAGIC_LIBRARIES NAMES magic
|
||||
+ HINTS ${PC_MAGIC_LIBDIR} ${PC_MAGIC_LIBRARY_DIRS})
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set MAGIC_FOUND to TRUE
|
||||
find_package_handle_standard_args(MAGIC DEFAULT_MSG MAGIC_LIBRARIES)
|
||||
|
||||
+if (MAGIC_FOUND)
|
||||
+ set (MAGIC_LIBRARIES ${MAGIC_LIBRARY} ${PC_MAGIC_LIBRARIES})
|
||||
+ set (MAGIC_INCLUDE_DIRS ${MAGIC_INCLUDE_DIR} )
|
||||
+endif ()
|
||||
+
|
||||
MARK_AS_ADVANCED(
|
||||
MAGIC_LIBRARIES
|
||||
MAGIC_INCLUDE_DIRS )
|
||||
--
|
||||
2.24.1
|
||||
|
||||
@@ -3,12 +3,15 @@ config BR2_PACKAGE_GERBERA
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17 optional
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # C++17 filesystem
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_PACKAGE_LIBUPNP # libupnp18
|
||||
select BR2_PACKAGE_EXPAT
|
||||
depends on BR2_USE_WCHAR # fmt
|
||||
select BR2_PACKAGE_FMT
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
select BR2_PACKAGE_LIBUPNP18
|
||||
select BR2_PACKAGE_LIBUPNP if !BR2_PACKAGE_LIBNPUPNP
|
||||
select BR2_PACKAGE_PUGIXML
|
||||
select BR2_PACKAGE_PUGIXML_XPATH_SUPPORT
|
||||
select BR2_PACKAGE_SPDLOG
|
||||
select BR2_PACKAGE_SQLITE
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
||||
@@ -19,9 +22,8 @@ config BR2_PACKAGE_GERBERA
|
||||
|
||||
https://gerbera.io
|
||||
|
||||
comment "gerbera needs a toolchain w/ C++, threads, gcc >= 7"
|
||||
comment "gerbera needs a toolchain w/ C++, threads, wchar, gcc >= 8"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
depends on !BR2_PACKAGE_LIBUPNP
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_7
|
||||
!BR2_USE_WCHAR || !BR2_TOOLCHAIN_GCC_AT_LEAST_8
|
||||
|
||||
@@ -79,6 +79,9 @@
|
||||
<map from="flv" to="video/x-flv"/>
|
||||
<map from="mkv" to="video/x-matroska"/>
|
||||
<map from="mka" to="audio/x-matroska"/>
|
||||
<map from="dsf" to="audio/x-dsd"/>
|
||||
<map from="dff" to="audio/x-dsd"/>
|
||||
<map from="wv" to="audio/x-wavpack"/>
|
||||
<!-- Uncomment the line below for PS3 divx support -->
|
||||
<!-- <map from="avi" to="video/divx"/> -->
|
||||
<!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
|
||||
@@ -107,6 +110,7 @@
|
||||
<treat mimetype="audio/mp4" as="mp4"/>
|
||||
<treat mimetype="video/x-matroska" as="mkv"/>
|
||||
<treat mimetype="audio/x-matroska" as="mka"/>
|
||||
<treat mimetype="audio/x-dsd" as="dsd"/>
|
||||
</mimetype-contenttype>
|
||||
</mappings>
|
||||
</import>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 c7fbb6104dd03ed22d114c7b1fbe95eb7f90893148630e16b0a4c23f1f631341 gerbera-1.3.4.tar.gz
|
||||
sha256 cae4138373be41fd2be75faf41ce7efbcf49fb17d0e05ad1c51cc01ac335b9b6 LICENSE.md
|
||||
sha256 cbe7ea78977db8c02fcca1759ed149f199a590afaf4a6d21ffcca8623d1a0cc5 gerbera-1.6.4.tar.gz
|
||||
sha256 cae4138373be41fd2be75faf41ce7efbcf49fb17d0e05ad1c51cc01ac335b9b6 LICENSE.md
|
||||
|
||||
@@ -4,14 +4,15 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GERBERA_VERSION = 1.3.4
|
||||
GERBERA_VERSION = 1.6.4
|
||||
GERBERA_SITE = $(call github,gerbera,gerbera,v$(GERBERA_VERSION))
|
||||
GERBERA_LICENSE = GPL-2.0
|
||||
GERBERA_LICENSE_FILES = LICENSE.md
|
||||
GERBERA_DEPENDENCIES = \
|
||||
expat \
|
||||
fmt \
|
||||
host-pkgconf \
|
||||
libupnp18 \
|
||||
pugixml \
|
||||
spdlog \
|
||||
sqlite \
|
||||
util-linux \
|
||||
zlib
|
||||
@@ -63,6 +64,22 @@ ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
GERBERA_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBMATROSKA),y)
|
||||
GERBERA_DEPENDENCIES += libmatroska
|
||||
GERBERA_CONF_OPTS += -DWITH_MATROSKA=ON
|
||||
else
|
||||
GERBERA_CONF_OPTS += -DWITH_MATROSKA=OFF
|
||||
endif
|
||||
|
||||
# Either libupnp or libnpupnp are guranteed to be enabled
|
||||
ifeq ($(BR2_PACKAGE_LIBNPUPNP),y)
|
||||
GERBERA_DEPENDENCIES += libnpupnp
|
||||
GERBERA_CONF_OPTS += -DWITH_NPUPNP=ON
|
||||
else
|
||||
GERBERA_DEPENDENCIES += libupnp
|
||||
GERBERA_CONF_OPTS += -DWITH_NPUPNP=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MYSQL),y)
|
||||
GERBERA_DEPENDENCIES += mysql
|
||||
GERBERA_CONF_OPTS += -DWITH_MYSQL=ON
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Locally calculated (fetched from Github)
|
||||
sha256 ce788d30851a215d58ff94c972d9cff5956725cc5ee906298711ddc63078c315 glibc-2.30-73-gd59630f9959b0bb8991964758ab854ff4378b20d.tar.gz
|
||||
sha256 b07ce01d26094074912cf718eb8715386758776d4c050ecbfc5ac64d21d63001 glibc-2.30-85-g79bf3c9774b0c2aa865b2ca397554ff425225d3c.tar.gz
|
||||
|
||||
# Hashes for license files
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
@@ -17,7 +17,7 @@ else
|
||||
# Generate version string using:
|
||||
# git describe --match 'glibc-*' --abbrev=40 origin/release/MAJOR.MINOR/master | cut -d '-' -f 2-
|
||||
# When updating the version, please also update localedef
|
||||
GLIBC_VERSION = 2.30-73-gd59630f9959b0bb8991964758ab854ff4378b20d
|
||||
GLIBC_VERSION = 2.30-85-g79bf3c9774b0c2aa865b2ca397554ff425225d3c
|
||||
# Upstream doesn't officially provide an https download link.
|
||||
# There is one (https://sourceware.org/git/glibc.git) but it's not reliable,
|
||||
# sometimes the connection times out. So use an unofficial github mirror.
|
||||
|
||||
175
package/gmrender-resurrect/0001-Drop-UpnpInit.patch
Normal file
175
package/gmrender-resurrect/0001-Drop-UpnpInit.patch
Normal file
@@ -0,0 +1,175 @@
|
||||
From dc8c4d4dc234311b3099e7f1efadf5d9733c81e9 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Fri, 21 Aug 2020 21:29:00 +0200
|
||||
Subject: [PATCH] Drop UpnpInit
|
||||
|
||||
UpnpInit has been dropped from libupnp 1.14.x as it can't be fixed
|
||||
against CallStranger a.k.a. CVE-2020-12695 so replace it by UpnpInit2
|
||||
which is available since version 1.6.7 and
|
||||
https://github.com/pupnp/pupnp/commit/2bcbdffd89a70364147d345ec5e70a3fce5cbc29
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status:
|
||||
https://github.com/hzeller/gmrender-resurrect/pull/214]
|
||||
---
|
||||
dist-scripts/centos7/README.md | 2 +-
|
||||
dist-scripts/debian/gmediarender.1 | 8 ++------
|
||||
dist-scripts/fedora/README.md | 2 +-
|
||||
src/main.c | 13 ++++---------
|
||||
src/upnp_device.c | 18 +++++++++---------
|
||||
src/upnp_device.h | 2 +-
|
||||
6 files changed, 18 insertions(+), 27 deletions(-)
|
||||
|
||||
diff --git a/dist-scripts/centos7/README.md b/dist-scripts/centos7/README.md
|
||||
index 278d777..ed82fb6 100644
|
||||
--- a/dist-scripts/centos7/README.md
|
||||
+++ b/dist-scripts/centos7/README.md
|
||||
@@ -45,7 +45,7 @@ Additional configuration is also recommended, sice there's no configuration file
|
||||
# vi /etc/systemd/system/gmediarender.service.d/customize.conf # or nano, or emacs, or whatever editor you like
|
||||
[Service]
|
||||
ExecStart=
|
||||
- ExecStart=/usr/bin/gmediarender --port=49494 --ip-address=<your_IP_address> -f "DLNA Renderer GMediaRender"
|
||||
+ ExecStart=/usr/bin/gmediarender --port=49494 --interface-name=<your_interface_name> -f "DLNA Renderer GMediaRender"
|
||||
|
||||
# systemctl daemon-reload
|
||||
# systemctl start gmediarender.service
|
||||
diff --git a/dist-scripts/debian/gmediarender.1 b/dist-scripts/debian/gmediarender.1
|
||||
index 96123ff..b2b1359 100644
|
||||
--- a/dist-scripts/debian/gmediarender.1
|
||||
+++ b/dist-scripts/debian/gmediarender.1
|
||||
@@ -50,12 +50,8 @@ Usually, it is desirable for the renderer
|
||||
to show up on controllers under a recognisable and unique name. This is
|
||||
the option to set that name.
|
||||
.TP
|
||||
-.B \-I, \-\-ip\-address \fI\<ip-address\>\fP
|
||||
-The local IP address the service is running and advertised on.
|
||||
-
|
||||
-This can
|
||||
-only be a single address, and must be explicitly specified (i.e. not
|
||||
-0.0.0.0).
|
||||
+.B \-I, \-\-interface\-name \fI\<interface-name\>\fP
|
||||
+The local interface name the service is running and advertised on.
|
||||
.TP
|
||||
.B \-p, \-\-port \fI\<port>\fP
|
||||
Port to listen to. [49152..65535].
|
||||
diff --git a/dist-scripts/fedora/README.md b/dist-scripts/fedora/README.md
|
||||
index 7b9ea4b..45aa536 100644
|
||||
--- a/dist-scripts/fedora/README.md
|
||||
+++ b/dist-scripts/fedora/README.md
|
||||
@@ -43,7 +43,7 @@ Additional configuration is also recommended, sice there's no configuration file
|
||||
# vi /etc/systemd/system/gmediarender.service.d/customize.conf # or nano, or emacs, or whatever editor you like
|
||||
[Service]
|
||||
ExecStart=
|
||||
- ExecStart=/usr/bin/gmediarender --port=49494 --ip-address=<your_IP_address> -f "DLNA Renderer GMediaRender"
|
||||
+ ExecStart=/usr/bin/gmediarender --port=49494 --interface-name=<your_interface_name> -f "DLNA Renderer GMediaRender"
|
||||
|
||||
# systemctl daemon-reload
|
||||
# systemctl start gmediarender.service
|
||||
diff --git a/src/main.c b/src/main.c
|
||||
index ef720e3..2030c49 100644
|
||||
--- a/src/main.c
|
||||
+++ b/src/main.c
|
||||
@@ -69,11 +69,7 @@ static gboolean show_transport_scpd = FALSE;
|
||||
static gboolean show_outputs = FALSE;
|
||||
static gboolean daemon_mode = FALSE;
|
||||
|
||||
-// IP-address seems strange in libupnp: they actually don't bind to
|
||||
-// that address, but to INADDR_ANY (miniserver.c in upnp library).
|
||||
-// Apparently they just use this for the advertisement ? Anyway, 0.0.0.0 would
|
||||
-// not work.
|
||||
-static const gchar *ip_address = NULL;
|
||||
+static const gchar *interface_name = NULL;
|
||||
static int listen_port = 49494;
|
||||
|
||||
#ifdef GMRENDER_UUID
|
||||
@@ -92,9 +88,8 @@ static const gchar *mime_filter = NULL;
|
||||
static GOptionEntry option_entries[] = {
|
||||
{ "version", 0, 0, G_OPTION_ARG_NONE, &show_version,
|
||||
"Output version information and exit", NULL },
|
||||
- { "ip-address", 'I', 0, G_OPTION_ARG_STRING, &ip_address,
|
||||
- "The local IP address the service is running and advertised "
|
||||
- "(only one, 0.0.0.0 won't work)", NULL },
|
||||
+ { "interface-name", 'I', 0, G_OPTION_ARG_STRING, &interface_name,
|
||||
+ "The local interface name the service is running and advertised", NULL },
|
||||
// The following is not very reliable, as libupnp does not set
|
||||
// SO_REUSEADDR by default, so it might increment (sending patch).
|
||||
{ "port", 'p', 0, G_OPTION_ARG_INT, &listen_port,
|
||||
@@ -302,7 +297,7 @@ int main(int argc, char **argv)
|
||||
listen_port);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
- device = upnp_device_init(upnp_renderer, ip_address, listen_port);
|
||||
+ device = upnp_device_init(upnp_renderer, interface_name, listen_port);
|
||||
if (device == NULL) {
|
||||
Log_error("main", "ERROR: Failed to initialize UPnP device");
|
||||
return EXIT_FAILURE;
|
||||
diff --git a/src/upnp_device.c b/src/upnp_device.c
|
||||
index db65e4f..3151238 100644
|
||||
--- a/src/upnp_device.c
|
||||
+++ b/src/upnp_device.c
|
||||
@@ -416,13 +416,13 @@ static UPNP_CALLBACK(event_handler, EventType, event, userdata)
|
||||
|
||||
static gboolean initialize_device(struct upnp_device_descriptor *device_def,
|
||||
struct upnp_device *result_device,
|
||||
- const char *ip_address,
|
||||
+ const char *interface_name,
|
||||
unsigned short port)
|
||||
{
|
||||
int rc;
|
||||
char *buf;
|
||||
|
||||
- rc = UpnpInit(ip_address, port);
|
||||
+ rc = UpnpInit2(interface_name, port);
|
||||
/* There have been situations reported in which UPNP had issues
|
||||
* initializing right after network came up. #129
|
||||
*/
|
||||
@@ -430,13 +430,13 @@ static gboolean initialize_device(struct upnp_device_descriptor *device_def,
|
||||
static const int kRetryTimeMs = 1000;
|
||||
while (rc != UPNP_E_SUCCESS && retries_left--) {
|
||||
usleep(kRetryTimeMs * 1000);
|
||||
- Log_error("upnp", "UpnpInit(ip=%s, port=%d) Error: %s (%d). Retrying... (%ds)",
|
||||
- ip_address, port, UpnpGetErrorMessage(rc), rc, retries_left);
|
||||
- rc = UpnpInit(ip_address, port);
|
||||
+ Log_error("upnp", "UpnpInit2(interface=%s, port=%d) Error: %s (%d). Retrying... (%ds)",
|
||||
+ interface_name, port, UpnpGetErrorMessage(rc), rc, retries_left);
|
||||
+ rc = UpnpInit2(interface_name, port);
|
||||
}
|
||||
if (UPNP_E_SUCCESS != rc) {
|
||||
- Log_error("upnp", "UpnpInit(ip=%s, port=%d) Error: %s (%d). Giving up.",
|
||||
- ip_address, port, UpnpGetErrorMessage(rc), rc);
|
||||
+ Log_error("upnp", "UpnpInit2(interface=%s, port=%d) Error: %s (%d). Giving up.",
|
||||
+ interface_name, port, UpnpGetErrorMessage(rc), rc);
|
||||
return FALSE;
|
||||
}
|
||||
Log_info("upnp", "Registered IP=%s port=%d\n",
|
||||
@@ -483,7 +483,7 @@ static gboolean initialize_device(struct upnp_device_descriptor *device_def,
|
||||
}
|
||||
|
||||
struct upnp_device *upnp_device_init(struct upnp_device_descriptor *device_def,
|
||||
- const char *ip_address,
|
||||
+ const char *interface_name,
|
||||
unsigned short port)
|
||||
{
|
||||
int rc;
|
||||
@@ -516,7 +516,7 @@ struct upnp_device *upnp_device_init(struct upnp_device_descriptor *device_def,
|
||||
webserver_register_buf(srv->scpd_url, buf, "text/xml");
|
||||
}
|
||||
|
||||
- if (!initialize_device(device_def, result_device, ip_address, port)) {
|
||||
+ if (!initialize_device(device_def, result_device, interface_name, port)) {
|
||||
UpnpFinish();
|
||||
free(result_device);
|
||||
return NULL;
|
||||
diff --git a/src/upnp_device.h b/src/upnp_device.h
|
||||
index 3e635e1..8c8e783 100644
|
||||
--- a/src/upnp_device.h
|
||||
+++ b/src/upnp_device.h
|
||||
@@ -49,7 +49,7 @@ struct upnp_device;
|
||||
struct action_event;
|
||||
|
||||
struct upnp_device *upnp_device_init(struct upnp_device_descriptor *device_def,
|
||||
- const char *ip_address,
|
||||
+ const char *interface_name,
|
||||
unsigned short port);
|
||||
|
||||
void upnp_device_shutdown(struct upnp_device *device);
|
||||
@@ -5,7 +5,7 @@ config BR2_PACKAGE_GMRENDER_RESURRECT
|
||||
depends on BR2_USE_MMU # gstreamer1
|
||||
select BR2_PACKAGE_GSTREAMER1
|
||||
select BR2_PACKAGE_GST1_PLUGINS_BASE # run-time only
|
||||
select BR2_PACKAGE_LIBUPNP18 if !BR2_PACKAGE_LIBUPNP
|
||||
select BR2_PACKAGE_LIBUPNP
|
||||
help
|
||||
UPnP (DLNA) media renderer based on gstreamer
|
||||
|
||||
|
||||
@@ -13,6 +13,6 @@ GMRENDER_RESURRECT_LICENSE = GPL-2.0+
|
||||
GMRENDER_RESURRECT_LICENSE_FILES = COPYING
|
||||
GMRENDER_RESURRECT_DEPENDENCIES = \
|
||||
gstreamer1 \
|
||||
$(if $(BR2_PACKAGE_LIBUPNP),libupnp,libupnp18)
|
||||
libupnp
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# From https://gstreamer.freedesktop.org/src/gst-omx/gst-omx-1.16.2.tar.xz.sha256sum
|
||||
sha256 11ed411a2eba75610d72331eeb14ff05e2df28f4fd05cb69225a88bec6d27439 gst-omx-1.16.2.tar.xz
|
||||
# From https://gstreamer.freedesktop.org/src/gst-omx/gst-omx-1.16.3.tar.xz.sha256sum
|
||||
sha256 60603b7889528ef8539d36cb3284b648c46aa0cf980a28cba4d3fe3a44988ff9 gst-omx-1.16.3.tar.xz
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GST_OMX_VERSION = 1.16.2
|
||||
GST_OMX_VERSION = 1.16.3
|
||||
GST_OMX_SOURCE = gst-omx-$(GST_OMX_VERSION).tar.xz
|
||||
GST_OMX_SITE = https://gstreamer.freedesktop.org/src/gst-omx
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# From https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.16.2.tar.xz.sha256sum
|
||||
sha256 c724f612700c15a933c7356fbeabb0bb9571fb5538f8b1b54d4d2d94188deef2 gst-libav-1.16.2.tar.xz
|
||||
# From https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.16.3.tar.xz.sha256sum
|
||||
sha256 d10c5eb1a00a91de97c85c0956c663aa6e99d268195cdec4534c179b831538ec gst-libav-1.16.3.tar.xz
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GST1_LIBAV_VERSION = 1.16.2
|
||||
GST1_LIBAV_VERSION = 1.16.3
|
||||
GST1_LIBAV_SOURCE = gst-libav-$(GST1_LIBAV_VERSION).tar.xz
|
||||
GST1_LIBAV_SITE = https://gstreamer.freedesktop.org/src/gst-libav
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# From https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.16.2.tar.xz.sha256sum
|
||||
sha256 f1cb7aa2389569a5343661aae473f0a940a90b872001824bc47fa8072a041e74 gst-plugins-bad-1.16.2.tar.xz
|
||||
# From https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.16.3.tar.xz.sha256sum
|
||||
sha256 84efe57011658f0a53a5d5b20f64ef109f5105dccb0808c21e069e946673514d gst-plugins-bad-1.16.3.tar.xz
|
||||
sha256 0b12e4d1cd5db5f8a0c04fc98a1d8c3acc533097b6198d6644420da78d460223 COPYING
|
||||
sha256 cf9b86bcf2d298e8cf5b9d8982f9dab296465b002fdfa0347357a0732f961e03 COPYING.LIB
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GST1_PLUGINS_BAD_VERSION = 1.16.2
|
||||
GST1_PLUGINS_BAD_VERSION = 1.16.3
|
||||
GST1_PLUGINS_BAD_SOURCE = gst-plugins-bad-$(GST1_PLUGINS_BAD_VERSION).tar.xz
|
||||
GST1_PLUGINS_BAD_SITE = https://gstreamer.freedesktop.org/src/gst-plugins-bad
|
||||
GST1_PLUGINS_BAD_INSTALL_STAGING = YES
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# From https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.16.2.tar.xz.sha256sum
|
||||
sha256 b13e73e2fe74a4166552f9577c3dcb24bed077021b9c7fa600d910ec6987816a gst-plugins-base-1.16.2.tar.xz
|
||||
# From https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.16.3.tar.xz.sha256sum
|
||||
sha256 9f02678b0bbbcc9eff107d3bd89d83ce92fec2154cd607c7c8bd34dc7fee491c gst-plugins-base-1.16.3.tar.xz
|
||||
sha256 f445dc78b88496f7e20c7a2a461b95baba5865c8919b8289ac24ac0a80c6ce7a COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GST1_PLUGINS_BASE_VERSION = 1.16.2
|
||||
GST1_PLUGINS_BASE_VERSION = 1.16.3
|
||||
GST1_PLUGINS_BASE_SOURCE = gst-plugins-base-$(GST1_PLUGINS_BASE_VERSION).tar.xz
|
||||
GST1_PLUGINS_BASE_SITE = https://gstreamer.freedesktop.org/src/gst-plugins-base
|
||||
GST1_PLUGINS_BASE_INSTALL_STAGING = YES
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# From https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.16.2.tar.xz.sha256sum
|
||||
sha256 40bb3bafda25c0b739c8fc36e48380fccf61c4d3f83747e97ac3f9b0171b1319 gst-plugins-good-1.16.2.tar.xz
|
||||
# From https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.16.3.tar.xz.sha256sum
|
||||
sha256 d3a23a3fe73de673f591b7655494990c9e8a0e22a3c70d6f1dbf50198b29f85f gst-plugins-good-1.16.3.tar.xz
|
||||
sha256 6095e9ffa777dd22839f7801aa845b31c9ed07f3d6bf8a26dc5d2dec8ccc0ef3 COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GST1_PLUGINS_GOOD_VERSION = 1.16.2
|
||||
GST1_PLUGINS_GOOD_VERSION = 1.16.3
|
||||
GST1_PLUGINS_GOOD_SOURCE = gst-plugins-good-$(GST1_PLUGINS_GOOD_VERSION).tar.xz
|
||||
GST1_PLUGINS_GOOD_SITE = https://gstreamer.freedesktop.org/src/gst-plugins-good
|
||||
GST1_PLUGINS_GOOD_LICENSE_FILES = COPYING
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# From https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-1.16.2.tar.xz.sha256sum
|
||||
sha256 5500415b865e8b62775d4742cbb9f37146a50caecfc0e7a6fc0160d3c560fbca gst-plugins-ugly-1.16.2.tar.xz
|
||||
# From https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-1.16.3.tar.xz.sha256sum
|
||||
sha256 403c21688065f41e53008874402b5c07832567cc1309a60df597eab7ff5843f0 gst-plugins-ugly-1.16.3.tar.xz
|
||||
sha256 6095e9ffa777dd22839f7801aa845b31c9ed07f3d6bf8a26dc5d2dec8ccc0ef3 COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GST1_PLUGINS_UGLY_VERSION = 1.16.2
|
||||
GST1_PLUGINS_UGLY_VERSION = 1.16.3
|
||||
GST1_PLUGINS_UGLY_SOURCE = gst-plugins-ugly-$(GST1_PLUGINS_UGLY_VERSION).tar.xz
|
||||
GST1_PLUGINS_UGLY_SITE = https://gstreamer.freedesktop.org/src/gst-plugins-ugly
|
||||
GST1_PLUGINS_UGLY_LICENSE_FILES = COPYING
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# From https://gstreamer.freedesktop.org/src/gst-rtsp-server/gst-rtsp-server-1.16.2.tar.xz.sha256sum
|
||||
sha256 de07a2837b3b04820ce68264a4909f70c221b85dbff0cede7926e9cdbb1dc26e gst-rtsp-server-1.16.2.tar.xz
|
||||
# From https://gstreamer.freedesktop.org/src/gst-rtsp-server/gst-rtsp-server-1.16.3.tar.xz.sha256sum
|
||||
sha256 67886b872826d513c58f88d559d4dc4aa63382d03fb64ceac91a09537fe6fea0 gst-rtsp-server-1.16.3.tar.xz
|
||||
sha256 f445dc78b88496f7e20c7a2a461b95baba5865c8919b8289ac24ac0a80c6ce7a COPYING
|
||||
sha256 f445dc78b88496f7e20c7a2a461b95baba5865c8919b8289ac24ac0a80c6ce7a COPYING.LIB
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GST1_RTSP_SERVER_VERSION = 1.16.2
|
||||
GST1_RTSP_SERVER_VERSION = 1.16.3
|
||||
GST1_RTSP_SERVER_SOURCE = gst-rtsp-server-$(GST1_RTSP_SERVER_VERSION).tar.xz
|
||||
GST1_RTSP_SERVER_SITE = http://gstreamer.freedesktop.org/src/gst-rtsp-server
|
||||
GST1_RTSP_SERVER_LICENSE = LGPL-2.0+
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# From https://gstreamer.freedesktop.org/src/gstreamer-vaapi/gstreamer-vaapi-1.16.2.tar.xz.sha256sum
|
||||
sha256 191de7b0ab64a85dd0875c990721e7be95518f60e2a9106beca162004ed7c601 gstreamer-vaapi-1.16.2.tar.xz
|
||||
# From https://gstreamer.freedesktop.org/src/gstreamer-vaapi/gstreamer-vaapi-1.16.3.tar.xz.sha256sum
|
||||
sha256 77200b3c183fe97cd987deb5544e615873cff5e98ec87573583771e5f1fb9ebe gstreamer-vaapi-1.16.3.tar.xz
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LIB
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GST1_VAAPI_VERSION = 1.16.2
|
||||
GST1_VAAPI_VERSION = 1.16.3
|
||||
GST1_VAAPI_SITE = https://gstreamer.freedesktop.org/src/gstreamer-vaapi
|
||||
GST1_VAAPI_SOURCE = gstreamer-vaapi-$(GST1_VAAPI_VERSION).tar.xz
|
||||
GST1_VAAPI_LICENSE = LGPL-2.1+
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# From https://gstreamer.freedesktop.org/src/gst-validate/gst-validate-1.16.2.tar.xz.sha256sum
|
||||
sha256 4861ccb9326200e74d98007e316b387d48dd49f072e0b78cb9d3303fdecfeeca gst-validate-1.16.2.tar.xz
|
||||
# From https://gstreamer.freedesktop.org/src/gst-validate/gst-validate-1.16.3.tar.xz.sha256sum
|
||||
sha256 c2064e887324af6aa476ca669234936711f253b29042f617f1d9f2597c4bf92b gst-validate-1.16.3.tar.xz
|
||||
sha256 6095e9ffa777dd22839f7801aa845b31c9ed07f3d6bf8a26dc5d2dec8ccc0ef3 COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GST1_VALIDATE_VERSION = 1.16.2
|
||||
GST1_VALIDATE_VERSION = 1.16.3
|
||||
GST1_VALIDATE_SOURCE = gst-validate-$(GST1_VALIDATE_VERSION).tar.xz
|
||||
GST1_VALIDATE_SITE = https://gstreamer.freedesktop.org/src/gst-validate
|
||||
GST1_VALIDATE_LICENSE = LGPL-2.1+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# From https://gstreamer.freedesktop.org/src/gstreamer-editing-services/gstreamer-editing-services-1.16.2.tar.xz.sha256sum
|
||||
sha256 0e06a6191a0c6c16e16272bf2573cecaeb245f10629486ad940a299bef700c16 gstreamer-editing-services-1.16.2.tar.xz
|
||||
# From https://gstreamer.freedesktop.org/src/gstreamer-editing-services/gstreamer-editing-services-1.16.3.tar.xz.sha256sum
|
||||
sha256 9b05cbb8a6f1db53999e7ad11f00f4f1ccc154d6805b7e49cb7755eb37a99ba6 gstreamer-editing-services-1.16.3.tar.xz
|
||||
|
||||
# Hashes for license files:
|
||||
sha256 f445dc78b88496f7e20c7a2a461b95baba5865c8919b8289ac24ac0a80c6ce7a COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GSTREAMER1_EDITING_SERVICES_VERSION = 1.16.2
|
||||
GSTREAMER1_EDITING_SERVICES_VERSION = 1.16.3
|
||||
GSTREAMER1_EDITING_SERVICES_SOURCE = gstreamer-editing-services-$(GSTREAMER1_EDITING_SERVICES_VERSION).tar.xz
|
||||
GSTREAMER1_EDITING_SERVICES_SITE = http://gstreamer.freedesktop.org/src/gstreamer-editing-services
|
||||
GSTREAMER1_EDITING_SERVICES_LICENSE = LGPL-2.0+
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# From https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.16.2.tar.xz.sha256sum
|
||||
sha256 e3f044246783fd685439647373fa13ba14f7ab0b346eadd06437092f8419e94e gstreamer-1.16.2.tar.xz
|
||||
# From https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.16.3.tar.xz.sha256sum
|
||||
sha256 692f037968e454e508b0f71d9674e2e26c78475021407fcf8193b1c7e59543c7 gstreamer-1.16.3.tar.xz
|
||||
sha256 f445dc78b88496f7e20c7a2a461b95baba5865c8919b8289ac24ac0a80c6ce7a COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GSTREAMER1_VERSION = 1.16.2
|
||||
GSTREAMER1_VERSION = 1.16.3
|
||||
GSTREAMER1_SOURCE = gstreamer-$(GSTREAMER1_VERSION).tar.xz
|
||||
GSTREAMER1_SITE = https://gstreamer.freedesktop.org/src/gstreamer
|
||||
GSTREAMER1_INSTALL_STAGING = YES
|
||||
|
||||
@@ -18,7 +18,7 @@ config BR2_PACKAGE_IGD2_FOR_LINUX
|
||||
|
||||
Please edit /etc/upnpd.conf before using upnpd!
|
||||
|
||||
https://github.com/ffontaine/igd2-for-linux
|
||||
https://github.com/Orange-OpenSource/igd2-for-linux
|
||||
|
||||
comment "igd2-for-linux needs a toolchain w/ threads, wchar"
|
||||
depends on BR2_USE_MMU
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# Locally computed:
|
||||
sha256 523545a26b0d662e9f6913bec2518df6e70f4d497935d88983d994336a1b0ea9 igd2-for-linux-1.2.tar.gz
|
||||
sha256 204d8eff92f95aac4df6c8122bc1505f468f3a901e5a4cc08940e0ede1938994 linuxigd2/doc/LICENSE
|
||||
sha256 e3fcc7c9da4ad1ca16227b3b1b3712bcfb3f6ec922685eee7ae4a76edfa32bb4 igd2-for-linux-2.0.tar.gz
|
||||
sha256 204d8eff92f95aac4df6c8122bc1505f468f3a901e5a4cc08940e0ede1938994 linuxigd2/doc/LICENSE
|
||||
sha256 c8b99423cad48bb44e2cf52a496361404290865eac259a82da6d1e4331ececb3 linuxigd2/src/threadutil/COPYING
|
||||
|
||||
@@ -4,11 +4,12 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
IGD2_FOR_LINUX_VERSION = 1.2
|
||||
IGD2_FOR_LINUX_SITE = $(call github,ffontaine,igd2-for-linux,v$(IGD2_FOR_LINUX_VERSION))
|
||||
IGD2_FOR_LINUX_VERSION = 2.0
|
||||
IGD2_FOR_LINUX_SITE = \
|
||||
$(call github,Orange-OpenSource,igd2-for-linux,v$(IGD2_FOR_LINUX_VERSION))
|
||||
|
||||
IGD2_FOR_LINUX_LICENSE = GPL-2.0
|
||||
IGD2_FOR_LINUX_LICENSE_FILES = linuxigd2/doc/LICENSE
|
||||
IGD2_FOR_LINUX_LICENSE = GPL-2.0, BSD-3-Clause
|
||||
IGD2_FOR_LINUX_LICENSE_FILES = linuxigd2/doc/LICENSE linuxigd2/src/threadutil/COPYING
|
||||
|
||||
IGD2_FOR_LINUX_DEPENDENCIES = libupnp
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# Use the latest commit from release_90 branch.
|
||||
LIBCLC_VERSION = d1cbc92e2ceee59963f5c3a576382e5bba31f060
|
||||
LIBCLC_SITE = https://git.llvm.org/git/libclc
|
||||
LIBCLC_SITE = https://github.com/llvm-mirror/libclc
|
||||
LIBCLC_SITE_METHOD = git
|
||||
LIBCLC_LICENSE = Apache-2.0 with exceptions or MIT
|
||||
LIBCLC_LICENSE_FILES = LICENSE.TXT
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
config BR2_PACKAGE_LIBLLCP
|
||||
bool "libllcp"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
select BR2_PACKAGE_LIBNFC
|
||||
help
|
||||
Library extending libnfc with support for Logical Link Control
|
||||
Protocol.
|
||||
|
||||
https://github.com/nfc-tools/libllcp
|
||||
|
||||
comment "libllcp needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
18
package/libnpupnp/Config.in
Normal file
18
package/libnpupnp/Config.in
Normal file
@@ -0,0 +1,18 @@
|
||||
config BR2_PACKAGE_LIBNPUPNP
|
||||
bool "libnpupnp"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
|
||||
select BR2_PACKAGE_EXPAT
|
||||
select BR2_PACKAGE_LIBCURL
|
||||
select BR2_PACKAGE_LIBMICROHTTPD
|
||||
help
|
||||
npupnp (new pupnp or not pupnp ?) is an UPnP library derived
|
||||
from the venerable pupnp (https://github.com/pupnp/pupnp),
|
||||
based on its 1.6.x branch (around 1.6.25).
|
||||
|
||||
https://www.lesbonscomptes.com/upmpdcli/libnpupnp.html
|
||||
|
||||
comment "libnpupnp needs a toolchain w/ C++, threads, gcc >= 4.9"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
5
package/libnpupnp/libnpupnp.hash
Normal file
5
package/libnpupnp/libnpupnp.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# Hash from: http://www.lesbonscomptes.com/upmpdcli/downloads/libnpupnp-4.0.11.tar.gz.sha256
|
||||
sha256 15b73a5197e649afe44dd15002be131b4b0e20a2b2e9b7ea4a2000b9644fefae libnpupnp-4.0.11.tar.gz
|
||||
|
||||
# Hash for license file:
|
||||
sha256 c8b99423cad48bb44e2cf52a496361404290865eac259a82da6d1e4331ececb3 COPYING
|
||||
14
package/libnpupnp/libnpupnp.mk
Normal file
14
package/libnpupnp/libnpupnp.mk
Normal file
@@ -0,0 +1,14 @@
|
||||
################################################################################
|
||||
#
|
||||
# libnpupnp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBNPUPNP_VERSION = 4.0.11
|
||||
LIBNPUPNP_SITE = http://www.lesbonscomptes.com/upmpdcli/downloads
|
||||
LIBNPUPNP_LICENSE = BSD-3-Clause
|
||||
LIBNPUPNP_LICENSE_FILES = COPYING
|
||||
LIBNPUPNP_INSTALL_STAGING = YES
|
||||
LIBNPUPNP_DEPENDENCIES = expat libcurl libmicrohttpd
|
||||
|
||||
$(eval $(autotools-package))
|
||||
@@ -1,8 +1,8 @@
|
||||
comment "libtorrent-rasterbar needs a toolchain w/ C++, threads, wchar, gcc >= 4.9"
|
||||
depends on BR2_TOOLCHAIN_SUPPORTS_VARIADIC_MI_THUNK
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \
|
||||
!BR2_HOST_GCC_AT_LEAST_4_9 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_USE_WCHAR || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
|
||||
comment "libtorrent-rasterbar needs exception_ptr"
|
||||
depends on BR2_TOOLCHAIN_SUPPORTS_VARIADIC_MI_THUNK
|
||||
@@ -11,7 +11,6 @@ comment "libtorrent-rasterbar needs exception_ptr"
|
||||
config BR2_PACKAGE_LIBTORRENT_RASTERBAR
|
||||
bool "libtorrent-rasterbar"
|
||||
depends on BR2_INSTALL_LIBSTDCPP # boost
|
||||
depends on BR2_HOST_GCC_AT_LEAST_4_9 # C++11
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # boost
|
||||
depends on BR2_TOOLCHAIN_SUPPORTS_VARIADIC_MI_THUNK
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 c5a300b86775435c076d58a79cc0d5a977d76027d2a7d721590729b7f369fa43 libupnp-1.6.25.tar.bz2
|
||||
sha256 0375955c8a79d6e8fa0792d45d00fc4e7710d7ac95bcbd27f9225a83f5c946fd LICENSE
|
||||
sha256 ecb23d4291968c8a7bdd4eb16fc2250dbacc16b354345a13342d67f571d35ceb libupnp-1.14.0.tar.bz2
|
||||
sha256 c8b99423cad48bb44e2cf52a496361404290865eac259a82da6d1e4331ececb3 COPYING
|
||||
|
||||
@@ -4,12 +4,24 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBUPNP_VERSION = 1.6.25
|
||||
LIBUPNP_VERSION = 1.14.0
|
||||
LIBUPNP_SOURCE = libupnp-$(LIBUPNP_VERSION).tar.bz2
|
||||
LIBUPNP_SITE = http://downloads.sourceforge.net/project/pupnp/pupnp/libUPnP%20$(LIBUPNP_VERSION)
|
||||
LIBUPNP_SITE = \
|
||||
http://downloads.sourceforge.net/project/pupnp/pupnp/libupnp-$(LIBUPNP_VERSION)
|
||||
LIBUPNP_CONF_ENV = ac_cv_lib_compat_ftime=no
|
||||
LIBUPNP_INSTALL_STAGING = YES
|
||||
LIBUPNP_LICENSE = BSD-3-Clause
|
||||
LIBUPNP_LICENSE_FILES = LICENSE
|
||||
LIBUPNP_LICENSE_FILES = COPYING
|
||||
LIBUPNP_DEPENDENCIES = host-pkgconf
|
||||
|
||||
# Bind the internal miniserver socket with reuseaddr to allow clean restarts.
|
||||
LIBUPNP_CONF_OPTS += --enable-reuseaddr
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
LIBUPNP_CONF_OPTS += --enable-open-ssl
|
||||
LIBUPNP_DEPENDENCIES += openssl
|
||||
else
|
||||
LIBUPNP_CONF_OPTS += --disable-open-ssl
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
config BR2_PACKAGE_LIBUPNP18
|
||||
bool "libupnp18"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_PACKAGE_LIBUPNP
|
||||
help
|
||||
The portable SDK for UPnP(tm) Devices (libupnp) provides
|
||||
developers with an API and open source code for building
|
||||
control points, devices, and bridges that are compliant with
|
||||
Version 1.0 of the Universal Plug and Play Device Architecture
|
||||
Specification
|
||||
|
||||
http://pupnp.sourceforge.net/
|
||||
|
||||
comment "libupnp18 needs a toolchain w/ threads"
|
||||
depends on !BR2_PACKAGE_LIBUPNP
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
@@ -1,5 +0,0 @@
|
||||
# From https://sourceforge.net/projects/pupnp/files/pupnp/libupnp-1.8.6/libupnp-1.8.6.tar.bz2.sha1
|
||||
sha1 6132a949d7536dac835172609d1def1e7f2bd232 libupnp-1.8.6.tar.bz2
|
||||
# Locally computed:
|
||||
sha256 65faf240f8ccee50cc0e7fe7fb21dcd79f743fc227a9b652b091f50f6956c2c7 libupnp-1.8.6.tar.bz2
|
||||
sha256 c8b99423cad48bb44e2cf52a496361404290865eac259a82da6d1e4331ececb3 COPYING
|
||||
@@ -1,26 +0,0 @@
|
||||
################################################################################
|
||||
#
|
||||
# libupnp18
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBUPNP18_VERSION = 1.8.6
|
||||
LIBUPNP18_SOURCE = libupnp-$(LIBUPNP18_VERSION).tar.bz2
|
||||
LIBUPNP18_SITE = http://downloads.sourceforge.net/project/pupnp/pupnp/libupnp-$(LIBUPNP18_VERSION)
|
||||
LIBUPNP18_CONF_ENV = ac_cv_lib_compat_ftime=no
|
||||
LIBUPNP18_INSTALL_STAGING = YES
|
||||
LIBUPNP18_LICENSE = BSD-3-Clause
|
||||
LIBUPNP18_LICENSE_FILES = COPYING
|
||||
LIBUPNP18_DEPENDENCIES = host-pkgconf
|
||||
|
||||
# Bind the internal miniserver socket with reuseaddr to allow clean restarts.
|
||||
LIBUPNP18_CONF_OPTS += --enable-reuseaddr
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
LIBUPNP18_CONF_OPTS += --enable-open-ssl
|
||||
LIBUPNP18_DEPENDENCIES += openssl
|
||||
else
|
||||
LIBUPNP18_CONF_OPTS += --disable-open-ssl
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
@@ -1,11 +1,11 @@
|
||||
config BR2_PACKAGE_LIBUPNPP
|
||||
bool "libupnpp"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libupnp
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libnpupnp
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
select BR2_PACKAGE_EXPAT
|
||||
select BR2_PACKAGE_LIBCURL
|
||||
select BR2_PACKAGE_LIBUPNP18 if !BR2_PACKAGE_LIBUPNP
|
||||
select BR2_PACKAGE_LIBNPUPNP
|
||||
help
|
||||
The libupnpp C++ library wraps libupnp for easier use by
|
||||
upmpdcli and upplay.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Hashes from: http://www.lesbonscomptes.com/upmpdcli/downloads/libupnpp-0.17.2.tar.gz.sha256
|
||||
sha256 5abaaf353a1e9c3482d61ef2627b650285d59f27c1ee60d35b8951952261374f libupnpp-0.17.2.tar.gz
|
||||
# Hash from: http://www.lesbonscomptes.com/upmpdcli/downloads/libupnpp-0.19.4.tar.gz.sha256
|
||||
sha256 29d1d07d44c8f79573e64e093ad8f0f883b11ef9eb3642a67aa703c1dde60576 libupnpp-0.19.4.tar.gz
|
||||
|
||||
# Hash for license file:
|
||||
sha256 00a89b0d18aacd4114decf79122db87bf35bddaf2bc50e383c9c9f4c263390b2 COPYING
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBUPNPP_VERSION = 0.17.2
|
||||
LIBUPNPP_VERSION = 0.19.4
|
||||
LIBUPNPP_SITE = http://www.lesbonscomptes.com/upmpdcli/downloads
|
||||
LIBUPNPP_LICENSE = LGPL-2.1+
|
||||
LIBUPNPP_LICENSE_FILES = COPYING
|
||||
LIBUPNPP_INSTALL_STAGING = YES
|
||||
LIBUPNPP_DEPENDENCIES = host-pkgconf expat libcurl \
|
||||
$(if $(BR2_PACKAGE_LIBUPNP),libupnp,libupnp18)
|
||||
LIBUPNPP_DEPENDENCIES = host-pkgconf expat libcurl libnpupnp
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
From d5d528e7562f358b9564e64cea0678020c51479a Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 15 Mar 2020 18:56:19 +0100
|
||||
Subject: [PATCH] src/core/paths/paths.cpp: fix powerpc build
|
||||
|
||||
Fix the following build failure on powerpc:
|
||||
|
||||
/home/test/autobuild/run/instance-2/output-1/build/linphone-4.3.1/src/core/paths/paths.cpp:32:3: error: #error "Unsupported system."
|
||||
#error "Unsupported system."
|
||||
^~~~~
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/d90bca02c2771df8dfbf39892d529fb5f9069656
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
src/core/paths/paths.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/core/paths/paths.cpp b/src/core/paths/paths.cpp
|
||||
index 0442282fe..2c6508a51 100644
|
||||
--- a/src/core/paths/paths.cpp
|
||||
+++ b/src/core/paths/paths.cpp
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "paths-android.h"
|
||||
#elif defined(_WIN32)
|
||||
#include "paths-windows.h"
|
||||
-#elif defined(__linux)
|
||||
+#elif defined(__linux) || defined(__linux__)
|
||||
#include "paths-linux.h"
|
||||
#else
|
||||
#error "Unsupported system."
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,11 +1,17 @@
|
||||
config BR2_PACKAGE_LINPHONE
|
||||
bool "linphone"
|
||||
depends on BR2_INSTALL_LIBSTDCPP # mediastreamer (bundled)
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # ortp (bundled)
|
||||
depends on BR2_USE_MMU # libeXosip2
|
||||
select BR2_PACKAGE_LIBEXOSIP2
|
||||
select BR2_PACKAGE_SPEEX
|
||||
select BR2_PACKAGE_SPEEXDSP
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_STATIC_LIBS # belle-sip, mediastreamer
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # belr, belle-sip, mediastreamer
|
||||
# belr, belle-sip, mediastreamer
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
||||
depends on BR2_USE_WCHAR # belle-sip
|
||||
select BR2_PACKAGE_BELLE_SIP
|
||||
select BR2_PACKAGE_BELR
|
||||
select BR2_PACKAGE_LIBXML2
|
||||
select BR2_PACKAGE_MEDIASTREAMER
|
||||
select BR2_PACKAGE_SQLITE
|
||||
help
|
||||
Linphone is an internet phone or Voice Over IP phone (VoIP).
|
||||
|
||||
@@ -24,6 +30,10 @@ config BR2_PACKAGE_LINPHONE
|
||||
|
||||
http://www.linphone.org/
|
||||
|
||||
comment "linphone needs a toolchain w/ threads, C++"
|
||||
comment "linphone needs a toolchain w/ threads, C++, dynamic library, wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
|
||||
|
||||
comment "linphone needs a toolchain not affected by GCC bug 64735"
|
||||
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 05ba81223e9378c3bce8d33080213b9925af49bd9623cd9004eb3dd22ca9d2a0 linphone-3.6.1.tar.gz
|
||||
sha256 bfb195845ae23311667d5631c470310a63818fe46029cea2f1b77a5ed84e6e21 linphone-4.3.1.tar.gz
|
||||
# Locally computed
|
||||
sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING
|
||||
sha256 1b3782ccad7b8614100cda30d3faf42fc39f2e97932908c543005053b654ca68 LICENSE.txt
|
||||
|
||||
@@ -4,52 +4,38 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LINPHONE_VERSION_MAJOR = 3.6
|
||||
LINPHONE_VERSION = $(LINPHONE_VERSION_MAJOR).1
|
||||
LINPHONE_SITE = http://download-mirror.savannah.gnu.org/releases/linphone/$(LINPHONE_VERSION_MAJOR).x/sources
|
||||
LINPHONE_VERSION = 4.3.1
|
||||
LINPHONE_SITE = \
|
||||
https://gitlab.linphone.org/BC/public/liblinphone/-/archive/$(LINPHONE_VERSION)
|
||||
LINPHONE_CONF_OPTS = \
|
||||
--disable-strict --disable-video
|
||||
# configure is out of sync causing deplibs linking issues
|
||||
LINPHONE_AUTORECONF = YES
|
||||
-DENABLE_ADVANCED_IM=OFF \
|
||||
-DENABLE_CXX_WRAPPER=OFF \
|
||||
-DENABLE_DB_STORAGE=OFF \
|
||||
-DENABLE_LIME=OFF \
|
||||
-DENABLE_LIME_X3DH=OFF \
|
||||
-DENABLE_STRICT=OFF \
|
||||
-DENABLE_TOOLS=OFF \
|
||||
-DENABLE_TUTORIALS=OFF \
|
||||
-DENABLE_UNIT_TESTS=OFF \
|
||||
-DENABLE_VCARD=OFF \
|
||||
-DENABLE_VIDEO=OFF
|
||||
LINPHONE_INSTALL_STAGING = YES
|
||||
LINPHONE_DEPENDENCIES = host-pkgconf libeXosip2 speex
|
||||
LINPHONE_LICENSE = GPL-2.0+
|
||||
LINPHONE_LICENSE_FILES = COPYING
|
||||
LINPHONE_DEPENDENCIES = \
|
||||
belle-sip \
|
||||
belr \
|
||||
libxml2 \
|
||||
mediastreamer \
|
||||
sqlite \
|
||||
$(if $(BR2_PACKAGE_ZLIB),zlib)
|
||||
LINPHONE_LICENSE = GPL-3.0+
|
||||
LINPHONE_LICENSE_FILES = LICENSE.txt
|
||||
|
||||
ifeq ($(BR2_arc),y)
|
||||
# toolchain __arc__ define conflicts with libosip2 source
|
||||
LINPHONE_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -U__arc__"
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
LINPHONE_CONF_OPTS += -DENABLE_STATIC=ON -DENABLE_SHARED=OFF
|
||||
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
||||
LINPHONE_CONF_OPTS += -DENABLE_STATIC=ON -DENABLE_SHARED=ON
|
||||
else ifeq ($(BR2_SHARED_LIBS),y)
|
||||
LINPHONE_CONF_OPTS += -DENABLE_STATIC=OFF -DENABLE_SHARED=ON
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGTK2)$(BR2_PACKAGE_XORG7),yy)
|
||||
LINPHONE_CONF_OPTS += --enable-gtk_ui
|
||||
LINPHONE_DEPENDENCIES += libgtk2
|
||||
else
|
||||
LINPHONE_CONF_OPTS += --disable-gtk_ui
|
||||
endif
|
||||
|
||||
# needed for bundled mediastreamer2
|
||||
LINPHONE_DEPENDENCIES += host-intltool host-gettext
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_LIB_MIXER)$(BR2_PACKAGE_ALSA_LIB_PCM),yy)
|
||||
LINPHONE_CONF_OPTS += --enable-alsa
|
||||
LINPHONE_DEPENDENCIES += alsa-lib
|
||||
else
|
||||
LINPHONE_CONF_OPTS += --disable-alsa
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBV4L),y)
|
||||
LINPHONE_CONF_OPTS += --enable-libv4l1 --enable-libv4l2
|
||||
LINPHONE_DEPENDENCIES += libv4l
|
||||
else
|
||||
LINPHONE_CONF_OPTS += --disable-libv4l1 --disable-libv4l2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBUPNP),y)
|
||||
LINPHONE_DEPENDENCIES += libupnp
|
||||
LINPHONE_CONF_OPTS += --enable-upnp
|
||||
else
|
||||
LINPHONE_CONF_OPTS += --disable-upnp
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(cmake-package))
|
||||
|
||||
@@ -318,11 +318,11 @@ endchoice
|
||||
|
||||
config BR2_DEFAULT_KERNEL_HEADERS
|
||||
string
|
||||
default "4.4.248" if BR2_KERNEL_HEADERS_4_4
|
||||
default "4.9.248" if BR2_KERNEL_HEADERS_4_9
|
||||
default "4.14.212" if BR2_KERNEL_HEADERS_4_14
|
||||
default "4.19.163" if BR2_KERNEL_HEADERS_4_19
|
||||
default "5.4.83" if BR2_KERNEL_HEADERS_5_4
|
||||
default "4.4.253" if BR2_KERNEL_HEADERS_4_4
|
||||
default "4.9.253" if BR2_KERNEL_HEADERS_4_9
|
||||
default "4.14.217" if BR2_KERNEL_HEADERS_4_14
|
||||
default "4.19.171" if BR2_KERNEL_HEADERS_4_19
|
||||
default "5.4.93" if BR2_KERNEL_HEADERS_5_4
|
||||
default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
|
||||
default "custom" if BR2_KERNEL_HEADERS_CUSTOM_TARBALL
|
||||
default BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION \
|
||||
|
||||
@@ -19,8 +19,7 @@ LUAROCKS_CFLAGS += -DLUA_COMPAT_5_2
|
||||
endif
|
||||
|
||||
define LUAROCKS_ADDON_EXTRACT
|
||||
mkdir $(@D)/src/luarocks/cmd/external
|
||||
cp package/luarocks/buildroot.lua $(@D)/src/luarocks/cmd/external/buildroot.lua
|
||||
$(INSTALL) -D -m 0644 package/luarocks/buildroot.lua $(@D)/src/luarocks/cmd/external/buildroot.lua
|
||||
endef
|
||||
HOST_LUAROCKS_POST_EXTRACT_HOOKS += LUAROCKS_ADDON_EXTRACT
|
||||
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
From 26f884bf977977041fe6f98a0af186be1580bf22 Mon Sep 17 00:00:00 2001
|
||||
From: Simon Morlat <simon.morlat@linphone.org>
|
||||
Date: Thu, 29 Sep 2016 15:26:18 +0200
|
||||
Subject: [PATCH] fix compilation issue with latest bctoobox
|
||||
|
||||
[Upstream commit https://github.com/BelledonneCommunications/mediastreamer2/commit/26f884bf977977041fe6f98a0af186be1580bf22]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
src/crypto/dtls_srtp.c | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 7ab20a08f..244d87275 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1116,7 +1116,7 @@ fi
|
||||
|
||||
|
||||
dnl check bctoolbox library
|
||||
-PKG_CHECK_MODULES(BCTOOLBOX, bctoolbox >= 0.0.0, found_bctoolbox=true, found_bctoolbox=false)
|
||||
+PKG_CHECK_MODULES(BCTOOLBOX, bctoolbox >= 0.4.0, found_bctoolbox=true, found_bctoolbox=false)
|
||||
if test "$found_bctoolbox" = "true" ; then
|
||||
LIBS="$LIBS $BCTOOLBOX_LIBS"
|
||||
CFLAGS="$CFLAGS $BCTOOLBOX_CFLAGS"
|
||||
diff --git a/src/crypto/dtls_srtp.c b/src/crypto/dtls_srtp.c
|
||||
index e2c8e1c44..fd37eb5cb 100644
|
||||
--- a/src/crypto/dtls_srtp.c
|
||||
+++ b/src/crypto/dtls_srtp.c
|
||||
@@ -705,7 +705,7 @@ static int ms_dtls_srtp_initialise_bctbx_dtls_context(DtlsBcToolBoxContext *dtls
|
||||
bctbx_ssl_config_set_authmode(dtlsContext->ssl_config, BCTBX_SSL_VERIFY_OPTIONAL);
|
||||
bctbx_ssl_config_set_own_cert( dtlsContext->ssl_config, dtlsContext->crt, dtlsContext->pkey );
|
||||
/* This is useless as peer would certainly be a self signed certificate and we won't verify it but avoid runtime warnings */
|
||||
- bctbx_ssl_config_set_ca_chain(dtlsContext->ssl_config, dtlsContext->crt, NULL);
|
||||
+ bctbx_ssl_config_set_ca_chain(dtlsContext->ssl_config, dtlsContext->crt);
|
||||
|
||||
/* we are not ready yet to actually start the ssl context, this will be done by calling bctbx_ssl_setup when stream starts */
|
||||
return 0;
|
||||
@@ -0,0 +1,55 @@
|
||||
From 342f59f1603f759b6dd90754f8dba14d08947f55 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Thu, 27 Feb 2020 16:18:35 +0100
|
||||
Subject: [PATCH] src/videofilters/nowebcam.c: fix build without ffmpeg or jpeg
|
||||
|
||||
jpeg2yuv is only defined if ffmpeg or turbojpeg is available
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
CMakeLists.txt | 3 +++
|
||||
src/videofilters/nowebcam.c | 4 ++++
|
||||
2 files changed, 7 insertions(+)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 0efc1a5f..6668db2b 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -336,7 +336,10 @@ if(ENABLE_JPEG)
|
||||
if(NOT TURBOJPEG_FOUND)
|
||||
message(WARNING "Could not find libturbo-jpeg, mediastreamer2 will be compiled without LibJpeg-Turbo")
|
||||
set(ENABLE_JPEG OFF CACHE BOOL "Enable JPEG support" FORCE)
|
||||
+ add_definitions(-DNO_JPEG)
|
||||
endif()
|
||||
+else()
|
||||
+ add_definitions(-DNO_JPEG)
|
||||
endif()
|
||||
if(ENABLE_QRCODE)
|
||||
find_package(Zxing)
|
||||
diff --git a/src/videofilters/nowebcam.c b/src/videofilters/nowebcam.c
|
||||
index a2344dcd..afb0d7b1 100644
|
||||
--- a/src/videofilters/nowebcam.c
|
||||
+++ b/src/videofilters/nowebcam.c
|
||||
@@ -107,7 +107,9 @@ static mblk_t *_ms_load_jpeg_as_yuv(const char *jpgpath, MSVideoSize *reqsize) {
|
||||
if (err != st_sizel) {
|
||||
ms_error("Could not read as much as wanted !");
|
||||
}
|
||||
+#if !(defined(NO_FFMPEG) && defined(NO_JPEG))
|
||||
m = jpeg2yuv(jpgbuf, st_sizel, reqsize);
|
||||
+#endif
|
||||
ms_free(jpgbuf);
|
||||
if (m == NULL) {
|
||||
CloseHandle(fd);
|
||||
@@ -140,7 +142,9 @@ static mblk_t *_ms_load_jpeg_as_yuv(const char *jpgpath, MSVideoSize *reqsize) {
|
||||
if (err != statbuf.st_size) {
|
||||
ms_error("Could not read as much as wanted: %i<>%li !", err, (long)statbuf.st_size);
|
||||
}
|
||||
+#if !(defined(NO_FFMPEG) && defined(NO_JPEG))
|
||||
m = jpeg2yuv(jpgbuf,statbuf.st_size,reqsize);
|
||||
+#endif
|
||||
ms_free(jpgbuf);
|
||||
if (m == NULL) {
|
||||
close(fd);
|
||||
--
|
||||
2.25.0
|
||||
|
||||
@@ -17,6 +17,8 @@ Downloaded from
|
||||
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901735
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
[Fabrice: updated for 4.3.1]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
src/utils/ffmpeg-priv.h | 4 ++++
|
||||
src/videofilters/nowebcam.c | 4 ++--
|
||||
@@ -37,28 +39,6 @@ index c0745a9a..d59ea0e1 100644
|
||||
#ifndef HAVE_FUN_avcodec_encode_video2
|
||||
int avcodec_encode_video2 (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr);
|
||||
#endif
|
||||
diff --git a/src/videofilters/nowebcam.c b/src/videofilters/nowebcam.c
|
||||
index bd2ca838..4783de05 100644
|
||||
--- a/src/videofilters/nowebcam.c
|
||||
+++ b/src/videofilters/nowebcam.c
|
||||
@@ -32,7 +32,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#ifndef NO_FFMPEG
|
||||
#include "ffmpeg-priv.h"
|
||||
#else
|
||||
-#define FF_INPUT_BUFFER_PADDING_SIZE 32
|
||||
+#define AV_INPUT_BUFFER_PADDING_SIZE 32
|
||||
#endif
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
@@ -248,7 +248,7 @@ static mblk_t *_ms_load_jpeg_as_yuv(const char *jpgpath, MSVideoSize *reqsize){
|
||||
ms_error("Cannot load %s",jpgpath);
|
||||
return NULL;
|
||||
}
|
||||
- jpgbuf=(uint8_t*)ms_malloc0(statbuf.st_size + FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
+ jpgbuf=(uint8_t*)ms_malloc0(statbuf.st_size + AV_INPUT_BUFFER_PADDING_SIZE);
|
||||
if (jpgbuf==NULL)
|
||||
{
|
||||
close(fd);
|
||||
--
|
||||
2.18.0
|
||||
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
From d12e74a559602b3dff9a6bf38fcbb139535c9c9c Mon Sep 17 00:00:00 2001
|
||||
From: Giulio Benetti <giulio.benetti@micronovasrl.com>
|
||||
Date: Mon, 3 Sep 2018 20:27:00 +0200
|
||||
Subject: [PATCH] m4: fix local ffmpeg and avcodec function conflict
|
||||
|
||||
Autotools miss avcodec function check.
|
||||
This is due to linker library list order, -ldrm is appended too early
|
||||
respect to -lavutil. This results in missing drm library functions for
|
||||
avcodec functions:
|
||||
- drmGetVersion()
|
||||
- drmFreeVersion()
|
||||
So these functions:
|
||||
- avcodec_get_context_defaults3
|
||||
- avcodec_open2
|
||||
- avcodec_encode_video2
|
||||
can't link correctly during check and they seem not to be present.
|
||||
Then macros HAVE_FUN_avcodec_* are not defined in mediastreamer-config.h
|
||||
So local avcodec functions conflict with real avcodec library functions.
|
||||
|
||||
In acinclude.m4 file, swap $FFMPEG_LIBS and -lavutil if avcodec is found.
|
||||
|
||||
Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
|
||||
---
|
||||
acinclude.m4 | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index 6c31ed82..89ff6643 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -110,7 +110,7 @@ AC_DEFUN([MS_CHECK_VIDEO],[
|
||||
if test x$avcodec_found = xno ; then
|
||||
AC_MSG_WARN([Could not find libavcodec (from ffmpeg) headers and library.])
|
||||
else
|
||||
- FFMPEG_LIBS="$FFMPEG_LIBS -lavutil"
|
||||
+ FFMPEG_LIBS="-lavutil $FFMPEG_LIBS"
|
||||
fi
|
||||
|
||||
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
config BR2_PACKAGE_MEDIASTREAMER
|
||||
bool "mediastreamer"
|
||||
depends on BR2_INSTALL_LIBSTDCPP # ortp
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # ortp
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # ortp
|
||||
select BR2_PACKAGE_MBEDTLS
|
||||
select BR2_PACKAGE_ORTP
|
||||
help
|
||||
Mediastreamer is a powerful and lightweighted streaming
|
||||
@@ -13,5 +16,9 @@ config BR2_PACKAGE_MEDIASTREAMER
|
||||
|
||||
http://www.linphone.org/technical-corner/mediastreamer2
|
||||
|
||||
comment "mediastreamer needs a toolchain w/ threads, C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
comment "mediastreamer needs a toolchain w/ threads, C++, dynamic library"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
|
||||
comment "mediastreamer needs a toolchain not affected by GCC bug 64735"
|
||||
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 1144849c0c96abafb1153adf56109f0f195a9e4a53cf28cb611bbca7a9012c1a mediastreamer-2.14.0.tar.gz
|
||||
sha256 ba9ed2269151ad63b922598f3c5c19ddf781b2bbb6cb843ed9f085ecd1679c5d COPYING
|
||||
sha256 b7251495c0bf2c71508b7cdf29999326af0bd215ec4c647b3ebb60796ee72503 mediastreamer-4.3.1.tar.gz
|
||||
sha256 1b3782ccad7b8614100cda30d3faf42fc39f2e97932908c543005053b654ca68 LICENSE.txt
|
||||
|
||||
@@ -4,110 +4,176 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MEDIASTREAMER_VERSION = 2.14.0
|
||||
MEDIASTREAMER_SITE = http://download.savannah.nongnu.org/releases/linphone/mediastreamer
|
||||
MEDIASTREAMER_VERSION = 4.3.1
|
||||
MEDIASTREAMER_SITE = \
|
||||
https://gitlab.linphone.org/BC/public/mediastreamer2/-/archive/$(MEDIASTREAMER_VERSION)
|
||||
MEDIASTREAMER_LICENSE = GPL-3.0+
|
||||
MEDIASTREAMER_LICENSE_FILES = LICENSE.txt
|
||||
MEDIASTREAMER_INSTALL_STAGING = YES
|
||||
# host-vim needed for the xxd utility
|
||||
MEDIASTREAMER_DEPENDENCIES = host-intltool host-pkgconf ortp host-gettext host-vim
|
||||
# tests fail linking on some architectures, so disable them
|
||||
MEDIASTREAMER_CONF_OPTS = --disable-tests --disable-glx --disable-strict
|
||||
MEDIASTREAMER_LICENSE = GPL-2.0+
|
||||
MEDIASTREAMER_LICENSE_FILES = COPYING
|
||||
|
||||
# patching configure.ac
|
||||
MEDIASTREAMER_AUTORECONF = YES
|
||||
MEDIASTREAMER_DEPENDENCIES = ortp
|
||||
MEDIASTREAMER_CONF_OPTS = \
|
||||
-DENABLE_DOC=OFF \
|
||||
-DENABLE_GL=OFF \
|
||||
-DENABLE_GLX=OFF \
|
||||
-DENABLE_MKV=OFF \
|
||||
-DENABLE_SOUND=OFF \
|
||||
-DENABLE_STRICT=OFF \
|
||||
-DENABLE_TOOLS=OFF \
|
||||
-DENABLE_UNIT_TESTS=OFF \
|
||||
-DENABLE_ZRTP=OFF
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_LIB_MIXER)$(BR2_PACKAGE_ALSA_LIB_PCM),yy)
|
||||
MEDIASTREAMER_CONF_OPTS += --enable-alsa
|
||||
MEDIASTREAMER_CONF_OPTS += \
|
||||
-DENABLE_ALSA=ON \
|
||||
-DENABLE_SOUND=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += alsa-lib
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += --disable-alsa
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_ALSA=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBUPNP),y)
|
||||
MEDIASTREAMER_CONF_OPTS += --enable-upnp
|
||||
MEDIASTREAMER_DEPENDENCIES += libupnp
|
||||
ifeq ($(BR2_PACKAGE_BCG729),y)
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_G729=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += bcg729
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += --disable-upnp
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_G729=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JPEG_TURBO),y)
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_JPEG=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += jpeg
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_JPEG=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGSM),y)
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_GSM=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += libgsm
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_GSM=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBPCAP),y)
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_PCAP=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += libpcap
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_PCAP=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSRTP),y)
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_SRTP=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += libsrtp
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_SRTP=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBVPX),y)
|
||||
MEDIASTREAMER_CONF_OPTS += --enable-vp8
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_VPX=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += libvpx
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += --disable-vp8
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_VPX=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPUS),y)
|
||||
MEDIASTREAMER_CONF_OPTS += --enable-opus
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_OPUS=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += opus
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += --disable-opus
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_OPUS=OFF
|
||||
endif
|
||||
|
||||
# portaudio backend needs speex as well
|
||||
ifeq ($(BR2_PACKAGE_PORTAUDIO)$(BR2_PACKAGE_SPEEX)$(BR2_PACKAGE_SPEEXDSP),yyy)
|
||||
MEDIASTREAMER_CONF_OPTS += --enable-portaudio
|
||||
MEDIASTREAMER_DEPENDENCIES += portaudio speex
|
||||
# portaudio backend needs speexdsp as well
|
||||
ifeq ($(BR2_PACKAGE_PORTAUDIO)$(BR2_PACKAGE_SPEEXDSP),yy)
|
||||
MEDIASTREAMER_CONF_OPTS += \
|
||||
-DENABLE_PORTAUDIO=ON \
|
||||
-DENABLE_SOUND=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += portaudio
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += --disable-portaudio
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_PORTAUDIO=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
|
||||
MEDIASTREAMER_CONF_OPTS += --enable-pulseaudio
|
||||
MEDIASTREAMER_CONF_OPTS += \
|
||||
-DENABLE_PULSEAUDIO=ON \
|
||||
-DENABLE_SOUND=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += pulseaudio
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += --disable-pulseaudio
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_PULSEAUDIO=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SPEEX),y)
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_SPEEX_CODEC=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += speex
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_SPEEX_CODEC=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SPEEXDSP),y)
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_SPEEX_DSP=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += speexdsp
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_SPEEX_DSP=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SPEEX)$(BR2_PACKAGE_SPEEXDSP),yy)
|
||||
MEDIASTREAMER_CONF_OPTS += --enable-speex
|
||||
MEDIASTREAMER_DEPENDENCIES += speex
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_RESAMPLE=ON
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += --disable-speex
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_RESAMPLE=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y)
|
||||
MEDIASTREAMER_CONF_OPTS += --enable-ffmpeg
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_FFMPEG=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += ffmpeg
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += --disable-ffmpeg
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_FFMPEG=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SDL),y)
|
||||
MEDIASTREAMER_CONF_OPTS += --enable-sdl
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_SDL=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += sdl
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += --disable-sdl
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_SDL=OFF
|
||||
endif
|
||||
|
||||
# mediastreamer assumes SDL has X11 support if --enable-x11 (and X11 support
|
||||
# is only used for SDL output)
|
||||
ifeq ($(BR2_PACKAGE_SDL_X11),y)
|
||||
MEDIASTREAMER_CONF_OPTS += --enable-x11
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_X11=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += xlib_libX11
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += --disable-x11
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_X11=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXV),y)
|
||||
MEDIASTREAMER_CONF_OPTS += --enable-xv
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_XV=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += xlib_libXv
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += --disable-xv
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_XV=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBTHEORA),y)
|
||||
MEDIASTREAMER_CONF_OPTS += --enable-theora
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_THEORA=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += libtheora
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += --disable-theora
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_THEORA=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBV4L),y)
|
||||
MEDIASTREAMER_CONF_OPTS += --enable-libv4l1 --enable-libv4l2
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_V4L=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += libv4l
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += --disable-libv4l1 --disable-libv4l2
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_V4L=OFF
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
ifeq ($(BR2_PACKAGE_ZXING_CPP),y)
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_QRCODE=ON
|
||||
MEDIASTREAMER_DEPENDENCIES += zxing-cpp
|
||||
else
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_QRCODE=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_SHARED=OFF -DENABLE_STATIC=ON
|
||||
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=ON
|
||||
else ifeq ($(BR2_SHARED_LIBS),y)
|
||||
MEDIASTREAMER_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
|
||||
@@ -350,7 +350,7 @@ config BR2_PACKAGE_MPD_TCP
|
||||
config BR2_PACKAGE_MPD_UPNP
|
||||
bool "UPnP"
|
||||
select BR2_PACKAGE_EXPAT
|
||||
select BR2_PACKAGE_LIBUPNP18 if !BR2_PACKAGE_LIBUPNP
|
||||
select BR2_PACKAGE_LIBUPNP
|
||||
select BR2_PACKAGE_MPD_CURL
|
||||
help
|
||||
Enable MPD UPnP client support.
|
||||
|
||||
@@ -269,7 +269,7 @@ endif
|
||||
ifeq ($(BR2_PACKAGE_MPD_UPNP),y)
|
||||
MPD_DEPENDENCIES += \
|
||||
expat \
|
||||
$(if $(BR2_PACKAGE_LIBUPNP),libupnp,libupnp18)
|
||||
libupnp
|
||||
MPD_CONF_OPTS += -Dupnp=enabled
|
||||
else
|
||||
MPD_CONF_OPTS += -Dupnp=disabled
|
||||
@@ -291,6 +291,8 @@ endif
|
||||
|
||||
define MPD_INSTALL_EXTRA_FILES
|
||||
$(INSTALL) -m 0644 -D package/mpd/mpd.conf $(TARGET_DIR)/etc/mpd.conf
|
||||
mkdir -p $(TARGET_DIR)/var/lib/mpd/music
|
||||
mkdir -p $(TARGET_DIR)/var/lib/mpd/playlists
|
||||
endef
|
||||
|
||||
MPD_POST_INSTALL_TARGET_HOOKS += MPD_INSTALL_EXTRA_FILES
|
||||
|
||||
40
package/mutt/0005-CVE-2021-3181-1.patch
Normal file
40
package/mutt/0005-CVE-2021-3181-1.patch
Normal file
@@ -0,0 +1,40 @@
|
||||
From 4a2becbdb4422aaffe3ce314991b9d670b7adf17 Mon Sep 17 00:00:00 2001
|
||||
From: Kevin McCarthy <kevin@8t8.us>
|
||||
Date: Sun, 17 Jan 2021 10:40:37 -0800
|
||||
Subject: [PATCH] Fix memory leak parsing group addresses without a display
|
||||
name.
|
||||
|
||||
When there was a group address terminator with no previous
|
||||
addresses (including the group display-name), an address would be
|
||||
allocated but not attached to the address list.
|
||||
|
||||
Change this to only allocate when last exists.
|
||||
|
||||
It would be more correct to not allocate at all unless we are inside a
|
||||
group list, but I will address that in a separate commit to master.
|
||||
|
||||
[Retrieved from:
|
||||
https://git.launchpad.net/ubuntu/+source/mutt/plain/debian/patches/CVE-2021-3181-1.patch?h=import/1.14.6-1ubuntu0.2]
|
||||
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||
---
|
||||
rfc822.c | 5 ++---
|
||||
1 file changed, 2 insertions(+), 3 deletions(-)
|
||||
|
||||
Index: mutt-1.14.6/rfc822.c
|
||||
===================================================================
|
||||
--- mutt-1.14.6.orig/rfc822.c
|
||||
+++ mutt-1.14.6/rfc822.c
|
||||
@@ -491,11 +491,10 @@ ADDRESS *rfc822_parse_adrlist (ADDRESS *
|
||||
#endif
|
||||
|
||||
/* add group terminator */
|
||||
- cur = rfc822_new_address ();
|
||||
if (last)
|
||||
{
|
||||
- last->next = cur;
|
||||
- last = cur;
|
||||
+ last->next = rfc822_new_address ();
|
||||
+ last = last->next;
|
||||
}
|
||||
|
||||
phraselen = 0;
|
||||
53
package/mutt/0006-CVE-2021-3181-2.patch
Normal file
53
package/mutt/0006-CVE-2021-3181-2.patch
Normal file
@@ -0,0 +1,53 @@
|
||||
From 939b02b33ae29bc0d642570c1dcfd4b339037d19 Mon Sep 17 00:00:00 2001
|
||||
From: Kevin McCarthy <kevin@8t8.us>
|
||||
Date: Sun, 17 Jan 2021 10:53:19 -0800
|
||||
Subject: [PATCH] Don't allocate a group terminator unless we are in a
|
||||
group-list.
|
||||
|
||||
This will reduce memory allocation for garbage/spam address lists.
|
||||
|
||||
It also makes no sense to store a terminator when there wasn't a
|
||||
display-name indicating the start of a group.
|
||||
|
||||
[Retrieved from:
|
||||
https://git.launchpad.net/ubuntu/+source/mutt/plain/debian/patches/CVE-2021-3181-2.patch?h=import/1.14.6-1ubuntu0.2]
|
||||
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||
---
|
||||
rfc822.c | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
Index: mutt-1.14.6/rfc822.c
|
||||
===================================================================
|
||||
--- mutt-1.14.6.orig/rfc822.c
|
||||
+++ mutt-1.14.6/rfc822.c
|
||||
@@ -378,7 +378,7 @@ add_addrspec (ADDRESS **top, ADDRESS **l
|
||||
|
||||
ADDRESS *rfc822_parse_adrlist (ADDRESS *top, const char *s)
|
||||
{
|
||||
- int ws_pending, nl;
|
||||
+ int ws_pending, nl, in_group = 0;
|
||||
#ifdef EXACT_ADDRESS
|
||||
const char *begin;
|
||||
#endif
|
||||
@@ -455,6 +455,7 @@ ADDRESS *rfc822_parse_adrlist (ADDRESS *
|
||||
terminate_buffer (phrase, phraselen);
|
||||
cur->mailbox = safe_strdup (phrase);
|
||||
cur->group = 1;
|
||||
+ in_group = 1;
|
||||
|
||||
if (last)
|
||||
last->next = cur;
|
||||
@@ -491,11 +492,12 @@ ADDRESS *rfc822_parse_adrlist (ADDRESS *
|
||||
#endif
|
||||
|
||||
/* add group terminator */
|
||||
- if (last)
|
||||
+ if (last && in_group)
|
||||
{
|
||||
last->next = rfc822_new_address ();
|
||||
last = last->next;
|
||||
}
|
||||
+ in_group = 0;
|
||||
|
||||
phraselen = 0;
|
||||
commentlen = 0;
|
||||
30
package/mutt/0007-CVE-2021-3181-3.patch
Normal file
30
package/mutt/0007-CVE-2021-3181-3.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
From d4305208955c5cdd9fe96dfa61e7c1e14e176a14 Mon Sep 17 00:00:00 2001
|
||||
From: Kevin McCarthy <kevin@8t8.us>
|
||||
Date: Sun, 17 Jan 2021 11:05:36 -0800
|
||||
Subject: [PATCH] Add group terminator if it is left off.
|
||||
|
||||
If there is no terminating ";" add one to the list, to make the text
|
||||
re-rendering correct.
|
||||
|
||||
[Retrieved from:
|
||||
https://git.launchpad.net/ubuntu/+source/mutt/plain/debian/patches/CVE-2021-3181-3.patch?h=import/1.14.6-1ubuntu0.2]
|
||||
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||
---
|
||||
rfc822.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
Index: mutt-1.14.6/rfc822.c
|
||||
===================================================================
|
||||
--- mutt-1.14.6.orig/rfc822.c
|
||||
+++ mutt-1.14.6/rfc822.c
|
||||
@@ -560,6 +560,10 @@ ADDRESS *rfc822_parse_adrlist (ADDRESS *
|
||||
last->val = mutt_substrdup (begin, s - nl < begin ? begin : s - nl);
|
||||
#endif
|
||||
|
||||
+ /* add group terminator, if it was left off */
|
||||
+ if (last && in_group)
|
||||
+ last->next = rfc822_new_address ();
|
||||
+
|
||||
return top;
|
||||
}
|
||||
|
||||
@@ -19,6 +19,11 @@ MUTT_IGNORE_CVES += CVE-2020-14093
|
||||
# 0004-Ensure-IMAP-connection-is-closed-after-a-connection-error.patch
|
||||
MUTT_IGNORE_CVES += CVE-2020-28896
|
||||
|
||||
# 0002-CVE-2021-3181-1.patch
|
||||
# 0003-CVE-2021-3181-2.patch
|
||||
# 0004-CVE-2021-3181-3.patch
|
||||
MUTT_IGNORE_CVES += CVE-2021-3181
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
MUTT_DEPENDENCIES += libiconv
|
||||
MUTT_CONF_OPTS += --enable-iconv
|
||||
|
||||
@@ -7,7 +7,6 @@ config BR2_PACKAGE_NFS_UTILS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libtirpc, rpcbind
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_LIBTIRPC # IPv6 requires libtirpc
|
||||
select BR2_PACKAGE_RPCBIND # runtime
|
||||
help
|
||||
The NFS Linux kernel server.
|
||||
|
||||
@@ -28,6 +27,7 @@ config BR2_PACKAGE_NFS_UTILS_RPC_LOCKD
|
||||
config BR2_PACKAGE_NFS_UTILS_RPC_NFSD
|
||||
bool "rpc.nfsd"
|
||||
default y
|
||||
select BR2_PACKAGE_RPCBIND # runtime
|
||||
help
|
||||
NFS server
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# From https://nodejs.org/dist/v12.19.1/SHASUMS256.txt
|
||||
sha256 74077e0cc3db000a6f3cc685b220e609807b61adc8e7d8243e8511d478d1b17d node-v12.19.1.tar.xz
|
||||
# From https://nodejs.org/dist/v12.20.1/SHASUMS256.txt
|
||||
sha256 e00eee325d705b2bfa9929b7d061eb2315402d7e8548945eac9870bf84321853 node-v12.20.1.tar.xz
|
||||
|
||||
# Hash for license file
|
||||
sha256 0dc03af08b95ea0c1e27f8fd591dee4383eb6f2c304db6eb6cdfb6751f7da87b LICENSE
|
||||
sha256 221417a7ca275112a5ac54639b36ee3c5184e74631ea1e1b01b701293b655190 LICENSE
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user