Compare commits
99 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
476067a78d | ||
|
|
c836666c7b | ||
|
|
f8d1e5f1ea | ||
|
|
c61338a628 | ||
|
|
eeec31f2a0 | ||
|
|
1a58c4c7b0 | ||
|
|
6338df7dea | ||
|
|
c9890cfa67 | ||
|
|
16daa3c10d | ||
|
|
5e24ed52e4 | ||
|
|
4f533d049a | ||
|
|
9eb481bbfe | ||
|
|
40192c1aa1 | ||
|
|
1244b18954 | ||
|
|
d09c7e4d45 | ||
|
|
119e94b830 | ||
|
|
e29fa95b83 | ||
|
|
74ed2a833d | ||
|
|
c1be21ac12 | ||
|
|
0b670f3879 | ||
|
|
2d7d618f7c | ||
|
|
3400806b9d | ||
|
|
9d70c89b80 | ||
|
|
ccf0e0767d | ||
|
|
30a9181448 | ||
|
|
03316d1719 | ||
|
|
5bc876f43b | ||
|
|
13eec966ad | ||
|
|
293f9d2f18 | ||
|
|
a2c0793636 | ||
|
|
2f426dadad | ||
|
|
e6b2152cd1 | ||
|
|
ac75d32ae7 | ||
|
|
eaadfab8e8 | ||
|
|
55a23407af | ||
|
|
3b9349e3cb | ||
|
|
22dd05433e | ||
|
|
2239406dc1 | ||
|
|
df0c78d61e | ||
|
|
dc9ecb90c5 | ||
|
|
1c1b702a46 | ||
|
|
51038b08ee | ||
|
|
b277a7f0db | ||
|
|
eb021f3547 | ||
|
|
05bc9b0c33 | ||
|
|
55c742f83a | ||
|
|
8c6080b06c | ||
|
|
74293a15bd | ||
|
|
f6ba439932 | ||
|
|
c7c5c7e5f6 | ||
|
|
3e38602072 | ||
|
|
2a778d53fa | ||
|
|
fd28c44ce8 | ||
|
|
8cd0e35189 | ||
|
|
bae94a6e65 | ||
|
|
f2e01f9c18 | ||
|
|
604b463d53 | ||
|
|
607c2635ca | ||
|
|
1a1ec309d7 | ||
|
|
840969ed61 | ||
|
|
fb398d3a4d | ||
|
|
3bf15bfc84 | ||
|
|
14dc993718 | ||
|
|
8ddd530004 | ||
|
|
9739750396 | ||
|
|
32a9eb6e5a | ||
|
|
894a37c031 | ||
|
|
c365c42ef3 | ||
|
|
b3442f2fe3 | ||
|
|
a3d83660c5 | ||
|
|
91bb73cb5a | ||
|
|
2e1b15a6fb | ||
|
|
f63fab1bae | ||
|
|
8d36b6d034 | ||
|
|
de33cffb66 | ||
|
|
34345f1b03 | ||
|
|
b0e41b01d8 | ||
|
|
b4e0100cdb | ||
|
|
47793a94b5 | ||
|
|
db30e441b4 | ||
|
|
9fc41f884c | ||
|
|
26e751617f | ||
|
|
052ae79732 | ||
|
|
a3124be629 | ||
|
|
785d474cb4 | ||
|
|
4e10b104b8 | ||
|
|
abab5b94cd | ||
|
|
a71ee5ce2a | ||
|
|
6f2009a936 | ||
|
|
45c871662f | ||
|
|
3b50cf0507 | ||
|
|
e31990ea55 | ||
|
|
ed5f5941f8 | ||
|
|
d5015443f1 | ||
|
|
111b9fc8ea | ||
|
|
4c60c444a1 | ||
|
|
b73c73d802 | ||
|
|
2875495e20 | ||
|
|
23656f1c96 |
39
CHANGES
39
CHANGES
@@ -1,3 +1,42 @@
|
|||||||
|
2017.02.1, Released April 4th, 2017
|
||||||
|
|
||||||
|
Important / security related fixes.
|
||||||
|
|
||||||
|
Fix a variable clashing issue in the mkusers script with
|
||||||
|
internal bash variables.
|
||||||
|
|
||||||
|
Improve external toolchain version detection.
|
||||||
|
|
||||||
|
Correct permissions for /dev/pts/ptmx when systemd is used
|
||||||
|
with recent glibc versions.
|
||||||
|
|
||||||
|
Fix python module name clash for graph-depends.
|
||||||
|
|
||||||
|
Fakeroot now links against libacl to fix issues on
|
||||||
|
distributions using acls.
|
||||||
|
|
||||||
|
Ensure that the git download infrastructure creates GNU format
|
||||||
|
tar files.
|
||||||
|
|
||||||
|
br2-external: Improve error reporting.
|
||||||
|
|
||||||
|
Updated/fixed packages: acl, apr, audiofile, busybox, cairo,
|
||||||
|
dbus-cpp, dbus-glib, dbus-triggerd, domoticz, elfutils,
|
||||||
|
fakeroot, filemq, fmc, gdb, git, gnutls, gst-ffmpeg,
|
||||||
|
gst1-plygins-bad, harfbuzz, htop, imagemagick, jasper, libcec,
|
||||||
|
libiio, libplatform, librsvg, libselinux, libsidplay2, libsoc,
|
||||||
|
libwebsockets, libxkbcommon, linux-firmware, logrotate,
|
||||||
|
lpt-testsuite, lttng-libust, mariadb, mbedtls, memcached,
|
||||||
|
mesa3d, mpd, mplayer, nbd, ncftp, ntp, openssh, opentyrian,
|
||||||
|
pcre, perl-gd, python, qt5base, rpi-userland, rpm, samba4,
|
||||||
|
skalibs, slang, sngrep, squashfs, syslog-ng, taglib,
|
||||||
|
tcpreplay, tor, upmpdcli, wget, wireshark,
|
||||||
|
xdriver_xf86-video-vmware, xlib_libXv, zmqpp
|
||||||
|
|
||||||
|
Issues resolved (http://bugs.buildroot.org):
|
||||||
|
|
||||||
|
#9456: mkusers script bash errors
|
||||||
|
|
||||||
2017.02, Released February 28th, 2017
|
2017.02, Released February 28th, 2017
|
||||||
|
|
||||||
Minor fixes, mainly fixing autobuilder issues.
|
Minor fixes, mainly fixing autobuilder issues.
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -86,9 +86,9 @@ else # umask / $(CURDIR) / $(O)
|
|||||||
all:
|
all:
|
||||||
|
|
||||||
# Set and export the version string
|
# Set and export the version string
|
||||||
export BR2_VERSION := 2017.02
|
export BR2_VERSION := 2017.02.1
|
||||||
# Actual time the release is cut (for reproducible builds)
|
# Actual time the release is cut (for reproducible builds)
|
||||||
BR2_VERSION_EPOCH = 1488315000
|
BR2_VERSION_EPOCH = 1491392000
|
||||||
|
|
||||||
# Save running make version since it's clobbered by the make package
|
# Save running make version since it's clobbered by the make package
|
||||||
RUNNING_MAKE_VERSION := $(MAKE_VERSION)
|
RUNNING_MAKE_VERSION := $(MAKE_VERSION)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ config BR2_TARGET_ROOTFS_ISO9660
|
|||||||
depends on (BR2_i386 || BR2_x86_64)
|
depends on (BR2_i386 || BR2_x86_64)
|
||||||
depends on BR2_LINUX_KERNEL
|
depends on BR2_LINUX_KERNEL
|
||||||
depends on BR2_TARGET_GRUB || \
|
depends on BR2_TARGET_GRUB || \
|
||||||
BR2_TARGET_GRUB2 || \
|
BR2_TARGET_GRUB2_I386_PC || \
|
||||||
BR2_TARGET_SYSLINUX_ISOLINUX
|
BR2_TARGET_SYSLINUX_ISOLINUX
|
||||||
select BR2_LINUX_KERNEL_INSTALL_TARGET \
|
select BR2_LINUX_KERNEL_INSTALL_TARGET \
|
||||||
if (!BR2_TARGET_ROOTFS_ISO9660_INITRD && !BR2_TARGET_ROOTFS_INITRAMFS)
|
if (!BR2_TARGET_ROOTFS_ISO9660_INITRD && !BR2_TARGET_ROOTFS_INITRAMFS)
|
||||||
@@ -33,7 +33,7 @@ config BR2_TARGET_ROOTFS_ISO9660_GRUB
|
|||||||
|
|
||||||
config BR2_TARGET_ROOTFS_ISO9660_GRUB2
|
config BR2_TARGET_ROOTFS_ISO9660_GRUB2
|
||||||
bool "grub2"
|
bool "grub2"
|
||||||
depends on BR2_TARGET_GRUB2
|
depends on BR2_TARGET_GRUB2_I386_PC
|
||||||
help
|
help
|
||||||
Use Grub 2 as the bootloader for the ISO9660 image. Make
|
Use Grub 2 as the bootloader for the ISO9660 image. Make
|
||||||
sure to enable the 'iso9660' module in
|
sure to enable the 'iso9660' module in
|
||||||
@@ -82,7 +82,7 @@ config BR2_TARGET_ROOTFS_ISO9660_HYBRID
|
|||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
comment "iso image needs a Linux kernel and one of grub, grub2 or isolinux to be built"
|
comment "iso image needs a Linux kernel and one of grub, grub2 i386-pc or isolinux to be built"
|
||||||
depends on BR2_i386 || BR2_x86_64
|
depends on BR2_i386 || BR2_x86_64
|
||||||
depends on !BR2_LINUX_KERNEL || \
|
depends on !BR2_LINUX_KERNEL || \
|
||||||
!(BR2_TARGET_GRUB || BR2_TARGET_GRUB2 || BR2_TARGET_SYSLINUX_ISOLINUX)
|
!(BR2_TARGET_GRUB || BR2_TARGET_GRUB2_I386_PC || BR2_TARGET_SYSLINUX_ISOLINUX)
|
||||||
|
|||||||
@@ -15,7 +15,13 @@ ACL_LICENSE_FILES = doc/COPYING doc/COPYING.LGPL
|
|||||||
|
|
||||||
# While the configuration system uses autoconf, the Makefiles are
|
# While the configuration system uses autoconf, the Makefiles are
|
||||||
# hand-written and do not use automake. Therefore, we have to hack
|
# hand-written and do not use automake. Therefore, we have to hack
|
||||||
# around their deficiencies by passing installation paths.
|
# around their deficiencies by:
|
||||||
|
# - explicitly passing CFLAGS (LDFLAGS are passed on from configure,
|
||||||
|
# CFLAGS are not).
|
||||||
|
# - explicitly passing the installation prefix, not using DESTDIR.
|
||||||
|
|
||||||
|
ACL_MAKE_ENV = CFLAGS="$(TARGET_CFLAGS)"
|
||||||
|
|
||||||
ACL_INSTALL_STAGING_OPTS = \
|
ACL_INSTALL_STAGING_OPTS = \
|
||||||
prefix=$(STAGING_DIR)/usr \
|
prefix=$(STAGING_DIR)/usr \
|
||||||
exec_prefix=$(STAGING_DIR)/usr \
|
exec_prefix=$(STAGING_DIR)/usr \
|
||||||
@@ -37,4 +43,15 @@ endef
|
|||||||
|
|
||||||
ACL_POST_INSTALL_STAGING_HOOKS += ACL_FIX_LIBTOOL_LA_LIBDIR
|
ACL_POST_INSTALL_STAGING_HOOKS += ACL_FIX_LIBTOOL_LA_LIBDIR
|
||||||
|
|
||||||
|
HOST_ACL_DEPENDENCIES = host-attr
|
||||||
|
HOST_ACL_CONF_OPTS = --enable-gettext=no
|
||||||
|
HOST_ACL_MAKE_ENV = CFLAGS="$(HOST_CFLAGS)"
|
||||||
|
HOST_ACL_INSTALL_OPTS = \
|
||||||
|
prefix=$(HOST_DIR)/usr \
|
||||||
|
exec_prefix=$(HOST_DIR)/usr \
|
||||||
|
PKG_DEVLIB_DIR=$(HOST_DIR)/usr/lib \
|
||||||
|
install-dev install-lib
|
||||||
|
# For the host, libacl.la is correct, no fixup needed.
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
$(eval $(host-autotools-package))
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ APR_CONF_ENV = \
|
|||||||
apr_cv_mutex_robust_shared=no \
|
apr_cv_mutex_robust_shared=no \
|
||||||
apr_cv_tcp_nodelay_with_cork=yes \
|
apr_cv_tcp_nodelay_with_cork=yes \
|
||||||
ac_cv_sizeof_struct_iovec=8 \
|
ac_cv_sizeof_struct_iovec=8 \
|
||||||
|
ac_cv_sizeof_pid_t=4 \
|
||||||
ac_cv_struct_rlimit=yes \
|
ac_cv_struct_rlimit=yes \
|
||||||
ac_cv_o_nonblock_inherited=no \
|
ac_cv_o_nonblock_inherited=no \
|
||||||
apr_cv_mutex_recursive=yes
|
apr_cv_mutex_recursive=yes
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
From c48e4c6503f7dabd41f11d4c9c7b7f8960e7f2c0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Antonio Larrosa <larrosa@kde.org>
|
||||||
|
Date: Mon, 6 Mar 2017 12:51:22 +0100
|
||||||
|
Subject: [PATCH] Always check the number of coefficients
|
||||||
|
|
||||||
|
When building the library with NDEBUG, asserts are eliminated
|
||||||
|
so it's better to always check that the number of coefficients
|
||||||
|
is inside the array range.
|
||||||
|
|
||||||
|
This fixes the 00191-audiofile-indexoob issue in #41
|
||||||
|
|
||||||
|
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||||
|
---
|
||||||
|
libaudiofile/WAVE.cpp | 6 ++++++
|
||||||
|
1 file changed, 6 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/libaudiofile/WAVE.cpp b/libaudiofile/WAVE.cpp
|
||||||
|
index 0e81cf7..61f9541 100644
|
||||||
|
--- a/libaudiofile/WAVE.cpp
|
||||||
|
+++ b/libaudiofile/WAVE.cpp
|
||||||
|
@@ -281,6 +281,12 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size)
|
||||||
|
|
||||||
|
/* numCoefficients should be at least 7. */
|
||||||
|
assert(numCoefficients >= 7 && numCoefficients <= 255);
|
||||||
|
+ if (numCoefficients < 7 || numCoefficients > 255)
|
||||||
|
+ {
|
||||||
|
+ _af_error(AF_BAD_HEADER,
|
||||||
|
+ "Bad number of coefficients");
|
||||||
|
+ return AF_FAIL;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
m_msadpcmNumCoefficients = numCoefficients;
|
||||||
|
|
||||||
|
--
|
||||||
|
2.11.0
|
||||||
|
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
From 25eb00ce913452c2e614548d7df93070bf0d066f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Antonio Larrosa <larrosa@kde.org>
|
||||||
|
Date: Mon, 6 Mar 2017 18:02:31 +0100
|
||||||
|
Subject: [PATCH] clamp index values to fix index overflow in IMA.cpp
|
||||||
|
|
||||||
|
This fixes #33
|
||||||
|
(also reported at https://bugzilla.opensuse.org/show_bug.cgi?id=1026981
|
||||||
|
and https://blogs.gentoo.org/ago/2017/02/20/audiofile-global-buffer-overflow-in-decodesample-ima-cpp/)
|
||||||
|
|
||||||
|
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||||
|
---
|
||||||
|
libaudiofile/modules/IMA.cpp | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libaudiofile/modules/IMA.cpp b/libaudiofile/modules/IMA.cpp
|
||||||
|
index 7476d44..df4aad6 100644
|
||||||
|
--- a/libaudiofile/modules/IMA.cpp
|
||||||
|
+++ b/libaudiofile/modules/IMA.cpp
|
||||||
|
@@ -169,7 +169,7 @@ int IMA::decodeBlockWAVE(const uint8_t *encoded, int16_t *decoded)
|
||||||
|
if (encoded[1] & 0x80)
|
||||||
|
m_adpcmState[c].previousValue -= 0x10000;
|
||||||
|
|
||||||
|
- m_adpcmState[c].index = encoded[2];
|
||||||
|
+ m_adpcmState[c].index = clamp(encoded[2], 0, 88);
|
||||||
|
|
||||||
|
*decoded++ = m_adpcmState[c].previousValue;
|
||||||
|
|
||||||
|
@@ -210,7 +210,7 @@ int IMA::decodeBlockQT(const uint8_t *encoded, int16_t *decoded)
|
||||||
|
predictor -= 0x10000;
|
||||||
|
|
||||||
|
state.previousValue = clamp(predictor, MIN_INT16, MAX_INT16);
|
||||||
|
- state.index = encoded[1] & 0x7f;
|
||||||
|
+ state.index = clamp(encoded[1] & 0x7f, 0, 88);
|
||||||
|
encoded += 2;
|
||||||
|
|
||||||
|
for (int n=0; n<m_framesPerPacket; n+=2)
|
||||||
|
--
|
||||||
|
2.11.0
|
||||||
|
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
From 7d65f89defb092b63bcbc5d98349fb222ca73b3c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Antonio Larrosa <larrosa@kde.org>
|
||||||
|
Date: Mon, 6 Mar 2017 13:54:52 +0100
|
||||||
|
Subject: [PATCH] Check for multiplication overflow in sfconvert
|
||||||
|
|
||||||
|
Checks that a multiplication doesn't overflow when
|
||||||
|
calculating the buffer size, and if it overflows,
|
||||||
|
reduce the buffer size instead of failing.
|
||||||
|
|
||||||
|
This fixes the 00192-audiofile-signintoverflow-sfconvert case
|
||||||
|
in #41
|
||||||
|
|
||||||
|
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||||
|
---
|
||||||
|
sfcommands/sfconvert.c | 34 ++++++++++++++++++++++++++++++++--
|
||||||
|
1 file changed, 32 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/sfcommands/sfconvert.c b/sfcommands/sfconvert.c
|
||||||
|
index 80a1bc4..970a3e4 100644
|
||||||
|
--- a/sfcommands/sfconvert.c
|
||||||
|
+++ b/sfcommands/sfconvert.c
|
||||||
|
@@ -45,6 +45,33 @@ void printusage (void);
|
||||||
|
void usageerror (void);
|
||||||
|
bool copyaudiodata (AFfilehandle infile, AFfilehandle outfile, int trackid);
|
||||||
|
|
||||||
|
+int firstBitSet(int x)
|
||||||
|
+{
|
||||||
|
+ int position=0;
|
||||||
|
+ while (x!=0)
|
||||||
|
+ {
|
||||||
|
+ x>>=1;
|
||||||
|
+ ++position;
|
||||||
|
+ }
|
||||||
|
+ return position;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+#ifndef __has_builtin
|
||||||
|
+#define __has_builtin(x) 0
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+int multiplyCheckOverflow(int a, int b, int *result)
|
||||||
|
+{
|
||||||
|
+#if (defined __GNUC__ && __GNUC__ >= 5) || ( __clang__ && __has_builtin(__builtin_mul_overflow))
|
||||||
|
+ return __builtin_mul_overflow(a, b, result);
|
||||||
|
+#else
|
||||||
|
+ if (firstBitSet(a)+firstBitSet(b)>31) // int is signed, so we can't use 32 bits
|
||||||
|
+ return true;
|
||||||
|
+ *result = a * b;
|
||||||
|
+ return false;
|
||||||
|
+#endif
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
int main (int argc, char **argv)
|
||||||
|
{
|
||||||
|
if (argc == 2)
|
||||||
|
@@ -323,8 +350,11 @@ bool copyaudiodata (AFfilehandle infile, AFfilehandle outfile, int trackid)
|
||||||
|
{
|
||||||
|
int frameSize = afGetVirtualFrameSize(infile, trackid, 1);
|
||||||
|
|
||||||
|
- const int kBufferFrameCount = 65536;
|
||||||
|
- void *buffer = malloc(kBufferFrameCount * frameSize);
|
||||||
|
+ int kBufferFrameCount = 65536;
|
||||||
|
+ int bufferSize;
|
||||||
|
+ while (multiplyCheckOverflow(kBufferFrameCount, frameSize, &bufferSize))
|
||||||
|
+ kBufferFrameCount /= 2;
|
||||||
|
+ void *buffer = malloc(bufferSize);
|
||||||
|
|
||||||
|
AFframecount totalFrames = afGetFrameCount(infile, AF_DEFAULT_TRACK);
|
||||||
|
AFframecount totalFramesWritten = 0;
|
||||||
|
--
|
||||||
|
2.11.0
|
||||||
|
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
From a2e9eab8ea87c4ffc494d839ebb4ea145eb9f2e6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Antonio Larrosa <larrosa@kde.org>
|
||||||
|
Date: Mon, 6 Mar 2017 18:59:26 +0100
|
||||||
|
Subject: [PATCH] Actually fail when error occurs in parseFormat
|
||||||
|
|
||||||
|
When there's an unsupported number of bits per sample or an invalid
|
||||||
|
number of samples per block, don't only print an error message using
|
||||||
|
the error handler, but actually stop parsing the file.
|
||||||
|
|
||||||
|
This fixes #35 (also reported at
|
||||||
|
https://bugzilla.opensuse.org/show_bug.cgi?id=1026983 and
|
||||||
|
https://blogs.gentoo.org/ago/2017/02/20/audiofile-heap-based-buffer-overflow-in-imadecodeblockwave-ima-cpp/
|
||||||
|
)
|
||||||
|
|
||||||
|
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||||
|
---
|
||||||
|
libaudiofile/WAVE.cpp | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/libaudiofile/WAVE.cpp b/libaudiofile/WAVE.cpp
|
||||||
|
index 0e81cf7..d762249 100644
|
||||||
|
--- a/libaudiofile/WAVE.cpp
|
||||||
|
+++ b/libaudiofile/WAVE.cpp
|
||||||
|
@@ -326,6 +326,7 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size)
|
||||||
|
{
|
||||||
|
_af_error(AF_BAD_NOT_IMPLEMENTED,
|
||||||
|
"IMA ADPCM compression supports only 4 bits per sample");
|
||||||
|
+ return AF_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
int bytesPerBlock = (samplesPerBlock + 14) / 8 * 4 * channelCount;
|
||||||
|
@@ -333,6 +334,7 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size)
|
||||||
|
{
|
||||||
|
_af_error(AF_BAD_CODEC_CONFIG,
|
||||||
|
"Invalid samples per block for IMA ADPCM compression");
|
||||||
|
+ return AF_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
track->f.sampleWidth = 16;
|
||||||
|
--
|
||||||
|
2.11.0
|
||||||
|
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
From beacc44eb8cdf6d58717ec1a5103c5141f1b37f9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Antonio Larrosa <larrosa@kde.org>
|
||||||
|
Date: Mon, 6 Mar 2017 13:43:53 +0100
|
||||||
|
Subject: [PATCH] Check for multiplication overflow in MSADPCM decodeSample
|
||||||
|
|
||||||
|
Check for multiplication overflow (using __builtin_mul_overflow
|
||||||
|
if available) in MSADPCM.cpp decodeSample and return an empty
|
||||||
|
decoded block if an error occurs.
|
||||||
|
|
||||||
|
This fixes the 00193-audiofile-signintoverflow-MSADPCM case of #41
|
||||||
|
|
||||||
|
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||||
|
---
|
||||||
|
libaudiofile/modules/BlockCodec.cpp | 5 ++--
|
||||||
|
libaudiofile/modules/MSADPCM.cpp | 47 +++++++++++++++++++++++++++++++++----
|
||||||
|
2 files changed, 46 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libaudiofile/modules/BlockCodec.cpp b/libaudiofile/modules/BlockCodec.cpp
|
||||||
|
index 45925e8..4731be1 100644
|
||||||
|
--- a/libaudiofile/modules/BlockCodec.cpp
|
||||||
|
+++ b/libaudiofile/modules/BlockCodec.cpp
|
||||||
|
@@ -52,8 +52,9 @@ void BlockCodec::runPull()
|
||||||
|
// Decompress into m_outChunk.
|
||||||
|
for (int i=0; i<blocksRead; i++)
|
||||||
|
{
|
||||||
|
- decodeBlock(static_cast<const uint8_t *>(m_inChunk->buffer) + i * m_bytesPerPacket,
|
||||||
|
- static_cast<int16_t *>(m_outChunk->buffer) + i * m_framesPerPacket * m_track->f.channelCount);
|
||||||
|
+ if (decodeBlock(static_cast<const uint8_t *>(m_inChunk->buffer) + i * m_bytesPerPacket,
|
||||||
|
+ static_cast<int16_t *>(m_outChunk->buffer) + i * m_framesPerPacket * m_track->f.channelCount)==0)
|
||||||
|
+ break;
|
||||||
|
|
||||||
|
framesRead += m_framesPerPacket;
|
||||||
|
}
|
||||||
|
diff --git a/libaudiofile/modules/MSADPCM.cpp b/libaudiofile/modules/MSADPCM.cpp
|
||||||
|
index 8ea3c85..ef9c38c 100644
|
||||||
|
--- a/libaudiofile/modules/MSADPCM.cpp
|
||||||
|
+++ b/libaudiofile/modules/MSADPCM.cpp
|
||||||
|
@@ -101,24 +101,60 @@ static const int16_t adaptationTable[] =
|
||||||
|
768, 614, 512, 409, 307, 230, 230, 230
|
||||||
|
};
|
||||||
|
|
||||||
|
+int firstBitSet(int x)
|
||||||
|
+{
|
||||||
|
+ int position=0;
|
||||||
|
+ while (x!=0)
|
||||||
|
+ {
|
||||||
|
+ x>>=1;
|
||||||
|
+ ++position;
|
||||||
|
+ }
|
||||||
|
+ return position;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+#ifndef __has_builtin
|
||||||
|
+#define __has_builtin(x) 0
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+int multiplyCheckOverflow(int a, int b, int *result)
|
||||||
|
+{
|
||||||
|
+#if (defined __GNUC__ && __GNUC__ >= 5) || ( __clang__ && __has_builtin(__builtin_mul_overflow))
|
||||||
|
+ return __builtin_mul_overflow(a, b, result);
|
||||||
|
+#else
|
||||||
|
+ if (firstBitSet(a)+firstBitSet(b)>31) // int is signed, so we can't use 32 bits
|
||||||
|
+ return true;
|
||||||
|
+ *result = a * b;
|
||||||
|
+ return false;
|
||||||
|
+#endif
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+
|
||||||
|
// Compute a linear PCM value from the given differential coded value.
|
||||||
|
static int16_t decodeSample(ms_adpcm_state &state,
|
||||||
|
- uint8_t code, const int16_t *coefficient)
|
||||||
|
+ uint8_t code, const int16_t *coefficient, bool *ok=NULL)
|
||||||
|
{
|
||||||
|
int linearSample = (state.sample1 * coefficient[0] +
|
||||||
|
state.sample2 * coefficient[1]) >> 8;
|
||||||
|
+ int delta;
|
||||||
|
|
||||||
|
linearSample += ((code & 0x08) ? (code - 0x10) : code) * state.delta;
|
||||||
|
|
||||||
|
linearSample = clamp(linearSample, MIN_INT16, MAX_INT16);
|
||||||
|
|
||||||
|
- int delta = (state.delta * adaptationTable[code]) >> 8;
|
||||||
|
+ if (multiplyCheckOverflow(state.delta, adaptationTable[code], &delta))
|
||||||
|
+ {
|
||||||
|
+ if (ok) *ok=false;
|
||||||
|
+ _af_error(AF_BAD_COMPRESSION, "Error decoding sample");
|
||||||
|
+ return 0;
|
||||||
|
+ }
|
||||||
|
+ delta >>= 8;
|
||||||
|
if (delta < 16)
|
||||||
|
delta = 16;
|
||||||
|
|
||||||
|
state.delta = delta;
|
||||||
|
state.sample2 = state.sample1;
|
||||||
|
state.sample1 = linearSample;
|
||||||
|
+ if (ok) *ok=true;
|
||||||
|
|
||||||
|
return static_cast<int16_t>(linearSample);
|
||||||
|
}
|
||||||
|
@@ -212,13 +248,16 @@ int MSADPCM::decodeBlock(const uint8_t *encoded, int16_t *decoded)
|
||||||
|
{
|
||||||
|
uint8_t code;
|
||||||
|
int16_t newSample;
|
||||||
|
+ bool ok;
|
||||||
|
|
||||||
|
code = *encoded >> 4;
|
||||||
|
- newSample = decodeSample(*state[0], code, coefficient[0]);
|
||||||
|
+ newSample = decodeSample(*state[0], code, coefficient[0], &ok);
|
||||||
|
+ if (!ok) return 0;
|
||||||
|
*decoded++ = newSample;
|
||||||
|
|
||||||
|
code = *encoded & 0x0f;
|
||||||
|
- newSample = decodeSample(*state[1], code, coefficient[1]);
|
||||||
|
+ newSample = decodeSample(*state[1], code, coefficient[1], &ok);
|
||||||
|
+ if (!ok) return 0;
|
||||||
|
*decoded++ = newSample;
|
||||||
|
|
||||||
|
encoded++;
|
||||||
|
--
|
||||||
|
2.11.0
|
||||||
|
|
||||||
@@ -23,17 +23,17 @@ ttyS[0-9]* root:root 660
|
|||||||
ttyUSB[0-9]* root:root 660
|
ttyUSB[0-9]* root:root 660
|
||||||
|
|
||||||
# alsa sound devices
|
# alsa sound devices
|
||||||
pcm.* root:audio 660 =snd/
|
snd/pcm.* root:audio 660
|
||||||
control.* root:audio 660 =snd/
|
snd/control.* root:audio 660
|
||||||
midi.* root:audio 660 =snd/
|
snd/midi.* root:audio 660
|
||||||
seq root:audio 660 =snd/
|
snd/seq root:audio 660
|
||||||
timer root:audio 660 =snd/
|
snd/timer root:audio 660
|
||||||
|
|
||||||
# input stuff
|
# input stuff
|
||||||
event[0-9]+ root:root 640 =input/
|
input/event[0-9]+ root:root 640
|
||||||
mice root:root 640 =input/
|
input/mice root:root 640
|
||||||
mouse[0-9] root:root 640 =input/
|
input/mouse[0-9] root:root 640
|
||||||
ts[0-9] root:root 600 =input/
|
input/ts[0-9] root:root 600
|
||||||
|
|
||||||
# load modules
|
# load modules
|
||||||
$MODALIAS=.* root:root 660 @modprobe "$MODALIAS"
|
$MODALIAS=.* root:root 660 @modprobe "$MODALIAS"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
CAIRO_VERSION = 1.14.8
|
CAIRO_VERSION = 1.14.8
|
||||||
CAIRO_SOURCE = cairo-$(CAIRO_VERSION).tar.xz
|
CAIRO_SOURCE = cairo-$(CAIRO_VERSION).tar.xz
|
||||||
CAIRO_LICENSE = LGPLv2.1+
|
CAIRO_LICENSE = LGPLv2.1 or MPLv1.1 (library)
|
||||||
CAIRO_LICENSE_FILES = COPYING
|
CAIRO_LICENSE_FILES = COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
|
||||||
CAIRO_SITE = http://cairographics.org/releases
|
CAIRO_SITE = http://cairographics.org/releases
|
||||||
CAIRO_INSTALL_STAGING = YES
|
CAIRO_INSTALL_STAGING = YES
|
||||||
CAIRO_AUTORECONF = YES
|
CAIRO_AUTORECONF = YES
|
||||||
|
|||||||
34
package/dbus-cpp/0002-cross-compile-tools.patch
Normal file
34
package/dbus-cpp/0002-cross-compile-tools.patch
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
tools: just do proper cross-compile
|
||||||
|
|
||||||
|
Those tools are not used during the build; besides, they are installed.
|
||||||
|
|
||||||
|
So they don't need to not be cross-compiled.
|
||||||
|
|
||||||
|
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||||
|
|
||||||
|
---
|
||||||
|
Upstream status: not submitted, upstream is dead.
|
||||||
|
|
||||||
|
diff -durN dbus-cpp-0.9.0.orig/tools/Makefile.am dbus-cpp-0.9.0/tools/Makefile.am
|
||||||
|
--- dbus-cpp-0.9.0.orig/tools/Makefile.am 2017-03-21 21:48:57.013409423 +0100
|
||||||
|
+++ dbus-cpp-0.9.0/tools/Makefile.am 2017-03-21 21:49:35.329979798 +0100
|
||||||
|
@@ -1,7 +1,3 @@
|
||||||
|
-# hacky, but ...
|
||||||
|
-
|
||||||
|
-CXX = $(CXX_FOR_BUILD)
|
||||||
|
-
|
||||||
|
AM_CPPFLAGS = \
|
||||||
|
$(dbus_CFLAGS) \
|
||||||
|
$(xml_CFLAGS) \
|
||||||
|
@@ -9,11 +3,7 @@
|
||||||
|
-I$(top_builddir)/include \
|
||||||
|
-Wall
|
||||||
|
|
||||||
|
-if CROSS_COMPILING
|
||||||
|
-libdbus_cxx_la = $(BUILD_LIBDBUS_CXX_DIR)/src/libdbus-c++-1.la
|
||||||
|
-else
|
||||||
|
libdbus_cxx_la = $(top_builddir)/src/libdbus-c++-1.la
|
||||||
|
-endif
|
||||||
|
|
||||||
|
bin_PROGRAMS = dbusxx-xml2cpp dbusxx-introspect
|
||||||
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
Use CXXFLAGS_FOR_BUILD and LDFLAGS_FOR_BUILD for the tools since expat
|
|
||||||
may not be living in the default include & library path.
|
|
||||||
|
|
||||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
||||||
|
|
||||||
diff -Nura libdbus-c++-0.9.0.orig/configure.ac libdbus-c++-0.9.0/configure.ac
|
|
||||||
--- libdbus-c++-0.9.0.orig/configure.ac 2014-01-05 15:28:03.653886567 -0300
|
|
||||||
+++ libdbus-c++-0.9.0/configure.ac 2014-01-05 15:44:32.571172225 -0300
|
|
||||||
@@ -65,7 +65,11 @@
|
|
||||||
AC_PROG_CXX
|
|
||||||
|
|
||||||
CXX_FOR_BUILD=${CXX_FOR_BUILD-${CXX}}
|
|
||||||
+CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
|
|
||||||
+LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
|
|
||||||
AC_SUBST(CXX_FOR_BUILD)
|
|
||||||
+AC_SUBST(CXXFLAGS_FOR_BUILD)
|
|
||||||
+AC_SUBST(LDFLAGS_FOR_BUILD)
|
|
||||||
|
|
||||||
AM_PROG_LIBTOOL
|
|
||||||
|
|
||||||
diff -Nura libdbus-c++-0.9.0.orig/tools/Makefile.am libdbus-c++-0.9.0/tools/Makefile.am
|
|
||||||
--- libdbus-c++-0.9.0.orig/tools/Makefile.am 2014-01-05 15:28:03.652886535 -0300
|
|
||||||
+++ libdbus-c++-0.9.0/tools/Makefile.am 2014-01-05 15:44:42.071482390 -0300
|
|
||||||
@@ -1,6 +1,8 @@
|
|
||||||
# hacky, but ...
|
|
||||||
|
|
||||||
CXX = $(CXX_FOR_BUILD)
|
|
||||||
+CXXFLAGS = $(CXXFLAGS_FOR_BUILD)
|
|
||||||
+LDFLAGS = $(LDFLAGS_FOR_BUILD)
|
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
|
||||||
$(dbus_CFLAGS) \
|
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
DBUS_GLIB_VERSION = 0.108
|
DBUS_GLIB_VERSION = 0.108
|
||||||
DBUS_GLIB_SITE = http://dbus.freedesktop.org/releases/dbus-glib
|
DBUS_GLIB_SITE = http://dbus.freedesktop.org/releases/dbus-glib
|
||||||
DBUS_GLIB_INSTALL_STAGING = YES
|
DBUS_GLIB_INSTALL_STAGING = YES
|
||||||
DBUS_GLIB_LICENSE = AFLv2.1, GPLv2+
|
DBUS_GLIB_LICENSE = AFLv2.1 or GPLv2+
|
||||||
DBUS_GLIB_LICENSE_FILES = COPYING
|
DBUS_GLIB_LICENSE_FILES = COPYING
|
||||||
|
|
||||||
DBUS_GLIB_CONF_ENV = \
|
DBUS_GLIB_CONF_ENV = \
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
DBUS_TRIGGERD_VERSION = ba3dbec805cb707c94c54de21666bf18b79bcc09
|
DBUS_TRIGGERD_VERSION = ba3dbec805cb707c94c54de21666bf18b79bcc09
|
||||||
DBUS_TRIGGERD_SITE = git://rg42.org/dbustriggerd.git
|
DBUS_TRIGGERD_SITE = git://rg42.org/dbustriggerd.git
|
||||||
DBUS_TRIGGERD_LICENSE = GPLv2+
|
DBUS_TRIGGERD_LICENSE = GPLv2+
|
||||||
|
DBUS_TRIGGERD_LICENSE_FILES = dbus-triggerd.c
|
||||||
DBUS_TRIGGERD_DEPENDENCIES = host-pkgconf dbus
|
DBUS_TRIGGERD_DEPENDENCIES = host-pkgconf dbus
|
||||||
|
|
||||||
define DBUS_TRIGGERD_BUILD_CMDS
|
define DBUS_TRIGGERD_BUILD_CMDS
|
||||||
|
|||||||
@@ -18,6 +18,21 @@ DOMOTICZ_DEPENDENCIES = \
|
|||||||
sqlite \
|
sqlite \
|
||||||
zlib
|
zlib
|
||||||
|
|
||||||
|
# Fixes:
|
||||||
|
# http://autobuild.buildroot.org/results/454c0ea393615bae2d1b44be9920f25b5c49fc33
|
||||||
|
# There is an issue with powerpc64le and boost::uuids::random_generator on the
|
||||||
|
# following line of code (from include/boost/uuid/seed_rng.hpp):
|
||||||
|
# sha.process_bytes( (unsigned char const*)&std::rand, sizeof( void(*)() ) )
|
||||||
|
# This line "inspects the first couple bytes (here eight) of the std::rand
|
||||||
|
# function to seed some rng. Due to the implementation of process_bytes and
|
||||||
|
# inlining happening, it seems that one of the loops therein uses &rand-1 as
|
||||||
|
# some boundary, compiling with -O0 makes that reloc come out as 'rand + 0' and
|
||||||
|
# the link will succeed."
|
||||||
|
# See: https://bugzilla.suse.com/show_bug.cgi?id=955832#c7
|
||||||
|
ifeq ($(BR2_powerpc64le),y)
|
||||||
|
DOMOTICZ_CXXFLAGS += -O0
|
||||||
|
endif
|
||||||
|
|
||||||
# Due to the dependency on mosquitto, domoticz depends on
|
# Due to the dependency on mosquitto, domoticz depends on
|
||||||
# !BR2_STATIC_LIBS so set USE_STATIC_BOOST to OFF
|
# !BR2_STATIC_LIBS so set USE_STATIC_BOOST to OFF
|
||||||
DOMOTICZ_CONF_OPTS += -DUSE_STATIC_BOOST=OFF
|
DOMOTICZ_CONF_OPTS += -DUSE_STATIC_BOOST=OFF
|
||||||
@@ -27,7 +42,8 @@ DOMOTICZ_CONF_OPTS += -DUSE_STATIC_BOOST=OFF
|
|||||||
DOMOTICZ_CONF_OPTS += \
|
DOMOTICZ_CONF_OPTS += \
|
||||||
-DUSE_BUILTIN_LUA=OFF \
|
-DUSE_BUILTIN_LUA=OFF \
|
||||||
-DUSE_BUILTIN_SQLITE=OFF \
|
-DUSE_BUILTIN_SQLITE=OFF \
|
||||||
-DUSE_BUILTIN_MQTT=OFF
|
-DUSE_BUILTIN_MQTT=OFF \
|
||||||
|
-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) $(DOMOTICZ_CXXFLAGS)"
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
||||||
DOMOTICZ_DEPENDENCIES += libusb
|
DOMOTICZ_DEPENDENCIES += libusb
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ config BR2_PACKAGE_ELFUTILS
|
|||||||
Note that this option only installs the libraries, and not
|
Note that this option only installs the libraries, and not
|
||||||
the programs.
|
the programs.
|
||||||
|
|
||||||
https://fedorahosted.org/elfutils
|
https://sourceware.org/elfutils/
|
||||||
|
|
||||||
if BR2_PACKAGE_ELFUTILS
|
if BR2_PACKAGE_ELFUTILS
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
ELFUTILS_VERSION = 0.166
|
ELFUTILS_VERSION = 0.166
|
||||||
ELFUTILS_SOURCE = elfutils-$(ELFUTILS_VERSION).tar.bz2
|
ELFUTILS_SOURCE = elfutils-$(ELFUTILS_VERSION).tar.bz2
|
||||||
ELFUTILS_SITE = https://fedorahosted.org/releases/e/l/elfutils/$(ELFUTILS_VERSION)
|
ELFUTILS_SITE = https://sourceware.org/elfutils/ftp/$(ELFUTILS_VERSION)
|
||||||
ELFUTILS_INSTALL_STAGING = YES
|
ELFUTILS_INSTALL_STAGING = YES
|
||||||
ELFUTILS_LICENSE = GPLv2+ or LGPLv3+ (library)
|
ELFUTILS_LICENSE = GPLv2+ or LGPLv3+ (library)
|
||||||
ELFUTILS_LICENSE_FILES = COPYING-GPLV2 COPYING-LGPLV3
|
ELFUTILS_LICENSE_FILES = COPYING-GPLV2 COPYING-LGPLV3
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
FAKEROOT_VERSION = 1.20.2
|
FAKEROOT_VERSION = 1.20.2
|
||||||
FAKEROOT_SOURCE = fakeroot_$(FAKEROOT_VERSION).orig.tar.bz2
|
FAKEROOT_SOURCE = fakeroot_$(FAKEROOT_VERSION).orig.tar.bz2
|
||||||
FAKEROOT_SITE = http://snapshot.debian.org/archive/debian/20141005T221953Z/pool/main/f/fakeroot
|
FAKEROOT_SITE = http://snapshot.debian.org/archive/debian/20141005T221953Z/pool/main/f/fakeroot
|
||||||
|
|
||||||
|
HOST_FAKEROOT_DEPENDENCIES = host-acl
|
||||||
# Force capabilities detection off
|
# Force capabilities detection off
|
||||||
# For now these are process capabilities (faked) rather than file
|
# For now these are process capabilities (faked) rather than file
|
||||||
# so they're of no real use
|
# so they're of no real use
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ FILEMQ_AUTORECONF = YES
|
|||||||
FILEMQ_CONF_ENV = filemq_have_asciidoc=no
|
FILEMQ_CONF_ENV = filemq_have_asciidoc=no
|
||||||
FILEMQ_INSTALL_STAGING = YES
|
FILEMQ_INSTALL_STAGING = YES
|
||||||
FILEMQ_DEPENDENCIES = czmq openssl zeromq
|
FILEMQ_DEPENDENCIES = czmq openssl zeromq
|
||||||
FILEMQ_LICENSE = LGPLv3+ with exceptions
|
FILEMQ_LICENSE = MPLv2.0
|
||||||
FILEMQ_LICENSE_FILES = COPYING COPYING.LESSER
|
FILEMQ_LICENSE_FILES = LICENSE
|
||||||
|
|
||||||
define FILEMQ_CREATE_CONFIG_DIR
|
define FILEMQ_CREATE_CONFIG_DIR
|
||||||
mkdir -p $(@D)/config
|
mkdir -p $(@D)/config
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# Locally Computed
|
# Locally calculated
|
||||||
sha256sum a91e0c9b7c7f238634c64a755c05671f33f2acdb6ae2d09cad4d683b364ee8e4 fmc-fsl-sdk-v2.0.tar.gz
|
sha256 a91e0c9b7c7f238634c64a755c05671f33f2acdb6ae2d09cad4d683b364ee8e4 fmc-fsl-sdk-v2.0.tar.gz
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
From 4c6367c99461fdd7bd5613483f2582d7f08fba87 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Vlad Zakharov <vzakhar@synopsys.com>
|
||||||
|
Date: Tue, 28 Feb 2017 17:41:11 +0300
|
||||||
|
Subject: [PATCH] arc: define _REENTRANT when -pthread is passed
|
||||||
|
|
||||||
|
The compiler is supposed to have the builtin defined _REENTRANT defined
|
||||||
|
when -pthread is passed, which wasn't done on the ARC architecture.
|
||||||
|
|
||||||
|
When _REENTRANT is not passed, the C library will not use reentrant
|
||||||
|
functions, and the latest version of ax_pthread.m4 from the
|
||||||
|
autoconf-archive will no longer detect that thread support is
|
||||||
|
available (see https://savannah.gnu.org/patch/?8186).
|
||||||
|
|
||||||
|
Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com>
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
---
|
||||||
|
gcc/config/arc/arc.h | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h
|
||||||
|
index 611ef54..fdd4b5d 100644
|
||||||
|
--- a/gcc/config/arc/arc.h
|
||||||
|
+++ b/gcc/config/arc/arc.h
|
||||||
|
@@ -93,6 +93,7 @@ along with GCC; see the file COPYING3. If not see
|
||||||
|
%{mdsp-packa:-D__Xdsp_packa} %{mcrc:-D__Xcrc} %{mdvbf:-D__Xdvbf} \
|
||||||
|
%{mtelephony:-D__Xtelephony} %{mxy:-D__Xxy} %{mmul64: -D__Xmult32} \
|
||||||
|
%{mlock:-D__Xlock} %{mswape:-D__Xswape} %{mrtsc:-D__Xrtsc} \
|
||||||
|
+%{pthread:-D_REENTRANT} \
|
||||||
|
%{mcpu=nps400:-D__NPS400__}"
|
||||||
|
|
||||||
|
#define CC1_SPEC "\
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
||||||
@@ -67,13 +67,6 @@ GDB_DISABLE_BINUTILS_CONF_OPTS = \
|
|||||||
--disable-ld \
|
--disable-ld \
|
||||||
--disable-gas
|
--disable-gas
|
||||||
|
|
||||||
# Starting with gdb 7.11, the bundled gnulib tries to use
|
|
||||||
# rpl_gettimeofday (gettimeofday replacement) due to the code being
|
|
||||||
# unable to determine if the replacement function should be used or
|
|
||||||
# not when cross-compiling with uClibc or musl as C libraries. So use
|
|
||||||
# gl_cv_func_gettimeofday_clobber=no to not use rpl_gettimeofday,
|
|
||||||
# assuming musl and uClibc have a properly working gettimeofday
|
|
||||||
# implementation.
|
|
||||||
GDB_CONF_ENV = \
|
GDB_CONF_ENV = \
|
||||||
ac_cv_type_uintptr_t=yes \
|
ac_cv_type_uintptr_t=yes \
|
||||||
gt_cv_func_gettext_libintl=yes \
|
gt_cv_func_gettext_libintl=yes \
|
||||||
@@ -83,8 +76,18 @@ GDB_CONF_ENV = \
|
|||||||
bash_cv_must_reinstall_sighandlers=no \
|
bash_cv_must_reinstall_sighandlers=no \
|
||||||
bash_cv_func_sigsetjmp=present \
|
bash_cv_func_sigsetjmp=present \
|
||||||
bash_cv_have_mbstate_t=yes \
|
bash_cv_have_mbstate_t=yes \
|
||||||
gdb_cv_func_sigsetjmp=yes \
|
gdb_cv_func_sigsetjmp=yes
|
||||||
gl_cv_func_gettimeofday_clobber=no
|
|
||||||
|
# Starting with gdb 7.11, the bundled gnulib tries to use
|
||||||
|
# rpl_gettimeofday (gettimeofday replacement) due to the code being
|
||||||
|
# unable to determine if the replacement function should be used or
|
||||||
|
# not when cross-compiling with uClibc or musl as C libraries. So use
|
||||||
|
# gl_cv_func_gettimeofday_clobber=no to not use rpl_gettimeofday,
|
||||||
|
# assuming musl and uClibc have a properly working gettimeofday
|
||||||
|
# implementation. It needs to be passed to GDB_MAKE_ENV and not
|
||||||
|
# GDB_CONF_ENV, because otherwise it does not get passed to the
|
||||||
|
# configure script of nested packages.
|
||||||
|
GDB_MAKE_ENV = gl_cv_func_gettimeofday_clobber=no
|
||||||
|
|
||||||
# The shared only build is not supported by gdb, so enable static build for
|
# The shared only build is not supported by gdb, so enable static build for
|
||||||
# build-in libraries with --enable-static.
|
# build-in libraries with --enable-static.
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ GIT_LICENSE = GPLv2, LGPLv2.1+
|
|||||||
GIT_LICENSE_FILES = COPYING LGPL-2.1
|
GIT_LICENSE_FILES = COPYING LGPL-2.1
|
||||||
GIT_DEPENDENCIES = zlib host-gettext
|
GIT_DEPENDENCIES = zlib host-gettext
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_GETTEXT),y)
|
||||||
|
GIT_DEPENDENCIES += gettext
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||||
GIT_DEPENDENCIES += openssl
|
GIT_DEPENDENCIES += openssl
|
||||||
GIT_CONF_OPTS += --with-openssl
|
GIT_CONF_OPTS += --with-openssl
|
||||||
@@ -19,8 +23,8 @@ else
|
|||||||
GIT_CONF_OPTS += --without-openssl
|
GIT_CONF_OPTS += --without-openssl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_PERL),y)
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
||||||
GIT_DEPENDENCIES += perl
|
GIT_DEPENDENCIES += pcre
|
||||||
GIT_CONF_OPTS += --with-libpcre
|
GIT_CONF_OPTS += --with-libpcre
|
||||||
else
|
else
|
||||||
GIT_CONF_OPTS += --without-libpcre
|
GIT_CONF_OPTS += --without-libpcre
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# Locally calculated after checking pgp signature
|
# Locally calculated after checking pgp signature
|
||||||
sha256 0e97f243ae72b70307d684b84c7fe679385aa7a7a0e37e5be810193dcc17d4ff gnutls-3.5.8.tar.xz
|
sha256 af443e86ba538d4d3e37c4732c00101a492fe4b56a55f4112ff0ab39dbe6579d gnutls-3.5.10.tar.xz
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
GNUTLS_VERSION_MAJOR = 3.5
|
GNUTLS_VERSION_MAJOR = 3.5
|
||||||
GNUTLS_VERSION = $(GNUTLS_VERSION_MAJOR).8
|
GNUTLS_VERSION = $(GNUTLS_VERSION_MAJOR).10
|
||||||
GNUTLS_SOURCE = gnutls-$(GNUTLS_VERSION).tar.xz
|
GNUTLS_SOURCE = gnutls-$(GNUTLS_VERSION).tar.xz
|
||||||
GNUTLS_SITE = ftp://ftp.gnutls.org/gcrypt/gnutls/v$(GNUTLS_VERSION_MAJOR)
|
GNUTLS_SITE = ftp://ftp.gnutls.org/gcrypt/gnutls/v$(GNUTLS_VERSION_MAJOR)
|
||||||
GNUTLS_LICENSE = LGPLv2.1+ (core library), GPLv3+ (gnutls-openssl library)
|
GNUTLS_LICENSE = LGPLv2.1+ (core library), GPLv3+ (gnutls-openssl library)
|
||||||
|
|||||||
@@ -80,6 +80,12 @@ else
|
|||||||
GST_FFMPEG_CONF_EXTRA_OPTS += --disable-altivec
|
GST_FFMPEG_CONF_EXTRA_OPTS += --disable-altivec
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# libav configure script misdetects the VIS optimizations as being
|
||||||
|
# available, so forcefully disable them.
|
||||||
|
ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y)
|
||||||
|
GST_FFMPEG_CONF_EXTRA_OPTS += --disable-vis
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_STATIC_LIBS),)
|
ifeq ($(BR2_STATIC_LIBS),)
|
||||||
GST_FFMPEG_CONF_EXTRA_OPTS += --enable-pic
|
GST_FFMPEG_CONF_EXTRA_OPTS += --enable-pic
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ config BR2_PACKAGE_GST1_PLUGINS_BAD_LIB_OPENGL_WAYLAND
|
|||||||
default y
|
default y
|
||||||
depends on BR2_PACKAGE_GST1_PLUGINS_BAD_LIB_OPENGL_EGL
|
depends on BR2_PACKAGE_GST1_PLUGINS_BAD_LIB_OPENGL_EGL
|
||||||
depends on BR2_PACKAGE_WAYLAND
|
depends on BR2_PACKAGE_WAYLAND
|
||||||
|
select BR2_PACKAGE_WAYLAND_PROTOCOLS
|
||||||
select BR2_PACKAGE_GST1_PLUGINS_BAD_LIB_OPENGL_HAS_WINDOW
|
select BR2_PACKAGE_GST1_PLUGINS_BAD_LIB_OPENGL_HAS_WINDOW
|
||||||
|
|
||||||
comment "wayland needs the egl platform and the wayland package"
|
comment "wayland needs the egl platform and the wayland package"
|
||||||
@@ -686,6 +687,7 @@ config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VOAACENC
|
|||||||
config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_WAYLAND
|
config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_WAYLAND
|
||||||
bool "wayland"
|
bool "wayland"
|
||||||
depends on BR2_PACKAGE_WAYLAND
|
depends on BR2_PACKAGE_WAYLAND
|
||||||
|
select BR2_PACKAGE_WAYLAND_PROTOCOLS
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
Wayland Video Sink
|
Wayland Video Sink
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ endif
|
|||||||
|
|
||||||
ifneq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_LIB_OPENGL_WAYLAND)$(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_WAYLAND),)
|
ifneq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_LIB_OPENGL_WAYLAND)$(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_WAYLAND),)
|
||||||
GST1_PLUGINS_BAD_CONF_OPTS += --enable-wayland
|
GST1_PLUGINS_BAD_CONF_OPTS += --enable-wayland
|
||||||
GST1_PLUGINS_BAD_DEPENDENCIES += wayland
|
GST1_PLUGINS_BAD_DEPENDENCIES += wayland wayland-protocols
|
||||||
else
|
else
|
||||||
GST1_PLUGINS_BAD_CONF_OPTS += --disable-wayland
|
GST1_PLUGINS_BAD_CONF_OPTS += --disable-wayland
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# From http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.4.2.tar.bz2.sha256
|
# From https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.4.4.tar.bz2.sha256
|
||||||
sha256 8f234dcfab000fdec24d43674fffa2fdbdbd654eb176afbde30e8826339cb7b3 harfbuzz-1.4.2.tar.bz2
|
sha256 35d2f8ca476cbbec64ee824eca6b0209ff8db0334990b9f5af893b94f119d255 harfbuzz-1.4.4.tar.bz2
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
HARFBUZZ_VERSION = 1.4.2
|
HARFBUZZ_VERSION = 1.4.4
|
||||||
HARFBUZZ_SITE = http://www.freedesktop.org/software/harfbuzz/release
|
HARFBUZZ_SITE = https://www.freedesktop.org/software/harfbuzz/release
|
||||||
HARFBUZZ_SOURCE = harfbuzz-$(HARFBUZZ_VERSION).tar.bz2
|
HARFBUZZ_SOURCE = harfbuzz-$(HARFBUZZ_VERSION).tar.bz2
|
||||||
HARFBUZZ_LICENSE = MIT, ISC (ucdn library)
|
HARFBUZZ_LICENSE = MIT, ISC (ucdn library)
|
||||||
HARFBUZZ_LICENSE_FILES = COPYING src/hb-ucdn/COPYING
|
HARFBUZZ_LICENSE_FILES = COPYING src/hb-ucdn/COPYING
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ HTOP_VERSION = 2.0.2
|
|||||||
HTOP_SITE = http://hisham.hm/htop/releases/$(HTOP_VERSION)
|
HTOP_SITE = http://hisham.hm/htop/releases/$(HTOP_VERSION)
|
||||||
HTOP_DEPENDENCIES = ncurses
|
HTOP_DEPENDENCIES = ncurses
|
||||||
# Prevent htop build system from searching the host paths
|
# Prevent htop build system from searching the host paths
|
||||||
HTOP_CONF_ENV = HTOP_NCURSES_CONFIG_SCRIPT=$(STAGING_DIR)/usr/bin/ncurses5-config
|
HTOP_CONF_ENV = HTOP_NCURSES_CONFIG_SCRIPT=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)
|
||||||
HTOP_LICENSE = GPLv2
|
HTOP_LICENSE = GPLv2
|
||||||
HTOP_LICENSE_FILES = COPYING
|
HTOP_LICENSE_FILES = COPYING
|
||||||
|
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
From 5d0e9c53f49022df5154eb3c04900f48b1c6448e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Peter Korsgaard <peter@korsgaard.com>
|
|
||||||
Date: Mon, 6 Feb 2017 17:39:31 +0100
|
|
||||||
Subject: [PATCH] png.c: unbreak build without JPEG support
|
|
||||||
|
|
||||||
Since commit a9e228f8ac26 (Implemented a private PNG caNv (canvas) chunk),
|
|
||||||
PNGsLong gets called unconditionally, but it is only defined if JPEG
|
|
||||||
support is enabled (which defines JNG_SUPPORTED), breaking the build:
|
|
||||||
|
|
||||||
MagickCore/.libs/libMagickCore-7.Q16HDRI.a(MagickCore_libMagickCore_7_Q16HDRI_la-png.o): In function `WriteOnePNGImage':
|
|
||||||
png.c:(.text+0x748d): undefined reference to `PNGsLong'
|
|
||||||
png.c:(.text+0x74b7): undefined reference to `PNGsLong'
|
|
||||||
|
|
||||||
For build log, see:
|
|
||||||
http://autobuild.buildroot.net/results/d20/d20eecec8e7b947759185f77a6c8e610dd7393f3/build-end.log
|
|
||||||
|
|
||||||
Fix it by unconditionally defining the helper function.
|
|
||||||
|
|
||||||
Submitted-upstream: https://github.com/ImageMagick/ImageMagick/pull/373
|
|
||||||
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
|
||||||
---
|
|
||||||
coders/png.c | 2 --
|
|
||||||
1 file changed, 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/coders/png.c b/coders/png.c
|
|
||||||
index aebe59281..1328b1aab 100644
|
|
||||||
--- a/coders/png.c
|
|
||||||
+++ b/coders/png.c
|
|
||||||
@@ -1229,7 +1229,6 @@ static void PNGLong(png_bytep p,png_uint_32 value)
|
|
||||||
*p++=(png_byte) (value & 0xff);
|
|
||||||
}
|
|
||||||
|
|
||||||
-#if defined(JNG_SUPPORTED)
|
|
||||||
static void PNGsLong(png_bytep p,png_int_32 value)
|
|
||||||
{
|
|
||||||
*p++=(png_byte) ((value >> 24) & 0xff);
|
|
||||||
@@ -1237,7 +1236,6 @@ static void PNGsLong(png_bytep p,png_int_32 value)
|
|
||||||
*p++=(png_byte) ((value >> 8) & 0xff);
|
|
||||||
*p++=(png_byte) (value & 0xff);
|
|
||||||
}
|
|
||||||
-#endif
|
|
||||||
|
|
||||||
static void PNGShort(png_bytep p,png_uint_16 value)
|
|
||||||
{
|
|
||||||
--
|
|
||||||
2.11.0
|
|
||||||
|
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
# From http://www.imagemagick.org/download/releases/digest.rdf
|
# From http://www.imagemagick.org/download/releases/digest.rdf
|
||||||
sha256 1ee004740b7ab47fff3c92ae4a89dcbd0181c4d5f31fcb7e3697412ea384a0da ImageMagick-7.0.4-6.tar.xz
|
sha256 7362805eaa9f9b90cdb67a1f8762782bef4a42ca44939629aecad3c40305bf4c ImageMagick-7.0.5-0.tar.xz
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
IMAGEMAGICK_VERSION = 7.0.4-6
|
IMAGEMAGICK_VERSION = 7.0.5-0
|
||||||
IMAGEMAGICK_SOURCE = ImageMagick-$(IMAGEMAGICK_VERSION).tar.xz
|
IMAGEMAGICK_SOURCE = ImageMagick-$(IMAGEMAGICK_VERSION).tar.xz
|
||||||
IMAGEMAGICK_SITE = http://www.imagemagick.org/download/releases
|
IMAGEMAGICK_SITE = http://www.imagemagick.org/download/releases
|
||||||
IMAGEMAGICK_LICENSE = Apache-2.0
|
IMAGEMAGICK_LICENSE = Apache-2.0
|
||||||
|
|||||||
@@ -0,0 +1,286 @@
|
|||||||
|
From e96fc4fdd525fa0ede28074a7e2b1caf94b58b0d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michael Adams <mdadams@ece.uvic.ca>
|
||||||
|
Date: Sat, 4 Mar 2017 14:43:24 -0800
|
||||||
|
Subject: [PATCH] Fixed bugs due to uninitialized data in the JP2 decoder.
|
||||||
|
Also, added some comments marking I/O stream interfaces that probably need to
|
||||||
|
be changed (in the long term) to fix integer overflow problems.
|
||||||
|
|
||||||
|
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||||
|
---
|
||||||
|
src/libjasper/base/jas_stream.c | 18 +++++++++++++++++
|
||||||
|
src/libjasper/jp2/jp2_cod.c | 44 ++++++++++++++++++++++++++++-------------
|
||||||
|
2 files changed, 48 insertions(+), 14 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/libjasper/base/jas_stream.c b/src/libjasper/base/jas_stream.c
|
||||||
|
index 327ee57..d70408f 100644
|
||||||
|
--- a/src/libjasper/base/jas_stream.c
|
||||||
|
+++ b/src/libjasper/base/jas_stream.c
|
||||||
|
@@ -664,6 +664,7 @@ int jas_stream_ungetc(jas_stream_t *stream, int c)
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
int jas_stream_read(jas_stream_t *stream, void *buf, int cnt)
|
||||||
|
{
|
||||||
|
int n;
|
||||||
|
@@ -690,6 +691,7 @@ int jas_stream_read(jas_stream_t *stream, void *buf, int cnt)
|
||||||
|
return n;
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
int jas_stream_write(jas_stream_t *stream, const void *buf, int cnt)
|
||||||
|
{
|
||||||
|
int n;
|
||||||
|
@@ -742,6 +744,7 @@ int jas_stream_puts(jas_stream_t *stream, const char *s)
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
char *jas_stream_gets(jas_stream_t *stream, char *buf, int bufsize)
|
||||||
|
{
|
||||||
|
int c;
|
||||||
|
@@ -765,6 +768,7 @@ char *jas_stream_gets(jas_stream_t *stream, char *buf, int bufsize)
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
int jas_stream_gobble(jas_stream_t *stream, int n)
|
||||||
|
{
|
||||||
|
int m;
|
||||||
|
@@ -783,6 +787,7 @@ int jas_stream_gobble(jas_stream_t *stream, int n)
|
||||||
|
return n;
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
int jas_stream_pad(jas_stream_t *stream, int n, int c)
|
||||||
|
{
|
||||||
|
int m;
|
||||||
|
@@ -885,6 +890,7 @@ long jas_stream_tell(jas_stream_t *stream)
|
||||||
|
* Buffer initialization code.
|
||||||
|
\******************************************************************************/
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
static void jas_stream_initbuf(jas_stream_t *stream, int bufmode, char *buf,
|
||||||
|
int bufsize)
|
||||||
|
{
|
||||||
|
@@ -1060,6 +1066,7 @@ static int jas_strtoopenmode(const char *s)
|
||||||
|
return openmode;
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
int jas_stream_copy(jas_stream_t *out, jas_stream_t *in, int n)
|
||||||
|
{
|
||||||
|
int all;
|
||||||
|
@@ -1085,6 +1092,7 @@ int jas_stream_copy(jas_stream_t *out, jas_stream_t *in, int n)
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
long jas_stream_setrwcount(jas_stream_t *stream, long rwcnt)
|
||||||
|
{
|
||||||
|
int old;
|
||||||
|
@@ -1094,6 +1102,7 @@ long jas_stream_setrwcount(jas_stream_t *stream, long rwcnt)
|
||||||
|
return old;
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
int jas_stream_display(jas_stream_t *stream, FILE *fp, int n)
|
||||||
|
{
|
||||||
|
unsigned char buf[16];
|
||||||
|
@@ -1168,6 +1177,7 @@ long jas_stream_length(jas_stream_t *stream)
|
||||||
|
* Memory stream object.
|
||||||
|
\******************************************************************************/
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
static int mem_read(jas_stream_obj_t *obj, char *buf, int cnt)
|
||||||
|
{
|
||||||
|
ssize_t n;
|
||||||
|
@@ -1209,6 +1219,7 @@ static int mem_resize(jas_stream_memobj_t *m, size_t bufsize)
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
static int mem_write(jas_stream_obj_t *obj, char *buf, int cnt)
|
||||||
|
{
|
||||||
|
size_t n;
|
||||||
|
@@ -1264,6 +1275,7 @@ static int mem_write(jas_stream_obj_t *obj, char *buf, int cnt)
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
static long mem_seek(jas_stream_obj_t *obj, long offset, int origin)
|
||||||
|
{
|
||||||
|
jas_stream_memobj_t *m = (jas_stream_memobj_t *)obj;
|
||||||
|
@@ -1310,6 +1322,7 @@ static int mem_close(jas_stream_obj_t *obj)
|
||||||
|
* File stream object.
|
||||||
|
\******************************************************************************/
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
static int file_read(jas_stream_obj_t *obj, char *buf, int cnt)
|
||||||
|
{
|
||||||
|
jas_stream_fileobj_t *fileobj;
|
||||||
|
@@ -1318,6 +1331,7 @@ static int file_read(jas_stream_obj_t *obj, char *buf, int cnt)
|
||||||
|
return read(fileobj->fd, buf, cnt);
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
static int file_write(jas_stream_obj_t *obj, char *buf, int cnt)
|
||||||
|
{
|
||||||
|
jas_stream_fileobj_t *fileobj;
|
||||||
|
@@ -1326,6 +1340,7 @@ static int file_write(jas_stream_obj_t *obj, char *buf, int cnt)
|
||||||
|
return write(fileobj->fd, buf, cnt);
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
static long file_seek(jas_stream_obj_t *obj, long offset, int origin)
|
||||||
|
{
|
||||||
|
jas_stream_fileobj_t *fileobj;
|
||||||
|
@@ -1352,6 +1367,7 @@ static int file_close(jas_stream_obj_t *obj)
|
||||||
|
* Stdio file stream object.
|
||||||
|
\******************************************************************************/
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
static int sfile_read(jas_stream_obj_t *obj, char *buf, int cnt)
|
||||||
|
{
|
||||||
|
FILE *fp;
|
||||||
|
@@ -1367,6 +1383,7 @@ static int sfile_read(jas_stream_obj_t *obj, char *buf, int cnt)
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
static int sfile_write(jas_stream_obj_t *obj, char *buf, int cnt)
|
||||||
|
{
|
||||||
|
FILE *fp;
|
||||||
|
@@ -1377,6 +1394,7 @@ static int sfile_write(jas_stream_obj_t *obj, char *buf, int cnt)
|
||||||
|
return (n != JAS_CAST(size_t, cnt)) ? (-1) : cnt;
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* FIXME integral type */
|
||||||
|
static long sfile_seek(jas_stream_obj_t *obj, long offset, int origin)
|
||||||
|
{
|
||||||
|
FILE *fp;
|
||||||
|
diff --git a/src/libjasper/jp2/jp2_cod.c b/src/libjasper/jp2/jp2_cod.c
|
||||||
|
index 7f3608a..8d98a2c 100644
|
||||||
|
--- a/src/libjasper/jp2/jp2_cod.c
|
||||||
|
+++ b/src/libjasper/jp2/jp2_cod.c
|
||||||
|
@@ -183,15 +183,28 @@ jp2_boxinfo_t jp2_boxinfo_unk = {
|
||||||
|
* Box constructor.
|
||||||
|
\******************************************************************************/
|
||||||
|
|
||||||
|
-jp2_box_t *jp2_box_create(int type)
|
||||||
|
+jp2_box_t *jp2_box_create0()
|
||||||
|
{
|
||||||
|
jp2_box_t *box;
|
||||||
|
- jp2_boxinfo_t *boxinfo;
|
||||||
|
-
|
||||||
|
if (!(box = jas_malloc(sizeof(jp2_box_t)))) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
memset(box, 0, sizeof(jp2_box_t));
|
||||||
|
+ box->type = 0;
|
||||||
|
+ box->len = 0;
|
||||||
|
+ // Mark the box data as never having been constructed
|
||||||
|
+ // so that we will not errantly attempt to destroy it later.
|
||||||
|
+ box->ops = &jp2_boxinfo_unk.ops;
|
||||||
|
+ return box;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+jp2_box_t *jp2_box_create(int type)
|
||||||
|
+{
|
||||||
|
+ jp2_box_t *box;
|
||||||
|
+ jp2_boxinfo_t *boxinfo;
|
||||||
|
+ if (!(box = jp2_box_create0())) {
|
||||||
|
+ return 0;
|
||||||
|
+ }
|
||||||
|
box->type = type;
|
||||||
|
box->len = 0;
|
||||||
|
if (!(boxinfo = jp2_boxinfolookup(type))) {
|
||||||
|
@@ -248,14 +261,9 @@ jp2_box_t *jp2_box_get(jas_stream_t *in)
|
||||||
|
box = 0;
|
||||||
|
tmpstream = 0;
|
||||||
|
|
||||||
|
- if (!(box = jas_malloc(sizeof(jp2_box_t)))) {
|
||||||
|
+ if (!(box = jp2_box_create0())) {
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
-
|
||||||
|
- // Mark the box data as never having been constructed
|
||||||
|
- // so that we will not errantly attempt to destroy it later.
|
||||||
|
- box->ops = &jp2_boxinfo_unk.ops;
|
||||||
|
-
|
||||||
|
if (jp2_getuint32(in, &len) || jp2_getuint32(in, &box->type)) {
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
@@ -263,10 +271,12 @@ jp2_box_t *jp2_box_get(jas_stream_t *in)
|
||||||
|
box->info = boxinfo;
|
||||||
|
box->len = len;
|
||||||
|
JAS_DBGLOG(10, (
|
||||||
|
- "preliminary processing of JP2 box: type=%c%s%c (0x%08x); length=%d\n",
|
||||||
|
+ "preliminary processing of JP2 box: "
|
||||||
|
+ "type=%c%s%c (0x%08x); length=%"PRIuFAST32"\n",
|
||||||
|
'"', boxinfo->name, '"', box->type, box->len
|
||||||
|
));
|
||||||
|
if (box->len == 1) {
|
||||||
|
+ JAS_DBGLOG(10, ("big length\n"));
|
||||||
|
if (jp2_getuint64(in, &extlen)) {
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
@@ -382,6 +392,7 @@ static int jp2_bpcc_getdata(jp2_box_t *box, jas_stream_t *in)
|
||||||
|
{
|
||||||
|
jp2_bpcc_t *bpcc = &box->data.bpcc;
|
||||||
|
unsigned int i;
|
||||||
|
+ bpcc->bpcs = 0;
|
||||||
|
bpcc->numcmpts = box->datalen;
|
||||||
|
if (!(bpcc->bpcs = jas_alloc2(bpcc->numcmpts, sizeof(uint_fast8_t)))) {
|
||||||
|
return -1;
|
||||||
|
@@ -462,6 +473,7 @@ static int jp2_cdef_getdata(jp2_box_t *box, jas_stream_t *in)
|
||||||
|
jp2_cdef_t *cdef = &box->data.cdef;
|
||||||
|
jp2_cdefchan_t *chan;
|
||||||
|
unsigned int channo;
|
||||||
|
+ cdef->ents = 0;
|
||||||
|
if (jp2_getuint16(in, &cdef->numchans)) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
@@ -518,7 +530,9 @@ int jp2_box_put(jp2_box_t *box, jas_stream_t *out)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (dataflag) {
|
||||||
|
- if (jas_stream_copy(out, tmpstream, box->len - JP2_BOX_HDRLEN(false))) {
|
||||||
|
+ if (jas_stream_copy(out, tmpstream, box->len -
|
||||||
|
+ JP2_BOX_HDRLEN(false))) {
|
||||||
|
+ jas_eprintf("cannot copy box data\n");
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
jas_stream_close(tmpstream);
|
||||||
|
@@ -777,6 +791,7 @@ static int jp2_cmap_getdata(jp2_box_t *box, jas_stream_t *in)
|
||||||
|
jp2_cmap_t *cmap = &box->data.cmap;
|
||||||
|
jp2_cmapent_t *ent;
|
||||||
|
unsigned int i;
|
||||||
|
+ cmap->ents = 0;
|
||||||
|
|
||||||
|
cmap->numchans = (box->datalen) / 4;
|
||||||
|
if (!(cmap->ents = jas_alloc2(cmap->numchans, sizeof(jp2_cmapent_t)))) {
|
||||||
|
@@ -835,6 +850,7 @@ static int jp2_pclr_getdata(jp2_box_t *box, jas_stream_t *in)
|
||||||
|
int_fast32_t x;
|
||||||
|
|
||||||
|
pclr->lutdata = 0;
|
||||||
|
+ pclr->bpc = 0;
|
||||||
|
|
||||||
|
if (jp2_getuint16(in, &pclr->numlutents) ||
|
||||||
|
jp2_getuint8(in, &pclr->numchans)) {
|
||||||
|
@@ -869,9 +885,9 @@ static int jp2_pclr_putdata(jp2_box_t *box, jas_stream_t *out)
|
||||||
|
#if 0
|
||||||
|
jp2_pclr_t *pclr = &box->data.pclr;
|
||||||
|
#endif
|
||||||
|
-/* Eliminate warning about unused variable. */
|
||||||
|
-box = 0;
|
||||||
|
-out = 0;
|
||||||
|
+ /* Eliminate warning about unused variable. */
|
||||||
|
+ box = 0;
|
||||||
|
+ out = 0;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.11.0
|
||||||
|
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
From 58ba0365d911b9f9dd68e9abf826682c0b4f2293 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michael Adams <mdadams@ece.uvic.ca>
|
||||||
|
Date: Mon, 6 Mar 2017 08:06:54 -0800
|
||||||
|
Subject: [PATCH] Added a check in the JP2 encoder to ensure that the image to
|
||||||
|
be coded has at least one component.
|
||||||
|
|
||||||
|
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||||
|
---
|
||||||
|
src/libjasper/jp2/jp2_enc.c | 5 +++++
|
||||||
|
1 files changed, 1 insertions(+), 0 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/libjasper/jp2/jp2_enc.c b/src/libjasper/jp2/jp2_enc.c
|
||||||
|
index 9a5e106..af4d9a4 100644
|
||||||
|
--- a/src/libjasper/jp2/jp2_enc.c
|
||||||
|
+++ b/src/libjasper/jp2/jp2_enc.c
|
||||||
|
@@ -115,6 +115,11 @@ int jp2_encode(jas_image_t *image, jas_stream_t *out, const char *optstr)
|
||||||
|
iccstream = 0;
|
||||||
|
iccprof = 0;
|
||||||
|
|
||||||
|
+ if (jas_image_numcmpts(image) < 1) {
|
||||||
|
+ jas_eprintf("image must have at least one component\n");
|
||||||
|
+ goto error;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
allcmptssame = 1;
|
||||||
|
sgnd = jas_image_cmptsgnd(image, 0);
|
||||||
|
prec = jas_image_cmptprec(image, 0);
|
||||||
|
--
|
||||||
|
2.11.0
|
||||||
|
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
# Locally computed
|
# Locally computed
|
||||||
sha256 b8b8dd31f3ebdd5472f03ab7d401600ea0d959b1288b9ca24bf457ef60e2ba27 libcec-4.0.2.tar.gz
|
sha256 0f29d5a2d155b507807ba896bc3b3e50a0ab56bf8f543a2bf5c2798c790292b5 libcec-2c675dac48387c48c7f43c5d2547ef0c4ef5c7dd.tar.gz
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
LIBCEC_VERSION = 4.0.2
|
LIBCEC_VERSION = 2c675dac48387c48c7f43c5d2547ef0c4ef5c7dd
|
||||||
LIBCEC_SITE = $(call github,Pulse-Eight,libcec,libcec-$(LIBCEC_VERSION))
|
LIBCEC_SITE = $(call github,Pulse-Eight,libcec,$(LIBCEC_VERSION))
|
||||||
LIBCEC_LICENSE = GPLv2+
|
LIBCEC_LICENSE = GPLv2+
|
||||||
LIBCEC_LICENSE_FILES = COPYING
|
LIBCEC_LICENSE_FILES = COPYING
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ LIBIIO_CONF_OPTS = -DENABLE_IPV6=ON \
|
|||||||
-DWITH_LOCAL_BACKEND=$(if $(BR2_PACKAGE_LIBIIO_LOCAL_BACKEND),ON,OFF) \
|
-DWITH_LOCAL_BACKEND=$(if $(BR2_PACKAGE_LIBIIO_LOCAL_BACKEND),ON,OFF) \
|
||||||
-DWITH_NETWORK_BACKEND=$(if $(BR2_PACKAGE_LIBIIO_NETWORK_BACKEND),ON,OFF) \
|
-DWITH_NETWORK_BACKEND=$(if $(BR2_PACKAGE_LIBIIO_NETWORK_BACKEND),ON,OFF) \
|
||||||
-DWITH_MATLAB_BINDINGS_API=OFF \
|
-DWITH_MATLAB_BINDINGS_API=OFF \
|
||||||
|
-DMATLAB_BINDINGS=OFF \
|
||||||
-DINSTALL_UDEV_RULE=$(if $(BR2_PACKAGE_HAS_UDEV),ON,OFF) \
|
-DINSTALL_UDEV_RULE=$(if $(BR2_PACKAGE_HAS_UDEV),ON,OFF) \
|
||||||
-DWITH_TESTS=$(if $(BR2_PACKAGE_LIBIIO_TESTS),ON,OFF) \
|
-DWITH_TESTS=$(if $(BR2_PACKAGE_LIBIIO_TESTS),ON,OFF) \
|
||||||
-DWITH_DOC=OFF
|
-DWITH_DOC=OFF
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
From 01b5478638c705af29f09ad4ed70289f70a21dcf Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
|
||||||
Date: Mon, 6 Feb 2017 14:04:47 +0100
|
|
||||||
Subject: [PATCH] p8-platform-config: fix lookup paths
|
|
||||||
|
|
||||||
Use the proper methods to find the headers and the library.
|
|
||||||
|
|
||||||
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
|
|
||||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
|
||||||
---
|
|
||||||
p8-platform-config.cmake.in | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/p8-platform-config.cmake.in b/p8-platform-config.cmake.in
|
|
||||||
index 47f30f1..f59418d 100644
|
|
||||||
--- a/p8-platform-config.cmake.in
|
|
||||||
+++ b/p8-platform-config.cmake.in
|
|
||||||
@@ -10,7 +10,7 @@
|
|
||||||
#
|
|
||||||
# propagate these properties from one build system to the other
|
|
||||||
set (p8-platform_VERSION "@p8-platform_VERSION_MAJOR@.@p8-platform_VERSION_MINOR@")
|
|
||||||
-set (p8-platform_INCLUDE_DIRS @p8-platform_INCLUDE_DIRS@ @CMAKE_INSTALL_PREFIX@/include)
|
|
||||||
+find_path (p8-platform_INCLUDE_DIRS p8-platform/os.h)
|
|
||||||
set (p8-platform_LIBRARY_DIRS "@CMAKE_LIBRARY_OUTPUT_DIRECTORY@")
|
|
||||||
set (p8-platform_LINKER_FLAGS "@p8-platform_LINKER_FLAGS@")
|
|
||||||
set (p8-platform_CONFIG_VARS "@p8-platform_CONFIG_VARS@")
|
|
||||||
@@ -19,7 +19,7 @@ set (p8-platform_CONFIG_VARS "@p8-platform_CONFIG_VARS@")
|
|
||||||
if(WIN32)
|
|
||||||
set (p8-platform_LIBRARY "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/p8-platform.lib")
|
|
||||||
else(WIN32)
|
|
||||||
- set (p8-platform_LIBRARY "-L@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ -lp8-platform")
|
|
||||||
+ find_library (p8-platform_LIBRARY p8-platform)
|
|
||||||
endif(WIN32)
|
|
||||||
set (p8-platform_LIBRARIES ${p8-platform_LIBRARY} "@p8-platform_LIBRARIES@")
|
|
||||||
mark_as_advanced (p8-platform_LIBRARY)
|
|
||||||
--
|
|
||||||
2.7.4
|
|
||||||
|
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
From 65ba437ed5514dd5762a796d349ed5db49e40fe7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
Date: Wed, 29 Jul 2015 21:26:16 +0200
|
||||||
|
Subject: [PATCH] platform-config.cmake: fix paths for cross-compilation
|
||||||
|
|
||||||
|
Headers and library paths in platform-config.cmake must take into
|
||||||
|
account ${CMAKE_FIND_ROOT_PATH} to work in cross-compilation.
|
||||||
|
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
---
|
||||||
|
platform-config.cmake.in | 6 +++---
|
||||||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/platform-config.cmake.in b/platform-config.cmake.in
|
||||||
|
index 7fe35fe..78b5085 100644
|
||||||
|
--- a/platform-config.cmake.in
|
||||||
|
+++ b/platform-config.cmake.in
|
||||||
|
@@ -10,16 +10,16 @@
|
||||||
|
#
|
||||||
|
# propagate these properties from one build system to the other
|
||||||
|
set (platform_VERSION "@platform_VERSION_MAJOR@.@platform_VERSION_MINOR@")
|
||||||
|
-set (platform_INCLUDE_DIRS @platform_INCLUDE_DIRS@ @CMAKE_INSTALL_PREFIX@/include)
|
||||||
|
+set (platform_INCLUDE_DIRS ${CMAKE_FIND_ROOT_PATH}/@platform_INCLUDE_DIRS@ ${CMAKE_FIND_ROOT_PATH}/@CMAKE_INSTALL_PREFIX@/include)
|
||||||
|
set (platform_LIBRARY_DIRS "@CMAKE_LIBRARY_OUTPUT_DIRECTORY@")
|
||||||
|
set (platform_LINKER_FLAGS "@platform_LINKER_FLAGS@")
|
||||||
|
set (platform_CONFIG_VARS "@platform_CONFIG_VARS@")
|
||||||
|
|
||||||
|
# libraries come from the build tree where this file was generated
|
||||||
|
if(WIN32)
|
||||||
|
- set (platform_LIBRARY "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/platform.lib")
|
||||||
|
+ set (platform_LIBRARY "${CMAKE_FIND_ROOT_PATH}/@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/platform.lib")
|
||||||
|
else(WIN32)
|
||||||
|
- set (platform_LIBRARY "-L@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ -lplatform")
|
||||||
|
+ set (platform_LIBRARY "-L${CMAKE_FIND_ROOT_PATH}/@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ -lplatform")
|
||||||
|
endif(WIN32)
|
||||||
|
set (platform_LIBRARIES ${platform_LIBRARY} "@platform_LIBRARIES@")
|
||||||
|
mark_as_advanced (platform_LIBRARY)
|
||||||
|
--
|
||||||
|
2.5.0
|
||||||
|
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
# Locally computed
|
# Locally computed
|
||||||
sha256 88711f1b949285867538a0b2e4189532778e1515325dfa1851eae9d18b6affd9 libplatform-2.1.0.tar.gz
|
sha256 3603ead8b16a48cb35b1e6dea330a693f10552b1a6ea036c5db9ec248cd8baf5 libplatform-feafe68e3e0b02c3261aefb3d711863ef6fadd38.tar.gz
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
LIBPLATFORM_VERSION = 2.1.0
|
LIBPLATFORM_VERSION = feafe68e3e0b02c3261aefb3d711863ef6fadd38
|
||||||
LIBPLATFORM_SITE = $(call github,Pulse-Eight,platform,p8-platform-$(LIBPLATFORM_VERSION))
|
LIBPLATFORM_SITE = $(call github,Pulse-Eight,platform,$(LIBPLATFORM_VERSION))
|
||||||
LIBPLATFORM_LICENSE = GPLv2+
|
LIBPLATFORM_LICENSE = GPLv2+, PHP license v3.01
|
||||||
LIBPLATFORM_LICENSE_FILES = src/os.h
|
LIBPLATFORM_LICENSE_FILES = src/os.h src/util/fstrcmp.c
|
||||||
LIBPLATFORM_INSTALL_STAGING = YES
|
LIBPLATFORM_INSTALL_STAGING = YES
|
||||||
|
|
||||||
$(eval $(cmake-package))
|
$(eval $(cmake-package))
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ LIBRSVG_VERSION = $(LIBRSVG_VERSION_MAJOR).16
|
|||||||
LIBRSVG_SITE = http://ftp.gnome.org/pub/gnome/sources/librsvg/$(LIBRSVG_VERSION_MAJOR)
|
LIBRSVG_SITE = http://ftp.gnome.org/pub/gnome/sources/librsvg/$(LIBRSVG_VERSION_MAJOR)
|
||||||
LIBRSVG_SOURCE = librsvg-$(LIBRSVG_VERSION).tar.xz
|
LIBRSVG_SOURCE = librsvg-$(LIBRSVG_VERSION).tar.xz
|
||||||
LIBRSVG_INSTALL_STAGING = YES
|
LIBRSVG_INSTALL_STAGING = YES
|
||||||
LIBRSVG_CONF_OPTS = --disable-tools --enable-introspection=no
|
LIBRSVG_CONF_OPTS = --disable-pixbuf-loader --disable-tools --enable-introspection=no
|
||||||
HOST_LIBRSVG_CONF_OPTS = --enable-introspection=no
|
HOST_LIBRSVG_CONF_OPTS = --enable-introspection=no
|
||||||
LIBRSVG_DEPENDENCIES = cairo host-gdk-pixbuf gdk-pixbuf libcroco libglib2 libxml2 pango \
|
LIBRSVG_DEPENDENCIES = cairo host-gdk-pixbuf gdk-pixbuf libcroco libglib2 libxml2 pango \
|
||||||
$(if $(BR2_PACKAGE_LIBGTK3),libgtk3)
|
$(if $(BR2_PACKAGE_LIBGTK3),libgtk3)
|
||||||
|
|||||||
@@ -46,12 +46,10 @@ HOST_LIBSELINUX_DEPENDENCIES = \
|
|||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
||||||
HOST_LIBSELINUX_DEPENDENCIES += host-python3
|
HOST_LIBSELINUX_DEPENDENCIES += host-python3
|
||||||
HOST_LIBSELINUX_PYTHONLIBDIR = -L$(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/
|
|
||||||
HOST_LIBSELINUX_PYINC = -I$(HOST_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)m/
|
HOST_LIBSELINUX_PYINC = -I$(HOST_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)m/
|
||||||
HOST_LIBSELINUX_PYLIBVER = python$(PYTHON3_VERSION_MAJOR)
|
HOST_LIBSELINUX_PYLIBVER = python$(PYTHON3_VERSION_MAJOR)
|
||||||
else
|
else
|
||||||
HOST_LIBSELINUX_DEPENDENCIES += host-python
|
HOST_LIBSELINUX_DEPENDENCIES += host-python
|
||||||
HOST_LIBSELINUX_PYTHONLIBDIR = -L$(HOST_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/
|
|
||||||
HOST_LIBSELINUX_PYINC = -I$(HOST_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)/
|
HOST_LIBSELINUX_PYINC = -I$(HOST_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)/
|
||||||
HOST_LIBSELINUX_PYLIBVER = python$(PYTHON_VERSION_MAJOR)
|
HOST_LIBSELINUX_PYLIBVER = python$(PYTHON_VERSION_MAJOR)
|
||||||
endif
|
endif
|
||||||
@@ -60,8 +58,7 @@ HOST_LIBSELINUX_MAKE_OPTS = \
|
|||||||
$(HOST_CONFIGURE_OPTS) \
|
$(HOST_CONFIGURE_OPTS) \
|
||||||
LDFLAGS="$(HOST_LDFLAGS) -lpcre -lpthread" \
|
LDFLAGS="$(HOST_LDFLAGS) -lpcre -lpthread" \
|
||||||
PYINC="$(HOST_LIBSELINUX_PYINC)" \
|
PYINC="$(HOST_LIBSELINUX_PYINC)" \
|
||||||
PYTHONLIBDIR="$(HOST_LIBSELINUX_PYTHONLIBDIR)" \
|
PYSITEDIR="$(HOST_DIR)/usr/lib/$(HOST_LIBSELINUX_PYLIBVER)/site-packages" \
|
||||||
PYLIBVER="$(HOST_LIBSELINUX_PYLIBVER)" \
|
|
||||||
SWIG_LIB="$(HOST_DIR)/usr/share/swig/$(SWIG_VERSION)/"
|
SWIG_LIB="$(HOST_DIR)/usr/share/swig/$(SWIG_VERSION)/"
|
||||||
|
|
||||||
define HOST_LIBSELINUX_BUILD_CMDS
|
define HOST_LIBSELINUX_BUILD_CMDS
|
||||||
|
|||||||
@@ -1,93 +1,30 @@
|
|||||||
Various fixes to compile libsidplay2 with newer gcc compilers
|
From 38493fceb39ac33e12c9c69d78f5584413b479f4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||||
|
Date: Wed, 1 Mar 2017 10:03:40 +0100
|
||||||
|
Subject: [PATCH] Various fixes to compile libsidplay2 with newer gcc compilers
|
||||||
|
|
||||||
Downloaded from
|
Downloaded from
|
||||||
http://tsubasa.googlecode.com/svn/trunk/tsubasa/sidplay2-libs/sidplay2-libs-2.1.1.diff
|
http://tsubasa.googlecode.com/svn/trunk/tsubasa/sidplay2-libs/sidplay2-libs-2.1.1.diff
|
||||||
|
|
||||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||||
|
[Thomas: adjusted to avoid the need to autoreconf, which doesn't work
|
||||||
|
properly on this package.]
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
---
|
||||||
|
builders/hardsid-builder/src/hardsid-builder.cpp | 1 +
|
||||||
|
builders/resid-builder/src/resid-builder.cpp | 1 +
|
||||||
|
builders/resid-builder/src/resid.cpp | 1 +
|
||||||
|
configure | 2 +-
|
||||||
|
libsidplay/configure | 5 +++--
|
||||||
|
libsidplay/include/sidplay/SmartPtr.h | 28 ++++++++++++------------
|
||||||
|
libsidplay/include/sidplay/sidendian.h | 18 +++++++++------
|
||||||
|
libsidutils/include/sidplay/utils/SidUsage.h | 2 +-
|
||||||
|
8 files changed, 33 insertions(+), 25 deletions(-)
|
||||||
|
|
||||||
--- sidplay-libs-2.1.1.orig/Makefile.in
|
diff --git a/builders/hardsid-builder/src/hardsid-builder.cpp b/builders/hardsid-builder/src/hardsid-builder.cpp
|
||||||
+++ sidplay-libs-2.1.1/Makefile.in
|
index f54d0a9..9375e40 100644
|
||||||
@@ -1,4 +1,4 @@
|
--- a/builders/hardsid-builder/src/hardsid-builder.cpp
|
||||||
-# Makefile.in generated by automake 1.8.4 from Makefile.am.
|
+++ b/builders/hardsid-builder/src/hardsid-builder.cpp
|
||||||
+# Makefile.in generated by automake 1.8.5 from Makefile.am.
|
|
||||||
# @configure_input@
|
|
||||||
|
|
||||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
|
||||||
@@ -253,7 +253,7 @@
|
|
||||||
fi; \
|
|
||||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
|
||||||
if test "$$subdir" = .; then :; else \
|
|
||||||
- test -f $$subdir/TAGS && \
|
|
||||||
+ test ! -f $$subdir/TAGS || \
|
|
||||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
|
||||||
fi; \
|
|
||||||
done; \
|
|
||||||
@@ -264,7 +264,7 @@
|
|
||||||
$(AWK) ' { files[$$0] = 1; } \
|
|
||||||
END { for (i in files) print i; }'`; \
|
|
||||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
|
||||||
- test -z "$$unique" && unique=$$empty_fix; \
|
|
||||||
+ test -n "$$unique" || unique=$$empty_fix; \
|
|
||||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
|
||||||
$$tags $$unique; \
|
|
||||||
fi
|
|
||||||
--- sidplay-libs-2.1.1.orig/aclocal.m4
|
|
||||||
+++ sidplay-libs-2.1.1/aclocal.m4
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-# generated automatically by aclocal 1.8.4 -*- Autoconf -*-
|
|
||||||
+# generated automatically by aclocal 1.8.5 -*- Autoconf -*-
|
|
||||||
|
|
||||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
|
|
||||||
# Free Software Foundation, Inc.
|
|
||||||
@@ -40,7 +40,7 @@
|
|
||||||
# Call AM_AUTOMAKE_VERSION so it can be traced.
|
|
||||||
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
|
|
||||||
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
|
||||||
- [AM_AUTOMAKE_VERSION([1.8.4])])
|
|
||||||
+ [AM_AUTOMAKE_VERSION([1.8.5])])
|
|
||||||
|
|
||||||
# AM_AUX_DIR_EXPAND
|
|
||||||
|
|
||||||
--- sidplay-libs-2.1.1.orig/builders/Makefile.in
|
|
||||||
+++ sidplay-libs-2.1.1/builders/Makefile.in
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-# Makefile.in generated by automake 1.8.4 from Makefile.am.
|
|
||||||
+# Makefile.in generated by automake 1.8.5 from Makefile.am.
|
|
||||||
# @configure_input@
|
|
||||||
|
|
||||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
|
||||||
@@ -130,9 +130,9 @@
|
|
||||||
exit 1;; \
|
|
||||||
esac; \
|
|
||||||
done; \
|
|
||||||
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu builders/Makefile'; \
|
|
||||||
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign builders/Makefile'; \
|
|
||||||
cd $(top_srcdir) && \
|
|
||||||
- $(AUTOMAKE) --gnu builders/Makefile
|
|
||||||
+ $(AUTOMAKE) --foreign builders/Makefile
|
|
||||||
.PRECIOUS: Makefile
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
||||||
@case '$?' in \
|
|
||||||
@@ -234,7 +234,7 @@
|
|
||||||
fi; \
|
|
||||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
|
||||||
if test "$$subdir" = .; then :; else \
|
|
||||||
- test -f $$subdir/TAGS && \
|
|
||||||
+ test ! -f $$subdir/TAGS || \
|
|
||||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
|
||||||
fi; \
|
|
||||||
done; \
|
|
||||||
@@ -245,7 +245,7 @@
|
|
||||||
$(AWK) ' { files[$$0] = 1; } \
|
|
||||||
END { for (i in files) print i; }'`; \
|
|
||||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
|
||||||
- test -z "$$unique" && unique=$$empty_fix; \
|
|
||||||
+ test -n "$$unique" || unique=$$empty_fix; \
|
|
||||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
|
||||||
$$tags $$unique; \
|
|
||||||
fi
|
|
||||||
--- sidplay-libs-2.1.1.orig/builders/hardsid-builder/src/hardsid-builder.cpp
|
|
||||||
+++ sidplay-libs-2.1.1/builders/hardsid-builder/src/hardsid-builder.cpp
|
|
||||||
@@ -47,6 +47,7 @@
|
@@ -47,6 +47,7 @@
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
@@ -96,8 +33,10 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifdef HAVE_EXCEPTIONS
|
#ifdef HAVE_EXCEPTIONS
|
||||||
--- sidplay-libs-2.1.1.orig/builders/resid-builder/src/resid-builder.cpp
|
diff --git a/builders/resid-builder/src/resid-builder.cpp b/builders/resid-builder/src/resid-builder.cpp
|
||||||
+++ sidplay-libs-2.1.1/builders/resid-builder/src/resid-builder.cpp
|
index e6e4eaa..4c7650f 100644
|
||||||
|
--- a/builders/resid-builder/src/resid-builder.cpp
|
||||||
|
+++ b/builders/resid-builder/src/resid-builder.cpp
|
||||||
@@ -37,6 +37,7 @@
|
@@ -37,6 +37,7 @@
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
@@ -106,8 +45,10 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#ifdef HAVE_EXCEPTIONS
|
#ifdef HAVE_EXCEPTIONS
|
||||||
--- sidplay-libs-2.1.1.orig/builders/resid-builder/src/resid.cpp
|
diff --git a/builders/resid-builder/src/resid.cpp b/builders/resid-builder/src/resid.cpp
|
||||||
+++ sidplay-libs-2.1.1/builders/resid-builder/src/resid.cpp
|
index 8c27850..d3123c5 100644
|
||||||
|
--- a/builders/resid-builder/src/resid.cpp
|
||||||
|
+++ b/builders/resid-builder/src/resid.cpp
|
||||||
@@ -16,6 +16,7 @@
|
@@ -16,6 +16,7 @@
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
@@ -116,9 +57,11 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifdef HAVE_EXCEPTIONS
|
#ifdef HAVE_EXCEPTIONS
|
||||||
--- sidplay-libs-2.1.1.orig/configure.ac
|
diff --git a/configure b/configure
|
||||||
+++ sidplay-libs-2.1.1/configure.ac
|
index 1200eaf..77948b4 100755
|
||||||
@@ -2,7 +2,7 @@
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -1227,7 +1227,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
#Variables
|
#Variables
|
||||||
pwd=`pwd`
|
pwd=`pwd`
|
||||||
@@ -126,19 +69,28 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|||||||
+builders='${libdir}'/
|
+builders='${libdir}'/
|
||||||
ac_configure_args="$ac_configure_args --disable-library-checks"
|
ac_configure_args="$ac_configure_args --disable-library-checks"
|
||||||
|
|
||||||
AC_CONFIG_AUX_DIR(unix)
|
ac_aux_dir=
|
||||||
@@ -11,7 +11,7 @@
|
diff --git a/libsidplay/configure b/libsidplay/configure
|
||||||
|
index 05a8ea6..3d93956 100755
|
||||||
hardsid=false
|
--- a/libsidplay/configure
|
||||||
case "$host" in
|
+++ b/libsidplay/configure
|
||||||
- *linux*) hardsid=true
|
@@ -23466,8 +23466,9 @@ _ACEOF
|
||||||
+ *linux*|*-k*bsd*-gnu) hardsid=true
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
;;
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
esac
|
/* end confdefs.h. */
|
||||||
AM_CONDITIONAL(HARDSID, test x$hardsid = xtrue)
|
-#include <fstream.h>
|
||||||
--- sidplay-libs-2.1.1.orig/libsidplay/include/sidplay/SmartPtr.h
|
- #include <iomanip.h>
|
||||||
+++ sidplay-libs-2.1.1/libsidplay/include/sidplay/SmartPtr.h
|
+#include <fstream>
|
||||||
@@ -17,16 +17,16 @@
|
+ #include <iomanip>
|
||||||
|
+ using namespace std;
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
diff --git a/libsidplay/include/sidplay/SmartPtr.h b/libsidplay/include/sidplay/SmartPtr.h
|
||||||
|
index c0cbb1a..15efd10 100644
|
||||||
|
--- a/libsidplay/include/sidplay/SmartPtr.h
|
||||||
|
+++ b/libsidplay/include/sidplay/SmartPtr.h
|
||||||
|
@@ -17,16 +17,16 @@ class SmartPtrBase_sidtt
|
||||||
doFree = bufOwner;
|
doFree = bufOwner;
|
||||||
if ( bufferLen >= 1 )
|
if ( bufferLen >= 1 )
|
||||||
{
|
{
|
||||||
@@ -162,7 +114,7 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -211,16 +211,16 @@
|
@@ -211,16 +211,16 @@ class SmartPtr_sidtt : public SmartPtrBase_sidtt<T>
|
||||||
{
|
{
|
||||||
if ( bufferLen >= 1 )
|
if ( bufferLen >= 1 )
|
||||||
{
|
{
|
||||||
@@ -186,8 +138,10 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
--- sidplay-libs-2.1.1.orig/libsidplay/include/sidplay/sidendian.h
|
diff --git a/libsidplay/include/sidplay/sidendian.h b/libsidplay/include/sidplay/sidendian.h
|
||||||
+++ sidplay-libs-2.1.1/libsidplay/include/sidplay/sidendian.h
|
index 9fa8582..6115282 100644
|
||||||
|
--- a/libsidplay/include/sidplay/sidendian.h
|
||||||
|
+++ b/libsidplay/include/sidplay/sidendian.h
|
||||||
@@ -16,6 +16,10 @@
|
@@ -16,6 +16,10 @@
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
@@ -199,7 +153,7 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|||||||
* Revision 1.5 2001/07/03 22:44:13 s_a_white
|
* Revision 1.5 2001/07/03 22:44:13 s_a_white
|
||||||
* Added endian_16 to convert a 16 bit value to an array of 8s.
|
* Added endian_16 to convert a 16 bit value to an array of 8s.
|
||||||
*
|
*
|
||||||
@@ -141,7 +145,7 @@
|
@@ -141,7 +145,7 @@ inline void endian_16swap8 (uint_least16_t &word)
|
||||||
// Convert high-byte and low-byte to 16-bit word.
|
// Convert high-byte and low-byte to 16-bit word.
|
||||||
inline uint_least16_t endian_16 (uint8_t hi, uint8_t lo)
|
inline uint_least16_t endian_16 (uint8_t hi, uint8_t lo)
|
||||||
{
|
{
|
||||||
@@ -208,7 +162,7 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|||||||
endian_16lo8 (word, lo);
|
endian_16lo8 (word, lo);
|
||||||
endian_16hi8 (word, hi);
|
endian_16hi8 (word, hi);
|
||||||
return word;
|
return word;
|
||||||
@@ -165,7 +169,7 @@
|
@@ -165,7 +169,7 @@ inline void endian_16 (uint8_t ptr[2], uint_least16_t word)
|
||||||
|
|
||||||
inline void endian_16 (char ptr[2], uint_least16_t word)
|
inline void endian_16 (char ptr[2], uint_least16_t word)
|
||||||
{
|
{
|
||||||
@@ -217,7 +171,7 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Convert high-byte and low-byte to 16-bit little endian word.
|
// Convert high-byte and low-byte to 16-bit little endian word.
|
||||||
@@ -334,7 +338,7 @@
|
@@ -334,7 +338,7 @@ inline void endian_32swap16 (uint_least32_t &dword)
|
||||||
// Swap word endian.
|
// Swap word endian.
|
||||||
inline void endian_32swap8 (uint_least32_t &dword)
|
inline void endian_32swap8 (uint_least32_t &dword)
|
||||||
{
|
{
|
||||||
@@ -226,7 +180,7 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|||||||
lo = endian_32lo16 (dword);
|
lo = endian_32lo16 (dword);
|
||||||
hi = endian_32hi16 (dword);
|
hi = endian_32hi16 (dword);
|
||||||
endian_16swap8 (lo);
|
endian_16swap8 (lo);
|
||||||
@@ -346,8 +350,8 @@
|
@@ -346,8 +350,8 @@ inline void endian_32swap8 (uint_least32_t &dword)
|
||||||
// Convert high-byte and low-byte to 32-bit word.
|
// Convert high-byte and low-byte to 32-bit word.
|
||||||
inline uint_least32_t endian_32 (uint8_t hihi, uint8_t hilo, uint8_t hi, uint8_t lo)
|
inline uint_least32_t endian_32 (uint8_t hihi, uint8_t hilo, uint8_t hi, uint8_t lo)
|
||||||
{
|
{
|
||||||
@@ -237,7 +191,7 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|||||||
endian_32lo8 (dword, lo);
|
endian_32lo8 (dword, lo);
|
||||||
endian_32hi8 (dword, hi);
|
endian_32hi8 (dword, hi);
|
||||||
endian_16lo8 (word, hilo);
|
endian_16lo8 (word, hilo);
|
||||||
@@ -374,7 +378,7 @@
|
@@ -374,7 +378,7 @@ inline void endian_little32 (uint8_t ptr[4], uint_least32_t dword)
|
||||||
defined(SID_WORDS_LITTLEENDIAN)
|
defined(SID_WORDS_LITTLEENDIAN)
|
||||||
*((uint_least32_t *) ptr) = dword;
|
*((uint_least32_t *) ptr) = dword;
|
||||||
#else
|
#else
|
||||||
@@ -246,7 +200,7 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|||||||
ptr[0] = endian_32lo8 (dword);
|
ptr[0] = endian_32lo8 (dword);
|
||||||
ptr[1] = endian_32hi8 (dword);
|
ptr[1] = endian_32hi8 (dword);
|
||||||
word = endian_32hi16 (dword);
|
word = endian_32hi16 (dword);
|
||||||
@@ -401,7 +405,7 @@
|
@@ -401,7 +405,7 @@ inline void endian_big32 (uint8_t ptr[4], uint_least32_t dword)
|
||||||
defined(SID_WORDS_BIGENDIAN)
|
defined(SID_WORDS_BIGENDIAN)
|
||||||
*((uint_least32_t *) ptr) = dword;
|
*((uint_least32_t *) ptr) = dword;
|
||||||
#else
|
#else
|
||||||
@@ -255,72 +209,11 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|||||||
word = endian_32hi16 (dword);
|
word = endian_32hi16 (dword);
|
||||||
ptr[1] = endian_16lo8 (word);
|
ptr[1] = endian_16lo8 (word);
|
||||||
ptr[0] = endian_16hi8 (word);
|
ptr[0] = endian_16hi8 (word);
|
||||||
--- sidplay-libs-2.1.1.orig/libsidplay/unix/config.h.in
|
diff --git a/libsidutils/include/sidplay/utils/SidUsage.h b/libsidutils/include/sidplay/utils/SidUsage.h
|
||||||
+++ sidplay-libs-2.1.1/libsidplay/unix/config.h.in
|
index 2afb0f3..0496eea 100755
|
||||||
@@ -72,22 +72,22 @@
|
--- a/libsidutils/include/sidplay/utils/SidUsage.h
|
||||||
/* Define to the version of this package. */
|
+++ b/libsidutils/include/sidplay/utils/SidUsage.h
|
||||||
#undef PACKAGE_VERSION
|
@@ -33,7 +33,7 @@ struct sid2_usage_t: public sid_usage_t
|
||||||
|
|
||||||
-/* The size of a `char', as computed by sizeof. */
|
|
||||||
+/* The size of `char', as computed by sizeof. */
|
|
||||||
#undef SIZEOF_CHAR
|
|
||||||
|
|
||||||
-/* The size of a `int', as computed by sizeof. */
|
|
||||||
+/* The size of `int', as computed by sizeof. */
|
|
||||||
#undef SIZEOF_INT
|
|
||||||
|
|
||||||
/* The number of bytes in type long */
|
|
||||||
#undef SIZEOF_LONG
|
|
||||||
|
|
||||||
-/* The size of a `long int', as computed by sizeof. */
|
|
||||||
+/* The size of `long int', as computed by sizeof. */
|
|
||||||
#undef SIZEOF_LONG_INT
|
|
||||||
|
|
||||||
/* The number of bytes in type short */
|
|
||||||
#undef SIZEOF_SHORT
|
|
||||||
|
|
||||||
-/* The size of a `short int', as computed by sizeof. */
|
|
||||||
+/* The size of `short int', as computed by sizeof. */
|
|
||||||
#undef SIZEOF_SHORT_INT
|
|
||||||
|
|
||||||
/* The number of bytes in type void* */
|
|
||||||
--- sidplay-libs-2.1.1.orig/libsidplay/unix/my_macros.m4
|
|
||||||
+++ sidplay-libs-2.1.1/libsidplay/unix/my_macros.m4
|
|
||||||
@@ -105,8 +105,9 @@
|
|
||||||
AC_CACHE_VAL(test_cv_have_ios_openmode,
|
|
||||||
[
|
|
||||||
AC_TRY_COMPILE(
|
|
||||||
- [#include <fstream.h>
|
|
||||||
- #include <iomanip.h>],
|
|
||||||
+ [#include <fstream>
|
|
||||||
+ #include <iomanip>
|
|
||||||
+ using namespace std;],
|
|
||||||
[ios::openmode myTest = ios::in;],
|
|
||||||
[test_cv_have_ios_openmode=yes],
|
|
||||||
[test_cv_have_ios_openmode=no]
|
|
||||||
--- sidplay-libs-2.1.1.orig/libsidplay/unix/sidint.h
|
|
||||||
+++ sidplay-libs-2.1.1/libsidplay/unix/sidint.h
|
|
||||||
@@ -0,0 +1,17 @@
|
|
||||||
+#ifndef _UNIX_SIDINT_H
|
|
||||||
+#define _UNIX_SIDINT_H 1
|
|
||||||
+#ifndef _GENERATED_STDINT_H
|
|
||||||
+#define _GENERATED_STDINT_H "libsidplay 2.1.1"
|
|
||||||
+/* generated using a gnu compiler version gcc (Debian 4.3-20080219-1) 4.3.0 20080219 (prerelease) [gcc-4_3-branch revision 132456] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */
|
|
||||||
+
|
|
||||||
+#include <stdint.h>
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+/* system headers have good uint64_t */
|
|
||||||
+#ifndef _HAVE_UINT64_T
|
|
||||||
+#define _HAVE_UINT64_T
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+ /* once */
|
|
||||||
+#endif
|
|
||||||
+#endif
|
|
||||||
--- sidplay-libs-2.1.1.orig/libsidutils/include/sidplay/utils/SidUsage.h
|
|
||||||
+++ sidplay-libs-2.1.1/libsidutils/include/sidplay/utils/SidUsage.h
|
|
||||||
@@ -33,7 +33,7 @@
|
|
||||||
uint_least16_t length; // usage scan length
|
uint_least16_t length; // usage scan length
|
||||||
|
|
||||||
// Copy common parts of basic usage to extended usage.
|
// Copy common parts of basic usage to extended usage.
|
||||||
@@ -329,3 +222,6 @@ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|||||||
{
|
{
|
||||||
*((sid_usage_t *) this) = usage;
|
*((sid_usage_t *) this) = usage;
|
||||||
return *this;
|
return *this;
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ LIBSIDPLAY2_SOURCE = sidplay-libs-$(LIBSIDPLAY2_VERSION).tar.gz
|
|||||||
LIBSIDPLAY2_SITE = http://downloads.sourceforge.net/project/sidplay2/sidplay2/sidplay-libs-$(LIBSIDPLAY2_VERSION)
|
LIBSIDPLAY2_SITE = http://downloads.sourceforge.net/project/sidplay2/sidplay2/sidplay-libs-$(LIBSIDPLAY2_VERSION)
|
||||||
LIBSIDPLAY2_LICENSE = GPLv2+
|
LIBSIDPLAY2_LICENSE = GPLv2+
|
||||||
LIBSIDPLAY2_LICENSE_FILES = libsidplay/COPYING
|
LIBSIDPLAY2_LICENSE_FILES = libsidplay/COPYING
|
||||||
LIBSIDPLAY2_AUTORECONF = YES
|
|
||||||
LIBSIDPLAY2_INSTALL_STAGING = YES
|
LIBSIDPLAY2_INSTALL_STAGING = YES
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ LIBSOC_LICENSE = LGPLv2.1
|
|||||||
LIBSOC_LICENSE_FILES = LICENCE
|
LIBSOC_LICENSE_FILES = LICENCE
|
||||||
LIBSOC_AUTORECONF = YES
|
LIBSOC_AUTORECONF = YES
|
||||||
LIBSOC_INSTALL_STAGING = YES
|
LIBSOC_INSTALL_STAGING = YES
|
||||||
|
LIBSOC_DEPENDENCIES = host-pkgconf
|
||||||
|
|
||||||
# Install Python 2 bindings
|
# Install Python 2 bindings
|
||||||
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
# Locally computed:
|
# Locally computed:
|
||||||
sha256 bcc96aaa609daae4d3f7ab1ee480126709ef4f6a8bf9c85de40aae48e38cce66 libwebsockets-v2.1.0.tar.gz
|
sha256 96183cbdfcd6e6a3d9465e854a924b7bfde6c8c6d3384d6159ad797c2e823b4d libwebsockets-v2.1.1.tar.gz
|
||||||
|
sha256 49ae9f959394686d469f960951ece3ad1101655afe64df28ea5b1a61c1d124f0 f9f5a5760782b68fba190fb46d306f7c08f027c0.patch
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
LIBWEBSOCKETS_VERSION = v2.1.0
|
LIBWEBSOCKETS_VERSION = v2.1.1
|
||||||
LIBWEBSOCKETS_SITE = $(call github,warmcat,libwebsockets,$(LIBWEBSOCKETS_VERSION))
|
LIBWEBSOCKETS_SITE = $(call github,warmcat,libwebsockets,$(LIBWEBSOCKETS_VERSION))
|
||||||
LIBWEBSOCKETS_LICENSE = LGPLv2.1 with exceptions
|
LIBWEBSOCKETS_LICENSE = LGPLv2.1 with exceptions
|
||||||
LIBWEBSOCKETS_LICENSE_FILES = LICENSE
|
LIBWEBSOCKETS_LICENSE_FILES = LICENSE
|
||||||
@@ -12,6 +12,8 @@ LIBWEBSOCKETS_DEPENDENCIES = zlib
|
|||||||
LIBWEBSOCKETS_INSTALL_STAGING = YES
|
LIBWEBSOCKETS_INSTALL_STAGING = YES
|
||||||
LIBWEBSOCKETS_CONF_OPTS = -DLWS_WITHOUT_TESTAPPS=ON -DLWS_IPV6=ON
|
LIBWEBSOCKETS_CONF_OPTS = -DLWS_WITHOUT_TESTAPPS=ON -DLWS_IPV6=ON
|
||||||
|
|
||||||
|
LIBWEBSOCKETS_PATCH = https://github.com/warmcat/libwebsockets/commit/f9f5a5760782b68fba190fb46d306f7c08f027c0.patch
|
||||||
|
|
||||||
# If LWS_MAX_SMP=1, then there is no code related to pthreads compiled
|
# If LWS_MAX_SMP=1, then there is no code related to pthreads compiled
|
||||||
# in the library. If unset, LWS_MAX_SMP defaults to 32 and a small
|
# in the library. If unset, LWS_MAX_SMP defaults to 32 and a small
|
||||||
# amount of pthread mutex code is built into the library.
|
# amount of pthread mutex code is built into the library.
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ LIBXKBCOMMON_LICENSE = MIT/X11
|
|||||||
LIBXKBCOMMON_LICENSE_FILES = LICENSE
|
LIBXKBCOMMON_LICENSE_FILES = LICENSE
|
||||||
LIBXKBCOMMON_INSTALL_STAGING = YES
|
LIBXKBCOMMON_INSTALL_STAGING = YES
|
||||||
LIBXKBCOMMON_DEPENDENCIES = host-bison host-flex
|
LIBXKBCOMMON_DEPENDENCIES = host-bison host-flex
|
||||||
|
LIBXKBCOMMON_CONF_OPTS = --disable-wayland
|
||||||
# uses C99 features
|
# uses C99 features
|
||||||
LIBXKBCOMMON_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
|
LIBXKBCOMMON_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# Locally calculated
|
# Locally calculated
|
||||||
sha256 256378564e36b8f222adb8fbe746529e73413c6cbe2b0e5574f41dfd62d92577 linux-firmware-6d3bc8886517d171068fd1263176b8b5c51df204.tar.gz
|
sha256 1cd14477a392fe8c7c44e62623b85466df90ed72a55ae213b637e1c4335739fd linux-firmware-6d3bc8886517d171068fd1263176b8b5c51df204.tar.gz
|
||||||
|
|||||||
@@ -214,15 +214,15 @@ endchoice
|
|||||||
|
|
||||||
config BR2_DEFAULT_KERNEL_HEADERS
|
config BR2_DEFAULT_KERNEL_HEADERS
|
||||||
string
|
string
|
||||||
default "3.2.85" if BR2_KERNEL_HEADERS_3_2
|
default "3.2.87" if BR2_KERNEL_HEADERS_3_2
|
||||||
default "3.4.113" if BR2_KERNEL_HEADERS_3_4
|
default "3.4.113" if BR2_KERNEL_HEADERS_3_4
|
||||||
default "3.10.105" if BR2_KERNEL_HEADERS_3_10
|
default "3.10.105" if BR2_KERNEL_HEADERS_3_10
|
||||||
default "3.12.70" if BR2_KERNEL_HEADERS_3_12
|
default "3.12.72" if BR2_KERNEL_HEADERS_3_12
|
||||||
default "3.18.48" if BR2_KERNEL_HEADERS_3_18
|
default "3.18.48" if BR2_KERNEL_HEADERS_3_18
|
||||||
default "3.19.8" if BR2_KERNEL_HEADERS_3_19
|
default "3.19.8" if BR2_KERNEL_HEADERS_3_19
|
||||||
default "4.0.9" if BR2_KERNEL_HEADERS_4_0
|
default "4.0.9" if BR2_KERNEL_HEADERS_4_0
|
||||||
default "4.1.38" if BR2_KERNEL_HEADERS_4_1
|
default "4.1.39" if BR2_KERNEL_HEADERS_4_1
|
||||||
default "4.4.52" if BR2_KERNEL_HEADERS_4_4
|
default "4.4.59" if BR2_KERNEL_HEADERS_4_4
|
||||||
default "4.8.17" if BR2_KERNEL_HEADERS_4_8
|
default "4.8.17" if BR2_KERNEL_HEADERS_4_8
|
||||||
default "4.9.13" if BR2_KERNEL_HEADERS_4_9
|
default "4.9.20" if BR2_KERNEL_HEADERS_4_9
|
||||||
default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
|
default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ config BR2_PACKAGE_LOGROTATE
|
|||||||
help
|
help
|
||||||
A simple program to rotate logs.
|
A simple program to rotate logs.
|
||||||
|
|
||||||
https://fedorahosted.org/logrotate/
|
https://github.com/logrotate/logrotate
|
||||||
|
|
||||||
comment "logrotate needs a toolchain w/ wchar"
|
comment "logrotate needs a toolchain w/ wchar"
|
||||||
depends on BR2_USE_MMU
|
depends on BR2_USE_MMU
|
||||||
|
|||||||
@@ -9,8 +9,16 @@ LTP_TESTSUITE_SOURCE = ltp-full-$(LTP_TESTSUITE_VERSION).tar.xz
|
|||||||
LTP_TESTSUITE_SITE = https://github.com/linux-test-project/ltp/releases/download/$(LTP_TESTSUITE_VERSION)
|
LTP_TESTSUITE_SITE = https://github.com/linux-test-project/ltp/releases/download/$(LTP_TESTSUITE_VERSION)
|
||||||
LTP_TESTSUITE_LICENSE = GPLv2, GPLv2+
|
LTP_TESTSUITE_LICENSE = GPLv2, GPLv2+
|
||||||
LTP_TESTSUITE_LICENSE_FILES = COPYING
|
LTP_TESTSUITE_LICENSE_FILES = COPYING
|
||||||
|
|
||||||
|
# Do not enable Open POSIX testsuite as it doesn't cross-compile
|
||||||
|
# properly: t0 program is built for the host machine. Notice that due
|
||||||
|
# to a bug, --without-open-posix-testsuite actually enables the test
|
||||||
|
# suite.
|
||||||
|
# See https://github.com/linux-test-project/ltp/issues/143 (invalid
|
||||||
|
# autoconf test) and
|
||||||
|
# https://github.com/linux-test-project/ltp/issues/144 (Open POSIX
|
||||||
|
# testsuite not cross-compiling).
|
||||||
LTP_TESTSUITE_CONF_OPTS += \
|
LTP_TESTSUITE_CONF_OPTS += \
|
||||||
--with-open-posix-testsuite \
|
|
||||||
--with-realtime-testsuite
|
--with-realtime-testsuite
|
||||||
|
|
||||||
ifeq ($(BR2_LINUX_KERNEL),y)
|
ifeq ($(BR2_LINUX_KERNEL),y)
|
||||||
|
|||||||
@@ -0,0 +1,130 @@
|
|||||||
|
From 42330adcefcd1830dad89e2a960c93d8dd1da125 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
|
||||||
|
Date: Tue, 21 Feb 2017 16:00:27 -0500
|
||||||
|
Subject: [PATCH] Validate the presence of dlmopen at configure time
|
||||||
|
|
||||||
|
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
|
||||||
|
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
|
||||||
|
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
|
||||||
|
[Backport from upstream commit 42330adcefcd1830dad89e2a960c93d8dd1da125.]
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
---
|
||||||
|
configure.ac | 8 ++++++++
|
||||||
|
liblttng-ust-dl/lttng-ust-dl.c | 8 ++++++++
|
||||||
|
liblttng-ust-dl/ust_dl.h | 2 ++
|
||||||
|
3 files changed, 18 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 450b43b..023cfd4 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -125,15 +125,23 @@ AS_IF([test "x${ax_cv_sys_weak_alias}" = "xno"], [
|
||||||
|
# Checks for libraries.
|
||||||
|
AC_CHECK_LIB([dl], [dlopen], [
|
||||||
|
have_libdl=yes
|
||||||
|
+ libdl_name=dl
|
||||||
|
], [
|
||||||
|
#libdl not found, check for dlopen in libc.
|
||||||
|
AC_CHECK_LIB([c], [dlopen], [
|
||||||
|
have_libc_dl=yes
|
||||||
|
+ libdl_name=c
|
||||||
|
], [
|
||||||
|
AC_MSG_ERROR([Cannot find dlopen in libdl nor libc. Use [LDFLAGS]=-Ldir to specify their location.])
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
+# Check if libdl has dlmopen support.
|
||||||
|
+AH_TEMPLATE([HAVE_DLMOPEN], ["Define to 1 if dlmopen is available."])
|
||||||
|
+AC_CHECK_LIB([$libdl_name], [dlmopen],
|
||||||
|
+ [AC_DEFINE([HAVE_DLMOPEN], [1])]
|
||||||
|
+)
|
||||||
|
+
|
||||||
|
AM_CONDITIONAL([LTTNG_UST_BUILD_WITH_LIBDL], [test "x$have_libdl" = "xyes"])
|
||||||
|
AM_CONDITIONAL([LTTNG_UST_BUILD_WITH_LIBC_DL], [test "x$have_libc_dl" = "xyes"])
|
||||||
|
|
||||||
|
diff --git a/liblttng-ust-dl/lttng-ust-dl.c b/liblttng-ust-dl/lttng-ust-dl.c
|
||||||
|
index b0737b6..ce2ae0e 100644
|
||||||
|
--- a/liblttng-ust-dl/lttng-ust-dl.c
|
||||||
|
+++ b/liblttng-ust-dl/lttng-ust-dl.c
|
||||||
|
@@ -38,8 +38,10 @@
|
||||||
|
#include "ust_dl.h"
|
||||||
|
|
||||||
|
static void *(*__lttng_ust_plibc_dlopen)(const char *filename, int flags);
|
||||||
|
+#ifdef HAVE_DLMOPEN
|
||||||
|
static void *(*__lttng_ust_plibc_dlmopen)(Lmid_t nsid, const char *filename,
|
||||||
|
int flags);
|
||||||
|
+#endif
|
||||||
|
static int (*__lttng_ust_plibc_dlclose)(void *handle);
|
||||||
|
|
||||||
|
static
|
||||||
|
@@ -55,6 +57,7 @@ void *_lttng_ust_dl_libc_dlopen(const char *filename, int flags)
|
||||||
|
return __lttng_ust_plibc_dlopen(filename, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
+#ifdef HAVE_DLMOPEN
|
||||||
|
static
|
||||||
|
void *_lttng_ust_dl_libc_dlmopen(Lmid_t nsid, const char *filename,
|
||||||
|
int flags)
|
||||||
|
@@ -68,6 +71,7 @@ void *_lttng_ust_dl_libc_dlmopen(Lmid_t nsid, const char *filename,
|
||||||
|
}
|
||||||
|
return __lttng_ust_plibc_dlmopen(nsid, filename, flags);
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
static
|
||||||
|
int _lttng_ust_dl_libc_dlclose(void *handle)
|
||||||
|
@@ -143,6 +147,7 @@ end:
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
+#ifdef HAVE_DLMOPEN
|
||||||
|
static
|
||||||
|
void lttng_ust_dl_dlmopen(void *so_base, Lmid_t nsid, const char *so_name,
|
||||||
|
int flags, void *ip)
|
||||||
|
@@ -203,6 +208,7 @@ end:
|
||||||
|
lttng_ust_elf_destroy(elf);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
void *dlopen(const char *filename, int flags)
|
||||||
|
{
|
||||||
|
@@ -223,6 +229,7 @@ void *dlopen(const char *filename, int flags)
|
||||||
|
return handle;
|
||||||
|
}
|
||||||
|
|
||||||
|
+#ifdef HAVE_DLMOPEN
|
||||||
|
void *dlmopen(Lmid_t nsid, const char *filename, int flags)
|
||||||
|
{
|
||||||
|
void *handle;
|
||||||
|
@@ -243,6 +250,7 @@ void *dlmopen(Lmid_t nsid, const char *filename, int flags)
|
||||||
|
return handle;
|
||||||
|
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
int dlclose(void *handle)
|
||||||
|
{
|
||||||
|
diff --git a/liblttng-ust-dl/ust_dl.h b/liblttng-ust-dl/ust_dl.h
|
||||||
|
index b8cfe82..afa8e84 100644
|
||||||
|
--- a/liblttng-ust-dl/ust_dl.h
|
||||||
|
+++ b/liblttng-ust-dl/ust_dl.h
|
||||||
|
@@ -51,6 +51,7 @@ TRACEPOINT_EVENT(lttng_ust_dl, dlopen,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
+#ifdef HAVE_DLMOPEN
|
||||||
|
TRACEPOINT_EVENT(lttng_ust_dl, dlmopen,
|
||||||
|
TP_ARGS(void *, ip, void *, baddr, Lmid_t, nsid,
|
||||||
|
const char *, path, int, flags,
|
||||||
|
@@ -66,6 +67,7 @@ TRACEPOINT_EVENT(lttng_ust_dl, dlmopen,
|
||||||
|
ctf_integer(uint8_t, has_debug_link, has_debug_link)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
TRACEPOINT_EVENT(lttng_ust_dl, build_id,
|
||||||
|
TP_ARGS(
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
From 0b2253f5c9af73904d49da32085036c16b9d2d75 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
|
||||||
|
Date: Tue, 21 Feb 2017 18:10:11 -0500
|
||||||
|
Subject: [PATCH] Fix: include config.h to resolve HAVE_DLMOPEN
|
||||||
|
|
||||||
|
Fixes commit 42330adcefcd1830dad89e2a960c93d8dd1da125
|
||||||
|
|
||||||
|
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
|
||||||
|
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
|
||||||
|
[Backported from upstream commit 0b2253f5c9af73904d49da32085036c16b9d2d75.]
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
---
|
||||||
|
liblttng-ust-dl/ust_dl.h | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/liblttng-ust-dl/ust_dl.h b/liblttng-ust-dl/ust_dl.h
|
||||||
|
index afa8e84..c8a0695 100644
|
||||||
|
--- a/liblttng-ust-dl/ust_dl.h
|
||||||
|
+++ b/liblttng-ust-dl/ust_dl.h
|
||||||
|
@@ -33,6 +33,7 @@ extern "C" {
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
+#include <config.h>
|
||||||
|
|
||||||
|
#define LTTNG_UST_DL_PROVIDER
|
||||||
|
#include <lttng/tracepoint.h>
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
||||||
@@ -13,6 +13,7 @@ LTTNG_LIBUST_INSTALL_STAGING = YES
|
|||||||
LTTNG_LIBUST_DEPENDENCIES = liburcu util-linux
|
LTTNG_LIBUST_DEPENDENCIES = liburcu util-linux
|
||||||
LTTNG_LIBUST_CONF_OPTS += --disable-man-pages
|
LTTNG_LIBUST_CONF_OPTS += --disable-man-pages
|
||||||
# 0002-doc-examples-Makefile.am-define-C-and-C-compilers-fo.patch
|
# 0002-doc-examples-Makefile.am-define-C-and-C-compilers-fo.patch
|
||||||
|
# 0003-Validate-the-presence-of-dlmopen-at-configure-time.patch
|
||||||
LTTNG_LIBUST_AUTORECONF = YES
|
LTTNG_LIBUST_AUTORECONF = YES
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
||||||
|
|||||||
@@ -1,5 +1,2 @@
|
|||||||
# From https://downloads.mariadb.org/mariadb/10.1.21/
|
# From https://downloads.mariadb.org/mariadb/10.1.22/
|
||||||
sha1 f9ccaa9881b98eeef68f4dbcf5ab9653c903819f mariadb-10.1.21.tar.gz
|
sha256 bcb0572e7ad32cea9740a21e9255f733bdf60a5561ffbda317c22dd12b3966ce mariadb-10.1.22.tar.gz
|
||||||
|
|
||||||
# Locally computed
|
|
||||||
sha256 5a816355781ea22a6c65a436d8162f19bd292ec90e2b7d9499c031ae4a659490 mariadb-10.1.21.tar.gz
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
MARIADB_VERSION = 10.1.21
|
MARIADB_VERSION = 10.1.22
|
||||||
MARIADB_SITE = https://downloads.mariadb.org/interstitial/mariadb-$(MARIADB_VERSION)/source
|
MARIADB_SITE = https://downloads.mariadb.org/interstitial/mariadb-$(MARIADB_VERSION)/source
|
||||||
MARIADB_LICENSE = GPLv2 (server), GPLv2 with FLOSS exception (GPL client library), LGPLv2 (LGPL client library)
|
MARIADB_LICENSE = GPLv2 (server), GPLv2 with FLOSS exception (GPL client library), LGPLv2 (LGPL client library)
|
||||||
MARIADB_LICENSE_FILES = README COPYING COPYING.LESSER
|
MARIADB_LICENSE_FILES = README COPYING COPYING.LESSER
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# From https://tls.mbed.org/tech-updates/releases/mbedtls-2.3.0-2.1.5-and-1.3.17-released
|
# From https://tls.mbed.org/tech-updates/releases/mbedtls-2.4.2-2.1.7-and-1.3.19-released
|
||||||
sha256 c1c3559ed39f7a1b1550c4cf4ccb918bf239301a3311d98dda92bed8a25b7f0d mbedtls-2.4.0-apache.tgz
|
sha256 17dd98af7478aadacc480c7e4159e447353b5b2037c1b6d48ed4fd157fb1b018 mbedtls-2.4.2-apache.tgz
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
MBEDTLS_SITE = https://tls.mbed.org/code/releases
|
MBEDTLS_SITE = https://tls.mbed.org/code/releases
|
||||||
MBEDTLS_VERSION = 2.4.0
|
MBEDTLS_VERSION = 2.4.2
|
||||||
MBEDTLS_SOURCE = mbedtls-$(MBEDTLS_VERSION)-apache.tgz
|
MBEDTLS_SOURCE = mbedtls-$(MBEDTLS_VERSION)-apache.tgz
|
||||||
MBEDTLS_CONF_OPTS = \
|
MBEDTLS_CONF_OPTS = \
|
||||||
-DENABLE_PROGRAMS=$(if $(BR2_PACKAGE_MBEDTLS_PROGRAMS),ON,OFF) \
|
-DENABLE_PROGRAMS=$(if $(BR2_PACKAGE_MBEDTLS_PROGRAMS),ON,OFF) \
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# From http://www.memcached.org/files/memcached-1.4.34.tar.gz.sha1
|
# From http://www.memcached.org/files/memcached-1.4.36.tar.gz.sha1
|
||||||
sha1 7c7214f5183c6e20c22b243e21ed1ffddb91497e memcached-1.4.34.tar.gz
|
sha1 519b417515206b0b95ff9bf14106a891f6a2252e memcached-1.4.36.tar.gz
|
||||||
# Calculated based on the hash above
|
# Calculated based on the hash above
|
||||||
sha256 5064c87f91a37d822dfeab8768490c55fe686a742f07f67c7121101e48d87c79 memcached-1.4.34.tar.gz
|
sha256 773b6bb20bf80223ca6a15d75f570fbab346ad11ec98595e5af5e33f54bd82d8 memcached-1.4.36.tar.gz
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
MEMCACHED_VERSION = 1.4.34
|
MEMCACHED_VERSION = 1.4.36
|
||||||
MEMCACHED_SITE = http://www.memcached.org/files
|
MEMCACHED_SITE = http://www.memcached.org/files
|
||||||
MEMCACHED_DEPENDENCIES = libevent
|
MEMCACHED_DEPENDENCIES = libevent
|
||||||
MEMCACHED_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
|
MEMCACHED_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
|
||||||
|
|||||||
@@ -177,6 +177,13 @@ else
|
|||||||
MESA3D_CONF_OPTS += --disable-gles1 --disable-gles2
|
MESA3D_CONF_OPTS += --disable-gles1 --disable-gles2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LM_SENSORS),y)
|
||||||
|
MESA3D_CONF_OPTS += --enable-lmsensors
|
||||||
|
MESA3D_DEPENDENCIES += lm-sensors
|
||||||
|
else
|
||||||
|
MESA3D_CONF_OPTS += --disable-lmsensors
|
||||||
|
endif
|
||||||
|
|
||||||
# Avoid automatic search of llvm-config
|
# Avoid automatic search of llvm-config
|
||||||
MESA3D_CONF_OPTS += --with-llvm-prefix=$(STAGING_DIR)/usr/bin
|
MESA3D_CONF_OPTS += --with-llvm-prefix=$(STAGING_DIR)/usr/bin
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ menuconfig BR2_PACKAGE_MPD
|
|||||||
# 0.19.x could be built with GCC 4.6, but for simplicity we require
|
# 0.19.x could be built with GCC 4.6, but for simplicity we require
|
||||||
# the same toolchain dependencies for all versions.
|
# the same toolchain dependencies for all versions.
|
||||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14
|
||||||
|
# ARC toolchain issue
|
||||||
|
depends on !BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC
|
||||||
select BR2_PACKAGE_BOOST
|
select BR2_PACKAGE_BOOST
|
||||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||||
select BR2_PACKAGE_MPD_TREMOR if !(BR2_PACKAGE_MPD_MAD || BR2_PACKAGE_MPD_MPG123 || BR2_PACKAGE_MPD_VORBIS || BR2_PACKAGE_MPD_WAVPACK || BR2_PACKAGE_MPD_FLAC || BR2_PACKAGE_MPD_MUSEPACK || BR2_PACKAGE_MPD_FFMPEG)
|
select BR2_PACKAGE_MPD_TREMOR if !(BR2_PACKAGE_MPD_MAD || BR2_PACKAGE_MPD_MPG123 || BR2_PACKAGE_MPD_VORBIS || BR2_PACKAGE_MPD_WAVPACK || BR2_PACKAGE_MPD_FLAC || BR2_PACKAGE_MPD_MUSEPACK || BR2_PACKAGE_MPD_FFMPEG)
|
||||||
@@ -339,3 +341,4 @@ comment "mpd needs a toolchain w/ C++, threads, wchar, gcc >= 4.9"
|
|||||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
|
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
|
||||||
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||||
|
depends on !BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC
|
||||||
|
|||||||
@@ -224,6 +224,12 @@ else
|
|||||||
MPLAYER_CONF_OPTS += --disable-gif
|
MPLAYER_CONF_OPTS += --disable-gif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# We intentionally don't pass --enable-pulse, to let the
|
||||||
|
# autodetection find which library to link with.
|
||||||
|
ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
|
||||||
|
MPLAYER_DEPENDENCIES += pulseaudio
|
||||||
|
endif
|
||||||
|
|
||||||
# We intentionally don't pass --enable-librtmp to let autodetection
|
# We intentionally don't pass --enable-librtmp to let autodetection
|
||||||
# find which library to link with.
|
# find which library to link with.
|
||||||
ifeq ($(BR2_PACKAGE_RTMPDUMP),y)
|
ifeq ($(BR2_PACKAGE_RTMPDUMP),y)
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ NBD_CONF_ENV = ac_cv_header_linux_falloc_h=no
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(BR2_NBD_CLIENT),y)
|
ifneq ($(BR2_NBD_CLIENT),y)
|
||||||
NBD_TOREMOVE += nbd-client
|
NBD_TOREMOVE += /usr/sbin/nbd-client
|
||||||
endif
|
endif
|
||||||
ifneq ($(BR2_NBD_SERVER),y)
|
ifneq ($(BR2_NBD_SERVER),y)
|
||||||
NBD_TOREMOVE += nbd-server
|
NBD_TOREMOVE += /usr/bin/nbd-server
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define NBD_CLEANUP_AFTER_INSTALL
|
define NBD_CLEANUP_AFTER_INSTALL
|
||||||
rm -f $(addprefix $(TARGET_DIR)/usr/sbin/, $(NBD_TOREMOVE))
|
rm -f $(addprefix $(TARGET_DIR), $(NBD_TOREMOVE))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
NBD_POST_INSTALL_TARGET_HOOKS += NBD_CLEANUP_AFTER_INSTALL
|
NBD_POST_INSTALL_TARGET_HOOKS += NBD_CLEANUP_AFTER_INSTALL
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ NCFTP_LICENSE = Clarified Artistic License
|
|||||||
NCFTP_LICENSE_FILES = doc/LICENSE.txt
|
NCFTP_LICENSE_FILES = doc/LICENSE.txt
|
||||||
|
|
||||||
NCFTP_DEPENDENCIES = host-autoconf
|
NCFTP_DEPENDENCIES = host-autoconf
|
||||||
|
NCFTP_CONF_OPTS = --disable-ccdv
|
||||||
|
|
||||||
# The bundled configure script is generated by autoconf 2.13 and doesn't
|
# The bundled configure script is generated by autoconf 2.13 and doesn't
|
||||||
# detect cross-compilation correctly. Therefore, we have to regenerate it.
|
# detect cross-compilation correctly. Therefore, we have to regenerate it.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# From http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p9.tar.gz.md5
|
# From https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p10.tar.gz.md5
|
||||||
md5 857452b05f5f2e033786f77ade1974ed ntp-4.2.8p9.tar.gz
|
md5 745384ed0dedb3f66b33fe84d66466f9 ntp-4.2.8p10.tar.gz
|
||||||
# Calculated based on the hash above
|
# Calculated based on the hash above
|
||||||
sha256 b724287778e1bac625b447327c9851eedef020517a3545625e9f652a90f30b72 ntp-4.2.8p9.tar.gz
|
sha256 ddd2366e64219b9efa0f7438e06800d0db394ac5c88e13c17b70d0dcdf99b99f ntp-4.2.8p10.tar.gz
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
NTP_VERSION_MAJOR = 4.2
|
NTP_VERSION_MAJOR = 4.2
|
||||||
NTP_VERSION = $(NTP_VERSION_MAJOR).8p9
|
NTP_VERSION = $(NTP_VERSION_MAJOR).8p10
|
||||||
NTP_SITE = http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$(NTP_VERSION_MAJOR)
|
NTP_SITE = https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$(NTP_VERSION_MAJOR)
|
||||||
NTP_DEPENDENCIES = host-pkgconf libevent openssl $(if $(BR2_PACKAGE_BUSYBOX),busybox)
|
NTP_DEPENDENCIES = host-pkgconf libevent openssl $(if $(BR2_PACKAGE_BUSYBOX),busybox)
|
||||||
NTP_LICENSE = ntp license
|
NTP_LICENSE = ntp license
|
||||||
NTP_LICENSE_FILES = COPYRIGHT
|
NTP_LICENSE_FILES = COPYRIGHT
|
||||||
@@ -23,6 +23,12 @@ NTP_CONF_OPTS = \
|
|||||||
# 0002-ntp-syscalls-fallback.patch
|
# 0002-ntp-syscalls-fallback.patch
|
||||||
NTP_AUTORECONF = YES
|
NTP_AUTORECONF = YES
|
||||||
|
|
||||||
|
ifeq ($(BR2_TOOLCHAIN_HAS_SSP),y)
|
||||||
|
NTP_CONF_OPTS += --with-locfile=linux
|
||||||
|
else
|
||||||
|
NTP_CONF_OPTS += --with-locfile=default
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
||||||
NTP_CONF_OPTS += --enable-linuxcaps
|
NTP_CONF_OPTS += --enable-linuxcaps
|
||||||
NTP_DEPENDENCIES += libcap
|
NTP_DEPENDENCIES += libcap
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
# Locally calculated after checking pgp signature
|
# From http://www.openssh.com/txt/release-7.5 (base64 encoded)
|
||||||
# Also from http://www.openssh.com/txt/release-7.4
|
sha256 9846e3c5fab9f0547400b4d2c017992f914222b3fd1f8eee6c7dc6bc5e59f9f0 openssh-7.5p1.tar.gz
|
||||||
sha256 1b1fc4a14e2024293181924ed24872e6f2e06293f3e8926a376b8aec481f19d1 openssh-7.4p1.tar.gz
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
OPENSSH_VERSION = 7.4p1
|
OPENSSH_VERSION = 7.5p1
|
||||||
OPENSSH_SITE = http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable
|
OPENSSH_SITE = http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable
|
||||||
OPENSSH_LICENSE = BSD-3c, BSD-2c, Public Domain
|
OPENSSH_LICENSE = BSD-3c, BSD-2c, Public Domain
|
||||||
OPENSSH_LICENSE_FILES = LICENCE
|
OPENSSH_LICENSE_FILES = LICENCE
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ define OPENTYRIAN_BUILD_CMDS
|
|||||||
CC="$(TARGET_CC)" \
|
CC="$(TARGET_CC)" \
|
||||||
STRIP="/bin/true" \
|
STRIP="/bin/true" \
|
||||||
SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config" \
|
SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config" \
|
||||||
LDFLAGS="-lm" \
|
LDFLAGS="$(TARGET_LDFLAGS) -lm" \
|
||||||
WITH_NETWORK="$(OPENTYRIAN_NETWORK)" \
|
WITH_NETWORK="$(OPENTYRIAN_NETWORK)" \
|
||||||
-C $(@D) release
|
-C $(@D) release
|
||||||
endef
|
endef
|
||||||
|
|||||||
21
package/pcre/0003-CVE-2017-6004.patch
Normal file
21
package/pcre/0003-CVE-2017-6004.patch
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
Description: CVE-2017-6004: crafted regular expression may cause denial of service
|
||||||
|
Origin: upstream, https://vcs.pcre.org/pcre/code/trunk/pcre_jit_compile.c?r1=1676&r2=1680&view=patch
|
||||||
|
Bug: https://bugs.exim.org/show_bug.cgi?id=2035
|
||||||
|
Bug-Debian: https://bugs.debian.org/855405
|
||||||
|
Forwarded: not-needed
|
||||||
|
Author: Salvatore Bonaccorso <carnil@debian.org>
|
||||||
|
Last-Update: 2017-02-17
|
||||||
|
|
||||||
|
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||||
|
|
||||||
|
--- a/pcre_jit_compile.c
|
||||||
|
+++ b/pcre_jit_compile.c
|
||||||
|
@@ -8111,7 +8111,7 @@ if (opcode == OP_COND || opcode == OP_SC
|
||||||
|
|
||||||
|
if (*matchingpath == OP_FAIL)
|
||||||
|
stacksize = 0;
|
||||||
|
- if (*matchingpath == OP_RREF)
|
||||||
|
+ else if (*matchingpath == OP_RREF)
|
||||||
|
{
|
||||||
|
stacksize = GET2(matchingpath, 1);
|
||||||
|
if (common->currententry == NULL)
|
||||||
60
package/pcre/0004-CVE-2017-7186.patch
Normal file
60
package/pcre/0004-CVE-2017-7186.patch
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
Description: Upstream fix for CVE-2017-7186 (Upstream rev 1688)
|
||||||
|
Fix Unicode property crash for 32-bit characters greater than 0x10ffff.
|
||||||
|
Author: Matthew Vernon <matthew@debian.org>
|
||||||
|
X-Dgit-Generated: 2:8.39-3 c4c2c7c4f74d53b263af2471d8e11db88096bd13
|
||||||
|
|
||||||
|
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||||
|
---
|
||||||
|
|
||||||
|
--- pcre3-8.39.orig/pcre_internal.h
|
||||||
|
+++ pcre3-8.39/pcre_internal.h
|
||||||
|
@@ -2772,6 +2772,9 @@ extern const pcre_uint8 PRIV(ucd_stage1
|
||||||
|
extern const pcre_uint16 PRIV(ucd_stage2)[];
|
||||||
|
extern const pcre_uint32 PRIV(ucp_gentype)[];
|
||||||
|
extern const pcre_uint32 PRIV(ucp_gbtable)[];
|
||||||
|
+#ifdef COMPILE_PCRE32
|
||||||
|
+extern const ucd_record PRIV(dummy_ucd_record)[];
|
||||||
|
+#endif
|
||||||
|
#ifdef SUPPORT_JIT
|
||||||
|
extern const int PRIV(ucp_typerange)[];
|
||||||
|
#endif
|
||||||
|
@@ -2780,9 +2783,15 @@ extern const int PRIV(ucp_typera
|
||||||
|
/* UCD access macros */
|
||||||
|
|
||||||
|
#define UCD_BLOCK_SIZE 128
|
||||||
|
-#define GET_UCD(ch) (PRIV(ucd_records) + \
|
||||||
|
+#define REAL_GET_UCD(ch) (PRIV(ucd_records) + \
|
||||||
|
PRIV(ucd_stage2)[PRIV(ucd_stage1)[(int)(ch) / UCD_BLOCK_SIZE] * \
|
||||||
|
UCD_BLOCK_SIZE + (int)(ch) % UCD_BLOCK_SIZE])
|
||||||
|
+
|
||||||
|
+#ifdef COMPILE_PCRE32
|
||||||
|
+#define GET_UCD(ch) ((ch > 0x10ffff)? PRIV(dummy_ucd_record) : REAL_GET_UCD(ch))
|
||||||
|
+#else
|
||||||
|
+#define GET_UCD(ch) REAL_GET_UCD(ch)
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#define UCD_CHARTYPE(ch) GET_UCD(ch)->chartype
|
||||||
|
#define UCD_SCRIPT(ch) GET_UCD(ch)->script
|
||||||
|
--- pcre3-8.39.orig/pcre_ucd.c
|
||||||
|
+++ pcre3-8.39/pcre_ucd.c
|
||||||
|
@@ -38,6 +38,20 @@ const pcre_uint16 PRIV(ucd_stage2)[] = {
|
||||||
|
const pcre_uint32 PRIV(ucd_caseless_sets)[] = {0};
|
||||||
|
#else
|
||||||
|
|
||||||
|
+/* If the 32-bit library is run in non-32-bit mode, character values
|
||||||
|
+greater than 0x10ffff may be encountered. For these we set up a
|
||||||
|
+special record. */
|
||||||
|
+
|
||||||
|
+#ifdef COMPILE_PCRE32
|
||||||
|
+const ucd_record PRIV(dummy_ucd_record)[] = {{
|
||||||
|
+ ucp_Common, /* script */
|
||||||
|
+ ucp_Cn, /* type unassigned */
|
||||||
|
+ ucp_gbOther, /* grapheme break property */
|
||||||
|
+ 0, /* case set */
|
||||||
|
+ 0, /* other case */
|
||||||
|
+ }};
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
/* When recompiling tables with a new Unicode version, please check the
|
||||||
|
types in this structure definition from pcre_internal.h (the actual
|
||||||
|
field names will be different):
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
PCRE_VERSION = 8.40
|
PCRE_VERSION = 8.40
|
||||||
PCRE_SITE = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre
|
PCRE_SITE = https://ftp.pcre.org/pub/pcre
|
||||||
PCRE_SOURCE = pcre-$(PCRE_VERSION).tar.bz2
|
PCRE_SOURCE = pcre-$(PCRE_VERSION).tar.bz2
|
||||||
PCRE_LICENSE = BSD-3c
|
PCRE_LICENSE = BSD-3c
|
||||||
PCRE_LICENSE_FILES = LICENCE
|
PCRE_LICENSE_FILES = LICENCE
|
||||||
|
|||||||
@@ -12,6 +12,11 @@ PERL_GD_LICENSE = Artistic or GPLv1+
|
|||||||
PERL_GD_LICENSE_FILES = LICENSE
|
PERL_GD_LICENSE_FILES = LICENSE
|
||||||
PERL_GD_PREFER_INSTALLER = EUMM
|
PERL_GD_PREFER_INSTALLER = EUMM
|
||||||
|
|
||||||
|
define PERL_GD_MOVE_XS
|
||||||
|
mv $(@D)/lib/GD.xs $(@D)/GD.xs
|
||||||
|
endef
|
||||||
|
PERL_GD_POST_PATCH_HOOKS += PERL_GD_MOVE_XS
|
||||||
|
|
||||||
PERL_GD_CONF_OPTS = \
|
PERL_GD_CONF_OPTS = \
|
||||||
-options=FT,PNG \
|
-options=FT,PNG \
|
||||||
-lib_gd_path=$(STAGING_DIR)/usr \
|
-lib_gd_path=$(STAGING_DIR)/usr \
|
||||||
|
|||||||
@@ -60,6 +60,10 @@ HOST_PYTHON_DEPENDENCIES = host-expat host-zlib
|
|||||||
|
|
||||||
PYTHON_INSTALL_STAGING = YES
|
PYTHON_INSTALL_STAGING = YES
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_GETTEXT),y)
|
||||||
|
PYTHON_DEPENDENCIES += gettext
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_PYTHON_READLINE),y)
|
ifeq ($(BR2_PACKAGE_PYTHON_READLINE),y)
|
||||||
PYTHON_DEPENDENCIES += readline
|
PYTHON_DEPENDENCIES += readline
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -0,0 +1,65 @@
|
|||||||
|
From c5d7425f8ad391112758db161e3e08f18dc9d299 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Marc Mutz <marc.mutz@kdab.com>
|
||||||
|
Date: Thu, 26 May 2016 08:30:26 +0200
|
||||||
|
Subject: [PATCH] QAtomic: pass explicit failure mode to
|
||||||
|
std::atomic::compare_exchange_strong
|
||||||
|
|
||||||
|
... in an attempt to avoid GCC 4.8 errors such as
|
||||||
|
|
||||||
|
bits/atomic_base.h:577:70: error: failure memory model cannot be stronger than success memory model for '__atomic_compare_exchange'
|
||||||
|
return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, __m1, __m2);
|
||||||
|
^
|
||||||
|
|
||||||
|
as seen on Android.
|
||||||
|
|
||||||
|
Change-Id: If046e735888cf331d2d6506d8d5ca9aa7402f9ad
|
||||||
|
[Bug report: https://bugreports.qt.io/browse/QTBUG-59399
|
||||||
|
Patch sent upstream: https://codereview.qt-project.org/#/c/187980/]
|
||||||
|
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.org>
|
||||||
|
---
|
||||||
|
src/corelib/arch/qatomic_cxx11.h | 8 ++++----
|
||||||
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/corelib/arch/qatomic_cxx11.h b/src/corelib/arch/qatomic_cxx11.h
|
||||||
|
index bb49aae..d6731ec 100644
|
||||||
|
--- a/src/corelib/arch/qatomic_cxx11.h
|
||||||
|
+++ b/src/corelib/arch/qatomic_cxx11.h
|
||||||
|
@@ -153,7 +153,7 @@ template <typename X> struct QAtomicOps
|
||||||
|
template <typename T>
|
||||||
|
static bool testAndSetRelaxed(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = Q_NULLPTR) Q_DECL_NOTHROW
|
||||||
|
{
|
||||||
|
- bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_relaxed);
|
||||||
|
+ bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_relaxed, std::memory_order_relaxed);
|
||||||
|
if (currentValue)
|
||||||
|
*currentValue = expectedValue;
|
||||||
|
return tmp;
|
||||||
|
@@ -162,7 +162,7 @@ template <typename X> struct QAtomicOps
|
||||||
|
template <typename T>
|
||||||
|
static bool testAndSetAcquire(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = Q_NULLPTR) Q_DECL_NOTHROW
|
||||||
|
{
|
||||||
|
- bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_acquire);
|
||||||
|
+ bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_acquire, std::memory_order_acquire);
|
||||||
|
if (currentValue)
|
||||||
|
*currentValue = expectedValue;
|
||||||
|
return tmp;
|
||||||
|
@@ -171,7 +171,7 @@ template <typename X> struct QAtomicOps
|
||||||
|
template <typename T>
|
||||||
|
static bool testAndSetRelease(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = Q_NULLPTR) Q_DECL_NOTHROW
|
||||||
|
{
|
||||||
|
- bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_release);
|
||||||
|
+ bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_release, std::memory_order_relaxed);
|
||||||
|
if (currentValue)
|
||||||
|
*currentValue = expectedValue;
|
||||||
|
return tmp;
|
||||||
|
@@ -180,7 +180,7 @@ template <typename X> struct QAtomicOps
|
||||||
|
template <typename T>
|
||||||
|
static bool testAndSetOrdered(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = Q_NULLPTR) Q_DECL_NOTHROW
|
||||||
|
{
|
||||||
|
- bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_acq_rel);
|
||||||
|
+ bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_acq_rel, std::memory_order_acquire);
|
||||||
|
if (currentValue)
|
||||||
|
*currentValue = expectedValue;
|
||||||
|
return tmp;
|
||||||
|
--
|
||||||
|
1.7.10.4
|
||||||
|
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
From 8902f4d7b7c532592d1a34ad117698d3e380e9e1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Seiderer <ps.report@gmx.net>
|
||||||
|
Date: Fri, 10 Mar 2017 22:23:06 +0100
|
||||||
|
Subject: [PATCH] eglfs: fix x11 header related compile failure
|
||||||
|
|
||||||
|
Add egl config and QT_EGL_NO_X11 define (as all other eglfs project
|
||||||
|
files do).
|
||||||
|
|
||||||
|
Task-number: QTBUG-59427
|
||||||
|
Change-Id: Ifbb11eae0fdf0e58c0b7feecb9a7914a889c8f77
|
||||||
|
|
||||||
|
Upstream: https://codereview.qt-project.org/188158
|
||||||
|
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||||
|
---
|
||||||
|
src/plugins/platforms/eglfs/eglfs-plugin.pro | 5 +++++
|
||||||
|
1 file changed, 5 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/plugins/platforms/eglfs/eglfs-plugin.pro b/src/plugins/platforms/eglfs/eglfs-plugin.pro
|
||||||
|
index cf4863975a..ec229796e5 100644
|
||||||
|
--- a/src/plugins/platforms/eglfs/eglfs-plugin.pro
|
||||||
|
+++ b/src/plugins/platforms/eglfs/eglfs-plugin.pro
|
||||||
|
@@ -2,6 +2,11 @@ TARGET = qeglfs
|
||||||
|
|
||||||
|
QT += eglfsdeviceintegration-private
|
||||||
|
|
||||||
|
+CONFIG += egl
|
||||||
|
+
|
||||||
|
+# Avoid X11 header collision, use generic EGL native types
|
||||||
|
+DEFINES += QT_EGL_NO_X11
|
||||||
|
+
|
||||||
|
SOURCES += $$PWD/qeglfsmain.cpp
|
||||||
|
|
||||||
|
OTHER_FILES += $$PWD/eglfs.json
|
||||||
|
--
|
||||||
|
2.11.0
|
||||||
|
|
||||||
@@ -200,6 +200,9 @@ QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_XML) += Qt5Xml
|
|||||||
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_OPENGL_LIB) += Qt5OpenGL
|
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_OPENGL_LIB) += Qt5OpenGL
|
||||||
ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
|
ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
|
||||||
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglFSDeviceIntegration
|
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglFSDeviceIntegration
|
||||||
|
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
|
||||||
|
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglFsKmsSupport
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglDeviceIntegration
|
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglDeviceIntegration
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
From a5a4e361c8116ca9228a896f672102c02be56bb7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||||
|
Date: Tue, 7 Mar 2017 22:01:39 +0100
|
||||||
|
Subject: [PATCH] host-apps/dtoverlay: don't install script in random location
|
||||||
|
|
||||||
|
Currently, we add a custom command that installs the dtoverlay pre/post
|
||||||
|
scripts in ${CMAKE_BINARY_DIR}/../../bin
|
||||||
|
|
||||||
|
However:
|
||||||
|
|
||||||
|
- this points outside of the package directory.; it even points two
|
||||||
|
directories higher;
|
||||||
|
|
||||||
|
- when doing cross-compilation, this is definitely not the place where
|
||||||
|
the /bin directory really is;
|
||||||
|
|
||||||
|
- the scripts are already properly installed without this code.
|
||||||
|
|
||||||
|
Remove that code, it serves no purpose and breaks for cross-compilation.
|
||||||
|
|
||||||
|
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||||
|
---
|
||||||
|
host_applications/linux/apps/dtoverlay/CMakeLists.txt | 8 --------
|
||||||
|
1 file changed, 8 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/host_applications/linux/apps/dtoverlay/CMakeLists.txt b/host_applications/linux/apps/dtoverlay/CMakeLists.txt
|
||||||
|
index 9009200..dd48d83 100755
|
||||||
|
--- a/host_applications/linux/apps/dtoverlay/CMakeLists.txt
|
||||||
|
+++ b/host_applications/linux/apps/dtoverlay/CMakeLists.txt
|
||||||
|
@@ -22,12 +22,4 @@ add_custom_command(TARGET dtoverlay POST_BUILD COMMAND ln;-sf;dtoverlay;dtparam)
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/dtparam DESTINATION bin)
|
||||||
|
|
||||||
|
set(DTOVERLAY_SCRIPTS dtoverlay-pre dtoverlay-post)
|
||||||
|
-foreach(_script ${DTOVERLAY_SCRIPTS})
|
||||||
|
- add_custom_command(
|
||||||
|
- TARGET dtoverlay
|
||||||
|
- COMMAND ${CMAKE_COMMAND}
|
||||||
|
- -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${_script}
|
||||||
|
- ${CMAKE_BINARY_DIR}/../../bin/${_script}
|
||||||
|
- )
|
||||||
|
-endforeach()
|
||||||
|
install(PROGRAMS ${DTOVERLAY_SCRIPTS} DESTINATION bin)
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
# From http://rpm.org/wiki/Releases/4.13.0
|
# From http://rpm.org/wiki/Releases/4.13.0.1
|
||||||
sha1 c6ce4f879ca6a75340921093105e5ef9d33381d3 rpm-4.13.0.tar.bz2
|
sha1 9566f95f38fcb214e439c552f378c2f64ba0aff9 rpm-4.13.0.1.tar.bz2
|
||||||
# Locally computed
|
# Locally computed
|
||||||
sha256 a3e5568d721737a24141737e6036bb39ba9dfbeaa03fa4a51cc7881a243e0c5d b5f1895aae096836d6e8e155ee289e1b10fcabcb.patch
|
sha256 a3e5568d721737a24141737e6036bb39ba9dfbeaa03fa4a51cc7881a243e0c5d b5f1895aae096836d6e8e155ee289e1b10fcabcb.patch
|
||||||
sha256 7ab0e08e143bb2d43d5b0553ee22ea34da15a611c597860a6110745467d20fa8 c810a0aca3f1148d2072d44b91b8cc9caeb4cf19.patch
|
sha256 7ab0e08e143bb2d43d5b0553ee22ea34da15a611c597860a6110745467d20fa8 c810a0aca3f1148d2072d44b91b8cc9caeb4cf19.patch
|
||||||
|
|||||||
@@ -4,9 +4,10 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
RPM_VERSION = 4.13.0
|
RPM_VERSION_MAJOR = 4.13
|
||||||
|
RPM_VERSION = $(RPM_VERSION_MAJOR).0.1
|
||||||
RPM_SOURCE = rpm-$(RPM_VERSION).tar.bz2
|
RPM_SOURCE = rpm-$(RPM_VERSION).tar.bz2
|
||||||
RPM_SITE = https://github.com/rpm-software-management/rpm/releases/download/rpm-$(RPM_VERSION)-release
|
RPM_SITE = http://ftp.rpm.org/releases/rpm-$(RPM_VERSION_MAJOR).x
|
||||||
RPM_DEPENDENCIES = host-pkgconf berkeleydb file popt zlib
|
RPM_DEPENDENCIES = host-pkgconf berkeleydb file popt zlib
|
||||||
RPM_LICENSE = GPLv2 or LGPLv2 (library only)
|
RPM_LICENSE = GPLv2 or LGPLv2 (library only)
|
||||||
RPM_LICENSE_FILES = COPYING
|
RPM_LICENSE_FILES = COPYING
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# Locally calculated
|
# Locally calculated
|
||||||
sha256 bff02762b3e4ee030f02266c6e24a0b888248b387246219b7fbe3e1758ef2184 samba-4.5.5.tar.gz
|
sha256 ac70f09af80639d8189e1b9bc0a554841ee44df2b1ef58e7e682ad5400fd9400 samba-4.5.7.tar.gz
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
SAMBA4_VERSION = 4.5.5
|
SAMBA4_VERSION = 4.5.7
|
||||||
SAMBA4_SITE = https://download.samba.org/pub/samba/stable
|
SAMBA4_SITE = https://download.samba.org/pub/samba/stable
|
||||||
SAMBA4_SOURCE = samba-$(SAMBA4_VERSION).tar.gz
|
SAMBA4_SOURCE = samba-$(SAMBA4_VERSION).tar.gz
|
||||||
SAMBA4_INSTALL_STAGING = YES
|
SAMBA4_INSTALL_STAGING = YES
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
From 1e6f0b094c6ce6454be572704b866d2ce0962e59 Mon Sep 17 00:00:00 2001
|
From 6754b208e7ec3bd1d4265db18fa4c0e7961a77bf Mon Sep 17 00:00:00 2001
|
||||||
From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
||||||
Date: Sun, 4 Dec 2016 19:10:40 +0100
|
Date: Mon, 20 Mar 2017 20:05:00 +0100
|
||||||
Subject: [PATCH] No runtime tests for endianness
|
Subject: [PATCH] No runtime tests for endianness
|
||||||
|
|
||||||
Replace build and execution of runtime test programs for determining
|
Replace build and execution of runtime test programs for determining
|
||||||
@@ -12,8 +12,8 @@ Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
|||||||
---
|
---
|
||||||
configure | 15 +++++++++++----
|
configure | 15 +++++++++++----
|
||||||
src/sysdeps/trybigendian.c | 16 ++++++++++++++++
|
src/sysdeps/trybigendian.c | 16 ++++++++++++++++
|
||||||
src/sysdeps/trylittleendian.c | 16 ++++++++++++++++
|
src/sysdeps/trylittleendian.c | 19 +++++++++++++++++++
|
||||||
3 files changed, 43 insertions(+), 4 deletions(-)
|
3 files changed, 46 insertions(+), 4 deletions(-)
|
||||||
create mode 100644 src/sysdeps/trybigendian.c
|
create mode 100644 src/sysdeps/trybigendian.c
|
||||||
create mode 100644 src/sysdeps/trylittleendian.c
|
create mode 100644 src/sysdeps/trylittleendian.c
|
||||||
|
|
||||||
@@ -70,16 +70,19 @@ index 0000000..d857572
|
|||||||
+}
|
+}
|
||||||
diff --git a/src/sysdeps/trylittleendian.c b/src/sysdeps/trylittleendian.c
|
diff --git a/src/sysdeps/trylittleendian.c b/src/sysdeps/trylittleendian.c
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..eba065a
|
index 0000000..68b93c1
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/sysdeps/trylittleendian.c
|
+++ b/src/sysdeps/trylittleendian.c
|
||||||
@@ -0,0 +1,16 @@
|
@@ -0,0 +1,19 @@
|
||||||
+#if defined(__BYTE_ORDER) && (__BYTE_ORDER == __LITTLE_ENDIAN) || \
|
+#if defined(__BYTE_ORDER) && (__BYTE_ORDER == __LITTLE_ENDIAN) || \
|
||||||
+ defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) || \
|
+ defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) || \
|
||||||
+ defined(__LITTLE_ENDIAN) || \
|
+ defined(__LITTLE_ENDIAN) || \
|
||||||
+ defined(__ARMEL__) || \
|
+ defined(__ARMEL__) || \
|
||||||
+ defined(__THUMBEL__) || \
|
+ defined(__THUMBEL__) || \
|
||||||
+ defined(__AARCH64EL__) || \
|
+ defined(__AARCH64EL__) || \
|
||||||
|
+ defined(__i386) || defined(__i386__) || \
|
||||||
|
+ defined(__amd64) || defined(__amd64__) || \
|
||||||
|
+ defined(__x86_64) || defined(__x86_64__) || \
|
||||||
+ defined(_MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__)
|
+ defined(_MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__)
|
||||||
+#define YEAH
|
+#define YEAH
|
||||||
+#else
|
+#else
|
||||||
@@ -91,5 +94,5 @@ index 0000000..eba065a
|
|||||||
+ return 0;
|
+ return 0;
|
||||||
+}
|
+}
|
||||||
--
|
--
|
||||||
2.5.5
|
2.1.4
|
||||||
|
|
||||||
|
|||||||
@@ -203,10 +203,12 @@ define SKELETON_BIN_SH
|
|||||||
rm -f $(TARGET_DIR)/bin/sh
|
rm -f $(TARGET_DIR)/bin/sh
|
||||||
endef
|
endef
|
||||||
else
|
else
|
||||||
|
ifneq ($(SKELETON_TARGET_GENERIC_BIN_SH),)
|
||||||
define SKELETON_BIN_SH
|
define SKELETON_BIN_SH
|
||||||
ln -sf $(SKELETON_TARGET_GENERIC_BIN_SH) $(TARGET_DIR)/bin/sh
|
ln -sf $(SKELETON_TARGET_GENERIC_BIN_SH) $(TARGET_DIR)/bin/sh
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
TARGET_FINALIZE_HOOKS += SKELETON_BIN_SH
|
TARGET_FINALIZE_HOOKS += SKELETON_BIN_SH
|
||||||
|
|
||||||
ifeq ($(BR2_TARGET_GENERIC_GETTY),y)
|
ifeq ($(BR2_TARGET_GENERIC_GETTY),y)
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
||||||
SLANG_DEPENDENCIES += ncurses
|
SLANG_DEPENDENCIES += ncurses
|
||||||
SLANG_CONF_ENV += ac_cv_path_nc5config=$(STAGING_DIR)/usr/bin/ncurses5-config
|
SLANG_CONF_ENV += ac_cv_path_nc5config=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)
|
||||||
else
|
else
|
||||||
SLANG_CONF_OPTS += ac_cv_path_nc5config=no
|
SLANG_CONF_OPTS += ac_cv_path_nc5config=no
|
||||||
endif
|
endif
|
||||||
@@ -49,7 +49,7 @@ ifeq ($(BR2_PACKAGE_READLINE),y)
|
|||||||
SLANG_CONF_OPTS += --with-readline=gnu
|
SLANG_CONF_OPTS += --with-readline=gnu
|
||||||
SLANG_DEPENDENCIES += readline
|
SLANG_DEPENDENCIES += readline
|
||||||
ifeq ($(BR2_STATIC_LIBS),y)
|
ifeq ($(BR2_STATIC_LIBS),y)
|
||||||
SLANG_CONF_ENV += LIBS="`$(STAGING_DIR)/usr/bin/ncurses5-config --libs`"
|
SLANG_CONF_ENV += LIBS="`$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS) --libs`"
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
43
package/sngrep/0001-src-Makefile.am-don-t-use-VPATH.patch
Normal file
43
package/sngrep/0001-src-Makefile.am-don-t-use-VPATH.patch
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
From b6dcae8ec4334e2436cfa19a8052c3473f57a586 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
Date: Sat, 4 Mar 2017 15:02:43 +0100
|
||||||
|
Subject: [PATCH 1/2] src/Makefile.am: don't use VPATH
|
||||||
|
|
||||||
|
VPATH is a mechanism used to allow out-of-tree build, not to use source
|
||||||
|
code from a different directory. For this purpose, one should simply use
|
||||||
|
the "subdir-objects" AUTOMAKE_OPTIONS, and reference the source code of
|
||||||
|
the sub-directory in the <prog>_SOURCES variable.
|
||||||
|
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
Upstream-status: https://github.com/irontec/sngrep/pull/176
|
||||||
|
---
|
||||||
|
src/Makefile.am | 10 +++++-----
|
||||||
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||||
|
index 931ee06..961f4a0 100644
|
||||||
|
--- a/src/Makefile.am
|
||||||
|
+++ b/src/Makefile.am
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
+AUTOMAKE_OPTIONS=subdir-objects
|
||||||
|
bin_PROGRAMS=sngrep
|
||||||
|
-VPATH=curses
|
||||||
|
sngrep_SOURCES=capture.c
|
||||||
|
if USE_EEP
|
||||||
|
sngrep_SOURCES+=capture_eep.c
|
||||||
|
@@ -12,8 +12,8 @@ sngrep_SOURCES+=capture_openssl.c
|
||||||
|
endif
|
||||||
|
sngrep_SOURCES+=address.c packet.c sip.c sip_call.c sip_msg.c sip_attr.c main.c
|
||||||
|
sngrep_SOURCES+=option.c group.c filter.c keybinding.c media.c setting.c rtp.c
|
||||||
|
-sngrep_SOURCES+=util.c hash.c vector.c ui_panel.c scrollbar.c
|
||||||
|
-sngrep_SOURCES+=ui_manager.c ui_call_list.c ui_call_flow.c ui_call_raw.c
|
||||||
|
-sngrep_SOURCES+=ui_stats.c ui_filter.c ui_save.c ui_msg_diff.c
|
||||||
|
-sngrep_SOURCES+=ui_column_select.c ui_settings.c
|
||||||
|
+sngrep_SOURCES+=util.c hash.c vector.c curses/ui_panel.c curses/scrollbar.c
|
||||||
|
+sngrep_SOURCES+=curses/ui_manager.c curses/ui_call_list.c curses/ui_call_flow.c curses/ui_call_raw.c
|
||||||
|
+sngrep_SOURCES+=curses/ui_stats.c curses/ui_filter.c curses/ui_save.c curses/ui_msg_diff.c
|
||||||
|
+sngrep_SOURCES+=curses/ui_column_select.c curses/ui_settings.c
|
||||||
|
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
From 22b08ab1a45eb3773b3c90dc37a31a7574520daa Mon Sep 17 00:00:00 2001
|
||||||
|
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
Date: Sat, 4 Mar 2017 14:56:53 +0100
|
||||||
|
Subject: [PATCH 2/2] configure.ac: switch to pkg-config to find openssl
|
||||||
|
|
||||||
|
Using AC_CHECK_LIB() doesn't work properly for static linking, because
|
||||||
|
it doesn't return information on transitive dependencies of
|
||||||
|
libraries. For example, if library A internally uses library B, then
|
||||||
|
with dynamic linking, doing -lA is sufficient. However, with static
|
||||||
|
linking, one must do -lA -lB, and AC_CHECK_LIB() will only give the -lA
|
||||||
|
information. This for example causes a build failure when building
|
||||||
|
sngrep statically with openssl enabled:
|
||||||
|
|
||||||
|
checking for SSL_new in -lssl... no
|
||||||
|
configure: error: You need to have libssl installed to compile sngrep
|
||||||
|
|
||||||
|
due to undefined symbols in the OpenSSL library.
|
||||||
|
|
||||||
|
The proper solution for this is to discover the library using
|
||||||
|
pkg-config, because pkg-config properly returns the list of necessary
|
||||||
|
libraries, as it understands the concept of "list of libraries needed
|
||||||
|
when dynamic linking" and "list of libraries needed for static linking".
|
||||||
|
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
Upstream-status: https://github.com/irontec/sngrep/pull/176
|
||||||
|
---
|
||||||
|
configure.ac | 9 +--------
|
||||||
|
src/Makefile.am | 4 ++++
|
||||||
|
2 files changed, 5 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 42e00e9..9f8e6d2 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -129,14 +129,7 @@ AS_IF([test "x$WITH_OPENSSL" == "xyes"], [
|
||||||
|
AS_IF([test "x$WITH_GNUTLS" == "xyes"], [
|
||||||
|
AC_MSG_ERROR([ GnuTLS and OpenSSL can not be enabled at the same time ])
|
||||||
|
], [])
|
||||||
|
-
|
||||||
|
- AC_CHECK_LIB([ssl], [SSL_new], [], [
|
||||||
|
- AC_MSG_ERROR([ You need to have libssl installed to compile sngrep])
|
||||||
|
- ])
|
||||||
|
-
|
||||||
|
- AC_CHECK_LIB([crypto], [EVP_get_cipherbyname], [], [
|
||||||
|
- AC_MSG_ERROR([ You need to have libcrypto installed to compile sngrep])
|
||||||
|
- ])
|
||||||
|
+ PKG_CHECK_MODULES([SSL], [libssl libcrypto])
|
||||||
|
AC_DEFINE([WITH_OPENSSL],[],[Compile With Openssl compatibility])
|
||||||
|
], [])
|
||||||
|
|
||||||
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||||
|
index 961f4a0..3a471b7 100644
|
||||||
|
--- a/src/Makefile.am
|
||||||
|
+++ b/src/Makefile.am
|
||||||
|
@@ -1,6 +1,8 @@
|
||||||
|
AUTOMAKE_OPTIONS=subdir-objects
|
||||||
|
bin_PROGRAMS=sngrep
|
||||||
|
sngrep_SOURCES=capture.c
|
||||||
|
+sngrep_CFLAGS=
|
||||||
|
+sngrep_LDADD=
|
||||||
|
if USE_EEP
|
||||||
|
sngrep_SOURCES+=capture_eep.c
|
||||||
|
endif
|
||||||
|
@@ -9,6 +11,8 @@ sngrep_SOURCES+=capture_gnutls.c
|
||||||
|
endif
|
||||||
|
if WITH_OPENSSL
|
||||||
|
sngrep_SOURCES+=capture_openssl.c
|
||||||
|
+sngrep_CFLAGS+=$(SSL_CFLAGS)
|
||||||
|
+sngrep_LDADD+=$(SSL_LIBS)
|
||||||
|
endif
|
||||||
|
sngrep_SOURCES+=address.c packet.c sip.c sip_call.c sip_msg.c sip_attr.c main.c
|
||||||
|
sngrep_SOURCES+=option.c group.c filter.c keybinding.c media.c setting.c rtp.c
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
||||||
@@ -9,7 +9,7 @@ SNGREP_SITE = $(call github,irontec,sngrep,$(SNGREP_VERSION))
|
|||||||
SNGREP_LICENSE = GPLv3+
|
SNGREP_LICENSE = GPLv3+
|
||||||
SNGREP_LICENSE_FILES = LICENSE
|
SNGREP_LICENSE_FILES = LICENSE
|
||||||
SNGREP_AUTORECONF = YES
|
SNGREP_AUTORECONF = YES
|
||||||
SNGREP_DEPENDENCIES = libpcap ncurses
|
SNGREP_DEPENDENCIES = libpcap ncurses host-pkgconf
|
||||||
|
|
||||||
SNGREP_CONF_ENV += \
|
SNGREP_CONF_ENV += \
|
||||||
$(if $(BR2_STATIC_LIBS),LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --libs`")
|
$(if $(BR2_STATIC_LIBS),LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --libs`")
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# Locally computed
|
# Locally computed
|
||||||
sha256 e807202ab4dcfeea214df49d3a728b9a85644a7e7262fc6fcd875a0def99d4ed squashfs-9c1db6d13a51a2e009f0027ef336ce03624eac0d.tar.gz
|
sha256 2c49392816615b73bf5d6cdce9776cb66a01f5a1494b1d9af580667e32bab001 squashfs-3de1687d7432ea9b302c2db9521996f506c140a3.tar.gz
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@version: 3.7
|
@version: 3.9
|
||||||
|
|
||||||
source s_sys {
|
source s_sys {
|
||||||
file("/proc/kmsg" program_override("kernel"));
|
file("/proc/kmsg" program_override("kernel"));
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ config BR2_PACKAGE_TAGLIB
|
|||||||
and ID3v2 for MP3 files, Ogg Vorbis comments and ID3 tags and
|
and ID3v2 for MP3 files, Ogg Vorbis comments and ID3 tags and
|
||||||
Vorbis comments in FLAC, MPC, Speex, WavPack and TrueAudio files.
|
Vorbis comments in FLAC, MPC, Speex, WavPack and TrueAudio files.
|
||||||
|
|
||||||
http://taglib.github.com
|
http://taglib.org/
|
||||||
|
|
||||||
if BR2_PACKAGE_TAGLIB
|
if BR2_PACKAGE_TAGLIB
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
TAGLIB_VERSION = 1.11.1
|
TAGLIB_VERSION = 1.11.1
|
||||||
TAGLIB_SITE = http://taglib.github.io/releases
|
TAGLIB_SITE = http://taglib.github.io/releases
|
||||||
TAGLIB_INSTALL_STAGING = YES
|
TAGLIB_INSTALL_STAGING = YES
|
||||||
TAGLIB_LICENSE = LGPLv2.1, MPL
|
TAGLIB_LICENSE = LGPLv2.1 or MPL-1.1
|
||||||
TAGLIB_LICENSE_FILES = COPYING.LGPL COPYING.MPL
|
TAGLIB_LICENSE_FILES = COPYING.LGPL COPYING.MPL
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
From d689d14dbcd768c028eab2fb378d849e543dcfe9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Fred Klassen <fklassen@appneta.com>
|
||||||
|
Date: Sun, 26 Feb 2017 20:45:59 -0800
|
||||||
|
Subject: [PATCH] #278 fail if capture has a packet that is too large (#286)
|
||||||
|
|
||||||
|
* #278 fail if capture has a packet that is too large
|
||||||
|
|
||||||
|
[baruch: remove the CHANGELOG update]
|
||||||
|
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||||
|
---
|
||||||
|
Upstream status: upstream commit d689d14db
|
||||||
|
|
||||||
|
diff --git a/src/tcpcapinfo.c b/src/tcpcapinfo.c
|
||||||
|
index 775f1625b00f..96928820fe94 100644
|
||||||
|
--- a/src/tcpcapinfo.c
|
||||||
|
+++ b/src/tcpcapinfo.c
|
||||||
|
@@ -281,6 +281,15 @@ main(int argc, char *argv[])
|
||||||
|
caplen = pcap_ph.caplen;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ if (caplentoobig) {
|
||||||
|
+ printf("\n\nCapture file appears to be damaged or corrupt.\n"
|
||||||
|
+ "Contains packet of size %u, bigger than snap length %u\n",
|
||||||
|
+ caplen, pcap_fh.snaplen);
|
||||||
|
+
|
||||||
|
+ close(fd);
|
||||||
|
+ break;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
/* check to make sure timestamps don't go backwards */
|
||||||
|
if (last_sec > 0 && last_usec > 0) {
|
||||||
|
if ((pcap_ph.ts.tv_sec == last_sec) ?
|
||||||
|
@@ -306,7 +315,7 @@ main(int argc, char *argv[])
|
||||||
|
}
|
||||||
|
|
||||||
|
close(fd);
|
||||||
|
- continue;
|
||||||
|
+ break;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* print the frame checksum */
|
||||||
|
--
|
||||||
|
2.11.0
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user