Compare commits
47
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ba4a139f5 | ||
|
|
f121eeb645 | ||
|
|
6361a50e3f | ||
|
|
e845e012e7 | ||
|
|
a579514314 | ||
|
|
033e2b9431 | ||
|
|
e8d2188db3 | ||
|
|
afb6bc67a6 | ||
|
|
e4f7ec4bd1 | ||
|
|
d88c79090a | ||
|
|
ff4cccbdcf | ||
|
|
79bab1fd89 | ||
|
|
8d845683e3 | ||
|
|
7d6cd3677a | ||
|
|
c2da653d08 | ||
|
|
5c12506f4d | ||
|
|
6db1651e34 | ||
|
|
c624d2eef8 | ||
|
|
3cc7bd2db9 | ||
|
|
6e45e33f27 | ||
|
|
128a16acee | ||
|
|
d2f0f5df46 | ||
|
|
aff2f73958 | ||
|
|
c21fca53db | ||
|
|
c9f9b16a2f | ||
|
|
1e2c245bf4 | ||
|
|
73240a5b68 | ||
|
|
8e13f7e11e | ||
|
|
6e6208ea79 | ||
|
|
bb95fef1e0 | ||
|
|
50ace0bcc3 | ||
|
|
163b6a5b39 | ||
|
|
1291528bde | ||
|
|
2f33e4556b | ||
|
|
a4a6c74171 | ||
|
|
d38797edee | ||
|
|
5cbfab1c20 | ||
|
|
8a8800d156 | ||
|
|
6278263355 | ||
|
|
0cfe1332d8 | ||
|
|
f6756d6915 | ||
|
|
2d29f050d5 | ||
|
|
03d5dad05f | ||
|
|
cf821efbd0 | ||
|
|
dcfdf82e53 | ||
|
|
5a5e76381f | ||
|
|
9682fcaf46 |
+3
-1
@@ -49,7 +49,9 @@ check-DEVELOPERS:
|
||||
.runtime_test: &runtime_test
|
||||
# Keep build directories so the rootfs can be an artifact of the job. The
|
||||
# runner will clean up those files for us.
|
||||
script: ./support/testing/run-tests -o test-output/ -d test-dl/ -k ${CI_BUILD_NAME}
|
||||
# Multiply every emulator timeout by 10 to avoid sporadic failures in
|
||||
# elastic runners.
|
||||
script: ./support/testing/run-tests -o test-output/ -d test-dl/ -k --timeout-multiplier 10 ${CI_BUILD_NAME}
|
||||
artifacts:
|
||||
when: always
|
||||
expire_in: 2 weeks
|
||||
|
||||
+3
-1
@@ -49,7 +49,9 @@ check-DEVELOPERS:
|
||||
.runtime_test: &runtime_test
|
||||
# Keep build directories so the rootfs can be an artifact of the job. The
|
||||
# runner will clean up those files for us.
|
||||
script: ./support/testing/run-tests -o test-output/ -d test-dl/ -k ${CI_BUILD_NAME}
|
||||
# Multiply every emulator timeout by 10 to avoid sporadic failures in
|
||||
# elastic runners.
|
||||
script: ./support/testing/run-tests -o test-output/ -d test-dl/ -k --timeout-multiplier 10 ${CI_BUILD_NAME}
|
||||
artifacts:
|
||||
when: always
|
||||
expire_in: 2 weeks
|
||||
|
||||
@@ -1,3 +1,30 @@
|
||||
2017.08-rc2, Released August 11th, 2017
|
||||
|
||||
Fixes all over the tree.
|
||||
|
||||
Updated/fixed packages: bind, dbus, erlang-p1-xml, faad2,
|
||||
ficl, gcc, gdb, glibc, jack2, libcurl, linux, linux-headers,
|
||||
lua, mutt, nvme, qt5base, skeleton-common, snappy, stella,
|
||||
swupdate, uclibc, valgrind, webkitgtk.
|
||||
|
||||
Updated/fixed defconfigs: beaglebone_qt5, minnowboard_max,
|
||||
nanopi_m1{, _plus}, olimex_a20_olinuxino_lime, qemu_sparc,
|
||||
qemu_sparc64.
|
||||
|
||||
The cmake-package infrastructure for host packages has been
|
||||
fixed to not incorrectly detect target packages through
|
||||
pkg-config.
|
||||
|
||||
Issues resolved (http://bugs.buildroot.org):
|
||||
|
||||
#9926: systemd-resolved.service: Failed at step NAMESPACE (systemd 233)
|
||||
#10021: libqeglfs-viv-integration.so file is missing for qt5 on armv7
|
||||
#10026: lua-5.3.4: fix lua linker error in swupdate
|
||||
#10146: package/skeleton-common fix recursive variable
|
||||
#10156: glibc compilation fails for X86 32bits (i386)
|
||||
#10201: toolchain-wrapper.c:192: (error) Memory leak:
|
||||
#10221: Buildroot Support
|
||||
|
||||
2017.08-rc1, Released August 2nd, 2017
|
||||
|
||||
Infrastructure:
|
||||
|
||||
@@ -87,9 +87,9 @@ all:
|
||||
.PHONY: all
|
||||
|
||||
# Set and export the version string
|
||||
export BR2_VERSION := 2017.08-rc1
|
||||
export BR2_VERSION := 2017.08-rc2
|
||||
# Actual time the release is cut (for reproducible builds)
|
||||
BR2_VERSION_EPOCH = 150170700
|
||||
BR2_VERSION_EPOCH = 1502468000
|
||||
|
||||
# Save running make version since it's clobbered by the make package
|
||||
RUNNING_MAKE_VERSION := $(MAKE_VERSION)
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"MLO",
|
||||
"u-boot.img",
|
||||
"zImage",
|
||||
"uEnv.txt",
|
||||
"am335x-evm.dtb",
|
||||
"am335x-evmsk.dtb",
|
||||
"am335x-bone.dtb",
|
||||
"am335x-boneblack.dtb",
|
||||
}
|
||||
}
|
||||
size = 16M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
size = 512M
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,15 @@ BOARD_DIR="$(dirname $0)"
|
||||
# copy the uEnv.txt to the output/images directory
|
||||
cp board/beaglebone/uEnv.txt $BINARIES_DIR/uEnv.txt
|
||||
|
||||
GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
|
||||
# the 4.1 kernel does not provide a dtb for beaglebone green, so we
|
||||
# use a different genimage config if am335x-bonegreen.dtb is not
|
||||
# built:
|
||||
if [ -e ${BINARIES_DIR}/am335x-bonegreen.dtb ] ; then
|
||||
GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
|
||||
else
|
||||
GENIMAGE_CFG="${BOARD_DIR}/genimage_linux41.cfg"
|
||||
fi
|
||||
|
||||
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
|
||||
|
||||
rm -rf "${GENIMAGE_TMP}"
|
||||
|
||||
@@ -3,6 +3,7 @@ BR2_cortex_a8=y
|
||||
BR2_GLOBAL_PATCH_DIR="board/beaglebone/patches"
|
||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||
BR2_GCC_VERSION_5_X=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
|
||||
BR2_TARGET_GENERIC_GETTY_PORT="ttyO0"
|
||||
|
||||
@@ -9,6 +9,9 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="board/minnowboard/post-image.sh"
|
||||
|
||||
# Linux headers same as kernel, a 4.12 series
|
||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_12=y
|
||||
# Needed for grub2
|
||||
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
|
||||
|
||||
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||
BR2_PACKAGE_HOST_MTOOLS=y
|
||||
|
||||
@@ -17,6 +17,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.07"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi_m1"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin"
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.07"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi_m1_plus"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin"
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/olimex/a20_olinuxino/genimage.cfg"
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.14"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.36"
|
||||
BR2_LINUX_KERNEL_USE_DEFCONFIG=y
|
||||
BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
@@ -34,9 +34,10 @@ BR2_TARGET_ROOTFS_EXT2_4=y
|
||||
BR2_TARGET_UBOOT=y
|
||||
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.03"
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.07"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="A20-OLinuXino-Lime"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
|
||||
BR2_TARGET_UBOOT_FORMAT_BIN=y
|
||||
BR2_TARGET_UBOOT_SPL=y
|
||||
BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
|
||||
|
||||
@@ -41,9 +41,10 @@ BR2_TARGET_ROOTFS_EXT2_4=y
|
||||
BR2_TARGET_UBOOT=y
|
||||
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.03"
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.07"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="A20-OLinuXino-Lime"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
|
||||
BR2_TARGET_UBOOT_FORMAT_BIN=y
|
||||
BR2_TARGET_UBOOT_SPL=y
|
||||
BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
|
||||
|
||||
@@ -15,6 +15,6 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_11=y
|
||||
# Linux kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.11.3"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.11.12"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/sparc64-sun4u/linux-4.11.config"
|
||||
|
||||
@@ -15,6 +15,6 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_11=y
|
||||
# Linux kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.11.3"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.11.12"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/sparc-ss10/linux-4.11.config"
|
||||
|
||||
@@ -76,37 +76,37 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 style="text-align: center;">Latest release candidate: <b>2017.08-rc1</b></h3>
|
||||
<h3 style="text-align: center;">Latest release candidate: <b>2017.08-rc2</b></h3>
|
||||
<div class="row mt centered">
|
||||
<div class="col-sm-6">
|
||||
<div class="flip-container center-block" ontouchstart="this.classList.toggle('hover');">
|
||||
<div class="flipper">
|
||||
<div class="front">
|
||||
<a href="/downloads/buildroot-2017.08-rc1.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2017.08-rc2.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
</div>
|
||||
<div class="back">
|
||||
<a href="/downloads/buildroot-2017.08-rc1.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2017.08-rc2.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3><a href="/downloads/buildroot-2017.08-rc1.tar.gz">buildroot-2017.08-rc1.tar.gz</a></h3>
|
||||
<p><a href="/downloads/buildroot-2017.08-rc1.tar.gz.sign">PGP signature</a></p>
|
||||
<h3><a href="/downloads/buildroot-2017.08-rc2.tar.gz">buildroot-2017.08-rc2.tar.gz</a></h3>
|
||||
<p><a href="/downloads/buildroot-2017.08-rc2.tar.gz.sign">PGP signature</a></p>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="flip-container center-block" ontouchstart="this.classList.toggle('hover');">
|
||||
<div class="flipper">
|
||||
<div class="front">
|
||||
<a href="/downloads/buildroot-2017.08-rc1.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2017.08-rc2.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
</div>
|
||||
<div class="back">
|
||||
<a href="/downloads/buildroot-2017.08-rc1.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2017.08-rc2.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3><a href="/downloads/buildroot-2017.08-rc1.tar.bz2">buildroot-2017.08-rc1.tar.bz2</a></h3>
|
||||
<p><a href="/downloads/buildroot-2017.08-rc1.tar.bz2.sign">PGP signature</a></p>
|
||||
<h3><a href="/downloads/buildroot-2017.08-rc2.tar.bz2">buildroot-2017.08-rc2.tar.bz2</a></h3>
|
||||
<p><a href="/downloads/buildroot-2017.08-rc2.tar.bz2.sign">PGP signature</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -9,6 +9,31 @@
|
||||
<h2>News</h2>
|
||||
<ul class="timeline">
|
||||
|
||||
<li>
|
||||
<div class="timeline-badge"><i class="glyphicon glyphicon-thumbs-up"></i></div>
|
||||
<div class="timeline-panel">
|
||||
<div class="timeline-heading">
|
||||
<h4 class="timeline-title">2017.08-rc2 released</h4>
|
||||
<p><small class="text-muted"><i class="glyphicon glyphicon-time"></i>11 August 2017</small></p>
|
||||
</div>
|
||||
<div class="timeline-body">
|
||||
<p>Another release candidate, on the road to the final 2017.08
|
||||
release. A number of fixes and cleanups in various packages
|
||||
and defconfigs. See
|
||||
the <a href="http://git.buildroot.net/buildroot/plain/CHANGES?id=2017.08-rc2">CHANGES</a>
|
||||
file for details.
|
||||
</p>
|
||||
|
||||
<p>Head to the <a href="/downloads/">downloads page</a> to pick up the
|
||||
<a href="/downloads/buildroot-2017.08-rc2.tar.bz2">2017.08-rc2
|
||||
release candidate</a>, and report any
|
||||
problems found to the
|
||||
<a href="support.html">mailing list</a> or
|
||||
<a href="https://bugs.buildroot.org">bug tracker</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="timeline-inverted">
|
||||
<div class="timeline-badge"><i class="glyphicon glyphicon-thumbs-up"></i></div>
|
||||
<div class="timeline-panel">
|
||||
|
||||
+5
-5
@@ -26,10 +26,10 @@ choice
|
||||
prompt "Kernel version"
|
||||
|
||||
config BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
bool "Latest version (4.12.4)"
|
||||
bool "Latest version (4.12.5)"
|
||||
|
||||
config BR2_LINUX_KERNEL_LATEST_CIP_VERSION
|
||||
bool "Latest CIP SLTS version (v4.4.55-cip3)"
|
||||
bool "Latest CIP SLTS version (v4.4.75-cip6)"
|
||||
help
|
||||
CIP launched in the spring of 2016 to address the needs of
|
||||
organizations in industries such as power generation and
|
||||
@@ -116,8 +116,8 @@ endif
|
||||
|
||||
config BR2_LINUX_KERNEL_VERSION
|
||||
string
|
||||
default "4.12.4" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
default "v4.4.55-cip3" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
|
||||
default "4.12.5" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
default "v4.4.75-cip6" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
|
||||
default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
|
||||
if BR2_LINUX_KERNEL_CUSTOM_VERSION
|
||||
default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
|
||||
@@ -368,7 +368,7 @@ choice
|
||||
default BR2_LINUX_KERNEL_USE_INTREE_DTS
|
||||
|
||||
config BR2_LINUX_KERNEL_USE_INTREE_DTS
|
||||
bool "Use a device tree present in the kernel."
|
||||
bool "Use a device tree present in the kernel"
|
||||
help
|
||||
Use a device tree source distributed with
|
||||
the kernel sources. The dts files are located
|
||||
|
||||
+4
-4
@@ -31,6 +31,10 @@ LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
|
||||
LINUX_SITE_METHOD = svn
|
||||
else ifeq ($(BR2_LINUX_KERNEL_LATEST_CIP_VERSION),y)
|
||||
LINUX_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/bwh/linux-cip.git
|
||||
else ifneq ($(findstring -rc,$(LINUX_VERSION)),)
|
||||
# Since 4.12-rc1, -rc kernels are generated from cgit. This also works for
|
||||
# older -rc kernels.
|
||||
LINUX_SITE = https://git.kernel.org/torvalds/t
|
||||
else
|
||||
LINUX_SOURCE = linux-$(LINUX_VERSION).tar.xz
|
||||
# In X.Y.Z, get X and Y. We replace dots and dashes by spaces in order
|
||||
@@ -43,10 +47,6 @@ LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v3.x
|
||||
else ifeq ($(findstring x4.,x$(LINUX_VERSION)),x4.)
|
||||
LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v4.x
|
||||
endif
|
||||
# release candidates are in testing/ subdir
|
||||
ifneq ($(findstring -rc,$(LINUX_VERSION)),)
|
||||
LINUX_SITE := $(LINUX_SITE)/testing
|
||||
endif # -rc
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_LINUX_KERNEL)$(BR2_LINUX_KERNEL_LATEST_VERSION),y)
|
||||
|
||||
@@ -24,6 +24,7 @@ BIND_CONF_ENV = \
|
||||
BUILD_CC="$(TARGET_CC)" \
|
||||
BUILD_CFLAGS="$(TARGET_CFLAGS)"
|
||||
BIND_CONF_OPTS = \
|
||||
--without-lmdb \
|
||||
--with-libjson=no \
|
||||
--with-randomdev=/dev/urandom \
|
||||
--enable-epoll \
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
From 1252dc1d1f465b8ab6b36ff7252e395e66a040cf Mon Sep 17 00:00:00 2001
|
||||
From: Simon McVittie <smcv@debian.org>
|
||||
Date: Fri, 21 Jul 2017 10:46:39 +0100
|
||||
Subject: [PATCH 1/2] config-loader-expat: Tell Expat not to defend against
|
||||
hash collisions
|
||||
|
||||
By default, Expat uses cryptographic-quality random numbers as a salt for
|
||||
its hash algorithm, and since 2.2.1 it gets them from the getrandom
|
||||
syscall on Linux. That syscall refuses to return any entropy until the
|
||||
kernel's CSPRNG (random pool) has been initialized. Unfortunately, this
|
||||
can take as long as 40 seconds on embedded devices with few entropy
|
||||
sources, which is too long: if the system dbus-daemon blocks for that
|
||||
length of time, important D-Bus clients like systemd and systemd-logind
|
||||
time out and fail to connect to it.
|
||||
|
||||
We're parsing small configuration files here, and we trust them
|
||||
completely, so we don't need to defend against hash collisions: nobody
|
||||
is going to be crafting them to cause pathological performance.
|
||||
|
||||
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101858
|
||||
Signed-off-by: Simon McVittie <smcv@debian.org>
|
||||
Tested-by: Christopher Hewitt <hewitt@ieee.org>
|
||||
Reviewed-by: Philip Withnall <withnall@endlessm.com>
|
||||
|
||||
Upstream commit 1252dc1d1f465b8ab6b36ff7252e395e66a040cf
|
||||
Signed-off-by: Marcus Hoffmann <m.hoffmann@cartelsol.com>
|
||||
---
|
||||
bus/config-loader-expat.c | 14 ++++++++++++++
|
||||
configure.ac | 8 ++++++++
|
||||
2 files changed, 22 insertions(+)
|
||||
|
||||
diff --git a/bus/config-loader-expat.c b/bus/config-loader-expat.c
|
||||
index b571fda3..27cbe2d0 100644
|
||||
--- a/bus/config-loader-expat.c
|
||||
+++ b/bus/config-loader-expat.c
|
||||
@@ -203,6 +203,20 @@ bus_config_load (const DBusString *file,
|
||||
goto failed;
|
||||
}
|
||||
|
||||
+ /* We do not need protection against hash collisions (CVE-2012-0876)
|
||||
+ * because we are only parsing trusted XML; and if we let Expat block
|
||||
+ * waiting for the CSPRNG to be initialized, as it does by default to
|
||||
+ * defeat CVE-2012-0876, it can cause timeouts during early boot on
|
||||
+ * entropy-starved embedded devices.
|
||||
+ *
|
||||
+ * TODO: When Expat gets a more explicit API for this than
|
||||
+ * XML_SetHashSalt, check for that too, and use it preferentially.
|
||||
+ * https://github.com/libexpat/libexpat/issues/91 */
|
||||
+#if defined(HAVE_XML_SETHASHSALT)
|
||||
+ /* Any nonzero number will do. https://xkcd.com/221/ */
|
||||
+ XML_SetHashSalt (expat, 4);
|
||||
+#endif
|
||||
+
|
||||
if (!_dbus_string_get_dirname (file, &dirname))
|
||||
{
|
||||
dbus_set_error (error, DBUS_ERROR_NO_MEMORY, NULL);
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 52da11fb..c4022ed7 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -938,6 +938,14 @@ XML_CFLAGS=
|
||||
AC_SUBST([XML_CFLAGS])
|
||||
AC_SUBST([XML_LIBS])
|
||||
|
||||
+save_cflags="$CFLAGS"
|
||||
+save_libs="$LIBS"
|
||||
+CFLAGS="$CFLAGS $XML_CFLAGS"
|
||||
+LIBS="$LIBS $XML_LIBS"
|
||||
+AC_CHECK_FUNCS([XML_SetHashSalt])
|
||||
+CFLAGS="$save_cflags"
|
||||
+LIBS="$save_libs"
|
||||
+
|
||||
# Thread lib detection
|
||||
AC_ARG_VAR([THREAD_LIBS])
|
||||
save_libs="$LIBS"
|
||||
--
|
||||
2.11.0
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
|
||||
DBUS_VERSION = 1.10.22
|
||||
DBUS_SITE = https://dbus.freedesktop.org/releases/dbus
|
||||
|
||||
# 0001-config-loader-expat-Tell-Expat-not-to-defend-against.patch
|
||||
DBUS_AUTORECONF = YES
|
||||
DBUS_LICENSE = AFL-2.1 or GPL-2.0+ (library, tools), GPL-2.0+ (tools)
|
||||
DBUS_LICENSE_FILES = COPYING
|
||||
DBUS_INSTALL_STAGING = YES
|
||||
|
||||
@@ -9,7 +9,7 @@ ERLANG_P1_XML_SITE = $(call github,processone,fast_xml,$(ERLANG_P1_XML_VERSION))
|
||||
ERLANG_P1_XML_LICENSE = Apache-2.0
|
||||
ERLANG_P1_XML_LICENSE_FILES = LICENSE.txt
|
||||
ERLANG_P1_XML_DEPENDENCIES = expat erlang-p1-utils
|
||||
ERLANG_P1_XML_HOST_DEPENDENCIES = host-expat host-erlang-p1-utils
|
||||
HOST_ERLANG_P1_XML_DEPENDENCIES = host-expat host-erlang-p1-utils
|
||||
ERLANG_P1_XML_INSTALL_STAGING = YES
|
||||
|
||||
ERLANG_P1_XML_USE_AUTOCONF = YES
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# From http://sourceforge.net/projects/faac/files/faad2-src/faad2-2.7/ (used by upstream):
|
||||
sha1 80eaaa5cc576c35dd28863767b795c50cbcc0511 faad2-2.7.tar.gz
|
||||
# From http://sourceforge.net/projects/faac/files/faad2-src/faad2-2.8.0/ (used by upstream):
|
||||
sha1 a5caa71cd915acd502d96cba56f38296277f2350 faad2-2.8.1.tar.bz2
|
||||
# Locally computed
|
||||
sha256 ee26ed1e177c0cd8fa8458a481b14a0b24ca0b51468c8b4c8b676fd3ceccd330 faad2-2.7.tar.gz
|
||||
sha256 f4042496f6b0a60f5ded6acd11093230044ef8a2fd965360c1bbd5b58780933d faad2-2.8.1.tar.bz2
|
||||
|
||||
@@ -4,10 +4,14 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FAAD2_VERSION = 2.7
|
||||
FAAD2_SITE = http://downloads.sourceforge.net/project/faac/faad2-src/faad2-$(FAAD2_VERSION)
|
||||
FAAD2_VERSION_MAJOR = 2.8
|
||||
FAAD2_VERSION = $(FAAD2_VERSION_MAJOR).1
|
||||
FAAD2_SITE = http://downloads.sourceforge.net/project/faac/faad2-src/faad2-$(FAAD2_VERSION_MAJOR).0
|
||||
FAAD2_SOURCE = faad2-$(FAAD2_VERSION).tar.bz2
|
||||
FAAD2_LICENSE = GPL-2.0
|
||||
FAAD2_LICENSE_FILES = COPYING
|
||||
# No configure script in upstream tarball
|
||||
FAAD2_AUTORECONF = YES
|
||||
# frontend/faad calls frexp()
|
||||
FAAD2_CONF_ENV = LIBS=-lm
|
||||
FAAD2_INSTALL_STAGING = YES
|
||||
|
||||
@@ -39,7 +39,7 @@ endif
|
||||
|
||||
define FICL_BUILD_CMDS
|
||||
$(MAKE) -C $(@D) -f Makefile.linux $(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS) -fPIC -I. -Dlinux" CPPFLAGS="" $(FICL_BUILD_TARGETS)
|
||||
CFLAGS="$(TARGET_CFLAGS) -fgnu89-inline -fPIC -I. -Dlinux" CPPFLAGS="" $(FICL_BUILD_TARGETS)
|
||||
endef
|
||||
|
||||
define FICL_INSTALL_STAGING_CMDS
|
||||
|
||||
@@ -78,6 +78,11 @@ ifeq ($(BR2_bfin),y)
|
||||
HOST_GCC_FINAL_CONF_OPTS += --disable-symvers
|
||||
endif
|
||||
|
||||
# libcilkrts does not support v8
|
||||
ifeq ($(BR2_sparc),y)
|
||||
HOST_GCC_FINAL_CONF_OPTS += --disable-libcilkrts
|
||||
endif
|
||||
|
||||
# Disable shared libs like libstdc++ if we do static since it confuses linking
|
||||
# In that case also disable libcilkrts as there is no static version
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
From 09a2c3e0164545324a1ddee70f5c9fdee71e2079 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 18 Jun 2017 23:09:43 +0200
|
||||
Subject: [PATCH] nat/linux-ptrace.c: add missing gdb_byte* cast
|
||||
|
||||
On noMMU platforms, the following code gets compiled:
|
||||
|
||||
child_stack = xmalloc (STACK_SIZE * 4);
|
||||
|
||||
Where child_stack is a gdb_byte*, and xmalloc() returns a void*. While
|
||||
the lack of cast is valid in C, it is not in C++, causing the
|
||||
following build failure:
|
||||
|
||||
../nat/linux-ptrace.c: In function 'int linux_fork_to_function(gdb_byte*, int (*)(void*))':
|
||||
../nat/linux-ptrace.c:273:29: error: invalid conversion from 'void*' to 'gdb_byte* {aka unsigned char*}' [-fpermissive]
|
||||
child_stack = xmalloc (STACK_SIZE * 4);
|
||||
|
||||
Therefore, this commit adds the appropriate cast.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
[Upstream commit: ffce45d2243e5f52f411e314fc4e1a69f431a81f]
|
||||
---
|
||||
gdb/nat/linux-ptrace.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c
|
||||
index 3447e07..33833e2 100644
|
||||
--- a/gdb/nat/linux-ptrace.c
|
||||
+++ b/gdb/nat/linux-ptrace.c
|
||||
@@ -270,7 +270,7 @@ linux_fork_to_function (gdb_byte *child_stack, int (*function) (void *))
|
||||
#define STACK_SIZE 4096
|
||||
|
||||
if (child_stack == NULL)
|
||||
- child_stack = xmalloc (STACK_SIZE * 4);
|
||||
+ child_stack = (gdb_byte*) xmalloc (STACK_SIZE * 4);
|
||||
|
||||
/* Use CLONE_VM instead of fork, to support uClinux (no MMU). */
|
||||
#ifdef __ia64__
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
From 09a2c3e0164545324a1ddee70f5c9fdee71e2079 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 18 Jun 2017 23:09:43 +0200
|
||||
Subject: [PATCH] nat/linux-ptrace.c: add missing gdb_byte* cast
|
||||
|
||||
On noMMU platforms, the following code gets compiled:
|
||||
|
||||
child_stack = xmalloc (STACK_SIZE * 4);
|
||||
|
||||
Where child_stack is a gdb_byte*, and xmalloc() returns a void*. While
|
||||
the lack of cast is valid in C, it is not in C++, causing the
|
||||
following build failure:
|
||||
|
||||
../nat/linux-ptrace.c: In function 'int linux_fork_to_function(gdb_byte*, int (*)(void*))':
|
||||
../nat/linux-ptrace.c:273:29: error: invalid conversion from 'void*' to 'gdb_byte* {aka unsigned char*}' [-fpermissive]
|
||||
child_stack = xmalloc (STACK_SIZE * 4);
|
||||
|
||||
Therefore, this commit adds the appropriate cast.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
[Upstream commit: ffce45d2243e5f52f411e314fc4e1a69f431a81f]
|
||||
---
|
||||
gdb/nat/linux-ptrace.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c
|
||||
index 3447e07..33833e2 100644
|
||||
--- a/gdb/nat/linux-ptrace.c
|
||||
+++ b/gdb/nat/linux-ptrace.c
|
||||
@@ -270,7 +270,7 @@ linux_fork_to_function (gdb_byte *child_stack, int (*function) (void *))
|
||||
#define STACK_SIZE 4096
|
||||
|
||||
if (child_stack == NULL)
|
||||
- child_stack = xmalloc (STACK_SIZE * 4);
|
||||
+ child_stack = (gdb_byte*) xmalloc (STACK_SIZE * 4);
|
||||
|
||||
/* Use CLONE_VM instead of fork, to support uClinux (no MMU). */
|
||||
#ifdef __ia64__
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -3,6 +3,7 @@ config BR2_PACKAGE_GDB_ARCH_SUPPORTS
|
||||
default y
|
||||
depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT)
|
||||
depends on !BR2_bfin
|
||||
depends on !BR2_microblaze
|
||||
depends on !BR2_nios2
|
||||
depends on !BR2_or1k
|
||||
|
||||
@@ -47,11 +48,11 @@ config BR2_PACKAGE_GDB_SERVER
|
||||
config BR2_PACKAGE_GDB_DEBUGGER
|
||||
bool "full debugger"
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on !BR2_sh && !BR2_microblaze
|
||||
depends on !BR2_sh
|
||||
select BR2_PACKAGE_NCURSES
|
||||
|
||||
comment "full gdb on target needs a toolchain w/ wchar"
|
||||
depends on !BR2_sh && !BR2_microblaze
|
||||
depends on !BR2_sh
|
||||
depends on !BR2_USE_WCHAR
|
||||
|
||||
if BR2_PACKAGE_GDB_DEBUGGER
|
||||
|
||||
@@ -7,6 +7,7 @@ config BR2_PACKAGE_HOST_GDB
|
||||
# toolchain should be used.
|
||||
depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
|
||||
depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT)
|
||||
depends on !BR2_microblaze
|
||||
depends on !BR2_nios2
|
||||
depends on !BR2_or1k
|
||||
help
|
||||
@@ -29,7 +30,7 @@ config BR2_PACKAGE_HOST_GDB_PYTHON
|
||||
|
||||
config BR2_PACKAGE_HOST_GDB_SIM
|
||||
bool "Simulator support"
|
||||
depends on !BR2_arc && !BR2_microblaze
|
||||
depends on !BR2_arc
|
||||
help
|
||||
This option enables the simulator support in the cross gdb.
|
||||
|
||||
@@ -37,7 +38,6 @@ choice
|
||||
prompt "GDB debugger Version"
|
||||
default BR2_GDB_VERSION_7_11
|
||||
depends on !BR2_arc
|
||||
depends on !BR2_microblaze
|
||||
help
|
||||
Select the version of gdb you wish to use.
|
||||
|
||||
@@ -65,7 +65,6 @@ endif
|
||||
config BR2_GDB_VERSION
|
||||
string
|
||||
default "arc-2017.03-gdb" if BR2_arc
|
||||
default "6be65fb56ea6694a9260733a536a023a1e2d4d57" if BR2_microblaze
|
||||
default "7.10.1" if BR2_GDB_VERSION_7_10
|
||||
default "7.11.1" if BR2_GDB_VERSION_7_11 || !BR2_PACKAGE_HOST_GDB
|
||||
default "7.12.1" if BR2_GDB_VERSION_7_12
|
||||
|
||||
@@ -5,5 +5,4 @@ sha512 0ac8d0a495103611ef41167a08313a010dce6ca4c6d827cbe8558a0c1a1a8a6bfa53f1b7
|
||||
sha512 e4044bdd162cbf95044ec1eaa44d2fa62a33e051bdbbacbc97afd4dfb07bae1bea514381fc1966aede89d6796ef2377a15748a93d95e2ad494c8497db489e886 gdb-8.0.tar.xz
|
||||
|
||||
# Locally calculated (fetched from Github)
|
||||
sha512 0a467091d4b01fbecabb4b8da1cb743025c70e7f4874a0b5c8fa2ec623569a39bde6762b91806de0be6e63711aeb6909715cfbe43860de73d8aec6159a9f10a7 gdb-6be65fb56ea6694a9260733a536a023a1e2d4d57.tar.gz
|
||||
sha512 8ec849a5ea1c16f104c51c4813c35ab229e460eef0025967673b87316f62b5171f05448cda018464914d43d2da50b2902eb7f9f060d0af1368a9db111f959668 gdb-arc-2017.03-gdb.tar.gz
|
||||
|
||||
@@ -14,12 +14,6 @@ GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
|
||||
GDB_FROM_GIT = y
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_microblaze),y)
|
||||
GDB_SITE = $(call github,Xilinx,gdb,$(GDB_VERSION))
|
||||
GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
|
||||
GDB_FROM_GIT = y
|
||||
endif
|
||||
|
||||
GDB_LICENSE = GPL-2.0+, LGPL-2.0+, GPL-3.0+, LGPL-3.0+
|
||||
GDB_LICENSE_FILES = COPYING COPYING.LIB COPYING3 COPYING3.LIB
|
||||
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
From: H.J. Lu <hjl.tools@gmail.com>
|
||||
Date: Fri, 23 Jun 2017 21:38:46 +0000 (-0700)
|
||||
Subject: Avoid .symver on common symbols [BZ #21666]
|
||||
X-Git-Tag: glibc-2.26~241
|
||||
X-Git-Url: https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff_plain;h=388b4f1a02f3a801965028bbfcd48d905638b797
|
||||
|
||||
Avoid .symver on common symbols [BZ #21666]
|
||||
|
||||
The .symver directive on common symbol just creates a new common symbol,
|
||||
not an alias and the newer assembler with the bug fix for
|
||||
|
||||
https://sourceware.org/bugzilla/show_bug.cgi?id=21661
|
||||
|
||||
will issue an error. Before the fix, we got
|
||||
|
||||
$ readelf -sW libc.so | grep "loc[12s]"
|
||||
5109: 00000000003a0608 8 OBJECT LOCAL DEFAULT 36 loc1
|
||||
5188: 00000000003a0610 8 OBJECT LOCAL DEFAULT 36 loc2
|
||||
5455: 00000000003a0618 8 OBJECT LOCAL DEFAULT 36 locs
|
||||
6575: 00000000003a05f0 8 OBJECT GLOBAL DEFAULT 36 locs@GLIBC_2.2.5
|
||||
7156: 00000000003a05f8 8 OBJECT GLOBAL DEFAULT 36 loc1@GLIBC_2.2.5
|
||||
7312: 00000000003a0600 8 OBJECT GLOBAL DEFAULT 36 loc2@GLIBC_2.2.5
|
||||
|
||||
in libc.so. The versioned loc1, loc2 and locs have the wrong addresses.
|
||||
After the fix, we got
|
||||
|
||||
$ readelf -sW libc.so | grep "loc[12s]"
|
||||
6570: 000000000039e3b8 8 OBJECT GLOBAL DEFAULT 34 locs@GLIBC_2.2.5
|
||||
7151: 000000000039e3c8 8 OBJECT GLOBAL DEFAULT 34 loc1@GLIBC_2.2.5
|
||||
7307: 000000000039e3c0 8 OBJECT GLOBAL DEFAULT 34 loc2@GLIBC_2.2.5
|
||||
|
||||
[BZ #21666]
|
||||
* misc/regexp.c (loc1): Add __attribute__ ((nocommon));
|
||||
(loc2): Likewise.
|
||||
(locs): Likewise.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
[Backported from upstream commit
|
||||
388b4f1a02f3a801965028bbfcd48d905638b797, to fix the build with
|
||||
binutils 2.29.]
|
||||
---
|
||||
diff --git a/misc/regexp.c b/misc/regexp.c
|
||||
index 19d76c0..eaea7c3 100644
|
||||
--- a/misc/regexp.c
|
||||
+++ b/misc/regexp.c
|
||||
@@ -29,14 +29,15 @@
|
||||
|
||||
#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_23)
|
||||
|
||||
-/* Define the variables used for the interface. */
|
||||
-char *loc1;
|
||||
-char *loc2;
|
||||
+/* Define the variables used for the interface. Avoid .symver on common
|
||||
+ symbol, which just creates a new common symbol, not an alias. */
|
||||
+char *loc1 __attribute__ ((nocommon));
|
||||
+char *loc2 __attribute__ ((nocommon));
|
||||
compat_symbol (libc, loc1, loc1, GLIBC_2_0);
|
||||
compat_symbol (libc, loc2, loc2, GLIBC_2_0);
|
||||
|
||||
/* Although we do not support the use we define this variable as well. */
|
||||
-char *locs;
|
||||
+char *locs __attribute__ ((nocommon));
|
||||
compat_symbol (libc, locs, locs, GLIBC_2_0);
|
||||
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
From patchwork Wed Jun 14 06:19:50 2017
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
MIME-Version: 1.0
|
||||
Content-Transfer-Encoding: 7bit
|
||||
Subject: i686: Add missing IS_IN (libc) guards to vectorized strcspn
|
||||
From: Florian Weimer <fweimer@redhat.com>
|
||||
X-Patchwork-Id: 21003
|
||||
Message-Id: <20170614061950.400FE4010728F@oldenburg.str.redhat.com>
|
||||
To: libc-alpha@sourceware.org
|
||||
Date: Wed, 14 Jun 2017 08:19:50 +0200
|
||||
|
||||
Since commit d957c4d3fa48d685ff2726c605c988127ef99395 (i386: Compile
|
||||
rtld-*.os with -mno-sse -mno-mmx -mfpmath=387), vector intrinsics can
|
||||
no longer be used in ld.so, even if the compiled code never makes it
|
||||
into the final ld.so link. This commit adds the missing IS_IN (libc)
|
||||
guard to the SSE 4.2 strcspn implementation, so that it can be used from
|
||||
ld.so in the future.
|
||||
|
||||
2017-06-14 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* sysdeps/i386/i686/multiarch/strcspn-c.c: Add IS_IN (libc) guard.
|
||||
* sysdeps/i386/i686/multiarch/varshift.c: Likewise.
|
||||
|
||||
[Thomas: fixes a build issue of glibc on x86:
|
||||
sysdeps/x86_64/multiarch/varshift.h:26:1: error: SSE vector return without SSE enabled changes the ABI]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
diff --git a/sysdeps/i386/i686/multiarch/strcspn-c.c b/sysdeps/i386/i686/multiarch/strcspn-c.c
|
||||
index 6d61e19..ec230fb 100644
|
||||
--- a/sysdeps/i386/i686/multiarch/strcspn-c.c
|
||||
+++ b/sysdeps/i386/i686/multiarch/strcspn-c.c
|
||||
@@ -1,2 +1,4 @@
|
||||
-#define __strcspn_sse2 __strcspn_ia32
|
||||
-#include <sysdeps/x86_64/multiarch/strcspn-c.c>
|
||||
+#if IS_IN (libc)
|
||||
+# define __strcspn_sse2 __strcspn_ia32
|
||||
+# include <sysdeps/x86_64/multiarch/strcspn-c.c>
|
||||
+#endif
|
||||
diff --git a/sysdeps/i386/i686/multiarch/varshift.c b/sysdeps/i386/i686/multiarch/varshift.c
|
||||
index 7760b96..6742a35 100644
|
||||
--- a/sysdeps/i386/i686/multiarch/varshift.c
|
||||
+++ b/sysdeps/i386/i686/multiarch/varshift.c
|
||||
@@ -1 +1,3 @@
|
||||
-#include <sysdeps/x86_64/multiarch/varshift.c>
|
||||
+#if IS_IN (libc)
|
||||
+# include <sysdeps/x86_64/multiarch/varshift.c>
|
||||
+#endif
|
||||
@@ -0,0 +1,318 @@
|
||||
commit db3d848e154b00071f4a5e729d5884efad410109
|
||||
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
||||
Date: Wed Mar 15 15:44:59 2017 -0300
|
||||
|
||||
Build divdi3 only for architecture that required it
|
||||
|
||||
As noted in [1], divdi3 object is only exported in a handful ABIs
|
||||
(i386, m68k, powerpc32, s390-32, and ia64), however it is built
|
||||
for all current architectures regardless.
|
||||
|
||||
This patch refact the make rules for this object to so only the
|
||||
aforementioned architectures that actually require it builds it.
|
||||
|
||||
Also, to avoid internal PLT calls to the exported symbol from the
|
||||
module, glibc uses an internal header (symbol-hacks.h) which is
|
||||
unrequired (and in fact breaks the build for architectures that
|
||||
intend to get symbol definitions from libgcc.a). The patch also
|
||||
changes it to create its own header (divdi3-symbol-hacks.h) and
|
||||
adjust the architectures that require it accordingly.
|
||||
|
||||
I checked the build/check (with run-built-tests=no) on the
|
||||
following architectures (which I think must cover all supported
|
||||
ABI/builds) using GCC 6.3:
|
||||
|
||||
aarch64-linux-gnu
|
||||
alpha-linux-gnu
|
||||
arm-linux-gnueabihf
|
||||
hppa-linux-gnu
|
||||
ia64-linux-gnu
|
||||
m68k-linux-gnu
|
||||
microblaze-linux-gnu
|
||||
mips64-n32-linux-gnu
|
||||
mips-linux-gnu
|
||||
mips64-linux-gnu
|
||||
nios2-linux-gnu
|
||||
powerpc-linux-gnu
|
||||
powerpc-linux-gnu-power4
|
||||
powerpc64-linux-gnu
|
||||
powerpc64le-linux-gnu
|
||||
s390x-linux-gnu
|
||||
s390-linux-gnu
|
||||
sh4-linux-gnu
|
||||
sh4-linux-gnu-soft
|
||||
sparc64-linux-gnu
|
||||
sparcv9-linux-gnu
|
||||
tilegx-linux-gnu
|
||||
tilegx-linux-gnu-32
|
||||
tilepro-linux-gnu
|
||||
x86_64-linux-gnu
|
||||
x86_64-linux-gnu-x32
|
||||
i686-linux-gnu
|
||||
|
||||
I only saw one regression on sparcv9-linux-gnu (extra PLT call to
|
||||
.udiv) which I address in next patch in the set. It also correctly
|
||||
build SH with GCC 7.0.1 (without any regression from c89721e25d).
|
||||
|
||||
[1] https://sourceware.org/ml/libc-alpha/2017-03/msg00243.html
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
|
||||
diff --git a/sysdeps/i386/symbol-hacks.h b/sysdeps/i386/symbol-hacks.h
|
||||
new file mode 100644
|
||||
index 0000000000..36a13c83f7
|
||||
--- /dev/null
|
||||
+++ b/sysdeps/i386/symbol-hacks.h
|
||||
@@ -0,0 +1,21 @@
|
||||
+/* Hacks needed for symbol manipulation. i386 version.
|
||||
+ Copyright (C) 2017 Free Software Foundation, Inc.
|
||||
+ This file is part of the GNU C Library.
|
||||
+
|
||||
+ The GNU C Library is free software; you can redistribute it and/or
|
||||
+ modify it under the terms of the GNU Lesser General Public
|
||||
+ License as published by the Free Software Foundation; either
|
||||
+ version 2.1 of the License, or (at your option) any later version.
|
||||
+
|
||||
+ The GNU C Library is distributed in the hope that it will be useful,
|
||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
+ Lesser General Public License for more details.
|
||||
+
|
||||
+ You should have received a copy of the GNU Lesser General Public
|
||||
+ License along with the GNU C Library; if not, see
|
||||
+ <http://www.gnu.org/licenses/>. */
|
||||
+
|
||||
+#include <sysdeps/wordsize-32/divdi3-symbol-hacks.h>
|
||||
+
|
||||
+#include_next "symbol-hacks.h"
|
||||
diff --git a/sysdeps/m68k/symbol-hacks.h b/sysdeps/m68k/symbol-hacks.h
|
||||
new file mode 100644
|
||||
index 0000000000..e449d29810
|
||||
--- /dev/null
|
||||
+++ b/sysdeps/m68k/symbol-hacks.h
|
||||
@@ -0,0 +1,21 @@
|
||||
+/* Hacks needed for symbol manipulation. m68k version.
|
||||
+ Copyright (C) 2017 Free Software Foundation, Inc.
|
||||
+ This file is part of the GNU C Library.
|
||||
+
|
||||
+ The GNU C Library is free software; you can redistribute it and/or
|
||||
+ modify it under the terms of the GNU Lesser General Public
|
||||
+ License as published by the Free Software Foundation; either
|
||||
+ version 2.1 of the License, or (at your option) any later version.
|
||||
+
|
||||
+ The GNU C Library is distributed in the hope that it will be useful,
|
||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
+ Lesser General Public License for more details.
|
||||
+
|
||||
+ You should have received a copy of the GNU Lesser General Public
|
||||
+ License along with the GNU C Library; if not, see
|
||||
+ <http://www.gnu.org/licenses/>. */
|
||||
+
|
||||
+#include <sysdeps/wordsize-32/divdi3-symbol-hacks.h>
|
||||
+
|
||||
+#include_next "symbol-hacks.h"
|
||||
diff --git a/sysdeps/powerpc/powerpc32/symbol-hacks.h b/sysdeps/powerpc/powerpc32/symbol-hacks.h
|
||||
new file mode 100644
|
||||
index 0000000000..dbb3141621
|
||||
--- /dev/null
|
||||
+++ b/sysdeps/powerpc/powerpc32/symbol-hacks.h
|
||||
@@ -0,0 +1,21 @@
|
||||
+/* Hacks needed for symbol manipulation. powerpc version.
|
||||
+ Copyright (C) 2017 Free Software Foundation, Inc.
|
||||
+ This file is part of the GNU C Library.
|
||||
+
|
||||
+ The GNU C Library is free software; you can redistribute it and/or
|
||||
+ modify it under the terms of the GNU Lesser General Public
|
||||
+ License as published by the Free Software Foundation; either
|
||||
+ version 2.1 of the License, or (at your option) any later version.
|
||||
+
|
||||
+ The GNU C Library is distributed in the hope that it will be useful,
|
||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
+ Lesser General Public License for more details.
|
||||
+
|
||||
+ You should have received a copy of the GNU Lesser General Public
|
||||
+ License along with the GNU C Library; if not, see
|
||||
+ <http://www.gnu.org/licenses/>. */
|
||||
+
|
||||
+#include <sysdeps/wordsize-32/divdi3-symbol-hacks.h>
|
||||
+
|
||||
+#include_next "symbol-hacks.h"
|
||||
diff --git a/sysdeps/s390/s390-32/symbol-hacks.h b/sysdeps/s390/s390-32/symbol-hacks.h
|
||||
new file mode 100644
|
||||
index 0000000000..585c42365a
|
||||
--- /dev/null
|
||||
+++ b/sysdeps/s390/s390-32/symbol-hacks.h
|
||||
@@ -0,0 +1,21 @@
|
||||
+/* Hacks needed for symbol manipulation. s390 version.
|
||||
+ Copyright (C) 2017 Free Software Foundation, Inc.
|
||||
+ This file is part of the GNU C Library.
|
||||
+
|
||||
+ The GNU C Library is free software; you can redistribute it and/or
|
||||
+ modify it under the terms of the GNU Lesser General Public
|
||||
+ License as published by the Free Software Foundation; either
|
||||
+ version 2.1 of the License, or (at your option) any later version.
|
||||
+
|
||||
+ The GNU C Library is distributed in the hope that it will be useful,
|
||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
+ Lesser General Public License for more details.
|
||||
+
|
||||
+ You should have received a copy of the GNU Lesser General Public
|
||||
+ License along with the GNU C Library; if not, see
|
||||
+ <http://www.gnu.org/licenses/>. */
|
||||
+
|
||||
+#include <sysdeps/wordsize-32/divdi3-symbol-hacks.h>
|
||||
+
|
||||
+#include_next "symbol-hacks.h"
|
||||
diff --git a/sysdeps/unix/sysv/linux/i386/Makefile b/sysdeps/unix/sysv/linux/i386/Makefile
|
||||
index 6aac0dfe15..4080b8c966 100644
|
||||
--- a/sysdeps/unix/sysv/linux/i386/Makefile
|
||||
+++ b/sysdeps/unix/sysv/linux/i386/Makefile
|
||||
@@ -26,6 +26,11 @@ endif
|
||||
|
||||
ifeq ($(subdir),csu)
|
||||
sysdep-dl-routines += sysdep
|
||||
+ifeq (yes,$(build-shared))
|
||||
+sysdep_routines += divdi3
|
||||
+shared-only-routines += divdi3
|
||||
+CPPFLAGS-divdi3.c = -Din_divdi3_c
|
||||
+endif
|
||||
endif
|
||||
|
||||
ifeq ($(subdir),nptl)
|
||||
diff --git a/sysdeps/unix/sysv/linux/m68k/Makefile b/sysdeps/unix/sysv/linux/m68k/Makefile
|
||||
index 5c50ce6927..ce1f696a6f 100644
|
||||
--- a/sysdeps/unix/sysv/linux/m68k/Makefile
|
||||
+++ b/sysdeps/unix/sysv/linux/m68k/Makefile
|
||||
@@ -4,6 +4,11 @@ m68k-syntax-flag = -DMOTOROLA_SYNTAX
|
||||
|
||||
ifeq ($(subdir),csu)
|
||||
sysdep_routines += m68k-helpers
|
||||
+ifeq (yes,$(build-shared))
|
||||
+sysdep_routines += divdi3
|
||||
+shared-only-routines += divdi3
|
||||
+CPPFLAGS-divdi3.c = -Din_divdi3_c
|
||||
+endif
|
||||
endif
|
||||
|
||||
ifeq ($(subdir),misc)
|
||||
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile b/sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
|
||||
index 3d6c150582..1f45659ed1 100644
|
||||
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
|
||||
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
|
||||
@@ -1,2 +1,10 @@
|
||||
# See Makeconfig regarding the use of default-abi.
|
||||
default-abi := 32
|
||||
+
|
||||
+ifeq ($(subdir),csu)
|
||||
+ifeq (yes,$(build-shared))
|
||||
+sysdep_routines += divdi3
|
||||
+shared-only-routines += divdi3
|
||||
+CPPFLAGS-divdi3.c = -Din_divdi3_c
|
||||
+endif
|
||||
+endif
|
||||
diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/Makefile b/sysdeps/unix/sysv/linux/s390/s390-32/Makefile
|
||||
index da3b3c76b4..fd8cf92633 100644
|
||||
--- a/sysdeps/unix/sysv/linux/s390/s390-32/Makefile
|
||||
+++ b/sysdeps/unix/sysv/linux/s390/s390-32/Makefile
|
||||
@@ -21,3 +21,11 @@ endif
|
||||
ifeq ($(subdir),stdlib)
|
||||
sysdep_routines += __makecontext_ret
|
||||
endif
|
||||
+
|
||||
+ifeq ($(subdir),csu)
|
||||
+ifeq (yes,$(build-shared))
|
||||
+sysdep_routines += divdi3
|
||||
+shared-only-routines += divdi3
|
||||
+CPPFLAGS-divdi3.c = -Din_divdi3_c
|
||||
+endif
|
||||
+endif
|
||||
diff --git a/sysdeps/wordsize-32/Makefile b/sysdeps/wordsize-32/Makefile
|
||||
deleted file mode 100644
|
||||
index 82beac44ed..0000000000
|
||||
--- a/sysdeps/wordsize-32/Makefile
|
||||
+++ /dev/null
|
||||
@@ -1,7 +0,0 @@
|
||||
-ifeq ($(subdir),csu)
|
||||
-ifeq (yes,$(build-shared))
|
||||
-sysdep_routines += divdi3
|
||||
-shared-only-routines += divdi3
|
||||
-CPPFLAGS-divdi3.c = -Din_divdi3_c
|
||||
-endif
|
||||
-endif
|
||||
diff --git a/sysdeps/wordsize-32/divdi3-symbol-hacks.h b/sysdeps/wordsize-32/divdi3-symbol-hacks.h
|
||||
new file mode 100644
|
||||
index 0000000000..6c90cb796d
|
||||
--- /dev/null
|
||||
+++ b/sysdeps/wordsize-32/divdi3-symbol-hacks.h
|
||||
@@ -0,0 +1,31 @@
|
||||
+/* Hacks needed for divdi3 symbol manipulation.
|
||||
+ Copyright (C) 2004-2017 Free Software Foundation, Inc.
|
||||
+ This file is part of the GNU C Library.
|
||||
+
|
||||
+ The GNU C Library is free software; you can redistribute it and/or
|
||||
+ modify it under the terms of the GNU Lesser General Public
|
||||
+ License as published by the Free Software Foundation; either
|
||||
+ version 2.1 of the License, or (at your option) any later version.
|
||||
+
|
||||
+ The GNU C Library is distributed in the hope that it will be useful,
|
||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
+ Lesser General Public License for more details.
|
||||
+
|
||||
+ You should have received a copy of the GNU Lesser General Public
|
||||
+ License along with the GNU C Library; if not, see
|
||||
+ <http://www.gnu.org/licenses/>. */
|
||||
+
|
||||
+/* A very dirty trick: gcc emits references to __divdi3, __udivdi3,
|
||||
+ __moddi3, and __umoddi3. These functions are exported and
|
||||
+ therefore we get PLTs. Unnecessarily so. Changing gcc is a big
|
||||
+ task which might not be worth it so we play tricks with the
|
||||
+ assembler.
|
||||
+ Note: in_divdi3_c is only used to avoid symbol alias on divdi3
|
||||
+ build itself. */
|
||||
+#if !defined __ASSEMBLER__ && !defined in_divdi3_c && IS_IN (libc) && defined SHARED
|
||||
+asm ("__divdi3 = __divdi3_internal");
|
||||
+asm ("__udivdi3 = __udivdi3_internal");
|
||||
+asm ("__moddi3 = __moddi3_internal");
|
||||
+asm ("__umoddi3 = __umoddi3_internal");
|
||||
+#endif
|
||||
diff --git a/sysdeps/wordsize-32/symbol-hacks.h b/sysdeps/wordsize-32/symbol-hacks.h
|
||||
deleted file mode 100644
|
||||
index 0aec1e0b97..0000000000
|
||||
--- a/sysdeps/wordsize-32/symbol-hacks.h
|
||||
+++ /dev/null
|
||||
@@ -1,31 +0,0 @@
|
||||
-/* Hacks needed for symbol manipulation.
|
||||
- Copyright (C) 2004-2017 Free Software Foundation, Inc.
|
||||
- This file is part of the GNU C Library.
|
||||
-
|
||||
- The GNU C Library is free software; you can redistribute it and/or
|
||||
- modify it under the terms of the GNU Lesser General Public
|
||||
- License as published by the Free Software Foundation; either
|
||||
- version 2.1 of the License, or (at your option) any later version.
|
||||
-
|
||||
- The GNU C Library is distributed in the hope that it will be useful,
|
||||
- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
- Lesser General Public License for more details.
|
||||
-
|
||||
- You should have received a copy of the GNU Lesser General Public
|
||||
- License along with the GNU C Library; if not, see
|
||||
- <http://www.gnu.org/licenses/>. */
|
||||
-
|
||||
-#include_next "symbol-hacks.h"
|
||||
-
|
||||
-/* A very dirty trick: gcc emits references to __divdi3, __udivdi3,
|
||||
- __moddi3, and __umoddi3. These functions are exported and
|
||||
- therefore we get PLTs. Unnecessarily so. Changing gcc is a big
|
||||
- task which might not be worth it so we play tricks with the
|
||||
- assembler. */
|
||||
-#if !defined __ASSEMBLER__ && !defined in_divdi3_c && IS_IN (libc) && defined SHARED
|
||||
-asm ("__divdi3 = __divdi3_internal");
|
||||
-asm ("__udivdi3 = __udivdi3_internal");
|
||||
-asm ("__moddi3 = __moddi3_internal");
|
||||
-asm ("__umoddi3 = __umoddi3_internal");
|
||||
-#endif
|
||||
@@ -0,0 +1,31 @@
|
||||
From f7bccdca651592cc4082b28fd4a01ed6ef8ab655 Mon Sep 17 00:00:00 2001
|
||||
From: Kjetil Matheussen <k.s.matheussen@notam02.no>
|
||||
Date: Sat, 15 Jul 2017 13:21:59 +0200
|
||||
Subject: [PATCH] Tests: Fix compilation with gcc7
|
||||
|
||||
Fixes
|
||||
../tests/test.cpp: In function ‘int process4(jack_nframes_t, void*)’:
|
||||
../tests/test.cpp:483:73: error: call of overloaded ‘abs(jack_nframes_t)’ is ambiguous
|
||||
if (delta_time > 0 && (jack_nframes_t)abs(delta_time - cur_buffer_size) > tolerance) {
|
||||
|
||||
Downloaded from upstream commit
|
||||
https://github.com/jackaudio/jack2/commit/f7bccdca651592cc4082b28fd4a01ed6ef8ab655
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
---
|
||||
tests/test.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test.cpp b/tests/test.cpp
|
||||
index 8a8a8117..d2ef9a05 100644
|
||||
--- a/tests/test.cpp
|
||||
+++ b/tests/test.cpp
|
||||
@@ -479,7 +479,7 @@ int process4(jack_nframes_t nframes, void *arg)
|
||||
jack_nframes_t delta_time = cur_time - last_time;
|
||||
|
||||
Log("calling process4 callback : jack_frame_time = %ld delta_time = %ld\n", cur_time, delta_time);
|
||||
- if (delta_time > 0 && (jack_nframes_t)abs(delta_time - cur_buffer_size) > tolerance) {
|
||||
+ if (delta_time > 0 && abs((int64_t)delta_time - (int64_t)cur_buffer_size) > (int64_t)tolerance) {
|
||||
printf("!!! ERROR !!! jack_frame_time seems to return incorrect values cur_buffer_size = %d, delta_time = %d tolerance %d\n", cur_buffer_size, delta_time, tolerance);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
From d3c8e2d8d78899fba40a3e677ed4dbe388d82269 Mon Sep 17 00:00:00 2001
|
||||
From: Adrian Knoth <adi@drcomp.erfurt.thur.de>
|
||||
Date: Thu, 18 Sep 2014 18:29:23 +0200
|
||||
Subject: [PATCH] Fix FTBFS with clang++
|
||||
|
||||
Forwarded from http://bugs.debian.org/757820
|
||||
|
||||
Downloaded from upstream commit
|
||||
https://github.com/jackaudio/jack2/commit/d3c8e2d8d78899fba40a3e677ed4dbe388d82269
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
---
|
||||
common/memops.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/common/memops.c b/common/memops.c
|
||||
index 27f6194a..2d416b64 100644
|
||||
--- a/common/memops.c
|
||||
+++ b/common/memops.c
|
||||
@@ -198,7 +198,7 @@ static inline __m128i float_24_sse(__m128 s)
|
||||
*/
|
||||
static unsigned int seed = 22222;
|
||||
|
||||
-inline unsigned int fast_rand() {
|
||||
+static inline unsigned int fast_rand() {
|
||||
seed = (seed * 96314165) + 907633515;
|
||||
return seed;
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
From 7d84bd820ef412d251b643a4faced105668f4ebd Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Fri, 11 Aug 2017 18:52:37 +0200
|
||||
Subject: [PATCH] curl/system.h: support more architectures
|
||||
|
||||
The long list of architectures in include/curl/system.h is annoying to
|
||||
maintain, and needs to be extended for each and every architecture to
|
||||
support.
|
||||
|
||||
Instead, let's rely on the __SIZEOF_LONG__ define of the gcc compiler
|
||||
(we are in the GNUC condition anyway), which tells us if long is 4
|
||||
bytes or 8 bytes.
|
||||
|
||||
This fixes the build of libcurl 7.55.0 on architectures such as
|
||||
OpenRISC or ARC.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
include/curl/system.h | 5 +++--
|
||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/include/curl/system.h b/include/curl/system.h
|
||||
index 79abf8f..0e13075 100644
|
||||
--- a/include/curl/system.h
|
||||
+++ b/include/curl/system.h
|
||||
@@ -403,7 +403,7 @@
|
||||
# if !defined(__LP64__) && (defined(__ILP32__) || \
|
||||
defined(__i386__) || defined(__ppc__) || defined(__arm__) || \
|
||||
defined(__sparc__) || defined(__mips__) || defined(__sh__) || \
|
||||
- defined(__XTENSA__))
|
||||
+ defined(__XTENSA__) || (defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ == 4))
|
||||
# define CURL_SIZEOF_LONG 4
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
@@ -412,7 +412,8 @@
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# elif defined(__LP64__) || \
|
||||
- defined(__x86_64__) || defined(__ppc64__) || defined(__sparc64__)
|
||||
+ defined(__x86_64__) || defined(__ppc64__) || defined(__sparc64__) || \
|
||||
+ (defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ == 8)
|
||||
# define CURL_SIZEOF_LONG 8
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 fdfc4df2d001ee0c44ec071186e770046249263c491fcae48df0e1a3ca8f25a0 curl-7.54.1.tar.bz2
|
||||
# https://curl.haxx.se/download/curl-7.55.0.tar.xz.asc
|
||||
sha256 cdd58522f8607fd4e871df79d73acb3155075e2134641e5adab12a0962df059d curl-7.55.0.tar.xz
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBCURL_VERSION = 7.54.1
|
||||
LIBCURL_SOURCE = curl-$(LIBCURL_VERSION).tar.bz2
|
||||
LIBCURL_VERSION = 7.55.0
|
||||
LIBCURL_SOURCE = curl-$(LIBCURL_VERSION).tar.xz
|
||||
LIBCURL_SITE = https://curl.haxx.se/download
|
||||
LIBCURL_DEPENDENCIES = host-pkgconf \
|
||||
$(if $(BR2_PACKAGE_ZLIB),zlib) \
|
||||
|
||||
@@ -28,12 +28,12 @@ config BR2_KERNEL_HEADERS_AS_KERNEL
|
||||
|
||||
config BR2_KERNEL_HEADERS_3_2
|
||||
bool "Linux 3.2.x kernel headers"
|
||||
depends on !BR2_arc && !BR2_nios2
|
||||
depends on !BR2_aarch64 && !BR2_arc && !BR2_nios2
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
|
||||
|
||||
config BR2_KERNEL_HEADERS_3_4
|
||||
bool "Linux 3.4.x kernel headers"
|
||||
depends on !BR2_arc && !BR2_nios2
|
||||
depends on !BR2_aarch64 && !BR2_arc && !BR2_nios2
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
|
||||
|
||||
config BR2_KERNEL_HEADERS_3_10
|
||||
@@ -235,10 +235,10 @@ config BR2_DEFAULT_KERNEL_HEADERS
|
||||
default "3.4.113" if BR2_KERNEL_HEADERS_3_4
|
||||
default "3.10.106" if BR2_KERNEL_HEADERS_3_10
|
||||
default "3.12.74" if BR2_KERNEL_HEADERS_3_12
|
||||
default "4.1.42" if BR2_KERNEL_HEADERS_4_1
|
||||
default "4.4.79" if BR2_KERNEL_HEADERS_4_4
|
||||
default "4.9.40" if BR2_KERNEL_HEADERS_4_9
|
||||
default "4.1.43" if BR2_KERNEL_HEADERS_4_1
|
||||
default "4.4.80" if BR2_KERNEL_HEADERS_4_4
|
||||
default "4.9.41" if BR2_KERNEL_HEADERS_4_9
|
||||
default "4.10.17" if BR2_KERNEL_HEADERS_4_10
|
||||
default "4.11.12" if BR2_KERNEL_HEADERS_4_11
|
||||
default "4.12.4" if BR2_KERNEL_HEADERS_4_12
|
||||
default "4.12.5" if BR2_KERNEL_HEADERS_4_12
|
||||
default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
add lua.pc
|
||||
|
||||
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
|
||||
[Jörg Krause: add @MYLIBS@]
|
||||
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
|
||||
|
||||
Index: b/etc/lua.pc
|
||||
===================================================================
|
||||
@@ -34,7 +36,7 @@ Index: b/etc/lua.pc
|
||||
+Description: An Extensible Extension Language
|
||||
+Version: ${R}
|
||||
+Requires:
|
||||
+Libs: -L${libdir} -llua -lm
|
||||
+Libs: -L${libdir} -llua -lm @MYLIBS@
|
||||
+Cflags: -I${includedir}
|
||||
+
|
||||
+# (end of lua.pc)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
add lua.pc
|
||||
|
||||
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
|
||||
[Jörg Krause: add @MYLIBS@]
|
||||
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
|
||||
|
||||
Index: b/etc/lua.pc
|
||||
===================================================================
|
||||
@@ -34,7 +36,7 @@ Index: b/etc/lua.pc
|
||||
+Description: An Extensible Extension Language
|
||||
+Version: ${R}
|
||||
+Requires:
|
||||
+Libs: -L${libdir} -llua -lm
|
||||
+Libs: -L${libdir} -llua -lm @MYLIBS@
|
||||
+Cflags: -I${includedir}
|
||||
+
|
||||
+# (end of lua.pc)
|
||||
|
||||
+4
-4
@@ -86,8 +86,8 @@ endef
|
||||
|
||||
define LUA_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) INSTALL_TOP="$(STAGING_DIR)/usr" -C $(@D) install
|
||||
$(INSTALL) -m 0644 -D $(@D)/etc/lua.pc \
|
||||
$(STAGING_DIR)/usr/lib/pkgconfig/lua.pc
|
||||
sed -e "s/@MYLIBS@/$(LUA_MYLIBS)/g" $(@D)/etc/lua.pc \
|
||||
> $(STAGING_DIR)/usr/lib/pkgconfig/lua.pc
|
||||
endef
|
||||
|
||||
define LUA_INSTALL_TARGET_CMDS
|
||||
@@ -96,8 +96,8 @@ endef
|
||||
|
||||
define HOST_LUA_INSTALL_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) INSTALL_TOP="$(HOST_DIR)" -C $(@D) install
|
||||
$(INSTALL) -m 0644 -D $(@D)/etc/lua.pc \
|
||||
$(HOST_DIR)/lib/pkgconfig/lua.pc
|
||||
sed -e "s/@MYLIBS@/$(HOST_LUA_MYLIBS)/g" $(@D)/etc/lua.pc \
|
||||
> $(HOST_DIR)/lib/pkgconfig/lua.pc
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
||||
@@ -66,6 +66,7 @@ MUTT_CONF_ENV += \
|
||||
MUTT_CONF_OPTS += --with-mailpath=/var/mail
|
||||
|
||||
define MUTT_VAR_MAIL
|
||||
mkdir -p $(TARGET_DIR)/var
|
||||
ln -sf /tmp $(TARGET_DIR)/var/mail
|
||||
endef
|
||||
MUTT_POST_INSTALL_TARGET_HOOKS += MUTT_VAR_MAIL
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
From f926559acd1beb74dc5dc9b0e414b087110a251f Mon Sep 17 00:00:00 2001
|
||||
From: Baruch Siach <baruch@tkos.co.il>
|
||||
Date: Wed, 9 Aug 2017 09:43:12 +0300
|
||||
Subject: [PATCH] Makefile: allow linker override for cross uuid test
|
||||
|
||||
The test to determine whether libuuid is installed uses the host 'ld' utility.
|
||||
This breaks when cross compiling, since target libraries are often different
|
||||
than host libraries.
|
||||
|
||||
Use $(LD) instead. This allows to easily use the cross compiler linker.
|
||||
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
---
|
||||
Upstream status: https://github.com/linux-nvme/nvme-cli/pull/216
|
||||
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 3f1d9aaa890d..cc74bdd6c3e6 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,7 +1,7 @@
|
||||
CFLAGS ?= -O2 -g -Wall -Werror
|
||||
CFLAGS += -std=gnu99
|
||||
CPPFLAGS += -D_GNU_SOURCE -D__CHECK_ENDIAN__
|
||||
-LIBUUID = $(shell ld -o /dev/null -luuid >/dev/null 2>&1; echo $$?)
|
||||
+LIBUUID = $(shell $(LD) -o /dev/null -luuid >/dev/null 2>&1; echo $$?)
|
||||
NVME = nvme
|
||||
INSTALL ?= install
|
||||
DESTDIR =
|
||||
--
|
||||
2.13.2
|
||||
|
||||
+1
-12
@@ -9,19 +9,8 @@ NVME_SITE = $(call github,linux-nvme,nvme-cli,$(NVME_VERSION))
|
||||
NVME_LICENSE = GPL-2.0+
|
||||
NVME_LICENSE_FILES = LICENSE
|
||||
|
||||
# Yes LIBUDEV=0 means udev support enabled, LIBUDEV=1 means udev
|
||||
# support disabled.
|
||||
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
||||
NVME_DEPENDENCIES += udev
|
||||
NVME_MAKE_OPTS += LIBUDEV=0
|
||||
else
|
||||
NVME_MAKE_OPTS += LIBUDEV=1
|
||||
endif
|
||||
|
||||
# LIBUDEV=1 means that libudev is _disabled_
|
||||
define NVME_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) \
|
||||
$(NVME_MAKE_OPTS) -C $(@D)
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define NVME_INSTALL_TARGET_CMDS
|
||||
|
||||
@@ -109,6 +109,11 @@ define $(2)_CONFIGURE_CMDS
|
||||
cd $$($$(PKG)_BUILDDIR) && \
|
||||
rm -f CMakeCache.txt && \
|
||||
PATH=$$(BR_PATH) \
|
||||
PKG_CONFIG="$$(PKG_CONFIG_HOST_BINARY)" \
|
||||
PKG_CONFIG_SYSROOT_DIR="/" \
|
||||
PKG_CONFIG_LIBDIR="$$(HOST_DIR)/lib/pkgconfig:$$(HOST_DIR)/share/pkgconfig" \
|
||||
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
|
||||
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
|
||||
$$($$(PKG)_CONF_ENV) $$(BR2_CMAKE) $$($$(PKG)_SRCDIR) \
|
||||
-DCMAKE_INSTALL_SO_NO_EXE=0 \
|
||||
-DCMAKE_FIND_ROOT_PATH="$$(HOST_DIR)" \
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
From adacb2d6701b12511c5a0e58072236da91ebf810 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Mon, 7 Aug 2017 22:54:11 +0200
|
||||
Subject: [PATCH] examples: fix compile without opengl support
|
||||
|
||||
Compile examples/opengl only in case opengl support is available.
|
||||
|
||||
Task-number: QTBUG-62372
|
||||
Change-Id: I742a1eb7b7639a5a722c4d5e9b4ee070b629b02e
|
||||
|
||||
Upstream: https://codereview.qt-project.org/201947
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
examples/examples.pro | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/examples/examples.pro b/examples/examples.pro
|
||||
index a3851c6d81..d87fa2da88 100644
|
||||
--- a/examples/examples.pro
|
||||
+++ b/examples/examples.pro
|
||||
@@ -14,7 +14,8 @@ qtHaveModule(concurrent): SUBDIRS += qtconcurrent
|
||||
qtHaveModule(sql): SUBDIRS += sql
|
||||
qtHaveModule(widgets): SUBDIRS += widgets
|
||||
qtHaveModule(xml): SUBDIRS += xml
|
||||
-qtHaveModule(gui): SUBDIRS += gui opengl
|
||||
+qtHaveModule(gui): SUBDIRS += gui
|
||||
+qtHaveModule(gui):qtConfig(opengl): SUBDIRS += opengl
|
||||
|
||||
aggregate.files = aggregate/examples.pro
|
||||
aggregate.path = $$[QT_INSTALL_EXAMPLES]
|
||||
--
|
||||
2.11.0
|
||||
|
||||
@@ -190,6 +190,16 @@ else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-libinput
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
|
||||
# only enable gtk support if libgtk3 X11 backend is enabled
|
||||
ifeq ($(BR2_PACKAGE_LIBGTK3)$(BR2_PACKAGE_LIBGTK3_X11),yy)
|
||||
QT5BASE_CONFIGURE_OPTS += -gtk
|
||||
QT5BASE_DEPENDENCIES += libgtk3
|
||||
else
|
||||
QT5BASE_CONFIGURE_OPTS += -no-gtk
|
||||
endif
|
||||
endif
|
||||
|
||||
# Build the list of libraries to be installed on the target
|
||||
QT5BASE_INSTALL_LIBS_y += Qt5Core
|
||||
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_XCB) += Qt5XcbQpa
|
||||
|
||||
@@ -75,16 +75,16 @@ endef
|
||||
SKELETON_COMMON_TARGET_FINALIZE_HOOKS += SKELETON_COMMON_SET_ROOT_PASSWD
|
||||
|
||||
ifeq ($(BR2_SYSTEM_BIN_SH_NONE),y)
|
||||
define SKELETON_COMMON_BIN_SH
|
||||
define SKELETON_COMMON_SET_BIN_SH
|
||||
rm -f $(TARGET_DIR)/bin/sh
|
||||
endef
|
||||
else
|
||||
ifneq ($(SKELETON_COMMON_BIN_SH),)
|
||||
define SKELETON_COMMON_BIN_SH
|
||||
define SKELETON_COMMON_SET_BIN_SH
|
||||
ln -sf $(SKELETON_COMMON_BIN_SH) $(TARGET_DIR)/bin/sh
|
||||
endef
|
||||
endif
|
||||
endif
|
||||
SKELETON_COMMON_TARGET_FINALIZE_HOOKS += SKELETON_COMMON_BIN_SH
|
||||
SKELETON_COMMON_TARGET_FINALIZE_HOOKS += SKELETON_COMMON_SET_BIN_SH
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
||||
@@ -36,27 +36,6 @@ SKELETON_CUSTOM_USR_LIB_INODE = $(shell stat -c '%i' $(SKELETON_CUSTOM_PATH)/usr
|
||||
SKELETON_CUSTOM_USR_BIN_INODE = $(shell stat -c '%i' $(SKELETON_CUSTOM_PATH)/usr/bin/. 2>/dev/null)
|
||||
SKELETON_CUSTOM_USR_SBIN_INODE = $(shell stat -c '%i' $(SKELETON_CUSTOM_PATH)/usr/sbin/. 2>/dev/null)
|
||||
|
||||
# Ensure that the custom skeleton has /lib, /bin and /sbin, and their
|
||||
# /usr counterparts
|
||||
ifeq ($(SKELETON_CUSTOM_LIB_INODE),)
|
||||
SKELETON_CUSTOM_MISSING_DIRS += /lib
|
||||
endif
|
||||
ifeq ($(SKELETON_CUSTOM_USR_LIB_INODE),)
|
||||
SKELETON_CUSTOM_MISSING_DIRS += /usr/lib
|
||||
endif
|
||||
ifeq ($(SKELETON_CUSTOM_BIN_INODE),)
|
||||
SKELETON_CUSTOM_MISSING_DIRS += /bin
|
||||
endif
|
||||
ifeq ($(SKELETON_CUSTOM_USR_BIN_INODE),)
|
||||
SKELETON_CUSTOM_MISSING_DIRS += /usr/bin
|
||||
endif
|
||||
ifeq ($(SKELETON_CUSTOM_SBIN_INODE),)
|
||||
SKELETON_CUSTOM_MISSING_DIRS += /sbin
|
||||
endif
|
||||
ifeq ($(SKELETON_CUSTOM_USR_SBIN_INODE),)
|
||||
SKELETON_CUSTOM_MISSING_DIRS += /usr/sbin
|
||||
endif
|
||||
|
||||
# For a merged /usr, ensure that /lib, /bin and /sbin and their /usr
|
||||
# counterparts are appropriately setup as symlinks ones to the others.
|
||||
ifeq ($(BR2_ROOTFS_MERGED_USR),y)
|
||||
@@ -74,11 +53,6 @@ endif
|
||||
endif # merged /usr
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SKELETON_CUSTOM)$(BR_BUILDING),yy)
|
||||
ifneq ($(SKELETON_CUSTOM_MISSING_DIRS),)
|
||||
$(error The custom skeleton in $(SKELETON_CUSTOM_PATH) is \
|
||||
missing those directories or symlinks: \
|
||||
$(SKELETON_CUSTOM_MISSING_DIRS))
|
||||
endif
|
||||
ifneq ($(SKELETON_CUSTOM_NOT_MERGED_USR_DIRS),)
|
||||
$(error The custom skeleton in $(SKELETON_CUSTOM_PATH) is not \
|
||||
using a merged /usr for the following directories: \
|
||||
|
||||
@@ -11,13 +11,4 @@ SNAPPY_LICENSE_FILES = COPYING
|
||||
SNAPPY_INSTALL_STAGING = YES
|
||||
SNAPPY_CONF_OPTS = -DSNAPPY_BUILD_TESTS=OFF
|
||||
|
||||
# libsnappy links with libstdc++. Some libstdc++/arch variants use
|
||||
# pthread symbols for internal locking if built with thread
|
||||
# support. libstdc++ does not have a .pc file, and its .la file does
|
||||
# not mention -pthread. So, static linkig to libstdc++ will fail if
|
||||
# -pthread is not explicity linked to. Only do that for static builds.
|
||||
ifeq ($(BR2_STATIC_LIBS)$(BR2_TOOLCHAIN_HAS_THREADS),yy)
|
||||
SNAPPY_CONF_OPTS += LIBS=-pthread
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
From fb6e573263b7fb80a12d0eb74d22e13899f745ee Mon Sep 17 00:00:00 2001
|
||||
From: Stephen Anthony <sa666666@gmail.com>
|
||||
Date: Mon, 17 Apr 2017 18:52:04 -0230
|
||||
Subject: [PATCH] Update UNIX configure script for gcc7 and above.
|
||||
|
||||
Backported from upstream commit:
|
||||
https://github.com/stella-emu/stella/commit/fb6e573263b7fb80a12d0eb74d22e13899f745ee
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 94b91ef9..b1218e9f 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -417,7 +417,7 @@ elif test "$have_gcc" = yes; then
|
||||
fi
|
||||
|
||||
case $cxx_version in
|
||||
- 4.[7-9]|4.[7-9].[0-9]|4.[7-9].[0-9][-.]*|[5-6].[0-9]|[5-6].[0-9].[0-9]|[5-6].[0-9].[0-9][-.]*)
|
||||
+ 4.[7-9]|4.[7-9].[0-9]|4.[7-9].[0-9][-.]*|[5-9]|[5-9].[0-9]|[5-9].[0-9].[0-9]|[5-9].[0-9].[0-9][-.]*)
|
||||
_cxx_major=`echo $cxx_version | cut -d '.' -f 1`
|
||||
_cxx_minor=`echo $cxx_version | cut -d '.' -f 2`
|
||||
cxx_version="$cxx_version, ok"
|
||||
@@ -4,7 +4,7 @@ config BR2_PACKAGE_SWUPDATE
|
||||
depends on BR2_USE_MMU # fork()
|
||||
# swupdate requires a parser and uses libconfig as default
|
||||
select BR2_PACKAGE_LIBCONFIG if !BR2_PACKAGE_JSON_C && \
|
||||
!BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||
!BR2_PACKAGE_LUA_5_2 && !BR2_PACKAGE_LUA_5_3
|
||||
help
|
||||
swupdate provides a reliable way to update the software on an
|
||||
embedded system.
|
||||
@@ -19,11 +19,8 @@ config BR2_PACKAGE_SWUPDATE
|
||||
use your own modified configuration, you have to select the
|
||||
necessary packages manually:
|
||||
|
||||
* Select BR2_PACKAGE_LUA or BR2_PACKAGE_LUAJIT if you want
|
||||
* Select BR2_PACKAGE_LUA_5_2 or BR2_PACKAGE_LUA_5_3 if you want
|
||||
to have Lua support.
|
||||
CONFIG_HANDLER_IN_LUA is not supported in LuaJIT or Lua 5.1.
|
||||
Note that for LuaJIT support, you need to set
|
||||
CONFIG_LUAVERSION="jit-5.1".
|
||||
* Select BR2_LIBCURL if you want to use the download feature.
|
||||
* Select BR2_PACKAGE_OPENSSL is you want to add encryption support.
|
||||
* Select BR2_PACKAGE_MTD if you want to use swupdate with UBI
|
||||
|
||||
@@ -39,8 +39,8 @@ else
|
||||
SWUPDATE_MAKE_ENV += HAVE_LIBCURL=n
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_LUAINTERPRETER),y)
|
||||
SWUPDATE_DEPENDENCIES += luainterpreter host-pkgconf
|
||||
ifeq ($(BR2_PACKAGE_LUA_5_2)$(BR2_PACKAGE_LUA_5_3),y)
|
||||
SWUPDATE_DEPENDENCIES += lua host-pkgconf
|
||||
SWUPDATE_MAKE_ENV += HAVE_LUA=y
|
||||
else
|
||||
SWUPDATE_MAKE_ENV += HAVE_LUA=n
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
From 111f01d432d542a153c1cad83def3a6ab57df7af Mon Sep 17 00:00:00 2001
|
||||
From: Waldemar Brodkorb <wbx@uclibc-ng.org>
|
||||
Date: Sat, 5 Aug 2017 11:28:07 +0200
|
||||
Subject: [PATCH] fix issues with gdb 8.0
|
||||
|
||||
GDB 8.0 is compiled and linked with g++, but the
|
||||
linking of static targets (f.e. coldfire) fails,
|
||||
without declaring the functions in thread_db.h
|
||||
extern C.
|
||||
|
||||
The compilation of gdb errors out with:
|
||||
thread-db.o: In function `thread_db_init()':
|
||||
thread-db.c:(.text+0x5b6): undefined reference to `td_ta_new(ps_prochandle*, td_thragent**)'
|
||||
thread-db.c:(.text+0x61e): undefined reference to `td_thr_get_info(td_thrhandle const*, td_thrinfo*)'
|
||||
thread-db.c:(.text+0x632): undefined reference to `td_symbol_list()'
|
||||
..
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
|
||||
---
|
||||
libpthread/linuxthreads_db/thread_db.h | 7 +++++++
|
||||
libpthread/nptl_db/thread_db.h | 7 +++++++
|
||||
2 files changed, 14 insertions(+)
|
||||
|
||||
diff --git a/libpthread/linuxthreads_db/thread_db.h b/libpthread/linuxthreads_db/thread_db.h
|
||||
index 13c30af..ec79f60 100644
|
||||
--- a/libpthread/linuxthreads_db/thread_db.h
|
||||
+++ b/libpthread/linuxthreads_db/thread_db.h
|
||||
@@ -27,6 +27,9 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/procfs.h>
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
|
||||
/* Error codes of the library. */
|
||||
typedef enum
|
||||
@@ -455,4 +458,8 @@ extern td_err_e td_thr_dbsuspend (const td_thrhandle_t *__th);
|
||||
/* Resume execution of thread TH. */
|
||||
extern td_err_e td_thr_dbresume (const td_thrhandle_t *__th);
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
#endif /* thread_db.h */
|
||||
diff --git a/libpthread/nptl_db/thread_db.h b/libpthread/nptl_db/thread_db.h
|
||||
index 27ea69a..993842f 100644
|
||||
--- a/libpthread/nptl_db/thread_db.h
|
||||
+++ b/libpthread/nptl_db/thread_db.h
|
||||
@@ -27,6 +27,9 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/procfs.h>
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
|
||||
/* Error codes of the library. */
|
||||
typedef enum
|
||||
@@ -455,4 +458,8 @@ extern td_err_e td_thr_dbsuspend (const td_thrhandle_t *__th);
|
||||
/* Resume execution of thread TH. */
|
||||
extern td_err_e td_thr_dbresume (const td_thrhandle_t *__th);
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
#endif /* thread_db.h */
|
||||
--
|
||||
2.1.4
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
From 9db18d93811153fc9a70c9844fadc6fdf7cbbb64 Mon Sep 17 00:00:00 2001
|
||||
From: Waldemar Brodkorb <wbx@uclibc-ng.org>
|
||||
Date: Sun, 6 Aug 2017 21:15:50 +0200
|
||||
Subject: [PATCH] microblaze: handle R_MICROBLAZE_NONE for ld.so bootstrap
|
||||
|
||||
Latest binutils 2.29 release emits a R_MICROBLAZE_NONE
|
||||
relocation, which breaks shared library loader bootstrap
|
||||
relocation.
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
|
||||
---
|
||||
ldso/ldso/microblaze/dl-startup.h | 7 ++-----
|
||||
1 file changed, 2 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/ldso/ldso/microblaze/dl-startup.h b/ldso/ldso/microblaze/dl-startup.h
|
||||
index 720c53a..16d5762 100644
|
||||
--- a/ldso/ldso/microblaze/dl-startup.h
|
||||
+++ b/ldso/ldso/microblaze/dl-startup.h
|
||||
@@ -82,18 +82,15 @@ static __always_inline
|
||||
void PERFORM_BOOTSTRAP_RELOC(ELF_RELOC *rpnt, unsigned long *reloc_addr,
|
||||
unsigned long symbol_addr, unsigned long load_addr, attribute_unused Elf32_Sym *symtab)
|
||||
{
|
||||
-
|
||||
switch (ELF_R_TYPE(rpnt->r_info))
|
||||
{
|
||||
case R_MICROBLAZE_REL:
|
||||
-
|
||||
*reloc_addr = load_addr + rpnt->r_addend;
|
||||
break;
|
||||
-
|
||||
+ case R_MICROBLAZE_NONE:
|
||||
+ break;
|
||||
default:
|
||||
_dl_exit(1);
|
||||
break;
|
||||
-
|
||||
}
|
||||
-
|
||||
}
|
||||
--
|
||||
2.1.4
|
||||
|
||||
@@ -1,14 +1,19 @@
|
||||
config BR2_PACKAGE_VALGRIND_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_ARM_CPU_ARMV7A
|
||||
default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
|
||||
default y if BR2_i386 || BR2_x86_64
|
||||
default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
|
||||
depends on !BR2_MIPS_SOFT_FLOAT
|
||||
|
||||
comment "valgrind needs a toolchain w/ dynamic library"
|
||||
depends on BR2_PACKAGE_VALGRIND_ARCH_SUPPORTS
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_VALGRIND
|
||||
bool "valgrind"
|
||||
depends on BR2_ARM_CPU_ARMV7A || BR2_i386 || \
|
||||
BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
|
||||
BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \
|
||||
BR2_x86_64
|
||||
depends on BR2_PACKAGE_VALGRIND_ARCH_SUPPORTS
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on !BR2_MIPS_SOFT_FLOAT
|
||||
help
|
||||
Tool for debugging and profiling Linux programs.
|
||||
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
From 6579c307d85a9b447d3b7f13b25fb0a52177ed09 Mon Sep 17 00:00:00 2001
|
||||
From: Carlos Alberto Lopez Perez <clopez@igalia.com>
|
||||
Date: Thu, 3 Aug 2017 13:57:14 +0300
|
||||
Subject: [PATCH] [GTK][WPE] CFLAGS from pkg-config for (E)GL are not passed to
|
||||
WebKit https://bugs.webkit.org/show_bug.cgi?id=175125
|
||||
|
||||
Patch by Carlos Alberto Lopez Perez <clopez@igalia.com> on 2017-08-03
|
||||
Reviewed by NOBODY (OOPS!).
|
||||
|
||||
* CMakeLists.txt: Pass GL-related flags to the WebKit component when
|
||||
appropriate.
|
||||
|
||||
Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
|
||||
|
||||
---
|
||||
Source/WebKit2/CMakeLists.txt | 31 +++++++++++++++++++++++++++++++
|
||||
Source/WebKit2/ChangeLog | 10 ++++++++++
|
||||
2 files changed, 41 insertions(+)
|
||||
|
||||
diff --git a/Source/WebKit2/CMakeLists.txt b/Source/WebKit2/CMakeLists.txt
|
||||
index 2d8215f6a35..b25e9872de2 100644
|
||||
--- a/Source/WebKit2/CMakeLists.txt
|
||||
+++ b/Source/WebKit2/CMakeLists.txt
|
||||
@@ -88,6 +88,37 @@ set(WebKit2_SYSTEM_INCLUDE_DIRECTORIES
|
||||
)
|
||||
|
||||
if (ENABLE_GRAPHICS_CONTEXT_3D)
|
||||
+ # For platforms that want to use system-provided OpenGL (ES) / EGL headers,
|
||||
+ # these include directories, libraries or definitions need to be
|
||||
+ # added before the ANGLE directories.
|
||||
+ if (USE_OPENGL)
|
||||
+ list(APPEND WebKit2_SYSTEM_INCLUDE_DIRECTORIES
|
||||
+ ${OPENGL_INCLUDE_DIRS}
|
||||
+ )
|
||||
+ list(APPEND WebKit2_LIBRARIES
|
||||
+ ${OPENGL_LIBRARIES}
|
||||
+ )
|
||||
+ add_definitions(${OPENGL_DEFINITIONS})
|
||||
+ elseif (USE_OPENGL_ES_2)
|
||||
+ list(APPEND WebKit2_SYSTEM_INCLUDE_DIRECTORIES
|
||||
+ ${OPENGLES2_INCLUDE_DIRS}
|
||||
+ )
|
||||
+ list(APPEND WebKit2_LIBRARIES
|
||||
+ ${OPENGLES2_LIBRARIES}
|
||||
+ )
|
||||
+ add_definitions(${OPENGLES2_DEFINITIONS})
|
||||
+ endif ()
|
||||
+
|
||||
+ if (USE_EGL)
|
||||
+ list(APPEND WebKit2_SYSTEM_INCLUDE_DIRECTORIES
|
||||
+ ${EGL_INCLUDE_DIRS}
|
||||
+ )
|
||||
+ list(APPEND WebKit2_LIBRARIES
|
||||
+ ${EGL_LIBRARIES}
|
||||
+ )
|
||||
+ add_definitions(${EGL_DEFINITIONS})
|
||||
+ endif ()
|
||||
+
|
||||
list(APPEND WebKit2_INCLUDE_DIRECTORIES
|
||||
"${THIRDPARTY_DIR}/ANGLE"
|
||||
"${THIRDPARTY_DIR}/ANGLE/include/KHR"
|
||||
--
|
||||
2.13.4
|
||||
|
||||
@@ -35,6 +35,7 @@ class BRTest(unittest.TestCase):
|
||||
logtofile = True
|
||||
keepbuilds = False
|
||||
jlevel = 0
|
||||
timeout_multiplier = 1
|
||||
|
||||
def __init__(self, names):
|
||||
super(BRTest, self).__init__(names)
|
||||
@@ -60,7 +61,8 @@ class BRTest(unittest.TestCase):
|
||||
self.b.build()
|
||||
self.show_msg("Building done")
|
||||
|
||||
self.emulator = Emulator(self.builddir, self.downloaddir, self.logtofile)
|
||||
self.emulator = Emulator(self.builddir, self.downloaddir,
|
||||
self.logtofile, self.timeout_multiplier)
|
||||
|
||||
def tearDown(self):
|
||||
self.show_msg("Cleaning up")
|
||||
|
||||
@@ -5,10 +5,14 @@ import infra
|
||||
|
||||
class Emulator(object):
|
||||
|
||||
def __init__(self, builddir, downloaddir, logtofile):
|
||||
def __init__(self, builddir, downloaddir, logtofile, timeout_multiplier):
|
||||
self.qemu = None
|
||||
self.downloaddir = downloaddir
|
||||
self.logfile = infra.open_log_file(builddir, "run", logtofile)
|
||||
# We use elastic runners on the cloud to runs our tests. Those runners
|
||||
# can take a long time to run the emulator. Use a timeout multiplier
|
||||
# when running the tests to avoid sporadic failures.
|
||||
self.timeout_multiplier = timeout_multiplier
|
||||
|
||||
# Start Qemu to boot the system
|
||||
#
|
||||
@@ -65,7 +69,8 @@ class Emulator(object):
|
||||
qemu_cmd += ["-append", " ".join(kernel_cmdline)]
|
||||
|
||||
self.logfile.write("> starting qemu with '%s'\n" % " ".join(qemu_cmd))
|
||||
self.qemu = pexpect.spawn(qemu_cmd[0], qemu_cmd[1:], timeout=5,
|
||||
self.qemu = pexpect.spawn(qemu_cmd[0], qemu_cmd[1:],
|
||||
timeout=5 * self.timeout_multiplier,
|
||||
env={"QEMU_AUDIO_DRV": "none"})
|
||||
# We want only stdout into the log to avoid double echo
|
||||
self.qemu.logfile_read = self.logfile
|
||||
@@ -76,7 +81,7 @@ class Emulator(object):
|
||||
# The login prompt can take some time to appear when running multiple
|
||||
# instances in parallel, so set the timeout to a large value
|
||||
index = self.qemu.expect(["buildroot login:", pexpect.TIMEOUT],
|
||||
timeout=60)
|
||||
timeout=60 * self.timeout_multiplier)
|
||||
if index != 0:
|
||||
self.logfile.write("==> System does not boot")
|
||||
raise SystemError("System does not boot")
|
||||
@@ -94,6 +99,8 @@ class Emulator(object):
|
||||
# return a tuple (output, exit_code)
|
||||
def run(self, cmd, timeout=-1):
|
||||
self.qemu.sendline(cmd)
|
||||
if timeout != -1:
|
||||
timeout *= self.timeout_multiplier
|
||||
self.qemu.expect("# ", timeout=timeout)
|
||||
# Remove double carriage return from qemu stdout so str.splitlines()
|
||||
# works as expected.
|
||||
|
||||
@@ -28,6 +28,8 @@ def main():
|
||||
help='number of testcases to run simultaneously')
|
||||
parser.add_argument('-j', '--jlevel', type=int,
|
||||
help='BR2_JLEVEL to use for each testcase')
|
||||
parser.add_argument('--timeout-multiplier', type=int, default=1,
|
||||
help='increase timeouts (useful for slow machines)')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
@@ -97,6 +99,13 @@ def main():
|
||||
# the user can override the auto calculated value
|
||||
BRTest.jlevel = args.jlevel
|
||||
|
||||
if args.timeout_multiplier < 1:
|
||||
print "Invalid multiplier for timeout values"
|
||||
print ""
|
||||
parser.print_help()
|
||||
return 1
|
||||
BRTest.timeout_multiplier = args.timeout_multiplier
|
||||
|
||||
nose2_args = ["-v",
|
||||
"-N", str(args.testcases),
|
||||
"-s", "support/testing",
|
||||
|
||||
Reference in New Issue
Block a user