Compare commits
92
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b3fa45a52 | ||
|
|
d2e18fd66a | ||
|
|
dd59dbd781 | ||
|
|
61e069e164 | ||
|
|
562a587d00 | ||
|
|
850e74c363 | ||
|
|
9781af1247 | ||
|
|
656694423b | ||
|
|
29a0a9f00c | ||
|
|
55d1af7975 | ||
|
|
fdd0f8d5e4 | ||
|
|
ae7becfe50 | ||
|
|
721bcb8513 | ||
|
|
59472d3ba0 | ||
|
|
6d2533bdeb | ||
|
|
161746ca8f | ||
|
|
cc3f8bc165 | ||
|
|
bbe71a699a | ||
|
|
efbd36a141 | ||
|
|
0c5c17a1ba | ||
|
|
cdf63517de | ||
|
|
9c7b093d80 | ||
|
|
cbe01f6756 | ||
|
|
8a8546e584 | ||
|
|
2e7df8c6bb | ||
|
|
a2e56724a3 | ||
|
|
5f56080f84 | ||
|
|
f0e1381ef9 | ||
|
|
031130a4ed | ||
|
|
254ddce7c0 | ||
|
|
ce6536ae50 | ||
|
|
9fb1170159 | ||
|
|
de1aecde52 | ||
|
|
bf53191d9e | ||
|
|
9ed1eda5db | ||
|
|
63ec0c71b5 | ||
|
|
4babfd3497 | ||
|
|
3686101a2a | ||
|
|
9ca80d92e0 | ||
|
|
f0417f965f | ||
|
|
e56ef31c8c | ||
|
|
2a65eacfc1 | ||
|
|
f74932e1ee | ||
|
|
6604b2e9c4 | ||
|
|
5e8b92cec6 | ||
|
|
033f8a4504 | ||
|
|
ab5b263e80 | ||
|
|
aae8513c40 | ||
|
|
8873649a57 | ||
|
|
caf8074cb4 | ||
|
|
c0a5fdf188 | ||
|
|
f1cbfeea95 | ||
|
|
8457c2190a | ||
|
|
6ee9bb0fdf | ||
|
|
9bccca26fb | ||
|
|
5e9f965369 | ||
|
|
3695759b91 | ||
|
|
fe7babeeb0 | ||
|
|
87a49fbace | ||
|
|
0b5553fef7 | ||
|
|
34b1bdeba4 | ||
|
|
466934bb5c | ||
|
|
a880db09bf | ||
|
|
eef80855f1 | ||
|
|
225e1681cc | ||
|
|
0bb83105d2 | ||
|
|
fe7235aaa6 | ||
|
|
fd4f715268 | ||
|
|
72b75c428d | ||
|
|
65f15dd57b | ||
|
|
40c69fc5b5 | ||
|
|
9202490282 | ||
|
|
f82441bfa4 | ||
|
|
c16e6f8d3e | ||
|
|
68d399fbdd | ||
|
|
95682636b8 | ||
|
|
0d8158fc61 | ||
|
|
a92cde90bd | ||
|
|
a2ce4167e2 | ||
|
|
61b6abb2a2 | ||
|
|
feedf86615 | ||
|
|
bbdc48262e | ||
|
|
a9b1d1b6f2 | ||
|
|
c38103f2fe | ||
|
|
023bba7797 | ||
|
|
c20e52825d | ||
|
|
1e11e8b3c3 | ||
|
|
d1dbd48ddc | ||
|
|
8f524f909e | ||
|
|
4ef5ddfeef | ||
|
|
9f8bab1157 | ||
|
|
aba34d92f4 |
@@ -1,3 +1,32 @@
|
||||
2016.08-rc2, Released August 17th, 2016
|
||||
|
||||
Fixes all over the tree.
|
||||
|
||||
Toolchain: disable broken C++ support for internal blackfin
|
||||
toolchains, ARC toolchain bumped to arc-2016.09-eng008 (GCC 6)
|
||||
to fix various issues.
|
||||
|
||||
System: Zoneinfo is available for the musl C library as well.
|
||||
|
||||
Updated/fixed packages: am33x-cm3, axel, barebox, bdwgc,
|
||||
blktrace, cairo, dante, enlightenment, fbterm, ffmpeg, flex,
|
||||
fontconfig, gcc, gmp, gnuplot, gnuradio, gst1-imx, hidapi,
|
||||
inotify_tools, iproute2, kmsxx, lftp, libaio, libcofi,
|
||||
libical, libpjsip, libsidplay2, libunwindow, libxml2,
|
||||
linux-zigbee, lttng-libust, mpv, mtd, ncdu, netplug, ntp,
|
||||
openblas, openipmi, owfs, php, poco, procps, qt, quota,
|
||||
sg3_utils, spidev_test, systemd-bootchart, thrift,
|
||||
uboot-tools, uclibc, webrtc-audio-processing, wayland, weston,
|
||||
xdriver_xf86-video-savage, xserver_xorg-server, xen
|
||||
|
||||
Issues resolved (http://bugs.buildroot.org):
|
||||
|
||||
#9136: make graph-size fails with "ValueError: too many values to..
|
||||
#9151: qt: fix build with ALSA >= 1.1.x
|
||||
#9156: qt: Fix missing runtime Qt3Support dependency
|
||||
#9161: modsetting patch not applied to xserver 1.18.4
|
||||
#9166: Missing overlays directory in VFAT image for raspberry pi 3
|
||||
|
||||
2016.08-rc1, Released August 6th, 2016
|
||||
|
||||
Fixes all over the tree and new features.
|
||||
|
||||
@@ -46,7 +46,7 @@ else # umask
|
||||
all:
|
||||
|
||||
# Set and export the version string
|
||||
export BR2_VERSION := 2016.08-rc1
|
||||
export BR2_VERSION := 2016.08-rc2
|
||||
|
||||
# Save running make version since it's clobbered by the make package
|
||||
RUNNING_MAKE_VERSION := $(MAKE_VERSION)
|
||||
|
||||
@@ -13,7 +13,7 @@ setenv m_bpp "32"
|
||||
setenv hpd "true"
|
||||
|
||||
# Default Console Device Setting
|
||||
setenv condev "console=ttyS0,115200n8" # Serial Console
|
||||
setenv condev "console=ttyS0,115200n8 console=tty0" # on both
|
||||
|
||||
# Meson Timer
|
||||
# 1 - Meson Timer
|
||||
|
||||
@@ -61,6 +61,8 @@ else ifeq ($$(KERNEL_ARCH),x86_64)
|
||||
$(1)_ARCH = x86
|
||||
else ifeq ($$(KERNEL_ARCH),powerpc)
|
||||
$(1)_ARCH = ppc
|
||||
else ifeq ($$(KERNEL_ARCH),arm64)
|
||||
$(1)_ARCH = arm
|
||||
else
|
||||
$(1)_ARCH = $$(KERNEL_ARCH)
|
||||
endif
|
||||
|
||||
@@ -5,7 +5,8 @@ BR2_arm920t=y
|
||||
# Filesystem
|
||||
BR2_TARGET_ROOTFS_TAR=y
|
||||
|
||||
# Linux headers same as kernel, a 2.6 series (so, no option selected)
|
||||
# Linux headers same as kernel, a 2.6 series
|
||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_REALLY_OLD=y
|
||||
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
|
||||
@@ -23,3 +23,4 @@ BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.07"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="axs101"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
|
||||
@@ -24,3 +24,4 @@ BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.07"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="axs103"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
|
||||
@@ -73,12 +73,12 @@ details.
|
||||
* If a +series+ file exists in the package directory, then patches are
|
||||
applied according to the +series+ file;
|
||||
+
|
||||
* Otherwise, patch files matching +<packagename>-*.patch+
|
||||
are applied in alphabetical order.
|
||||
* Otherwise, patch files matching +*.patch+ are applied in alphabetical
|
||||
order.
|
||||
So, to ensure they are applied in the right order, it is highly
|
||||
recommended to name the patch files like this:
|
||||
+<packagename>-<number>-<description>.patch+, where +<number>+
|
||||
refers to the 'apply order'.
|
||||
+<number>-<description>.patch+, where +<number>+ refers to the
|
||||
'apply order'.
|
||||
|
||||
. If +BR2_GLOBAL_PATCH_DIR+ is defined, the directories will be
|
||||
enumerated in the order they are specified. The patches are applied
|
||||
|
||||
@@ -42,37 +42,37 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 style="text-align: center;">Latest release candidate: <b>2016.08-rc1</b></h3>
|
||||
<h3 style="text-align: center;">Latest release candidate: <b>2016.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-2016.08-rc1.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2016.08-rc2.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
</div>
|
||||
<div class="back">
|
||||
<a href="/downloads/buildroot-2016.08-rc1.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2016.08-rc2.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3><a href="/downloads/buildroot-2016.08-rc1.tar.gz">buildroot-2016.08-rc1.tar.gz</a></h3>
|
||||
<p><a href="/downloads/buildroot-2016.08-rc1.tar.gz.sign">PGP signature</a></p>
|
||||
<h3><a href="/downloads/buildroot-2016.08-rc2.tar.gz">buildroot-2016.08-rc2.tar.gz</a></h3>
|
||||
<p><a href="/downloads/buildroot-2016.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-2016.08-rc1.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2016.08-rc2.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
</div>
|
||||
<div class="back">
|
||||
<a href="/downloads/buildroot-2016.08-rc1.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2016.08-rc2.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3><a href="/downloads/buildroot-2016.08-rc1.tar.bz2">buildroot-2016.08-rc1.tar.bz2</a></h3>
|
||||
<p><a href="/downloads/buildroot-2016.08-rc1.tar.bz2.sign">PGP signature</a></p>
|
||||
<h3><a href="/downloads/buildroot-2016.08-rc2.tar.bz2">buildroot-2016.08-rc2.tar.bz2</a></h3>
|
||||
<p><a href="/downloads/buildroot-2016.08-rc2.tar.bz2.sign">PGP signature</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
+25
-2
@@ -9,18 +9,41 @@
|
||||
<h2>News</h2>
|
||||
<ul class="timeline">
|
||||
|
||||
<li class="timeline-inverted">
|
||||
<div class="timeline-badge"><i class="glyphicon glyphicon-thumbs-up"></i></div>
|
||||
<div class="timeline-panel">
|
||||
<div class="timeline-heading">
|
||||
<h4 class="timeline-title">2016.08-rc2 released</h4>
|
||||
<p><small class="text-muted"><i class="glyphicon glyphicon-time"></i>17 August 2016</small></p>
|
||||
</div>
|
||||
<div class="timeline-body">
|
||||
<p>Another week, another release candidate with more cleanups
|
||||
and build fixes. See
|
||||
the <a href="http://git.buildroot.net/buildroot/plain/CHANGES?id=2016.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-2016.08-rc2.tar.bz2">2016.08-rc2
|
||||
release candidate</a>, and report any problems found to
|
||||
the <a href="support.html">mailing list</a>
|
||||
or <a href="https://bugs.uclibc.org">bug tracker</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<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">2016.08-rc1 released</h4>
|
||||
<p><small class="text-muted"><i class="glyphicon glyphicon-time"></i>10 May 2016</small></p>
|
||||
<p><small class="text-muted"><i class="glyphicon glyphicon-time"></i>6 August 2016</small></p>
|
||||
</div>
|
||||
<div class="timeline-body">
|
||||
<p>We have a new release candidate! Lots of
|
||||
changes all over the tree, see
|
||||
the <a href="http://git.buildroot.net/buildroot/plain/CHANGES?id=2016.08-rc1">CHANGES</a>
|
||||
file for details.
|
||||
file for details and read the
|
||||
<a href="http://lists.busybox.net/pipermail/buildroot/2016-August/169277.html">announcement</a>
|
||||
</p>
|
||||
|
||||
<p>Head to the <a href="/downloads/">downloads page</a> to pick up the
|
||||
|
||||
+5
-6
@@ -18,16 +18,15 @@ config BR2_LINUX_NEEDS_MODULES
|
||||
# Version selection. We provide the choice between:
|
||||
#
|
||||
# 1. A single fairly recent stable kernel version
|
||||
# 2. In case an internal toolchain has been built, the same kernel
|
||||
# version as the kernel headers
|
||||
# 3. A custom stable version
|
||||
# 4. A custom tarball
|
||||
# 2. A custom stable version
|
||||
# 3. A custom tarball
|
||||
# 4. A set of custom repository locations
|
||||
#
|
||||
choice
|
||||
prompt "Kernel version"
|
||||
|
||||
config BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
bool "Latest version (4.7)"
|
||||
bool "Latest version (4.7.1)"
|
||||
|
||||
config BR2_LINUX_KERNEL_CUSTOM_VERSION
|
||||
bool "Custom version"
|
||||
@@ -110,7 +109,7 @@ config BR2_LINUX_KERNEL_CUSTOM_LOCAL_PATH
|
||||
|
||||
config BR2_LINUX_KERNEL_VERSION
|
||||
string
|
||||
default "4.7" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
default "4.7.1" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
|
||||
if BR2_LINUX_KERNEL_CUSTOM_VERSION
|
||||
default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
config BR2_PACKAGE_AM33X_CM3
|
||||
bool "am33x-cm3"
|
||||
depends on BR2_arm # only relevant for TI am335x
|
||||
depends on BR2_BINFMT_ELF # assumes the compiler builds ELF file
|
||||
help
|
||||
Cortex-M3 binary blob for suspend-resume on am335x
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ comment "armadillo needs a toolchain w/ C++"
|
||||
depends on !(BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el)
|
||||
depends on !BR2_powerpc
|
||||
depends on !BR2_bfin
|
||||
depends on !BR2_m68k_cf
|
||||
|
||||
comment "armadillo needs a glibc toolchain w/ C++"
|
||||
depends on BR2_powerpc
|
||||
@@ -14,6 +15,7 @@ config BR2_PACKAGE_ARMADILLO
|
||||
depends on !(BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) # clapack
|
||||
depends on !BR2_powerpc || BR2_TOOLCHAIN_USES_GLIBC # clapack
|
||||
depends on !BR2_bfin # clapack
|
||||
depends on !BR2_m68k_cf # clapack
|
||||
select BR2_PACKAGE_CLAPACK
|
||||
help
|
||||
Armadillo: An Open Source C++ Linear Algebra Library for
|
||||
|
||||
@@ -9,13 +9,14 @@ AXEL_SITE = http://sources.buildroot.net
|
||||
AXEL_LICENSE = GPLv2+
|
||||
AXEL_LICENSE_FILES = COPYING
|
||||
|
||||
AXEL_LDFLAGS = -lpthread
|
||||
|
||||
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
||||
AXEL_DEPENDENCIES += gettext
|
||||
AXEL_LDFLAGS += -lintl
|
||||
endif
|
||||
|
||||
# -lintl may use symbols from -lpthread
|
||||
AXEL_LDFLAGS += -lpthread
|
||||
|
||||
ifneq ($(BR2_ENABLE_LOCALE),y)
|
||||
AXEL_DISABLE_I18N = --i18n=0
|
||||
endif
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
From f8ecc7fb09adf34a23d324f373e667c81311fc1c Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@gmail.com>
|
||||
Date: Sat, 6 Aug 2016 23:24:35 +0200
|
||||
Subject: [PATCH] configure: match uclinux pattern
|
||||
|
||||
bdwgc does not recognize "uclinux" as a valid OS part of the target
|
||||
tuple which is used by some arm cortex-M toolchains.
|
||||
|
||||
Fixes:
|
||||
http://autobuild.buildroot.net/results/94f/94fbc1e5afe183e5b071d1e869b2d780025389e2
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index b1ce2b2..a69d101 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -186,7 +186,7 @@ case "$THREADS" in
|
||||
AC_DEFINE(THREAD_LOCAL_ALLOC)
|
||||
AC_MSG_WARN("Explicit GC_INIT() calls may be required.");
|
||||
;;
|
||||
- *-*-linux*)
|
||||
+ *-*-*linux*)
|
||||
AC_DEFINE(GC_LINUX_THREADS)
|
||||
AC_DEFINE(_REENTRANT)
|
||||
;;
|
||||
--
|
||||
2.5.5
|
||||
|
||||
@@ -28,7 +28,7 @@ endchoice
|
||||
|
||||
config BR2_BINUTILS_VERSION
|
||||
string
|
||||
default "arc-2016.09-eng007" if BR2_arc
|
||||
default "arc-2016.09-eng008" if BR2_arc
|
||||
default "2.24" if BR2_BINUTILS_VERSION_2_24_X
|
||||
default "2.25.1" if BR2_BINUTILS_VERSION_2_25_X
|
||||
default "2.26.1" if BR2_BINUTILS_VERSION_2_26_X
|
||||
|
||||
@@ -4,4 +4,4 @@ sha512 0b36dda0e6d32cd25613c0e64b56b28312515c54d6a159efd3db9a86717f114ab0a0a1f6
|
||||
sha512 9d9165609fd3b0f20d616f9891fc8e2b466eb13e2bfce40125e12427f8f201d20e2b8322bb6cb2b45e8df812f0e8ac059149f8a1f69ba3ed9d86a35c6a540b67 binutils-2.26.1.tar.bz2
|
||||
|
||||
# Locally calculated (fetched from Github)
|
||||
sha512 5ab5d45671ad57eff8f8688260c425ca5b10440b89fd54387a68e7834abee190c540bd2d19292d119f2add6fdf5d39d378315f97384ae26e74d9917b1e163291 binutils-arc-2016.09-eng007.tar.gz
|
||||
sha512 ab2914329cd2c725de567d7d2b6c3018779f0c3109dcbb26663e379d38434f48fd35cd46f680cc47165b6dc77aa35571ed2c09499161fd11bb86dcf5fa7ec068 binutils-arc-2016.09-eng008.tar.gz
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
BINUTILS_VERSION = $(call qstrip,$(BR2_BINUTILS_VERSION))
|
||||
ifeq ($(BINUTILS_VERSION),)
|
||||
ifeq ($(BR2_arc),y)
|
||||
BINUTILS_VERSION = arc-2016.09-eng007
|
||||
BINUTILS_VERSION = arc-2016.09-eng008
|
||||
else
|
||||
BINUTILS_VERSION = 2.25.1
|
||||
endif
|
||||
|
||||
@@ -12,4 +12,5 @@ config BR2_PACKAGE_BLKTRACE
|
||||
http://git.kernel.dk/?p=blktrace.git;a=summary
|
||||
|
||||
comment "blktrace needs a glibc or musl toolchain"
|
||||
depends on BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS
|
||||
depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
|
||||
|
||||
@@ -12,6 +12,11 @@ CAIRO_SITE = http://cairographics.org/releases
|
||||
CAIRO_INSTALL_STAGING = YES
|
||||
CAIRO_AUTORECONF = YES
|
||||
|
||||
# relocation truncated to fit: R_68K_GOT16O
|
||||
ifeq ($(BR2_m68k_cf),y)
|
||||
CAIRO_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot"
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
||||
CAIRO_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -DCAIRO_NO_MUTEX=1"
|
||||
endif
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
From c00e284dd2baa5ecdb0c9586044399cd7cacce3e Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Mon, 8 Aug 2016 12:31:40 +0200
|
||||
Subject: [PATCH] compiler.m4: do not remove -g flag
|
||||
|
||||
A sed expression such as 's/-g//' not only removes the -g
|
||||
debugging-related flag, but also turns more specific flags such as
|
||||
-mfloat-gprs=double into -mfloatprs=double, which is no longer a valid
|
||||
flag.
|
||||
|
||||
However, it turns out that removing -g is not necessary: having -g0
|
||||
after -g negates the -g, and having -ggdb after -g is enough to produce
|
||||
debugging information for GDB.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
compiler.m4 | 6 ------
|
||||
1 file changed, 6 deletions(-)
|
||||
|
||||
diff --git a/compiler.m4 b/compiler.m4
|
||||
index 3a23406..621372c 100644
|
||||
--- a/compiler.m4
|
||||
+++ b/compiler.m4
|
||||
@@ -378,15 +378,9 @@ else
|
||||
gcc)
|
||||
if test x"$aixldbug" != x; then
|
||||
#disable debug info
|
||||
- if echo $CFLAGS | grep -- "-g" >/dev/null; then
|
||||
- CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'`"
|
||||
- fi
|
||||
CFLAGS="$CFLAGS${CFLAGS:+ }-g0"
|
||||
else
|
||||
#use -ggdb also when not debugging
|
||||
- if echo $CFLAGS | grep -- "-g" >/dev/null; then
|
||||
- CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'`"
|
||||
- fi
|
||||
CFLAGS="$CFLAGS${CFLAGS:+ }-ggdb"
|
||||
fi
|
||||
;;
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
From 368c4c7cc5722b2edfe98fb3a8999f8f01bc9b56 Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@gmail.com>
|
||||
Date: Fri, 5 Aug 2016 21:14:46 +0200
|
||||
Subject: [PATCH] E: include uuid.h only when Wayland support is enabled.
|
||||
|
||||
libuuid is checked only when Wayland support is enabled and
|
||||
uuid_t uuid is guarded by HAVE_WAYLAND.
|
||||
|
||||
So move include uuid.h below a HAVE_WAYLAND.
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
---
|
||||
src/bin/e_pixmap.c | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c
|
||||
index 2bd94a7..0b01473 100644
|
||||
--- a/src/bin/e_pixmap.c
|
||||
+++ b/src/bin/e_pixmap.c
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#ifdef HAVE_WAYLAND
|
||||
# include "e_comp_wl.h"
|
||||
+# include <uuid.h>
|
||||
# ifndef EGL_TEXTURE_FORMAT
|
||||
# define EGL_TEXTURE_FORMAT 0x3080
|
||||
# endif
|
||||
@@ -13,8 +14,6 @@
|
||||
# include "e_comp_x.h"
|
||||
#endif
|
||||
|
||||
-#include <uuid.h>
|
||||
-
|
||||
static Eina_Hash *pixmaps[2] = {NULL};
|
||||
static Eina_Hash *aliases[2] = {NULL};
|
||||
|
||||
--
|
||||
2.5.5
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
lib/vterm_states: fix C++11 compliance
|
||||
|
||||
In C++11, narrowing a type is no longer allowed in structure
|
||||
initializers:
|
||||
|
||||
struct foo { u16 u; };
|
||||
foo f[] = { {0}, {-1} };
|
||||
|
||||
results in the gcc-6 to whine out loudly, and fail:
|
||||
|
||||
error: narrowing conversion of ‘-1’ from ‘int’ to ‘u16 {aka short unsigned int}’ inside { } [-Wnarrowing]
|
||||
};
|
||||
^
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
|
||||
diff -durN fbterm-1.7.0.orig/src/lib/vterm_states.cpp fbterm-1.7.0/src/lib/vterm_states.cpp
|
||||
--- fbterm-1.7.0.orig/src/lib/vterm_states.cpp 2010-10-06 06:23:08.000000000 +0200
|
||||
+++ fbterm-1.7.0/src/lib/vterm_states.cpp 2016-08-13 16:54:29.495451127 +0200
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "vterm.h"
|
||||
|
||||
#define ADDSAME(len) ((len) << 8)
|
||||
+#define ENDSEQ { ((u16)-1) }
|
||||
|
||||
const VTerm::Sequence VTerm::control_sequences[] = {
|
||||
{ 0, 0, ESkeep },
|
||||
@@ -39,14 +40,14 @@
|
||||
{ 0x1B, 0, ESesc },
|
||||
{ 0x7F, 0, ESkeep },
|
||||
{ 0x9B, 0, ESsquare },
|
||||
- { -1}
|
||||
+ ENDSEQ
|
||||
};
|
||||
|
||||
const VTerm::Sequence VTerm::escape_sequences[] = {
|
||||
{ 0, 0, ESnormal },
|
||||
|
||||
// ESnormal
|
||||
- { -1 },
|
||||
+ ENDSEQ,
|
||||
|
||||
// ESesc
|
||||
{ '[', &VTerm::clear_param, ESsquare },
|
||||
@@ -65,7 +66,7 @@
|
||||
{ '8', &VTerm::restore_cursor, ESnormal },
|
||||
{ '>', &VTerm::keypad_numeric, ESnormal },
|
||||
{ '=', &VTerm::keypad_application, ESnormal },
|
||||
- { -1 },
|
||||
+ ENDSEQ,
|
||||
|
||||
// ESsquare
|
||||
{ '[', 0, ESfunckey },
|
||||
@@ -104,7 +105,7 @@
|
||||
{ '`', &VTerm::cursor_position_col, ESnormal },
|
||||
{ ']', &VTerm::linux_specific, ESnormal },
|
||||
{ '}', &VTerm::fbterm_specific, ESnormal },
|
||||
- { -1 },
|
||||
+ ENDSEQ,
|
||||
|
||||
// ESnonstd
|
||||
{ '0' | ADDSAME(9), &VTerm::set_palette, ESkeep },
|
||||
@@ -112,25 +113,25 @@
|
||||
{ 'a' | ADDSAME(5), &VTerm::set_palette, ESkeep },
|
||||
{ 'P', &VTerm::begin_set_palette, ESkeep },
|
||||
{ 'R', &VTerm::reset_palette, ESnormal },
|
||||
- { -1 },
|
||||
+ ENDSEQ,
|
||||
|
||||
// ESpercent
|
||||
{ '@', &VTerm::clear_utf8, ESnormal },
|
||||
{ 'G', &VTerm::set_utf8, ESnormal },
|
||||
{ '8', &VTerm::set_utf8, ESnormal },
|
||||
- { -1 },
|
||||
+ ENDSEQ,
|
||||
|
||||
// EScharset
|
||||
{ '0', &VTerm::set_charset, ESnormal },
|
||||
{ 'B', &VTerm::set_charset, ESnormal },
|
||||
{ 'U', &VTerm::set_charset, ESnormal },
|
||||
{ 'K', &VTerm::set_charset, ESnormal },
|
||||
- { -1 },
|
||||
+ ENDSEQ,
|
||||
|
||||
// EShash
|
||||
{ '8', &VTerm::screen_align, ESnormal },
|
||||
- { -1 },
|
||||
+ ENDSEQ,
|
||||
|
||||
// ESfunckey
|
||||
- { -1 },
|
||||
+ ENDSEQ,
|
||||
};
|
||||
@@ -2,7 +2,9 @@ config BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
|
||||
bool
|
||||
# fenv.h lacks FE_INVALID, FE_OVERFLOW & FE_UNDERFLOW on nios2
|
||||
# ffmpeg's configure script only supports mips64 (r1) variant
|
||||
default y if !BR2_nios2 && !BR2_mips_64r2 && !BR2_mips_64r6
|
||||
# No support for ARMv7-M in the ARM assembly logic
|
||||
default y if !BR2_nios2 && !BR2_mips_64r2 && !BR2_mips_64r6 && \
|
||||
!BR2_ARM_CPU_ARMV7M
|
||||
|
||||
menuconfig BR2_PACKAGE_FFMPEG
|
||||
bool "ffmpeg"
|
||||
|
||||
@@ -437,8 +437,11 @@ FFMPEG_CONF_OPTS += --disable-vfp
|
||||
endif
|
||||
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
||||
FFMPEG_CONF_OPTS += --enable-neon
|
||||
else
|
||||
FFMPEG_CONF_OPTS += --disable-neon
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_mips)$(BR2_mipsel)$(BR2_mips64)$(BR2_mips64el),y)
|
||||
ifeq ($(BR2_MIPS_SOFT_FLOAT),y)
|
||||
FFMPEG_CONF_OPTS += --disable-mipsfpu
|
||||
else
|
||||
@@ -452,6 +455,7 @@ else
|
||||
FFMPEG_CONF_OPTS += \
|
||||
--disable-mips32r2
|
||||
endif
|
||||
endif # MIPS
|
||||
|
||||
ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
|
||||
FFMPEG_CONF_OPTS += --enable-altivec
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
From a5cbe929ac3255d371e698f62dc256afe7006466 Mon Sep 17 00:00:00 2001
|
||||
From: Will Estes <westes575@gmail.com>
|
||||
Date: Sat, 27 Feb 2016 11:56:05 -0500
|
||||
Subject: [PATCH] Fixed incorrect integer type
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
---
|
||||
Status: upstream
|
||||
|
||||
flex.skl | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/flex.skl b/src/flex.skl
|
||||
index 36a526a..64f853d 100644
|
||||
--- a/flex.skl
|
||||
+++ b/flex.skl
|
||||
@@ -1703,7 +1703,7 @@ int yyFlexLexer::yy_get_next_buffer()
|
||||
|
||||
else
|
||||
{
|
||||
- yy_size_t num_to_read =
|
||||
+ int num_to_read =
|
||||
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
|
||||
|
||||
while ( num_to_read <= 0 )
|
||||
@@ -1,2 +1,2 @@
|
||||
# From http://lists.freedesktop.org/archives/fontconfig/2014-March/005167.html
|
||||
sha256 b6b066c7dce3f436fdc0dfbae9d36122b38094f4f53bd8dffd45e195b0540d8d fontconfig-2.11.1.tar.gz
|
||||
# From https://lists.freedesktop.org/archives/fontconfig/2016-August/005794.html
|
||||
sha256 b449a3e10c47e1d1c7a6ec6e2016cca73d3bd68fbbd4f0ae5cc6b573f7d6c7f3 fontconfig-2.12.1.tar.bz2
|
||||
|
||||
@@ -4,8 +4,9 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FONTCONFIG_VERSION = 2.11.1
|
||||
FONTCONFIG_VERSION = 2.12.1
|
||||
FONTCONFIG_SITE = http://fontconfig.org/release
|
||||
FONTCONFIG_SOURCE = fontconfig-$(FONTCONFIG_VERSION).tar.bz2
|
||||
FONTCONFIG_INSTALL_STAGING = YES
|
||||
FONTCONFIG_DEPENDENCIES = freetype expat host-pkgconf
|
||||
HOST_FONTCONFIG_DEPENDENCIES = host-freetype host-expat host-pkgconf
|
||||
|
||||
@@ -107,7 +107,7 @@ config BR2_GCC_VERSION
|
||||
default "4.9.4" if BR2_GCC_VERSION_4_9_X
|
||||
default "5.4.0" if BR2_GCC_VERSION_5_X
|
||||
default "6.1.0" if BR2_GCC_VERSION_6_X
|
||||
default "arc-2016.09-eng007" if BR2_GCC_VERSION_4_8_ARC
|
||||
default "arc-2016.09-eng008" if BR2_GCC_VERSION_4_8_ARC
|
||||
|
||||
config BR2_EXTRA_GCC_CONFIG_OPTIONS
|
||||
string "Additional gcc options"
|
||||
@@ -120,6 +120,9 @@ config BR2_EXTRA_GCC_CONFIG_OPTIONS
|
||||
config BR2_TOOLCHAIN_BUILDROOT_CXX
|
||||
bool "Enable C++ support"
|
||||
select BR2_INSTALL_LIBSTDCPP
|
||||
# C++ support currently broken for Blackfin, under
|
||||
# investigation.
|
||||
depends on !BR2_bfin
|
||||
help
|
||||
Enable this option if you want your toolchain to support the
|
||||
C++ language and you want C++ libraries to be installed on
|
||||
|
||||
@@ -1,153 +0,0 @@
|
||||
From 1e5f1089dec3af328fd03125d6778f666d0bd4e4 Mon Sep 17 00:00:00 2001
|
||||
From: edlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4>
|
||||
Date: Thu, 25 Feb 2016 15:33:50 +0000
|
||||
Subject: [PATCH 1/1] 2016-02-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
|
||||
|
||||
Backported from mainline
|
||||
2016-02-19 Jakub Jelinek <jakub@redhat.com>
|
||||
Bernd Edlinger <bernd.edlinger@hotmail.de>
|
||||
|
||||
* Make-lang.in: Invoke gperf with -L C++.
|
||||
* cfns.gperf: Remove prototypes for hash and libc_name_p
|
||||
inlines.
|
||||
* cfns.h: Regenerated.
|
||||
* except.c (nothrow_libfn_p): Adjust.
|
||||
|
||||
|
||||
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@233720 138bc75d-0d04-0410-961f-82ee72b054a4
|
||||
|
||||
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
|
||||
---
|
||||
gcc/cp/Make-lang.in | 2 +-
|
||||
gcc/cp/cfns.gperf | 10 ++--------
|
||||
gcc/cp/cfns.h | 41 ++++++++++++++---------------------------
|
||||
gcc/cp/except.c | 3 ++-
|
||||
5 files changed, 31 insertions(+), 37 deletions(-)
|
||||
|
||||
diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
|
||||
index e98beb1..b09fb02 100644
|
||||
--- a/gcc/cp/Make-lang.in
|
||||
+++ b/gcc/cp/Make-lang.in
|
||||
@@ -111,7 +111,7 @@ else
|
||||
# deleting the $(srcdir)/cp/cfns.h file.
|
||||
$(srcdir)/cp/cfns.h:
|
||||
endif
|
||||
- gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L ANSI-C \
|
||||
+ gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L C++ \
|
||||
$(srcdir)/cp/cfns.gperf --output-file $(srcdir)/cp/cfns.h
|
||||
|
||||
#
|
||||
diff --git a/gcc/cp/cfns.gperf b/gcc/cp/cfns.gperf
|
||||
index 68acd3d..214ecf6 100644
|
||||
--- a/gcc/cp/cfns.gperf
|
||||
+++ b/gcc/cp/cfns.gperf
|
||||
@@ -1,3 +1,5 @@
|
||||
+%language=C++
|
||||
+%define class-name libc_name
|
||||
%{
|
||||
/* Copyright (C) 2000-2015 Free Software Foundation, Inc.
|
||||
|
||||
@@ -16,14 +18,6 @@ for more details.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GCC; see the file COPYING3. If not see
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
-#ifdef __GNUC__
|
||||
-__inline
|
||||
-#endif
|
||||
-static unsigned int hash (const char *, unsigned int);
|
||||
-#ifdef __GNUC__
|
||||
-__inline
|
||||
-#endif
|
||||
-const char * libc_name_p (const char *, unsigned int);
|
||||
%}
|
||||
%%
|
||||
# The standard C library functions, for feeding to gperf; the result is used
|
||||
diff --git a/gcc/cp/cfns.h b/gcc/cp/cfns.h
|
||||
index 1c6665d..596f413 100644
|
||||
--- a/gcc/cp/cfns.h
|
||||
+++ b/gcc/cp/cfns.h
|
||||
@@ -1,5 +1,5 @@
|
||||
-/* ANSI-C code produced by gperf version 3.0.3 */
|
||||
-/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L ANSI-C cfns.gperf */
|
||||
+/* C++ code produced by gperf version 3.0.4 */
|
||||
+/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L C++ --output-file cfns.h cfns.gperf */
|
||||
|
||||
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
|
||||
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
|
||||
@@ -28,7 +28,7 @@
|
||||
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
|
||||
#endif
|
||||
|
||||
-#line 1 "cfns.gperf"
|
||||
+#line 3 "cfns.gperf"
|
||||
|
||||
/* Copyright (C) 2000-2015 Free Software Foundation, Inc.
|
||||
|
||||
@@ -47,25 +47,18 @@ for more details.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GCC; see the file COPYING3. If not see
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
-#ifdef __GNUC__
|
||||
-__inline
|
||||
-#endif
|
||||
-static unsigned int hash (const char *, unsigned int);
|
||||
-#ifdef __GNUC__
|
||||
-__inline
|
||||
-#endif
|
||||
-const char * libc_name_p (const char *, unsigned int);
|
||||
/* maximum key range = 391, duplicates = 0 */
|
||||
|
||||
-#ifdef __GNUC__
|
||||
-__inline
|
||||
-#else
|
||||
-#ifdef __cplusplus
|
||||
-inline
|
||||
-#endif
|
||||
-#endif
|
||||
-static unsigned int
|
||||
-hash (register const char *str, register unsigned int len)
|
||||
+class libc_name
|
||||
+{
|
||||
+private:
|
||||
+ static inline unsigned int hash (const char *str, unsigned int len);
|
||||
+public:
|
||||
+ static const char *libc_name_p (const char *str, unsigned int len);
|
||||
+};
|
||||
+
|
||||
+inline unsigned int
|
||||
+libc_name::hash (register const char *str, register unsigned int len)
|
||||
{
|
||||
static const unsigned short asso_values[] =
|
||||
{
|
||||
@@ -122,14 +115,8 @@ hash (register const char *str, register unsigned int len)
|
||||
return hval + asso_values[(unsigned char)str[len - 1]];
|
||||
}
|
||||
|
||||
-#ifdef __GNUC__
|
||||
-__inline
|
||||
-#ifdef __GNUC_STDC_INLINE__
|
||||
-__attribute__ ((__gnu_inline__))
|
||||
-#endif
|
||||
-#endif
|
||||
const char *
|
||||
-libc_name_p (register const char *str, register unsigned int len)
|
||||
+libc_name::libc_name_p (register const char *str, register unsigned int len)
|
||||
{
|
||||
enum
|
||||
{
|
||||
diff --git a/gcc/cp/except.c b/gcc/cp/except.c
|
||||
index 3ff1ce6..2f2e396 100644
|
||||
--- a/gcc/cp/except.c
|
||||
+++ b/gcc/cp/except.c
|
||||
@@ -1040,7 +1040,8 @@ nothrow_libfn_p (const_tree fn)
|
||||
unless the system headers are playing rename tricks, and if
|
||||
they are, we don't want to be confused by them. */
|
||||
id = DECL_NAME (fn);
|
||||
- return !!libc_name_p (IDENTIFIER_POINTER (id), IDENTIFIER_LENGTH (id));
|
||||
+ return !!libc_name::libc_name_p (IDENTIFIER_POINTER (id),
|
||||
+ IDENTIFIER_LENGTH (id));
|
||||
}
|
||||
|
||||
/* Returns nonzero if an exception of type FROM will be caught by a
|
||||
--
|
||||
1.7.1
|
||||
@@ -1,25 +0,0 @@
|
||||
From c037df1be41f8daf4d581d7ffa4ec8cfa640bccf Mon Sep 17 00:00:00 2001
|
||||
From: glisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>
|
||||
Date: Fri, 25 Apr 2014 08:03:08 +0000
|
||||
Subject: [PATCH] 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
|
||||
|
||||
PR target/43538
|
||||
* mt-gnu: Don't reset CXXFLAGS_FOR_TARGET.
|
||||
|
||||
|
||||
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209784 138bc75d-0d04-0410-961f-82ee72b054a4
|
||||
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
|
||||
---
|
||||
config/mt-gnu | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/config/mt-gnu b/config/mt-gnu
|
||||
index 15bf417..5c696f5 100644
|
||||
--- a/config/mt-gnu
|
||||
+++ b/config/mt-gnu
|
||||
@@ -1 +1 @@
|
||||
-CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -D_GNU_SOURCE
|
||||
+CXXFLAGS_FOR_TARGET += -D_GNU_SOURCE
|
||||
--
|
||||
2.1.4
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
Index: gcc-4.8.0/libmudflap/mf-hooks2.c
|
||||
===================================================================
|
||||
--- gcc-4.8.0.orig/libmudflap/mf-hooks2.c 2013-02-03 18:48:05.000000000 +0100
|
||||
+++ gcc-4.8.0/libmudflap/mf-hooks2.c 2013-03-23 17:39:43.000000000 +0100
|
||||
@@ -424,7 +424,7 @@
|
||||
{
|
||||
TRACE ("%s\n", __PRETTY_FUNCTION__);
|
||||
MF_VALIDATE_EXTENT(s, n, __MF_CHECK_WRITE, "bzero region");
|
||||
- bzero (s, n);
|
||||
+ memset (s, 0, n);
|
||||
}
|
||||
|
||||
|
||||
@@ -434,7 +434,7 @@
|
||||
TRACE ("%s\n", __PRETTY_FUNCTION__);
|
||||
MF_VALIDATE_EXTENT(src, n, __MF_CHECK_READ, "bcopy src");
|
||||
MF_VALIDATE_EXTENT(dest, n, __MF_CHECK_WRITE, "bcopy dest");
|
||||
- bcopy (src, dest, n);
|
||||
+ memmove (dest, src, n);
|
||||
}
|
||||
|
||||
|
||||
@@ -444,7 +444,7 @@
|
||||
TRACE ("%s\n", __PRETTY_FUNCTION__);
|
||||
MF_VALIDATE_EXTENT(s1, n, __MF_CHECK_READ, "bcmp 1st arg");
|
||||
MF_VALIDATE_EXTENT(s2, n, __MF_CHECK_READ, "bcmp 2nd arg");
|
||||
- return bcmp (s1, s2, n);
|
||||
+ return n == 0 ? 0 : memcmp (s1, s2, n);
|
||||
}
|
||||
|
||||
|
||||
@@ -453,7 +453,7 @@
|
||||
size_t n = strlen (s);
|
||||
TRACE ("%s\n", __PRETTY_FUNCTION__);
|
||||
MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "index region");
|
||||
- return index (s, c);
|
||||
+ return strchr (s, c);
|
||||
}
|
||||
|
||||
|
||||
@@ -462,7 +462,7 @@
|
||||
size_t n = strlen (s);
|
||||
TRACE ("%s\n", __PRETTY_FUNCTION__);
|
||||
MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "rindex region");
|
||||
- return rindex (s, c);
|
||||
+ return strrchr (s, c);
|
||||
}
|
||||
|
||||
/* XXX: stpcpy, memccpy */
|
||||
@@ -1,111 +0,0 @@
|
||||
From gcc bugzilla https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60155
|
||||
Upstream status: in trunk.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
--- trunk/gcc/gcse.c 2014/02/12 14:50:06 207726
|
||||
+++ trunk/gcc/gcse.c 2014/04/04 22:25:51 209134
|
||||
@@ -2502,6 +2502,65 @@
|
||||
}
|
||||
}
|
||||
|
||||
+struct set_data
|
||||
+{
|
||||
+ rtx insn;
|
||||
+ const_rtx set;
|
||||
+ int nsets;
|
||||
+};
|
||||
+
|
||||
+/* Increment number of sets and record set in DATA. */
|
||||
+
|
||||
+static void
|
||||
+record_set_data (rtx dest, const_rtx set, void *data)
|
||||
+{
|
||||
+ struct set_data *s = (struct set_data *)data;
|
||||
+
|
||||
+ if (GET_CODE (set) == SET)
|
||||
+ {
|
||||
+ /* We allow insns having multiple sets, where all but one are
|
||||
+ dead as single set insns. In the common case only a single
|
||||
+ set is present, so we want to avoid checking for REG_UNUSED
|
||||
+ notes unless necessary. */
|
||||
+ if (s->nsets == 1
|
||||
+ && find_reg_note (s->insn, REG_UNUSED, SET_DEST (s->set))
|
||||
+ && !side_effects_p (s->set))
|
||||
+ s->nsets = 0;
|
||||
+
|
||||
+ if (!s->nsets)
|
||||
+ {
|
||||
+ /* Record this set. */
|
||||
+ s->nsets += 1;
|
||||
+ s->set = set;
|
||||
+ }
|
||||
+ else if (!find_reg_note (s->insn, REG_UNUSED, dest)
|
||||
+ || side_effects_p (set))
|
||||
+ s->nsets += 1;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+static const_rtx
|
||||
+single_set_gcse (rtx insn)
|
||||
+{
|
||||
+ struct set_data s;
|
||||
+ rtx pattern;
|
||||
+
|
||||
+ gcc_assert (INSN_P (insn));
|
||||
+
|
||||
+ /* Optimize common case. */
|
||||
+ pattern = PATTERN (insn);
|
||||
+ if (GET_CODE (pattern) == SET)
|
||||
+ return pattern;
|
||||
+
|
||||
+ s.insn = insn;
|
||||
+ s.nsets = 0;
|
||||
+ note_stores (pattern, record_set_data, &s);
|
||||
+
|
||||
+ /* Considered invariant insns have exactly one set. */
|
||||
+ gcc_assert (s.nsets == 1);
|
||||
+ return s.set;
|
||||
+}
|
||||
+
|
||||
/* Emit move from SRC to DEST noting the equivalence with expression computed
|
||||
in INSN. */
|
||||
|
||||
@@ -2509,7 +2568,8 @@
|
||||
gcse_emit_move_after (rtx dest, rtx src, rtx insn)
|
||||
{
|
||||
rtx new_rtx;
|
||||
- rtx set = single_set (insn), set2;
|
||||
+ const_rtx set = single_set_gcse (insn);
|
||||
+ rtx set2;
|
||||
rtx note;
|
||||
rtx eqv = NULL_RTX;
|
||||
|
||||
@@ -3369,13 +3429,12 @@
|
||||
FOR_EACH_VEC_ELT (occrs_to_hoist, j, occr)
|
||||
{
|
||||
rtx insn;
|
||||
- rtx set;
|
||||
+ const_rtx set;
|
||||
|
||||
gcc_assert (!occr->deleted_p);
|
||||
|
||||
insn = occr->insn;
|
||||
- set = single_set (insn);
|
||||
- gcc_assert (set);
|
||||
+ set = single_set_gcse (insn);
|
||||
|
||||
/* Create a pseudo-reg to store the result of reaching
|
||||
expressions into. Get the mode for the new pseudo
|
||||
@@ -3456,10 +3515,8 @@
|
||||
{
|
||||
rtx reg;
|
||||
enum reg_class pressure_class;
|
||||
- rtx set = single_set (insn);
|
||||
+ const_rtx set = single_set_gcse (insn);
|
||||
|
||||
- /* Considered invariant insns have only one set. */
|
||||
- gcc_assert (set != NULL_RTX);
|
||||
reg = SET_DEST (set);
|
||||
if (GET_CODE (reg) == SUBREG)
|
||||
reg = SUBREG_REG (reg);
|
||||
@@ -1,273 +0,0 @@
|
||||
Allow C99-depending features of libstdc++ with uClibc
|
||||
|
||||
The libstdc++ code is fairly restrictive on how it checks for C99
|
||||
compatibility: it requires *complete* C99 support to enable certain
|
||||
features. For example, uClibc provides a good number of C99 features,
|
||||
but not C99 complex number support. For this reason, libstdc++
|
||||
completely disables many the standard C++ methods that can in fact
|
||||
work because uClibc provides the necessary functions.
|
||||
|
||||
This patch is similar and highly inspired from
|
||||
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58393, but implemented in
|
||||
a way that doesn't involve changing the configure.ac script, as
|
||||
autoreconfiguring gcc is complicated. It simply relies on the fact
|
||||
that uClibc defines the __UCLIBC__ definition.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/libstdc++-v3/config/locale/generic/c_locale.h
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/config/locale/generic/c_locale.h
|
||||
+++ b/libstdc++-v3/config/locale/generic/c_locale.h
|
||||
@@ -70,7 +70,7 @@
|
||||
__builtin_va_list __args;
|
||||
__builtin_va_start(__args, __fmt);
|
||||
|
||||
-#ifdef _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args);
|
||||
#else
|
||||
const int __ret = __builtin_vsprintf(__out, __fmt, __args);
|
||||
Index: b/libstdc++-v3/config/locale/gnu/c_locale.h
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/config/locale/gnu/c_locale.h
|
||||
+++ b/libstdc++-v3/config/locale/gnu/c_locale.h
|
||||
@@ -88,7 +88,7 @@
|
||||
__builtin_va_list __args;
|
||||
__builtin_va_start(__args, __fmt);
|
||||
|
||||
-#ifdef _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args);
|
||||
#else
|
||||
const int __ret = __builtin_vsprintf(__out, __fmt, __args);
|
||||
Index: b/libstdc++-v3/include/bits/basic_string.h
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/bits/basic_string.h
|
||||
+++ b/libstdc++-v3/include/bits/basic_string.h
|
||||
@@ -2809,7 +2809,7 @@
|
||||
_GLIBCXX_END_NAMESPACE_VERSION
|
||||
} // namespace
|
||||
|
||||
-#if ((__cplusplus >= 201103L) && defined(_GLIBCXX_USE_C99) \
|
||||
+#if ((__cplusplus >= 201103L) && (defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)) \
|
||||
&& !defined(_GLIBCXX_HAVE_BROKEN_VSWPRINTF))
|
||||
|
||||
#include <ext/string_conversions.h>
|
||||
Index: b/libstdc++-v3/include/bits/locale_facets.tcc
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/bits/locale_facets.tcc
|
||||
+++ b/libstdc++-v3/include/bits/locale_facets.tcc
|
||||
@@ -987,7 +987,7 @@
|
||||
char __fbuf[16];
|
||||
__num_base::_S_format_float(__io, __fbuf, __mod);
|
||||
|
||||
-#ifdef _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
// First try a buffer perhaps big enough (most probably sufficient
|
||||
// for non-ios_base::fixed outputs)
|
||||
int __cs_size = __max_digits * 3;
|
||||
Index: b/libstdc++-v3/include/bits/locale_facets_nonio.tcc
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/bits/locale_facets_nonio.tcc
|
||||
+++ b/libstdc++-v3/include/bits/locale_facets_nonio.tcc
|
||||
@@ -572,7 +572,7 @@
|
||||
{
|
||||
const locale __loc = __io.getloc();
|
||||
const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
|
||||
-#ifdef _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
// First try a buffer perhaps big enough.
|
||||
int __cs_size = 64;
|
||||
char* __cs = static_cast<char*>(__builtin_alloca(__cs_size));
|
||||
Index: b/libstdc++-v3/include/c_compatibility/math.h
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/c_compatibility/math.h
|
||||
+++ b/libstdc++-v3/include/c_compatibility/math.h
|
||||
@@ -56,7 +56,7 @@
|
||||
using std::floor;
|
||||
using std::fmod;
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
using std::fpclassify;
|
||||
using std::isfinite;
|
||||
using std::isinf;
|
||||
Index: b/libstdc++-v3/include/c_compatibility/wchar.h
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/c_compatibility/wchar.h
|
||||
+++ b/libstdc++-v3/include/c_compatibility/wchar.h
|
||||
@@ -103,7 +103,7 @@
|
||||
using std::wmemset;
|
||||
using std::wcsftime;
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
using std::wcstold;
|
||||
using std::wcstoll;
|
||||
using std::wcstoull;
|
||||
Index: b/libstdc++-v3/include/c_global/cstdlib
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/c_global/cstdlib
|
||||
+++ b/libstdc++-v3/include/c_global/cstdlib
|
||||
@@ -182,7 +182,7 @@
|
||||
_GLIBCXX_END_NAMESPACE_VERSION
|
||||
} // namespace
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
|
||||
#undef _Exit
|
||||
#undef llabs
|
||||
Index: b/libstdc++-v3/include/c_global/cwchar
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/c_global/cwchar
|
||||
+++ b/libstdc++-v3/include/c_global/cwchar
|
||||
@@ -232,7 +232,7 @@
|
||||
_GLIBCXX_END_NAMESPACE_VERSION
|
||||
} // namespace
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
|
||||
#undef wcstold
|
||||
#undef wcstoll
|
||||
@@ -289,7 +289,7 @@
|
||||
using std::vwscanf;
|
||||
#endif
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
using std::wcstold;
|
||||
using std::wcstoll;
|
||||
using std::wcstoull;
|
||||
Index: b/libstdc++-v3/include/c_std/cstdio
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/c_std/cstdio
|
||||
+++ b/libstdc++-v3/include/c_std/cstdio
|
||||
@@ -139,7 +139,7 @@
|
||||
using ::vsprintf;
|
||||
} // namespace std
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
|
||||
#undef snprintf
|
||||
#undef vfscanf
|
||||
Index: b/libstdc++-v3/include/c_std/cstdlib
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/c_std/cstdlib
|
||||
+++ b/libstdc++-v3/include/c_std/cstdlib
|
||||
@@ -180,7 +180,7 @@
|
||||
_GLIBCXX_END_NAMESPACE_VERSION
|
||||
} // namespace
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
|
||||
#undef _Exit
|
||||
#undef llabs
|
||||
Index: b/libstdc++-v3/include/c_std/cwchar
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/c_std/cwchar
|
||||
+++ b/libstdc++-v3/include/c_std/cwchar
|
||||
@@ -228,7 +228,7 @@
|
||||
_GLIBCXX_END_NAMESPACE_VERSION
|
||||
} // namespace
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
|
||||
#undef wcstold
|
||||
#undef wcstoll
|
||||
Index: b/libstdc++-v3/include/ext/vstring.h
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/ext/vstring.h
|
||||
+++ b/libstdc++-v3/include/ext/vstring.h
|
||||
@@ -2571,7 +2571,7 @@
|
||||
_GLIBCXX_END_NAMESPACE_VERSION
|
||||
} // namespace
|
||||
|
||||
-#if ((__cplusplus >= 201103L) && defined(_GLIBCXX_USE_C99))
|
||||
+#if ((__cplusplus >= 201103L) && (defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)))
|
||||
|
||||
#include <ext/string_conversions.h>
|
||||
|
||||
Index: b/libstdc++-v3/include/tr1/cstdio
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/tr1/cstdio
|
||||
+++ b/libstdc++-v3/include/tr1/cstdio
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
|
||||
namespace std _GLIBCXX_VISIBILITY(default)
|
||||
{
|
||||
Index: b/libstdc++-v3/include/tr1/cstdlib
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/tr1/cstdlib
|
||||
+++ b/libstdc++-v3/include/tr1/cstdlib
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#if _GLIBCXX_HOSTED
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
|
||||
namespace std _GLIBCXX_VISIBILITY(default)
|
||||
{
|
||||
Index: b/libstdc++-v3/include/tr1/cwchar
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/tr1/cwchar
|
||||
+++ b/libstdc++-v3/include/tr1/cwchar
|
||||
@@ -52,7 +52,7 @@
|
||||
using std::vwscanf;
|
||||
#endif
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
using std::wcstold;
|
||||
using std::wcstoll;
|
||||
using std::wcstoull;
|
||||
Index: b/libstdc++-v3/include/tr1/stdlib.h
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/tr1/stdlib.h
|
||||
+++ b/libstdc++-v3/include/tr1/stdlib.h
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#if _GLIBCXX_HOSTED
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
|
||||
using std::tr1::atoll;
|
||||
using std::tr1::strtoll;
|
||||
Index: b/libstdc++-v3/src/c++11/debug.cc
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/src/c++11/debug.cc
|
||||
+++ b/libstdc++-v3/src/c++11/debug.cc
|
||||
@@ -787,7 +787,7 @@
|
||||
int __n __attribute__ ((__unused__)),
|
||||
const char* __fmt, _Tp __s) const throw ()
|
||||
{
|
||||
-#ifdef _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
std::snprintf(__buf, __n, __fmt, __s);
|
||||
#else
|
||||
std::sprintf(__buf, __fmt, __s);
|
||||
Index: b/libstdc++-v3/include/c_global/cstdio
|
||||
===================================================================
|
||||
--- a/libstdc++-v3/include/c_global/cstdio
|
||||
+++ b/libstdc++-v3/include/c_global/cstdio
|
||||
@@ -139,7 +139,7 @@
|
||||
using ::vsprintf;
|
||||
} // namespace
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if defined(_GLIBCXX_USE_C99) || defined(__UCLIBC__)
|
||||
|
||||
#undef snprintf
|
||||
#undef vfscanf
|
||||
@@ -1,244 +0,0 @@
|
||||
From afe990251bd9b3a063f03da31a3b8d139d033bc3 Mon Sep 17 00:00:00 2001
|
||||
From: ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
|
||||
Date: Sat, 1 Jun 2013 00:20:49 +0000
|
||||
Subject: [PATCH] PR other/56780
|
||||
|
||||
* libiberty/configure.ac: Move test for --enable-install-libiberty
|
||||
outside of the 'with_target_subdir' test so that it actually gets
|
||||
run. Add output messages to show the test result.
|
||||
* libiberty/configure: Regenerate.
|
||||
* libiberty/Makefile.in (install_to_libdir): Place the
|
||||
installation of the libiberty library in the same guard as that
|
||||
used for the headers to prevent it being installed unless
|
||||
requested via --enable-install-libiberty.
|
||||
|
||||
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199570 138bc75d-0d04-0410-961f-82ee72b054a4
|
||||
|
||||
libiberty: fix --enable-install-libiberty flag [PR 56780]
|
||||
|
||||
Commit 199570 fixed the --disable-install-libiberty behavior, but it also
|
||||
added a bug where the enable path never works because the initial clear
|
||||
of target_header_dir wasn't deleted. So we end up initializing properly
|
||||
at the top only to reset it at the end all the time.
|
||||
|
||||
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206367 138bc75d-0d04-0410-961f-82ee72b054a4
|
||||
|
||||
[Romain
|
||||
squash the two upstream commits
|
||||
Remove the ChangeLog]
|
||||
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
|
||||
---
|
||||
libiberty/Makefile.in | 24 ++++++++++-----------
|
||||
libiberty/configure | 57 +++++++++++++++++++++++++++-----------------------
|
||||
libiberty/configure.ac | 47 ++++++++++++++++++++++-------------------
|
||||
3 files changed, 68 insertions(+), 60 deletions(-)
|
||||
|
||||
diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
|
||||
index f6a3ebd..75ff82d 100644
|
||||
--- a/libiberty/Makefile.in
|
||||
+++ b/libiberty/Makefile.in
|
||||
@@ -355,19 +355,19 @@ install-strip: install
|
||||
# since it will be passed the multilib flags.
|
||||
MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
|
||||
install_to_libdir: all
|
||||
- ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR)
|
||||
- $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n
|
||||
- ( cd $(DESTDIR)$(libdir)/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n )
|
||||
- mv -f $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)
|
||||
if test -n "${target_header_dir}"; then \
|
||||
- case "${target_header_dir}" in \
|
||||
- /*) thd=${target_header_dir};; \
|
||||
- *) thd=${includedir}/${target_header_dir};; \
|
||||
- esac; \
|
||||
- ${mkinstalldirs} $(DESTDIR)$${thd}; \
|
||||
- for h in ${INSTALLED_HEADERS}; do \
|
||||
- ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \
|
||||
- done; \
|
||||
+ ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR); \
|
||||
+ $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n; \
|
||||
+ ( cd $(DESTDIR)$(libdir)/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n ); \
|
||||
+ mv -f $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB); \
|
||||
+ case "${target_header_dir}" in \
|
||||
+ /*) thd=${target_header_dir};; \
|
||||
+ *) thd=${includedir}/${target_header_dir};; \
|
||||
+ esac; \
|
||||
+ ${mkinstalldirs} $(DESTDIR)$${thd}; \
|
||||
+ for h in ${INSTALLED_HEADERS}; do \
|
||||
+ ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \
|
||||
+ done; \
|
||||
fi
|
||||
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
|
||||
|
||||
diff --git a/libiberty/configure b/libiberty/configure
|
||||
index 5367027..4feb95a 100755
|
||||
--- a/libiberty/configure
|
||||
+++ b/libiberty/configure
|
||||
@@ -675,8 +675,8 @@ with_cross_host
|
||||
with_newlib
|
||||
enable_maintainer_mode
|
||||
enable_multilib
|
||||
-enable_largefile
|
||||
enable_install_libiberty
|
||||
+enable_largefile
|
||||
'
|
||||
ac_precious_vars='build_alias
|
||||
host_alias
|
||||
@@ -1303,8 +1303,8 @@ Optional Features:
|
||||
enable make rules and dependencies not useful
|
||||
(and sometimes confusing) to the casual installer
|
||||
--enable-multilib build many library versions (default)
|
||||
+ --enable-install-libiberty Install headers and library for end users
|
||||
--disable-largefile omit support for large files
|
||||
- --enable-install-libiberty Install headers for end users
|
||||
|
||||
Optional Packages:
|
||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||
@@ -2784,6 +2784,35 @@ if test $cross_compiling = no && test $multilib = yes \
|
||||
cross_compiling=maybe
|
||||
fi
|
||||
|
||||
+# We may wish to install the target headers somewhere.
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libiberty headers and static library" >&5
|
||||
+$as_echo_n "checking whether to install libiberty headers and static library... " >&6; }
|
||||
+
|
||||
+# Check whether --enable-install-libiberty was given.
|
||||
+if test "${enable_install_libiberty+set}" = set; then :
|
||||
+ enableval=$enable_install_libiberty; enable_install_libiberty=$enableval
|
||||
+else
|
||||
+ enable_install_libiberty=no
|
||||
+fi
|
||||
+
|
||||
+# Option parsed, now set things appropriately.
|
||||
+case x"$enable_install_libiberty" in
|
||||
+ xyes|x)
|
||||
+ target_header_dir=libiberty
|
||||
+ ;;
|
||||
+ xno)
|
||||
+ target_header_dir=
|
||||
+ ;;
|
||||
+ *)
|
||||
+ # This could be sanity-checked in various ways...
|
||||
+ target_header_dir="${enable_install_libiberty}"
|
||||
+ ;;
|
||||
+esac
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_install_libiberty" >&5
|
||||
+$as_echo "$enable_install_libiberty" >&6; }
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: target_header_dir = $target_header_dir" >&5
|
||||
+$as_echo "$as_me: target_header_dir = $target_header_dir" >&6;}
|
||||
+
|
||||
|
||||
ac_ext=c
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
@@ -5476,7 +5505,6 @@ fi
|
||||
|
||||
setobjs=
|
||||
CHECK=
|
||||
-target_header_dir=
|
||||
if test -n "${with_target_subdir}"; then
|
||||
|
||||
# We are being configured as a target library. AC_REPLACE_FUNCS
|
||||
@@ -5759,29 +5787,6 @@ _ACEOF
|
||||
|
||||
esac
|
||||
|
||||
- # We may wish to install the target headers somewhere.
|
||||
- # Check whether --enable-install-libiberty was given.
|
||||
-if test "${enable_install_libiberty+set}" = set; then :
|
||||
- enableval=$enable_install_libiberty; enable_install_libiberty=$enableval
|
||||
-else
|
||||
- enable_install_libiberty=no
|
||||
-fi
|
||||
-
|
||||
- # Option parsed, now set things appropriately.
|
||||
- case x"$enable_install_libiberty" in
|
||||
- xyes|x)
|
||||
- target_header_dir=libiberty
|
||||
- ;;
|
||||
- xno)
|
||||
- target_header_dir=
|
||||
- ;;
|
||||
- *)
|
||||
- # This could be sanity-checked in various ways...
|
||||
- target_header_dir="${enable_install_libiberty}"
|
||||
- ;;
|
||||
- esac
|
||||
-
|
||||
-
|
||||
else
|
||||
|
||||
# Not a target library, so we set things up to run the test suite.
|
||||
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
|
||||
index c763894..f17e6b6 100644
|
||||
--- a/libiberty/configure.ac
|
||||
+++ b/libiberty/configure.ac
|
||||
@@ -128,6 +128,31 @@ if test $cross_compiling = no && test $multilib = yes \
|
||||
cross_compiling=maybe
|
||||
fi
|
||||
|
||||
+# We may wish to install the target headers somewhere.
|
||||
+AC_MSG_CHECKING([whether to install libiberty headers and static library])
|
||||
+dnl install-libiberty is disabled by default
|
||||
+
|
||||
+AC_ARG_ENABLE(install-libiberty,
|
||||
+[ --enable-install-libiberty Install headers and library for end users],
|
||||
+enable_install_libiberty=$enableval,
|
||||
+enable_install_libiberty=no)dnl
|
||||
+
|
||||
+# Option parsed, now set things appropriately.
|
||||
+case x"$enable_install_libiberty" in
|
||||
+ xyes|x)
|
||||
+ target_header_dir=libiberty
|
||||
+ ;;
|
||||
+ xno)
|
||||
+ target_header_dir=
|
||||
+ ;;
|
||||
+ *)
|
||||
+ # This could be sanity-checked in various ways...
|
||||
+ target_header_dir="${enable_install_libiberty}"
|
||||
+ ;;
|
||||
+esac
|
||||
+AC_MSG_RESULT($enable_install_libiberty)
|
||||
+AC_MSG_NOTICE([target_header_dir = $target_header_dir])
|
||||
+
|
||||
GCC_NO_EXECUTABLES
|
||||
AC_PROG_CC
|
||||
AC_SYS_LARGEFILE
|
||||
@@ -380,7 +405,6 @@ fi
|
||||
|
||||
setobjs=
|
||||
CHECK=
|
||||
-target_header_dir=
|
||||
if test -n "${with_target_subdir}"; then
|
||||
|
||||
# We are being configured as a target library. AC_REPLACE_FUNCS
|
||||
@@ -492,27 +516,6 @@ if test -n "${with_target_subdir}"; then
|
||||
|
||||
esac
|
||||
|
||||
- # We may wish to install the target headers somewhere.
|
||||
- AC_ARG_ENABLE(install-libiberty,
|
||||
- [ --enable-install-libiberty Install headers for end users],
|
||||
- enable_install_libiberty=$enableval,
|
||||
- enable_install_libiberty=no)dnl
|
||||
-
|
||||
- # Option parsed, now set things appropriately.
|
||||
- case x"$enable_install_libiberty" in
|
||||
- xyes|x)
|
||||
- target_header_dir=libiberty
|
||||
- ;;
|
||||
- xno)
|
||||
- target_header_dir=
|
||||
- ;;
|
||||
- *)
|
||||
- # This could be sanity-checked in various ways...
|
||||
- target_header_dir="${enable_install_libiberty}"
|
||||
- ;;
|
||||
- esac
|
||||
-
|
||||
-
|
||||
else
|
||||
|
||||
# Not a target library, so we set things up to run the test suite.
|
||||
--
|
||||
1.9.3
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
disable split-stack for non-thread builds
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
|
||||
diff -Nur gcc-4.8.5.orig/libgcc/config/t-stack gcc-4.8.5/libgcc/config/t-stack
|
||||
--- gcc-4.8.5.orig/libgcc/config/t-stack 2010-10-01 21:31:49.000000000 +0200
|
||||
+++ gcc-4.8.5/libgcc/config/t-stack 2016-03-07 05:28:12.000000000 +0100
|
||||
@@ -1,4 +1,6 @@
|
||||
# Makefile fragment to provide generic support for -fsplit-stack.
|
||||
# This should be used in config.host for any host which supports
|
||||
# -fsplit-stack.
|
||||
+ifeq ($(enable_threads),yes)
|
||||
LIB2ADD_ST += $(srcdir)/generic-morestack.c $(srcdir)/generic-morestack-thread.c
|
||||
+endif
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
Index: gcc-4.8.0/boehm-gc/include/gc.h
|
||||
Index: b/boehm-gc/include/gc.h
|
||||
===================================================================
|
||||
--- gcc-4.8.0.orig/boehm-gc/include/gc.h 2007-04-23 23:10:09.000000000 +0200
|
||||
+++ gcc-4.8.0/boehm-gc/include/gc.h 2013-03-23 17:39:20.000000000 +0100
|
||||
--- a/boehm-gc/include/gc.h
|
||||
+++ b/boehm-gc/include/gc.h
|
||||
@@ -503,7 +503,7 @@
|
||||
#if defined(__linux__) || defined(__GLIBC__)
|
||||
# include <features.h>
|
||||
@@ -0,0 +1,56 @@
|
||||
[PATCH] cilk: fix build without wchar
|
||||
|
||||
When building against uClibc with wchar support disabled, WCHAR_MIN and
|
||||
WCHAR_MAX are not defined leading to compilation errors.
|
||||
|
||||
Fix it by only including the wchar code if available.
|
||||
|
||||
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||
---
|
||||
libcilkrts/include/cilk/reducer_min_max.h | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
Index: b/libcilkrts/include/cilk/reducer_min_max.h
|
||||
===================================================================
|
||||
--- a/libcilkrts/include/cilk/reducer_min_max.h
|
||||
+++ b/libcilkrts/include/cilk/reducer_min_max.h
|
||||
@@ -3154,7 +3154,9 @@
|
||||
CILK_C_REDUCER_MAX_INSTANCE(char, char, CHAR_MIN)
|
||||
CILK_C_REDUCER_MAX_INSTANCE(unsigned char, uchar, 0)
|
||||
CILK_C_REDUCER_MAX_INSTANCE(signed char, schar, SCHAR_MIN)
|
||||
+#ifdef WCHAR_MIN
|
||||
CILK_C_REDUCER_MAX_INSTANCE(wchar_t, wchar_t, WCHAR_MIN)
|
||||
+#endif
|
||||
CILK_C_REDUCER_MAX_INSTANCE(short, short, SHRT_MIN)
|
||||
CILK_C_REDUCER_MAX_INSTANCE(unsigned short, ushort, 0)
|
||||
CILK_C_REDUCER_MAX_INSTANCE(int, int, INT_MIN)
|
||||
@@ -3306,7 +3308,9 @@
|
||||
CILK_C_REDUCER_MAX_INDEX_INSTANCE(char, char, CHAR_MIN)
|
||||
CILK_C_REDUCER_MAX_INDEX_INSTANCE(unsigned char, uchar, 0)
|
||||
CILK_C_REDUCER_MAX_INDEX_INSTANCE(signed char, schar, SCHAR_MIN)
|
||||
+#ifdef WCHAR_MIN
|
||||
CILK_C_REDUCER_MAX_INDEX_INSTANCE(wchar_t, wchar_t, WCHAR_MIN)
|
||||
+#endif
|
||||
CILK_C_REDUCER_MAX_INDEX_INSTANCE(short, short, SHRT_MIN)
|
||||
CILK_C_REDUCER_MAX_INDEX_INSTANCE(unsigned short, ushort, 0)
|
||||
CILK_C_REDUCER_MAX_INDEX_INSTANCE(int, int, INT_MIN)
|
||||
@@ -3432,7 +3436,9 @@
|
||||
CILK_C_REDUCER_MIN_INSTANCE(char, char, CHAR_MAX)
|
||||
CILK_C_REDUCER_MIN_INSTANCE(unsigned char, uchar, CHAR_MAX)
|
||||
CILK_C_REDUCER_MIN_INSTANCE(signed char, schar, SCHAR_MAX)
|
||||
+#ifdef WCHAR_MAX
|
||||
CILK_C_REDUCER_MIN_INSTANCE(wchar_t, wchar_t, WCHAR_MAX)
|
||||
+#endif
|
||||
CILK_C_REDUCER_MIN_INSTANCE(short, short, SHRT_MAX)
|
||||
CILK_C_REDUCER_MIN_INSTANCE(unsigned short, ushort, USHRT_MAX)
|
||||
CILK_C_REDUCER_MIN_INSTANCE(int, int, INT_MAX)
|
||||
@@ -3584,7 +3590,9 @@
|
||||
CILK_C_REDUCER_MIN_INDEX_INSTANCE(char, char, CHAR_MAX)
|
||||
CILK_C_REDUCER_MIN_INDEX_INSTANCE(unsigned char, uchar, CHAR_MAX)
|
||||
CILK_C_REDUCER_MIN_INDEX_INSTANCE(signed char, schar, SCHAR_MAX)
|
||||
+#ifdef WCHAR_MAX
|
||||
CILK_C_REDUCER_MIN_INDEX_INSTANCE(wchar_t, wchar_t, WCHAR_MAX)
|
||||
+#endif
|
||||
CILK_C_REDUCER_MIN_INDEX_INSTANCE(short, short, SHRT_MAX)
|
||||
CILK_C_REDUCER_MIN_INDEX_INSTANCE(unsigned short, ushort, USHRT_MAX)
|
||||
CILK_C_REDUCER_MIN_INDEX_INSTANCE(int, int, INT_MAX)
|
||||
@@ -0,0 +1,19 @@
|
||||
Enable POSIX threads for uClinux targets
|
||||
Reported upstream:
|
||||
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71721
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
|
||||
diff -Nur gcc-6.1.0.orig/gcc/config.gcc gcc-6.1.0/gcc/config.gcc
|
||||
--- gcc-6.1.0.orig/gcc/config.gcc 2016-04-11 12:14:59.000000000 +0200
|
||||
+++ gcc-6.1.0/gcc/config.gcc 2016-07-02 20:04:25.732169982 +0200
|
||||
@@ -833,6 +833,9 @@
|
||||
*-*-uclinux*)
|
||||
extra_options="$extra_options gnu-user.opt"
|
||||
use_gcc_stdint=wrap
|
||||
+ case ${enable_threads} in
|
||||
+ "" | yes | posix) thread_file='posix' ;;
|
||||
+ esac
|
||||
tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC SINGLE_LIBC"
|
||||
;;
|
||||
*-*-rdos*)
|
||||
@@ -12,4 +12,4 @@ sha512 2941cc950c8f2409a314df497631f9b0266211aa74746c1839c46e04f1c7c299afe2528d
|
||||
sha512 eeed3e2018b8c012aabce419e8d718fde701e5c3c179b4486c61ba46e5736eecc8fccdd18b01fcd973a42c6ad3116dbbe2ee247fe3757d622d373f93ebaf8d2e gcc-6.1.0.tar.bz2
|
||||
|
||||
# Locally calculated (fetched from Github)
|
||||
sha512 f798e450ae3095538c5b12c785eab00f8f4084d3ff3e5e2dfd05ed20e0a20d4e754d87359482962d85c9082cb9fcbbf100d9eab6dfd2dbdccbecdcbf680ff23a gcc-arc-2016.09-eng007.tar.gz
|
||||
sha512 481302b50c8d6a3db3ea0a3c3713666d3aea990461cf0e1e0a670a2db90b8f2024e02a2fab6f2e7ccba14a92ca82218db0b585ace1aa932f5ae109e21ddbc83e gcc-arc-2016.09-eng008.tar.gz
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ HOST_GMP_DEPENDENCIES = host-m4
|
||||
|
||||
# GMP doesn't support assembly for coldfire or mips r6 ISA yet
|
||||
# Disable for ARM v7m since it has different asm constraints
|
||||
ifeq ($(BR2_m68k_cf)$(BR2_mips_32r6)$(BR2_mips_64r6)$(BR2_ARM_CPU_ARMV7M),y)
|
||||
ifeq ($(BR2_m68k_cf)$(BR2_mips_32r6)$(BR2_mips_64r6)$(BR2_ARM_CPU_ARMV7M)$(BR2_arc),y)
|
||||
GMP_CONF_OPTS += --disable-assembly
|
||||
endif
|
||||
|
||||
|
||||
@@ -25,6 +25,11 @@ GNUPLOT_CONF_OPTS = \
|
||||
--without-latex \
|
||||
--without-cairo
|
||||
|
||||
# relocation truncated to fit: R_68K_GOT16O
|
||||
ifeq ($(BR2_m68k_cf),y)
|
||||
GNUPLOT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot"
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
|
||||
GNUPLOT_CONF_OPTS += --with-gd
|
||||
GNUPLOT_DEPENDENCIES += gd
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
commit a1cf11937665392bcfa223a5095ff903eb44c69b
|
||||
Author: Jaroslav #karvada <jskarvad@redhat.com>
|
||||
Date: Fri Feb 12 18:29:13 2016 +0100
|
||||
|
||||
Backport patch from
|
||||
http://gnuradio.org/redmine/projects/gnuradio/repository/revisions/a1cf11937665392bcfa223a5095ff903eb44c69b
|
||||
|
||||
Fix compilation in gcc-6
|
||||
|
||||
Signed-off-by: Jaroslav #karvada <jskarvad@redhat.com>
|
||||
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
|
||||
---
|
||||
diff --git a/gr-fec/include/gnuradio/fec/polar_decoder_common.h b/gr-fec/include/gnuradio/fec/polar_decoder_common.h
|
||||
index b0ecb85..a39ee4f 100644
|
||||
--- a/gr-fec/include/gnuradio/fec/polar_decoder_common.h
|
||||
+++ b/gr-fec/include/gnuradio/fec/polar_decoder_common.h
|
||||
@@ -28,6 +28,10 @@
|
||||
#include <gnuradio/fec/generic_decoder.h>
|
||||
#include <gnuradio/fec/polar_common.h>
|
||||
|
||||
+#ifndef BOOST_CONSTEXPR_OR_CONST
|
||||
+#define BOOST_CONSTEXPR_OR_CONST const
|
||||
+#endif
|
||||
+
|
||||
namespace gr {
|
||||
namespace fec {
|
||||
namespace code {
|
||||
@@ -64,7 +68,7 @@ namespace gr {
|
||||
bool set_frame_size(unsigned int frame_size){return false;};
|
||||
|
||||
private:
|
||||
- static const float D_LLR_FACTOR = -2.19722458f;
|
||||
+ static BOOST_CONSTEXPR_OR_CONST float D_LLR_FACTOR = -2.19722458f;
|
||||
unsigned int d_frozen_bit_counter;
|
||||
|
||||
protected:
|
||||
@@ -0,0 +1,33 @@
|
||||
From 1ca05ebb7cb63607d14983948105dd1483ea6b65 Mon Sep 17 00:00:00 2001
|
||||
From: Gary Bisson <gary.bisson@boundarydevices.com>
|
||||
Date: Tue, 9 Aug 2016 10:26:15 +0200
|
||||
Subject: [PATCH] v4l2src: Add V4L2_PIX_FMT_XRGB555X check
|
||||
|
||||
Since this format was added in kernel 3.18, any prior version will
|
||||
fail to compile.
|
||||
|
||||
Issue reported by Buildroot autobuilder with 3.10 kernel headers:
|
||||
http://autobuild.buildroot.net/results/b46/b460a770c8f4e992d29dde8fe37fc23a949937f2/
|
||||
|
||||
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
|
||||
---
|
||||
src/v4l2src/v4l2src.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/v4l2src/v4l2src.c b/src/v4l2src/v4l2src.c
|
||||
index c77ae49..12b392a 100644
|
||||
--- a/src/v4l2src/v4l2src.c
|
||||
+++ b/src/v4l2src/v4l2src.c
|
||||
@@ -447,7 +447,9 @@ static GstCaps *gst_imx_v4l2src_caps_for_current_setup(GstImxV4l2VideoSrc *v4l2s
|
||||
case V4L2_PIX_FMT_RGB555:
|
||||
gst_fmt = GST_VIDEO_FORMAT_RGB15;
|
||||
break;
|
||||
+#ifdef V4L2_PIX_FMT_XRGB555X
|
||||
case V4L2_PIX_FMT_XRGB555X:
|
||||
+#endif
|
||||
case V4L2_PIX_FMT_RGB555X:
|
||||
gst_fmt = GST_VIDEO_FORMAT_BGR15;
|
||||
break;
|
||||
--
|
||||
2.8.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
config BR2_PACKAGE_HIDAPI
|
||||
bool "hidapi"
|
||||
depends on BR2_PACKAGE_HAS_UDEV
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
select BR2_PACKAGE_LIBUSB
|
||||
select BR2_PACKAGE_LIBGUDEV
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
@@ -12,5 +12,5 @@ config BR2_PACKAGE_HIDAPI
|
||||
|
||||
http://www.signal11.us/oss/hidapi/
|
||||
|
||||
comment "hidapi needs udev /dev management and a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_HAS_UDEV
|
||||
comment "hidapi needs udev /dev management and a toolchain w/ NPTL threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_PACKAGE_HAS_UDEV
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
From 5fe3ba82134d8b85adc69cf1d6c5742b4bde20b4 Mon Sep 17 00:00:00 2001
|
||||
From: James Knight <james.d.knight@live.com>
|
||||
Date: Thu, 16 Jun 2016 00:00:57 -0400
|
||||
Subject: [PATCH] correct code alignment
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The following replaces the indented section of code from spaces to tabs.
|
||||
No functional changes. Aside from consistency, this resolves a GCC 6
|
||||
build issue with the flag `-Werror=misleading-indentation` enabled:
|
||||
|
||||
inotifywait.c: In function ‘output_event_csv’:
|
||||
inotifywait.c:126:5: error: this ‘if’ clause does not guard...
|
||||
[-Werror=misleading-indentation]
|
||||
if (filename != NULL)
|
||||
^~
|
||||
inotifywait.c:129:2: note: ...this statement, but the latter is
|
||||
misleadingly indented as if it is guarded
|
||||
by the ‘if’
|
||||
printf("%s,", csv_escape( inotifytools_event_to_str( event->mask )
|
||||
) );
|
||||
^~~~~~
|
||||
|
||||
Signed-off-by: James Knight <james.d.knight@live.com>
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
(downloaded from upstream pull request
|
||||
https://github.com/rvoicilas/inotify-tools/pull/65)
|
||||
---
|
||||
src/inotifywait.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/inotifywait.c b/src/inotifywait.c
|
||||
index c5ce5e3..404a85b 100644
|
||||
--- a/src/inotifywait.c
|
||||
+++ b/src/inotifywait.c
|
||||
@@ -122,9 +122,9 @@ void validate_format( char * fmt ) {
|
||||
|
||||
|
||||
void output_event_csv( struct inotify_event * event ) {
|
||||
- char *filename = csv_escape(inotifytools_filename_from_wd(event->wd));
|
||||
- if (filename != NULL)
|
||||
- printf("%s,", filename);
|
||||
+ char *filename = csv_escape(inotifytools_filename_from_wd(event->wd));
|
||||
+ if (filename != NULL)
|
||||
+ printf("%s,", filename);
|
||||
|
||||
printf("%s,", csv_escape( inotifytools_event_to_str( event->mask ) ) );
|
||||
if ( event->len > 0 )
|
||||
@@ -27,13 +27,13 @@ ifeq ($(BR2_PACKAGE_IPTABLES)x$(BR2_STATIC_LIBS),yx)
|
||||
IPROUTE2_DEPENDENCIES += iptables
|
||||
define IPROUTE2_WITH_IPTABLES
|
||||
# Makefile is busted so it never passes IPT_LIB_DIR properly
|
||||
$(SED) "s/-DIPT/-DXT/" $(IPROUTE2_DIR)/tc/Makefile
|
||||
$(SED) "s/-DIPT/-DXT/" $(@D)/tc/Makefile
|
||||
endef
|
||||
else
|
||||
define IPROUTE2_WITH_IPTABLES
|
||||
# em_ipset needs xtables, but configure misdetects it
|
||||
echo "TC_CONFIG_IPSET:=n" >>$(IPROUTE2_DIR)/Config
|
||||
echo "TC_CONFIG_XT:=n" >>$(IPROUTE2_DIR)/Config
|
||||
echo "TC_CONFIG_IPSET:=n" >>$(@D)/Config
|
||||
echo "TC_CONFIG_XT:=n" >>$(@D)/Config
|
||||
endef
|
||||
endif
|
||||
|
||||
@@ -42,7 +42,7 @@ ifeq ($(BR2_PACKAGE_BERKELEYDB_COMPAT185)$(BR2_TOOLCHAIN_HAS_THREADS),yy)
|
||||
IPROUTE2_DEPENDENCIES += berkeleydb
|
||||
else
|
||||
define IPROUTE2_DISABLE_ARPD
|
||||
$(SED) "/^TARGETS=/s: arpd : :" $(IPROUTE2_DIR)/misc/Makefile
|
||||
echo "HAVE_BERKELEY_DB:=n" >> $(@D)/Config
|
||||
endef
|
||||
endif
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
Description: Prevent jas_stream_t memory leak in jas_iccprof_createfrombuf()
|
||||
Author: Tyler Hicks <tyhicks () canonical com>
|
||||
|
||||
From: http://seclists.org/oss-sec/2016/q1/att-507/CVE-2016-2116.patch
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
--- jasper-1.900.1-debian1.orig/src/libjasper/base/jas_icc.c
|
||||
+++ jasper-1.900.1-debian1/src/libjasper/base/jas_icc.c
|
||||
@@ -1693,6 +1693,8 @@ jas_iccprof_t *jas_iccprof_createfrombuf
|
||||
jas_stream_close(in);
|
||||
return prof;
|
||||
error:
|
||||
+ if (in)
|
||||
+ jas_stream_close(in);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
Description: CVE-2016-1577: Prevent double-free in jas_iccattrval_destroy()
|
||||
Author: Tyler Hicks <tyhicks () canonical com>
|
||||
Bug-Ubuntu: https://launchpad.net/bugs/1547865
|
||||
|
||||
From: http://seclists.org/oss-sec/2016/q1/att-507/CVE-2016-1577.patch
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
--- jasper-1.900.1-debian1.orig/src/libjasper/base/jas_icc.c
|
||||
+++ jasper-1.900.1-debian1/src/libjasper/base/jas_icc.c
|
||||
@@ -300,6 +300,7 @@ jas_iccprof_t *jas_iccprof_load(jas_stre
|
||||
if (jas_iccprof_setattr(prof, tagtabent->tag, attrval))
|
||||
goto error;
|
||||
jas_iccattrval_destroy(attrval);
|
||||
+ attrval = 0;
|
||||
} else {
|
||||
#if 0
|
||||
jas_eprintf("warning: skipping unknown tag type\n");
|
||||
@@ -0,0 +1,16 @@
|
||||
From: http://pkgs.fedoraproject.org/cgit/rpms/jasper.git/plain/jasper-CVE-2016-1867.patch
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
diff -urNp jasper-1.900.1.orig/src/libjasper/jpc/jpc_t2cod.c jasper-1.900.1.new/src/libjasper/jpc/jpc_t2cod.c
|
||||
--- jasper-1.900.1.orig/src/libjasper/jpc/jpc_t2cod.c 2016-08-11 14:34:31.795661973 +0200
|
||||
+++ jasper-1.900.1.new/src/libjasper/jpc/jpc_t2cod.c 2016-08-12 07:02:40.044860209 +0200
|
||||
@@ -429,7 +429,7 @@ static int jpc_pi_nextcprl(register jpc_
|
||||
}
|
||||
|
||||
for (pi->compno = pchg->compnostart, pi->picomp =
|
||||
- &pi->picomps[pi->compno]; pi->compno < JAS_CAST(int, pchg->compnoend); ++pi->compno,
|
||||
+ &pi->picomps[pi->compno]; pi->compno < JAS_CAST(int, pchg->compnoend) && pi->compno < pi->numcomps; ++pi->compno,
|
||||
++pi->picomp) {
|
||||
pirlvl = pi->picomp->pirlvls;
|
||||
pi->xstep = pi->picomp->hsamp * (1 << (pirlvl->prcwidthexpn +
|
||||
@@ -0,0 +1,23 @@
|
||||
From: http://pkgs.fedoraproject.org/cgit/rpms/jasper.git/plain/jasper-CVE-2015-5221.patch
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
diff -urNp jasper-1.900.1.orig/src/libjasper/mif/mif_cod.c jasper-1.900.1.new/src/libjasper/mif/mif_cod.c
|
||||
--- jasper-1.900.1.orig/src/libjasper/mif/mif_cod.c 2016-08-11 13:46:26.166415464 +0200
|
||||
+++ jasper-1.900.1.new/src/libjasper/mif/mif_cod.c 2016-08-11 14:17:20.507144931 +0200
|
||||
@@ -569,13 +569,13 @@ static int mif_process_cmpt(mif_hdr_t *h
|
||||
break;
|
||||
}
|
||||
}
|
||||
- jas_tvparser_destroy(tvp);
|
||||
if (!cmpt->sampperx || !cmpt->samppery) {
|
||||
goto error;
|
||||
}
|
||||
if (mif_hdr_addcmpt(hdr, hdr->numcmpts, cmpt)) {
|
||||
goto error;
|
||||
}
|
||||
+ jas_tvparser_destroy(tvp);
|
||||
return 0;
|
||||
|
||||
error:
|
||||
|
||||
@@ -0,0 +1,187 @@
|
||||
From: http://pkgs.fedoraproject.org/cgit/rpms/jasper.git/plain/jasper-CVE-2015-5203.patch
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
diff -urNp jasper-1.900.1.orig/src/libjasper/base/jas_stream.c jasper-1.900.1.new/src/libjasper/base/jas_stream.c
|
||||
--- jasper-1.900.1.orig/src/libjasper/base/jas_stream.c 2016-08-11 13:35:09.160895769 +0200
|
||||
+++ jasper-1.900.1.new/src/libjasper/base/jas_stream.c 2016-08-11 13:39:33.800843489 +0200
|
||||
@@ -99,7 +99,7 @@ static int jas_strtoopenmode(const char
|
||||
static void jas_stream_destroy(jas_stream_t *stream);
|
||||
static jas_stream_t *jas_stream_create(void);
|
||||
static void jas_stream_initbuf(jas_stream_t *stream, int bufmode, char *buf,
|
||||
- int bufsize);
|
||||
+ size_t bufsize);
|
||||
|
||||
static int mem_read(jas_stream_obj_t *obj, char *buf, int cnt);
|
||||
static int mem_write(jas_stream_obj_t *obj, char *buf, int cnt);
|
||||
@@ -168,7 +168,7 @@ static jas_stream_t *jas_stream_create()
|
||||
return stream;
|
||||
}
|
||||
|
||||
-jas_stream_t *jas_stream_memopen(char *buf, int bufsize)
|
||||
+jas_stream_t *jas_stream_memopen(char *buf, size_t bufsize)
|
||||
{
|
||||
jas_stream_t *stream;
|
||||
jas_stream_memobj_t *obj;
|
||||
@@ -570,7 +570,7 @@ int jas_stream_puts(jas_stream_t *stream
|
||||
return 0;
|
||||
}
|
||||
|
||||
-char *jas_stream_gets(jas_stream_t *stream, char *buf, int bufsize)
|
||||
+char *jas_stream_gets(jas_stream_t *stream, char *buf, size_t bufsize)
|
||||
{
|
||||
int c;
|
||||
char *bufptr;
|
||||
@@ -694,7 +694,7 @@ long jas_stream_tell(jas_stream_t *strea
|
||||
\******************************************************************************/
|
||||
|
||||
static void jas_stream_initbuf(jas_stream_t *stream, int bufmode, char *buf,
|
||||
- int bufsize)
|
||||
+ size_t bufsize)
|
||||
{
|
||||
/* If this function is being called, the buffer should not have been
|
||||
initialized yet. */
|
||||
@@ -987,7 +987,7 @@ static int mem_read(jas_stream_obj_t *ob
|
||||
return cnt;
|
||||
}
|
||||
|
||||
-static int mem_resize(jas_stream_memobj_t *m, int bufsize)
|
||||
+static int mem_resize(jas_stream_memobj_t *m, size_t bufsize)
|
||||
{
|
||||
unsigned char *buf;
|
||||
|
||||
diff -urNp jasper-1.900.1.orig/src/libjasper/include/jasper/jas_stream.h jasper-1.900.1.new/src/libjasper/include/jasper/jas_stream.h
|
||||
--- jasper-1.900.1.orig/src/libjasper/include/jasper/jas_stream.h 2007-01-19 22:43:04.000000000 +0100
|
||||
+++ jasper-1.900.1.new/src/libjasper/include/jasper/jas_stream.h 2016-08-11 13:41:27.841153595 +0200
|
||||
@@ -215,7 +215,7 @@ typedef struct {
|
||||
uchar *bufstart_;
|
||||
|
||||
/* The buffer size. */
|
||||
- int bufsize_;
|
||||
+ size_t bufsize_;
|
||||
|
||||
/* The current position in the buffer. */
|
||||
uchar *ptr_;
|
||||
@@ -267,7 +267,7 @@ typedef struct {
|
||||
uchar *buf_;
|
||||
|
||||
/* The allocated size of the buffer for holding file data. */
|
||||
- int bufsize_;
|
||||
+ size_t bufsize_;
|
||||
|
||||
/* The length of the file. */
|
||||
int_fast32_t len_;
|
||||
@@ -291,7 +291,7 @@ typedef struct {
|
||||
jas_stream_t *jas_stream_fopen(const char *filename, const char *mode);
|
||||
|
||||
/* Open a memory buffer as a stream. */
|
||||
-jas_stream_t *jas_stream_memopen(char *buf, int bufsize);
|
||||
+jas_stream_t *jas_stream_memopen(char *buf, size_t bufsize);
|
||||
|
||||
/* Open a file descriptor as a stream. */
|
||||
jas_stream_t *jas_stream_fdopen(int fd, const char *mode);
|
||||
@@ -366,7 +366,7 @@ int jas_stream_printf(jas_stream_t *stre
|
||||
int jas_stream_puts(jas_stream_t *stream, const char *s);
|
||||
|
||||
/* Read a line of input from a stream. */
|
||||
-char *jas_stream_gets(jas_stream_t *stream, char *buf, int bufsize);
|
||||
+char *jas_stream_gets(jas_stream_t *stream, char *buf, size_t bufsize);
|
||||
|
||||
/* Look at the next character to be read from a stream without actually
|
||||
removing it from the stream. */
|
||||
diff -urNp jasper-1.900.1.orig/src/libjasper/jpc/jpc_qmfb.c jasper-1.900.1.new/src/libjasper/jpc/jpc_qmfb.c
|
||||
--- jasper-1.900.1.orig/src/libjasper/jpc/jpc_qmfb.c 2016-08-11 13:35:09.170895681 +0200
|
||||
+++ jasper-1.900.1.new/src/libjasper/jpc/jpc_qmfb.c 2016-08-11 13:45:20.847809678 +0200
|
||||
@@ -305,7 +305,7 @@ jpc_qmfb2d_t jpc_ns_qmfb2d = {
|
||||
void jpc_qmfb_split_row(jpc_fix_t *a, int numcols, int parity)
|
||||
{
|
||||
|
||||
- int bufsize = JPC_CEILDIVPOW2(numcols, 1);
|
||||
+ size_t bufsize = JPC_CEILDIVPOW2(numcols, 1);
|
||||
jpc_fix_t splitbuf[QMFB_SPLITBUFSIZE];
|
||||
jpc_fix_t *buf = splitbuf;
|
||||
register jpc_fix_t *srcptr;
|
||||
@@ -365,7 +365,7 @@ void jpc_qmfb_split_col(jpc_fix_t *a, in
|
||||
int parity)
|
||||
{
|
||||
|
||||
- int bufsize = JPC_CEILDIVPOW2(numrows, 1);
|
||||
+ size_t bufsize = JPC_CEILDIVPOW2(numrows, 1);
|
||||
jpc_fix_t splitbuf[QMFB_SPLITBUFSIZE];
|
||||
jpc_fix_t *buf = splitbuf;
|
||||
register jpc_fix_t *srcptr;
|
||||
@@ -425,7 +425,7 @@ void jpc_qmfb_split_colgrp(jpc_fix_t *a,
|
||||
int parity)
|
||||
{
|
||||
|
||||
- int bufsize = JPC_CEILDIVPOW2(numrows, 1);
|
||||
+ size_t bufsize = JPC_CEILDIVPOW2(numrows, 1);
|
||||
jpc_fix_t splitbuf[QMFB_SPLITBUFSIZE * JPC_QMFB_COLGRPSIZE];
|
||||
jpc_fix_t *buf = splitbuf;
|
||||
jpc_fix_t *srcptr;
|
||||
@@ -506,7 +506,7 @@ void jpc_qmfb_split_colres(jpc_fix_t *a,
|
||||
int stride, int parity)
|
||||
{
|
||||
|
||||
- int bufsize = JPC_CEILDIVPOW2(numrows, 1);
|
||||
+ size_t bufsize = JPC_CEILDIVPOW2(numrows, 1);
|
||||
jpc_fix_t splitbuf[QMFB_SPLITBUFSIZE * JPC_QMFB_COLGRPSIZE];
|
||||
jpc_fix_t *buf = splitbuf;
|
||||
jpc_fix_t *srcptr;
|
||||
@@ -586,7 +586,7 @@ void jpc_qmfb_split_colres(jpc_fix_t *a,
|
||||
void jpc_qmfb_join_row(jpc_fix_t *a, int numcols, int parity)
|
||||
{
|
||||
|
||||
- int bufsize = JPC_CEILDIVPOW2(numcols, 1);
|
||||
+ size_t bufsize = JPC_CEILDIVPOW2(numcols, 1);
|
||||
jpc_fix_t joinbuf[QMFB_JOINBUFSIZE];
|
||||
jpc_fix_t *buf = joinbuf;
|
||||
register jpc_fix_t *srcptr;
|
||||
@@ -643,7 +643,7 @@ void jpc_qmfb_join_col(jpc_fix_t *a, int
|
||||
int parity)
|
||||
{
|
||||
|
||||
- int bufsize = JPC_CEILDIVPOW2(numrows, 1);
|
||||
+ size_t bufsize = JPC_CEILDIVPOW2(numrows, 1);
|
||||
jpc_fix_t joinbuf[QMFB_JOINBUFSIZE];
|
||||
jpc_fix_t *buf = joinbuf;
|
||||
register jpc_fix_t *srcptr;
|
||||
@@ -700,7 +700,7 @@ void jpc_qmfb_join_colgrp(jpc_fix_t *a,
|
||||
int parity)
|
||||
{
|
||||
|
||||
- int bufsize = JPC_CEILDIVPOW2(numrows, 1);
|
||||
+ size_t bufsize = JPC_CEILDIVPOW2(numrows, 1);
|
||||
jpc_fix_t joinbuf[QMFB_JOINBUFSIZE * JPC_QMFB_COLGRPSIZE];
|
||||
jpc_fix_t *buf = joinbuf;
|
||||
jpc_fix_t *srcptr;
|
||||
@@ -778,7 +778,7 @@ void jpc_qmfb_join_colres(jpc_fix_t *a,
|
||||
int stride, int parity)
|
||||
{
|
||||
|
||||
- int bufsize = JPC_CEILDIVPOW2(numrows, 1);
|
||||
+ size_t bufsize = JPC_CEILDIVPOW2(numrows, 1);
|
||||
jpc_fix_t joinbuf[QMFB_JOINBUFSIZE * JPC_QMFB_COLGRPSIZE];
|
||||
jpc_fix_t *buf = joinbuf;
|
||||
jpc_fix_t *srcptr;
|
||||
diff -urNp jasper-1.900.1.orig/src/libjasper/mif/mif_cod.c jasper-1.900.1.new/src/libjasper/mif/mif_cod.c
|
||||
--- jasper-1.900.1.orig/src/libjasper/mif/mif_cod.c 2016-08-11 13:35:09.179895601 +0200
|
||||
+++ jasper-1.900.1.new/src/libjasper/mif/mif_cod.c 2016-08-11 13:46:26.166415464 +0200
|
||||
@@ -107,7 +107,7 @@ static int mif_hdr_put(mif_hdr_t *hdr, j
|
||||
static int mif_hdr_addcmpt(mif_hdr_t *hdr, int cmptno, mif_cmpt_t *cmpt);
|
||||
static mif_cmpt_t *mif_cmpt_create(void);
|
||||
static void mif_cmpt_destroy(mif_cmpt_t *cmpt);
|
||||
-static char *mif_getline(jas_stream_t *jas_stream, char *buf, int bufsize);
|
||||
+static char *mif_getline(jas_stream_t *jas_stream, char *buf, size_t bufsize);
|
||||
static int mif_getc(jas_stream_t *in);
|
||||
static mif_hdr_t *mif_makehdrfromimage(jas_image_t *image);
|
||||
|
||||
@@ -657,7 +657,7 @@ static void mif_cmpt_destroy(mif_cmpt_t
|
||||
* MIF parsing code.
|
||||
\******************************************************************************/
|
||||
|
||||
-static char *mif_getline(jas_stream_t *stream, char *buf, int bufsize)
|
||||
+static char *mif_getline(jas_stream_t *stream, char *buf, size_t bufsize)
|
||||
{
|
||||
int c;
|
||||
char *bufptr;
|
||||
@@ -1,6 +1,7 @@
|
||||
config BR2_PACKAGE_KMSXX
|
||||
bool "kms++"
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm
|
||||
select BR2_PACKAGE_LIBDRM
|
||||
@@ -20,6 +21,6 @@ config BR2_PACKAGE_KMSXX_INSTALL_TESTS
|
||||
|
||||
endif
|
||||
|
||||
comment "kms++ needs a toolchain w/ threads, C++, gcc >= 4.8"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
|
||||
comment "kms++ needs a toolchain w/ threads, C++, gcc >= 4.8, headers >= 3.8"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 62bd9e8c9686e5624ebeba27234cae956eeec7830a742563f051ee4a2fe522c7 kmsxx-a706f157b86e90696808025db01de99646d51a77.tar.gz
|
||||
sha256 ff8bdb84a738477a8740c835e23c5bb59aac750e9e72a4afcad4ec8820ec7da2 kmsxx-bd5f6471e619a6ba2987bc7f66ef78a531f94d6c.tar.gz
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
KMSXX_VERSION = a706f157b86e90696808025db01de99646d51a77
|
||||
KMSXX_VERSION = bd5f6471e619a6ba2987bc7f66ef78a531f94d6c
|
||||
KMSXX_SITE = $(call github,tomba,kmsxx,$(KMSXX_VERSION))
|
||||
KMSXX_LICENSE = MPLv2.0
|
||||
KMSXX_LICENSE_FILES = LICENSE
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
fix static link with readline
|
||||
|
||||
When readline is static library, we need to link against ncurses
|
||||
because readline needs ncurses. It is because, dependent library's
|
||||
symbols are not resolved when static library is built. Those symbols
|
||||
are resolved program tries to link with static library.
|
||||
|
||||
We can't pass linker flags for ncurses by setting LIBS environment
|
||||
variable via <PKG>_CONF_ENV because it looks like build system is not
|
||||
taking that into account and even though it would have been, order of
|
||||
linking is important.
|
||||
|
||||
We can't also pass linker flags for ncurses via --with-readline-libs
|
||||
conf options because it causes lftp_LIB_READLINE macro to take readline
|
||||
headers from host machine if available. To use --with-readline-libs
|
||||
we need to set --with-readline=yes and --with-readline-inc to include
|
||||
dir. But when --with-readline=yes, readline_prefix is computed based
|
||||
on if headers can be found in /usr/local or /usr. If readline is
|
||||
installed on host machine, then configure fails since we are using
|
||||
headers for host machine. If headers are not found in /usr/local or /usr
|
||||
then only path specified --with-readline-inc is taken into account.
|
||||
So specifying linker flags for ncurses via --with-readline-libs will
|
||||
not work in all cases.
|
||||
|
||||
So it looks like, updating linker flags directly is only option to fix
|
||||
static link issue against readline.
|
||||
|
||||
Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
|
||||
|
||||
--- lftp-4.7.3/m4/lftp_lib_readline.m4.old 2016-08-08 19:49:12.217596470 +0530
|
||||
+++ lftp-4.7.3/m4/lftp_lib_readline.m4 2016-08-08 19:49:46.265596398 +0530
|
||||
@@ -108,7 +108,7 @@ AC_DEFUN([lftp_LIB_READLINE],
|
||||
readline_include_dir="$readline_include_dir/readline"
|
||||
fi
|
||||
readline_ld_flags="-L$readline_prefix/lib"
|
||||
- readline_lib_flags="-lreadline"
|
||||
+ readline_lib_flags="-lreadline -lncurses"
|
||||
run_readline_test="yes"
|
||||
elif test "$readline_requested" = "yes"; then
|
||||
if test -n "$readline_include_dir" -a -n "$readline_lib_flags"; then
|
||||
@@ -9,15 +9,14 @@ LFTP_SOURCE = lftp-$(LFTP_VERSION).tar.xz
|
||||
LFTP_SITE = http://lftp.yar.ru/ftp
|
||||
LFTP_LICENSE = GPLv3+
|
||||
LFTP_LICENSE_FILES = COPYING
|
||||
# Needed so that our libtool patch applies properly
|
||||
# Needed so that our libtool patch applies properly, and for patch
|
||||
# 0001-fix-static-link-with-readline.patch.
|
||||
LFTP_AUTORECONF = YES
|
||||
LFTP_DEPENDENCIES = readline zlib host-pkgconf
|
||||
|
||||
# Help lftp finding readline and zlib
|
||||
LFTP_CONF_OPTS = \
|
||||
--with-readline=$(STAGING_DIR)/usr \
|
||||
--with-readline-inc=$(STAGING_DIR)/usr/include/readline \
|
||||
--with-readline-lib=$(STAGING_DIR)/usr/lib \
|
||||
--with-zlib=$(STAGING_DIR)/usr
|
||||
|
||||
ifneq ($(BR2_STATIC_LIBS),y)
|
||||
|
||||
@@ -11,16 +11,24 @@ LIBAIO_INSTALL_STAGING = YES
|
||||
LIBAIO_LICENSE = LGPLv2.1+
|
||||
LIBAIO_LICENSE_FILES = COPYING
|
||||
|
||||
LIBAIO_CONFIGURE_OPTS = $(TARGET_CONFIGURE_OPTS)
|
||||
|
||||
# On PowerPC, a weird toolchain issue causes -Os builds to produce
|
||||
# references to hidden symbols, so we're forcing -O2
|
||||
ifeq ($(BR2_powerpc),y)
|
||||
LIBAIO_CONFIGURE_OPTS += CFLAGS="$(subst -Os,-O2,$(TARGET_CFLAGS))"
|
||||
endif
|
||||
|
||||
define LIBAIO_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
$(LIBAIO_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define LIBAIO_INSTALL_STAGING_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
||||
$(LIBAIO_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
||||
endef
|
||||
|
||||
define LIBAIO_INSTALL_TARGET_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
||||
$(LIBAIO_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
||||
@@ -1,8 +1,14 @@
|
||||
config BR2_PACKAGE_LIBCOFI
|
||||
bool "libcofi"
|
||||
depends on BR2_arm
|
||||
# builds a shared library
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
A replacement for memcpy and memset functionality for the
|
||||
Raspberry Pi with the intention of gaining greater performance.
|
||||
|
||||
https://github.com/simonjhall/copies-and-fills
|
||||
|
||||
comment "libcofi needs a toolchain w/ dynamic library"
|
||||
depends on BR2_arm
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
@@ -3,6 +3,7 @@ config BR2_PACKAGE_LIBICAL
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_TARGET_TZ_INFO
|
||||
help
|
||||
libical is an Open Source (MPL/LGPL) implementation of the IETF's
|
||||
iCalendar Calendaring and Scheduling protocols.
|
||||
|
||||
@@ -13,5 +13,7 @@ LIBICAL_LICENSE_FILES = LICENSE
|
||||
# building without this option is broken, it is used by
|
||||
# Gentoo/alpinelinux as well
|
||||
LIBICAL_CONF_OPTS = -DSHARED_ONLY=true
|
||||
# never build time zone info, always use system's tzinfo
|
||||
LIBICAL_CONF_OPTS += -DUSE_BUILTIN_TZDATA=false
|
||||
|
||||
$(eval $(cmake-package))
|
||||
|
||||
@@ -13,9 +13,16 @@ LIBPJSIP_LICENSE_FILES = COPYING
|
||||
LIBPJSIP_INSTALL_STAGING = YES
|
||||
LIBPJSIP_MAKE = $(MAKE1)
|
||||
|
||||
LIBPJSIP_CFLAGS = $(TARGET_CFLAGS) -DPJ_HAS_IPV6=1
|
||||
|
||||
# relocation truncated to fit: R_68K_GOT16O
|
||||
ifeq ($(BR2_m68k_cf),y)
|
||||
LIBPJSIP_CFLAGS += -mxgot
|
||||
endif
|
||||
|
||||
LIBPJSIP_CONF_ENV = \
|
||||
LD="$(TARGET_CC)" \
|
||||
CFLAGS="$(TARGET_CFLAGS) -DPJ_HAS_IPV6=1"
|
||||
CFLAGS="$(LIBPJSIP_CFLAGS)"
|
||||
|
||||
LIBPJSIP_CONF_OPTS = \
|
||||
--disable-sound \
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
Fix build with gcc6
|
||||
|
||||
gcc6 triggers an error during build:
|
||||
|
||||
xsid.cpp:101:1: error: narrowing conversion of ''\200'' from 'char' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
|
||||
};
|
||||
^
|
||||
xsid.cpp:101:1: error: narrowing conversion of ''\224'' from 'char' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
|
||||
xsid.cpp:101:1: error: narrowing conversion of ''\251'' from 'char' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
|
||||
xsid.cpp:101:1: error: narrowing conversion of ''\274'' from 'char' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
|
||||
xsid.cpp:101:1: error: narrowing conversion of ''\316'' from 'char' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
|
||||
xsid.cpp:101:1: error: narrowing conversion of ''\341'' from 'char' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
|
||||
xsid.cpp:101:1: error: narrowing conversion of ''\362'' from 'char' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
|
||||
|
||||
To fix the problem change the array type from int8_t to char as proposed
|
||||
by Khem Raj:
|
||||
http://lists.busybox.net/pipermail/buildroot/2016-August/169540.html
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
|
||||
diff -uNr sidplay-libs-2.1.1.org/libsidplay/src/xsid/xsid.cpp sidplay-libs-2.1.1/libsidplay/src/xsid/xsid.cpp
|
||||
--- sidplay-libs-2.1.1.org/libsidplay/src/xsid/xsid.cpp 2004-06-14 22:08:02.000000000 +0200
|
||||
+++ sidplay-libs-2.1.1/libsidplay/src/xsid/xsid.cpp 2016-08-12 18:10:20.000000000 +0200
|
||||
@@ -94,7 +94,7 @@
|
||||
'\x08', '\x19', '\x2a', '\x3b', '\x4c', '\x5d', '\x6e', '\x7f'
|
||||
};
|
||||
*/
|
||||
-const int8_t XSID::sampleConvertTable[16] =
|
||||
+const char XSID::sampleConvertTable[16] =
|
||||
{
|
||||
'\x80', '\x94', '\xa9', '\xbc', '\xce', '\xe1', '\xf2', '\x03',
|
||||
'\x1b', '\x2a', '\x3b', '\x49', '\x58', '\x66', '\x73', '\x7f'
|
||||
diff -uNr sidplay-libs-2.1.1.org/libsidplay/src/xsid/xsid.h sidplay-libs-2.1.1/libsidplay/src/xsid/xsid.h
|
||||
--- sidplay-libs-2.1.1.org/libsidplay/src/xsid/xsid.h 2004-06-14 22:08:02.000000000 +0200
|
||||
+++ sidplay-libs-2.1.1/libsidplay/src/xsid/xsid.h 2016-08-12 18:11:01.000000000 +0200
|
||||
@@ -238,7 +238,7 @@
|
||||
uint8_t sidData0x18;
|
||||
bool _sidSamples;
|
||||
int8_t sampleOffset;
|
||||
- static const int8_t sampleConvertTable[16];
|
||||
+ static const char sampleConvertTable[16];
|
||||
bool wasRunning;
|
||||
|
||||
private:
|
||||
@@ -1,15 +1,20 @@
|
||||
config BR2_PACKAGE_LIBSIGSEGV_ARCH_SUPPORTS
|
||||
bool
|
||||
# with glibc/musl, ucontext is available for all supported
|
||||
# architectures
|
||||
default y if BR2_TOOLCHAIN_USES_GLIBC
|
||||
default y if BR2_TOOLCHAIN_USES_MUSL
|
||||
# with uclibc, ucontext is only available for a subset of the
|
||||
# supported architectures
|
||||
default y if BR2_TOOLCHAIN_USES_UCLIBC && \
|
||||
(BR2_ARM_CPU_HAS_ARM || BR2_i386 || \
|
||||
BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
|
||||
BR2_sparc || BR2_x86_64)
|
||||
|
||||
config BR2_PACKAGE_LIBSIGSEGV
|
||||
bool "libsigsegv"
|
||||
depends on !BR2_xtensa
|
||||
depends on !BR2_arc # no ucontext_i.sym file
|
||||
depends on !BR2_microblaze
|
||||
depends on !BR2_m68k # unknown type name 'ucontext_t'
|
||||
# No ucontext support in uclibc for powerpc and superh
|
||||
depends on !((BR2_powerpc || BR2_sh) && BR2_TOOLCHAIN_USES_UCLIBC)
|
||||
depends on BR2_PACKAGE_LIBSIGSEGV_ARCH_SUPPORTS
|
||||
help
|
||||
Library for handling page faults in user mode.
|
||||
|
||||
http://www.gnu.org/software/libsigsegv/
|
||||
|
||||
comment "libsigsegv needs a glibc toolchain"
|
||||
depends on (BR2_powerpc || BR2_sh) && BR2_TOOLCHAIN_USES_UCLIBC
|
||||
|
||||
@@ -10,16 +10,16 @@
|
||||
config BR2_PACKAGE_LIBUNWIND_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_TOOLCHAIN_USES_GLIBC && \
|
||||
((BR2_arm || BR2_armeb) && BR2_ARM_CPU_HAS_ARM) || \
|
||||
(BR2_mips || BR2_mipsel || BR2_mips64 || \
|
||||
(((BR2_arm || BR2_armeb) && BR2_ARM_CPU_HAS_ARM) || \
|
||||
BR2_mips || BR2_mipsel || BR2_mips64 || \
|
||||
BR2_mips64el || BR2_powerpc || BR2_sh || BR2_sh64 || BR2_i386 || BR2_x86_64)
|
||||
default y if BR2_TOOLCHAIN_USES_UCLIBC && \
|
||||
((BR2_arm || BR2_armeb) && BR2_ARM_CPU_HAS_ARM) || \
|
||||
(BR2_i386 || BR2_mips || BR2_mipsel || \
|
||||
(((BR2_arm || BR2_armeb) && BR2_ARM_CPU_HAS_ARM) || \
|
||||
BR2_i386 || BR2_mips || BR2_mipsel || \
|
||||
BR2_mips64 || BR2_mips64el || BR2_x86_64)
|
||||
default y if BR2_TOOLCHAIN_USES_MUSL && \
|
||||
((BR2_arm || BR2_armeb) && BR2_ARM_CPU_HAS_ARM) || \
|
||||
(BR2_i386 || BR2_x86_64)
|
||||
(((BR2_arm || BR2_armeb) && BR2_ARM_CPU_HAS_ARM) || \
|
||||
BR2_i386 || BR2_x86_64)
|
||||
|
||||
config BR2_PACKAGE_LIBUNWIND
|
||||
bool "libunwind"
|
||||
|
||||
@@ -11,6 +11,11 @@ LIBXML2_LICENSE = MIT
|
||||
LIBXML2_LICENSE_FILES = COPYING
|
||||
LIBXML2_CONFIG_SCRIPTS = xml2-config
|
||||
|
||||
# relocation truncated to fit: R_68K_GOT16O
|
||||
ifeq ($(BR2_m68k_cf),y)
|
||||
LIBXML2_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot"
|
||||
endif
|
||||
|
||||
LIBXML2_CONF_OPTS = --with-gnu-ld --without-python --without-debug
|
||||
|
||||
HOST_LIBXML2_DEPENDENCIES = host-pkgconf
|
||||
|
||||
@@ -239,15 +239,15 @@ config BR2_DEFAULT_KERNEL_HEADERS
|
||||
default "3.4.112" if BR2_KERNEL_HEADERS_3_4
|
||||
default "3.10.102" if BR2_KERNEL_HEADERS_3_10
|
||||
default "3.12.62" if BR2_KERNEL_HEADERS_3_12
|
||||
default "3.14.74" if BR2_KERNEL_HEADERS_3_14
|
||||
default "3.18.38" if BR2_KERNEL_HEADERS_3_18
|
||||
default "3.14.76" if BR2_KERNEL_HEADERS_3_14
|
||||
default "3.18.39" if BR2_KERNEL_HEADERS_3_18
|
||||
default "3.19.8" if BR2_KERNEL_HEADERS_3_19
|
||||
default "4.0.9" if BR2_KERNEL_HEADERS_4_0
|
||||
default "4.1.29" if BR2_KERNEL_HEADERS_4_1
|
||||
default "4.1.30" if BR2_KERNEL_HEADERS_4_1
|
||||
default "4.2.8" if BR2_KERNEL_HEADERS_4_2
|
||||
default "4.3.6" if BR2_KERNEL_HEADERS_4_3
|
||||
default "4.4.16" if BR2_KERNEL_HEADERS_4_4
|
||||
default "4.4.18" if BR2_KERNEL_HEADERS_4_4
|
||||
default "4.5.7" if BR2_KERNEL_HEADERS_4_5
|
||||
default "4.6.5" if BR2_KERNEL_HEADERS_4_6
|
||||
default "4.7" if BR2_KERNEL_HEADERS_4_7
|
||||
default "4.6.7" if BR2_KERNEL_HEADERS_4_6
|
||||
default "4.7.1" if BR2_KERNEL_HEADERS_4_7
|
||||
default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
From 8cc60d618f81f2eeaa926cd60ed9b55ee6cda6ea Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Mon, 8 Aug 2016 15:42:46 +0200
|
||||
Subject: [PATCH] addrdb/coord-config-parse.y: add missing <time.h> include
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The %union definition uses the time_t structure. In order to use this
|
||||
structure, the <time.h> header has to be included. Otherwise, the build
|
||||
breaks with some C libraries, such as musl:
|
||||
|
||||
In file included from coord-config-lex.l:23:0:
|
||||
coord-config-parse.y:107:2: error: unknown type name ‘time_t’
|
||||
time_t timestamp;
|
||||
^
|
||||
|
||||
This patch includes <time.h> using the '%code requires' directive of
|
||||
Yacc.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
addrdb/coord-config-parse.y | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/addrdb/coord-config-parse.y b/addrdb/coord-config-parse.y
|
||||
index 2e10a88..85ee058 100644
|
||||
--- a/addrdb/coord-config-parse.y
|
||||
+++ b/addrdb/coord-config-parse.y
|
||||
@@ -102,6 +102,10 @@
|
||||
|
||||
%}
|
||||
|
||||
+%code requires {
|
||||
+#include <time.h>
|
||||
+}
|
||||
+
|
||||
%union {
|
||||
unsigned long number;
|
||||
time_t timestamp;
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -1,2 +1,6 @@
|
||||
# http://www.lttng.org/files/lttng-ust/lttng-ust-2.7.1.tar.bz2.sha1
|
||||
sha1 597ebecb885debb58c263de57f30b1096d4eefc6 lttng-ust-2.7.1.tar.bz2
|
||||
|
||||
# Locally computed
|
||||
sha1 2e79c98e458b2e052930fb81441e6ca8377a2ed7 787364e8bac9a146f9d65c763633c2b75eb76463.patch
|
||||
sha1 cf77ec415111f77573be7917d9b62d8e49dc6304 30307a67b48641875b122d8f832bbfb454e95d92.patch
|
||||
|
||||
@@ -10,6 +10,10 @@ LTTNG_LIBUST_SOURCE = lttng-ust-$(LTTNG_LIBUST_VERSION).tar.bz2
|
||||
LTTNG_LIBUST_LICENSE = LGPLv2.1, MIT (system headers), GPLv2 (liblttng-ust-ctl/ustctl.c used by lttng-sessiond)
|
||||
LTTNG_LIBUST_LICENSE_FILES = COPYING
|
||||
|
||||
LTTNG_LIBUST_PATCH = \
|
||||
https://github.com/lttng/lttng-ust/commit/787364e8bac9a146f9d65c763633c2b75eb76463.patch \
|
||||
https://github.com/lttng/lttng-ust/commit/30307a67b48641875b122d8f832bbfb454e95d92.patch
|
||||
|
||||
LTTNG_LIBUST_INSTALL_STAGING = YES
|
||||
LTTNG_LIBUST_DEPENDENCIES = liburcu util-linux
|
||||
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
From 5a635a0066b10d2ba25e0ce78cc57b2be619371c Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Mon, 8 Aug 2016 23:34:32 +0200
|
||||
Subject: [PATCH] wscript: improve stdatomic check
|
||||
|
||||
The current stdatomic check verifies the availability of the function by
|
||||
calling atomic_load(). It also uses this test to check if linking
|
||||
against libatomic is needed or not.
|
||||
|
||||
Unfortunately, on specific architectures (namely SPARC), using
|
||||
atomic_load() does *not* require linking against libatomic, while other
|
||||
atomic operations do. Due to this, mpv's wscript concludes that
|
||||
stdatomic is available, and that linking against libatomic is not
|
||||
needed, causing the following link failure:
|
||||
|
||||
[190/190] Linking build/mpv
|
||||
audio/out/ao.c.13.o: In function `ao_query_and_reset_events':
|
||||
/home/peko/autobuild/instance-0/output/build/mpv-0.18.1/build/../audio/out/ao.c:399: undefined reference to `__atomic_fetch_and_4'
|
||||
|
||||
In order to fix this, the stdatomic check is adjusted to call
|
||||
atomic_fetch_add() instead, which does require libatomic. Thanks to
|
||||
this, the wscript realizes that linking against libatomic is needed, and
|
||||
the build works fine.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
Submitted upstream: https://github.com/mpv-player/mpv/pull/3403
|
||||
|
||||
wscript | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/wscript b/wscript
|
||||
index a18df6f..4c49caf 100644
|
||||
--- a/wscript
|
||||
+++ b/wscript
|
||||
@@ -154,7 +154,7 @@ main_dependencies = [
|
||||
'func': check_libs(['atomic'],
|
||||
check_statement('stdatomic.h',
|
||||
'atomic_int_least64_t test = ATOMIC_VAR_INIT(123);'
|
||||
- 'int test2 = atomic_load(&test)'))
|
||||
+ 'atomic_fetch_add(&test, 1)'))
|
||||
}, {
|
||||
'name': 'atomic-builtins',
|
||||
'desc': 'compiler support for __atomic built-ins',
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
From 600ab10e3b452cdffc6c82770b0bb2ff5c23ad70 Mon Sep 17 00:00:00 2001
|
||||
From: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
|
||||
Date: Fri, 12 Aug 2016 22:59:35 +0530
|
||||
Subject: [PATCH 1/1] fs-tests: integrity: don't include header
|
||||
<bits/stdio_lim.h>
|
||||
|
||||
With musl C library, we get following build error
|
||||
|
||||
integck.c:37:28: fatal error: bits/stdio_lim.h: No such file or directory
|
||||
#include <bits/stdio_lim.h>
|
||||
^
|
||||
compilation terminated.
|
||||
make[2]: *** [integck] Error 1
|
||||
|
||||
Header <bits/stdio_lim.h> is not available in musl C library. However
|
||||
<stdio.h> has all definition that <bits/stdio_lim.h> supposed to be
|
||||
providing. Moreover <bits/stdio_lim.h> shouldn't be included directly
|
||||
instead we should be using <stdio.h>.
|
||||
|
||||
Since we already include <stdio.h> and in case of uClibc or glibc
|
||||
<bits/stdio_lim.h> gets included internally, we can safely remove it.
|
||||
|
||||
This build issue is found by Buildroot autobuilder
|
||||
http://autobuild.buildroot.net/results/175/1754861457af520480cc34d7d2d0edff2868ff66/
|
||||
|
||||
Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
|
||||
---
|
||||
tests/fs-tests/integrity/integck.c | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
|
||||
index 6ef817e..0bb9711 100644
|
||||
--- a/tests/fs-tests/integrity/integck.c
|
||||
+++ b/tests/fs-tests/integrity/integck.c
|
||||
@@ -34,7 +34,6 @@
|
||||
#ifdef INTEGCK_DEBUG
|
||||
#include <execinfo.h>
|
||||
#endif
|
||||
-#include <bits/stdio_lim.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/vfs.h>
|
||||
#include <sys/mount.h>
|
||||
--
|
||||
2.6.2
|
||||
|
||||
@@ -161,6 +161,7 @@ config BR2_PACKAGE_MTD_UBIBLOCK
|
||||
|
||||
config BR2_PACKAGE_MTD_INTEGCK
|
||||
bool "integck"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
Install the integck test program.
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
config BR2_PACKAGE_NCDU
|
||||
bool "ncdu"
|
||||
depends on BR2_USE_MMU # system()
|
||||
select BR2_PACKAGE_NCURSES
|
||||
help
|
||||
ncdu is a disk usage analyzer with an ncurses interface
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
Add missing <time.h> include
|
||||
|
||||
netplug.h uses time_t, so it must include <time.h>. This fixes a build
|
||||
issue with the musl C library.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/netplug.h
|
||||
===================================================================
|
||||
--- a/netplug.h
|
||||
+++ b/netplug.h
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifndef __netplug_h
|
||||
#define __netplug_h
|
||||
|
||||
-
|
||||
+#include <time.h>
|
||||
#include <asm/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <linux/netlink.h>
|
||||
@@ -0,0 +1,51 @@
|
||||
Remove __assert_fail()
|
||||
|
||||
The netplug code uses the assert() macro in various places. In glibc
|
||||
internally, assert() uses a function called __assert_fail() to print a
|
||||
message and abort. Relying on internal glibc details, netplug
|
||||
re-defines __assert_fail() in the hope that it will get called instead
|
||||
of glibc internal version.
|
||||
|
||||
This attempt:
|
||||
|
||||
* Doesn't work with uClibc, which doesn't use any __assert_fail()
|
||||
function at all. It doesn't fail to build, but it is entirely
|
||||
useless.
|
||||
|
||||
* Fails to build with musl, which also defines __assert_fail(), but
|
||||
with a different prototype.
|
||||
|
||||
We simply remove the __assert_fail() implementation, so that the C
|
||||
library implementation of assert() just does its normal work. The only
|
||||
functionality lost is that the message is displayed on the standard
|
||||
output rather than in netplug's logs (and this was only working with
|
||||
glibc anyway).
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/lib.c
|
||||
===================================================================
|
||||
--- a/lib.c
|
||||
+++ b/lib.c
|
||||
@@ -199,21 +199,6 @@
|
||||
return x;
|
||||
}
|
||||
|
||||
-
|
||||
-void
|
||||
-__assert_fail(const char *assertion, const char *file,
|
||||
- unsigned int line, const char *function)
|
||||
-{
|
||||
- do_log(LOG_CRIT, "%s:%u: %s%sAssertion `%s' failed",
|
||||
- file, line,
|
||||
- function ? function : "",
|
||||
- function ? ": " : "",
|
||||
- assertion);
|
||||
-
|
||||
- abort();
|
||||
-}
|
||||
-
|
||||
-
|
||||
/*
|
||||
* Local variables:
|
||||
* c-file-style: "stroustrup"
|
||||
@@ -15,6 +15,7 @@ NTP_CONF_OPTS = \
|
||||
--with-shared \
|
||||
--program-transform-name=s,,, \
|
||||
--disable-tickadj \
|
||||
--disable-debugging \
|
||||
--with-yielding-select=yes \
|
||||
--disable-local-libevent
|
||||
# 0002-ntp-syscalls-fallback.patch
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
From 71b9e9b7f080c464777d07bd1a917a1c449d2ef8 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 7 Aug 2016 23:20:00 +0200
|
||||
Subject: [PATCH] Makefile.arm: remove -march flags
|
||||
|
||||
The provided -march flags, especially for ARMv5 and ARMv6 may not
|
||||
necessarily match the needed ones: for ARMv5, it might be armv5,
|
||||
armv5te, armv5t, etc. If the wrong one is used, the incorrect toolchain
|
||||
sysroot can be used in a multilib toolchain.
|
||||
|
||||
Therefore, let the user building OpenBLAS pass the appropriate -march
|
||||
flag.
|
||||
|
||||
The other flags, such as -mfpu=vfp or -mfloat-abi=hard are kept, as they
|
||||
are actually required for the build to proceed (OpenBLAS uses VFP
|
||||
instructions, and assume an EABIhf ABI).
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
Makefile.arm | 24 ++++++++++++------------
|
||||
1 file changed, 12 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/Makefile.arm b/Makefile.arm
|
||||
index 62bf275..c0d6ab8 100644
|
||||
--- a/Makefile.arm
|
||||
+++ b/Makefile.arm
|
||||
@@ -1,31 +1,31 @@
|
||||
# ifeq logical or
|
||||
ifeq ($(CORE), $(filter $(CORE),CORTEXA9 CORTEXA15))
|
||||
ifeq ($(OSNAME), Android)
|
||||
-CCOMMON_OPT += -marm -mfpu=neon -mfloat-abi=hard -march=armv7-a
|
||||
-FCOMMON_OPT += -marm -mfpu=neon -mfloat-abi=hard -march=armv7-a
|
||||
+CCOMMON_OPT += -marm -mfpu=neon -mfloat-abi=hard
|
||||
+FCOMMON_OPT += -marm -mfpu=neon -mfloat-abi=hard
|
||||
else
|
||||
-CCOMMON_OPT += -marm -mfpu=vfpv3 -mfloat-abi=hard -march=armv7-a
|
||||
-FCOMMON_OPT += -marm -mfpu=vfpv3 -mfloat-abi=hard -march=armv7-a
|
||||
+CCOMMON_OPT += -marm -mfpu=vfpv3 -mfloat-abi=hard
|
||||
+FCOMMON_OPT += -marm -mfpu=vfpv3 -mfloat-abi=hard
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CORE), ARMV7)
|
||||
ifeq ($(OSNAME), Android)
|
||||
-CCOMMON_OPT += -marm -mfpu=neon -mfloat-abi=hard -march=armv7-a -Wl,--no-warn-mismatch
|
||||
-FCOMMON_OPT += -marm -mfpu=neon -mfloat-abi=hard -march=armv7-a -Wl,--no-warn-mismatch
|
||||
+CCOMMON_OPT += -marm -mfpu=neon -mfloat-abi=hard -Wl,--no-warn-mismatch
|
||||
+FCOMMON_OPT += -marm -mfpu=neon -mfloat-abi=hard -Wl,--no-warn-mismatch
|
||||
else
|
||||
-CCOMMON_OPT += -marm -mfpu=vfpv3 -mfloat-abi=hard -march=armv7-a
|
||||
-FCOMMON_OPT += -marm -mfpu=vfpv3 -mfloat-abi=hard -march=armv7-a
|
||||
+CCOMMON_OPT += -marm -mfpu=vfpv3 -mfloat-abi=hard
|
||||
+FCOMMON_OPT += -marm -mfpu=vfpv3 -mfloat-abi=hard
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CORE), ARMV6)
|
||||
-CCOMMON_OPT += -marm -mfpu=vfp -mfloat-abi=hard -march=armv6
|
||||
-FCOMMON_OPT += -marm -mfpu=vfp -mfloat-abi=hard -march=armv6
|
||||
+CCOMMON_OPT += -marm -mfpu=vfp -mfloat-abi=hard
|
||||
+FCOMMON_OPT += -marm -mfpu=vfp -mfloat-abi=hard
|
||||
endif
|
||||
|
||||
|
||||
ifeq ($(CORE), ARMV5)
|
||||
-CCOMMON_OPT += -marm -march=armv5
|
||||
-FCOMMON_OPT += -marm -march=armv5
|
||||
+CCOMMON_OPT += -marm
|
||||
+FCOMMON_OPT += -marm
|
||||
endif
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -26,15 +26,28 @@ config BR2_PACKAGE_OPENBLAS_DEFAULT_TARGET
|
||||
default "PPC970" if BR2_powerpc_970
|
||||
default "PPC440" if BR2_powerpc_440
|
||||
default "PPC440FP2" if BR2_powerpc_440fp
|
||||
default "P5600" if BR2_mips_32r2
|
||||
# P5600 is built with MSA support which is only available in Codescape toolchains
|
||||
default "P5600" if BR2_mips_32r2 && BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_MTI_MIPS
|
||||
default "SICORTEX" if BR2_mips_64
|
||||
default "I6400" if BR2_mips_64r6
|
||||
# I6400 is built with MSA support which is only available in Codescape toolchains
|
||||
default "I6400" if BR2_mips_64r6 && BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_IMG_MIPS
|
||||
default "SPARC" if BR2_sparc
|
||||
default "CORTEXA15" if BR2_cortex_a15
|
||||
default "CORTEXA9" if BR2_cortex_a9
|
||||
# Cortex-A15 always have a VFPv4
|
||||
default "CORTEXA15" if (BR2_cortex_a15 && BR2_ARM_EABIHF)
|
||||
# Cortex-A9 have an optional VFPv3, so we need to make sure it
|
||||
# is available
|
||||
default "CORTEXA9" if (BR2_cortex_a9 && BR2_ARM_EABIHF && \
|
||||
BR2_ARM_CPU_HAS_VFPV3)
|
||||
default "ARMV5" if BR2_ARM_CPU_ARMV5
|
||||
default "ARMV6" if BR2_ARM_CPU_ARMV6
|
||||
default "ARMV7" if BR2_ARM_CPU_ARMV7A
|
||||
# On ARMv6, OpenBLAS assumes that a VFP is available, and
|
||||
# EABIhf is used
|
||||
default "ARMV6" if (BR2_ARM_CPU_ARMV6 && BR2_ARM_EABIHF && \
|
||||
BR2_ARM_CPU_HAS_VFPV2)
|
||||
# On ARMv7, OpenBLAS assumes that a full VFPv3+ is available
|
||||
# (and not the more limited D16 variant), and that EABIhf is
|
||||
# used.
|
||||
default "ARMV7" if (BR2_ARM_CPU_ARMV7A && BR2_ARM_EABIHF && \
|
||||
BR2_ARM_CPU_HAS_VFPV3)
|
||||
default "ARMV8" if BR2_aarch64 || BR2_aarch64_be
|
||||
help
|
||||
OpenBLAS target CPU. See TargetList.txt in the source tree for
|
||||
|
||||
@@ -2,7 +2,7 @@ config BR2_PACKAGE_OPENIPMI
|
||||
bool "openipmi"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on !BR2_STATIC_LIBS # dlopen()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
select BR2_PACKAGE_POPT
|
||||
select BR2_PACKAGE_NCURSES
|
||||
help
|
||||
@@ -13,6 +13,6 @@ config BR2_PACKAGE_OPENIPMI
|
||||
|
||||
http://openipmi.sourceforge.net
|
||||
|
||||
comment "openipmi needs a toolchain w/ dynamic library, threads"
|
||||
comment "openipmi needs a toolchain w/ dynamic library, NPTL"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
|
||||
@@ -17,6 +17,10 @@ OWFS_LICENSE = GPLv2+, LGPLv2 (owtcl)
|
||||
OWFS_LICENSE_FILES = COPYING COPYING.LIB
|
||||
OWFS_INSTALL_STAGING = YES
|
||||
|
||||
# owfs PHP support is not PHP 7 compliant
|
||||
# https://sourceforge.net/p/owfs/support-requests/32/
|
||||
OWFS_CONF_OPTS += --disable-owphp --without-php
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBFUSE),y)
|
||||
OWFS_DEPENDENCIES += libfuse
|
||||
OWFS_CONF_OPTS += \
|
||||
@@ -49,13 +53,6 @@ else
|
||||
OWFS_CONF_OPTS += --disable-avahi
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PHP),y)
|
||||
OWFS_CONF_OPTS += --enable-owphp --with-php --with-phpconfig=$(STAGING_DIR)/usr/bin/php-config
|
||||
OWFS_DEPENDENCIES += php host-swig
|
||||
else
|
||||
OWFS_CONF_OPTS += --disable-owphp --without-php
|
||||
endif
|
||||
|
||||
# setup.py isn't python3 compliant
|
||||
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
||||
OWFS_CONF_OPTS += \
|
||||
|
||||
+17
-5
@@ -1,12 +1,21 @@
|
||||
From 7a4168062fbab2e33ef9a42bca9f87a5921afac2 Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
Date: Tue, 9 Aug 2016 11:49:56 +0200
|
||||
Subject: [PATCH] acinclude.m4: don't unset variables
|
||||
|
||||
Unsetting ac_cv_{func,lib}_* is bad, you can't feed the configure cache.
|
||||
Terminate them with extreme prejudice.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
---
|
||||
acinclude.m4 | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff -Nura php-5.6.8.orig/acinclude.m4 php-5.6.8/acinclude.m4
|
||||
--- php-5.6.8.orig/acinclude.m4 2015-04-15 20:05:57.000000000 +0200
|
||||
+++ php-5.6.8/acinclude.m4 2015-05-18 20:03:50.833099001 +0200
|
||||
@@ -1897,8 +1897,6 @@
|
||||
diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index 28506b6..af4aa06 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -1898,8 +1898,6 @@ define([phpshift],[ifelse(index([$@],[,]),-1,,[substr([$@],incr(index([$@],[,]))
|
||||
dnl
|
||||
AC_DEFUN([PHP_CHECK_FUNC_LIB],[
|
||||
ifelse($2,,:,[
|
||||
@@ -15,7 +24,7 @@ diff -Nura php-5.6.8.orig/acinclude.m4 php-5.6.8/acinclude.m4
|
||||
unset found
|
||||
AC_CHECK_LIB($2, $1, [found=yes], [
|
||||
AC_CHECK_LIB($2, __$1, [found=yes], [found=no])
|
||||
@@ -1930,8 +1928,6 @@
|
||||
@@ -1931,8 +1929,6 @@ dnl in the default libraries and as a fall back in the specified library.
|
||||
dnl Defines HAVE_func and HAVE_library if found and adds the library to LIBS.
|
||||
dnl
|
||||
AC_DEFUN([PHP_CHECK_FUNC],[
|
||||
@@ -24,3 +33,6 @@ diff -Nura php-5.6.8.orig/acinclude.m4 php-5.6.8/acinclude.m4
|
||||
unset found
|
||||
|
||||
AC_CHECK_FUNC($1, [found=yes],[ AC_CHECK_FUNC(__$1,[found=yes],[found=no]) ])
|
||||
--
|
||||
2.7.4
|
||||
|
||||
+22
-8
@@ -1,3 +1,8 @@
|
||||
From 1357df0196806d5697b1f84497ef72aab5faa8a3 Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
Date: Tue, 9 Aug 2016 11:50:49 +0200
|
||||
Subject: [PATCH] iconv: tweak iconv detection
|
||||
|
||||
Tweak PHP_SETUP_ICONV from aclocal/acinclude.m4 to not
|
||||
PHP_ADD_INCLUDE $ICONV_DIR/include since the tests use
|
||||
test instead of AC_TRY_LINK to find headers which is bad,
|
||||
@@ -8,11 +13,16 @@ PHP_ICONV_H_PATH which, again, uses test and absolute paths.
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
[Gustavo: convert to nice m4 instead of patching configure]
|
||||
[Gustavo: update for 5.6.10]
|
||||
---
|
||||
acinclude.m4 | 2 +-
|
||||
ext/iconv/config.m4 | 22 ----------------------
|
||||
2 files changed, 1 insertion(+), 23 deletions(-)
|
||||
|
||||
diff -Nura php-5.6.10.orig/acinclude.m4 php-5.6.10/acinclude.m4
|
||||
--- php-5.6.10.orig/acinclude.m4 2015-06-12 16:09:06.274355813 -0300
|
||||
+++ php-5.6.10/acinclude.m4 2015-06-12 16:10:10.884544865 -0300
|
||||
@@ -2474,7 +2474,7 @@
|
||||
diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index af4aa06..1bd2652 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -2471,7 +2471,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [
|
||||
dnl
|
||||
if test "$found_iconv" = "no"; then
|
||||
|
||||
@@ -21,10 +31,11 @@ diff -Nura php-5.6.10.orig/acinclude.m4 php-5.6.10/acinclude.m4
|
||||
if test -r $i/include/giconv.h; then
|
||||
AC_DEFINE(HAVE_GICONV_H, 1, [ ])
|
||||
ICONV_DIR=$i
|
||||
diff -Nura php-5.6.10.orig/ext/iconv/config.m4 php-5.6.10/ext/iconv/config.m4
|
||||
--- php-5.6.10.orig/ext/iconv/config.m4 2015-06-12 16:09:07.792407246 -0300
|
||||
+++ php-5.6.10/ext/iconv/config.m4 2015-06-12 16:11:07.752471600 -0300
|
||||
@@ -14,28 +14,6 @@
|
||||
diff --git a/ext/iconv/config.m4 b/ext/iconv/config.m4
|
||||
index 6a05697..694fcb8 100644
|
||||
--- a/ext/iconv/config.m4
|
||||
+++ b/ext/iconv/config.m4
|
||||
@@ -14,28 +14,6 @@ if test "$PHP_ICONV" != "no"; then
|
||||
])
|
||||
|
||||
if test "$iconv_avail" != "no"; then
|
||||
@@ -53,3 +64,6 @@ diff -Nura php-5.6.10.orig/ext/iconv/config.m4 php-5.6.10/ext/iconv/config.m4
|
||||
|
||||
AC_MSG_CHECKING([if iconv is glibc's])
|
||||
AC_TRY_LINK([#include <gnu/libc-version.h>],[gnu_get_libc_version();],
|
||||
--
|
||||
2.7.4
|
||||
|
||||
+17
-5
@@ -1,3 +1,8 @@
|
||||
From 5ba6355e489f647c88ca48afbc75965468193181 Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
Date: Tue, 9 Aug 2016 11:51:53 +0200
|
||||
Subject: [PATCH] configure: disable the 'phar' tool
|
||||
|
||||
Disable the 'phar' command-line tool build/installation since it requires
|
||||
php to run and pack up phar itself in phar format. This would require
|
||||
a host-php instance and really probably nobody needs the phar tool
|
||||
@@ -5,13 +10,17 @@ on the target.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
[Gustavo: update for autoreconf/configure.in]
|
||||
---
|
||||
configure.in | 9 ++-------
|
||||
1 file changed, 2 insertions(+), 7 deletions(-)
|
||||
|
||||
diff -Nura php-5.6.7.orig/configure.in php-5.6.7/configure.in
|
||||
--- php-5.6.7.orig/configure.in 2015-04-08 11:08:10.815835010 -0300
|
||||
+++ php-5.6.7/configure.in 2015-04-08 11:16:20.460467444 -0300
|
||||
@@ -1437,13 +1437,8 @@
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 25c8abf..4dc8a09 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -1445,13 +1445,8 @@ CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag"
|
||||
INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag"
|
||||
CXXFLAGS="$CXXFLAGS $standard_libtool_flag"
|
||||
CXXFLAGS="$CXXFLAGS $standard_libtool_flag \$(PROF_FLAGS)"
|
||||
|
||||
-if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then
|
||||
- pharcmd=pharcmd
|
||||
@@ -25,3 +34,6 @@ diff -Nura php-5.6.7.orig/configure.in php-5.6.7/configure.in
|
||||
|
||||
all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd"
|
||||
install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install"
|
||||
--
|
||||
2.7.4
|
||||
|
||||
+16
-6
@@ -1,11 +1,18 @@
|
||||
OPcache: flock mechanism is obviously linux so force it.
|
||||
From bedbd41ef0a5ce80b83a6f6eaebd7c90f0bc5615 Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
Date: Tue, 9 Aug 2016 11:52:19 +0200
|
||||
Subject: [PATCH] OPcache: flock mechanism is obviously linux so force it.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
---
|
||||
ext/opcache/config.m4 | 34 ++--------------------------------
|
||||
1 file changed, 2 insertions(+), 32 deletions(-)
|
||||
|
||||
diff -Nura php-5.6.7.orig/ext/opcache/config.m4 php-5.6.7/ext/opcache/config.m4
|
||||
--- php-5.6.7.orig/ext/opcache/config.m4 2015-04-08 11:08:11.125845540 -0300
|
||||
+++ php-5.6.7/ext/opcache/config.m4 2015-04-08 11:57:23.648831436 -0300
|
||||
@@ -326,38 +326,8 @@
|
||||
diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4
|
||||
index fbb9b21..ffddc8e 100644
|
||||
--- a/ext/opcache/config.m4
|
||||
+++ b/ext/opcache/config.m4
|
||||
@@ -343,38 +343,8 @@ int main() {
|
||||
msg=yes,msg=no,msg=no)
|
||||
AC_MSG_RESULT([$msg])
|
||||
|
||||
@@ -44,5 +51,8 @@ diff -Nura php-5.6.7.orig/ext/opcache/config.m4 php-5.6.7/ext/opcache/config.m4
|
||||
+flock_type=linux
|
||||
+AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type])
|
||||
|
||||
if test "$flock_type" == "unknown"; then
|
||||
if test "$flock_type" = "unknown"; then
|
||||
AC_MSG_ERROR([Don't know how to define struct flock on this system[,] set --enable-opcache=no])
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
Allow cache answer for strcasestr discovery.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
diff -Nura php-5.6.7.orig/ext/fileinfo/config.m4 php-5.6.7/ext/fileinfo/config.m4
|
||||
--- php-5.6.7.orig/ext/fileinfo/config.m4 2015-04-08 22:19:45.798770792 -0300
|
||||
+++ php-5.6.7/ext/fileinfo/config.m4 2015-04-08 22:26:33.110654338 -0300
|
||||
@@ -14,6 +14,7 @@
|
||||
libmagic/readcdf.c libmagic/softmagic.c"
|
||||
|
||||
AC_MSG_CHECKING([for strcasestr])
|
||||
+ AC_CACHE_VAL(ac_cv_func_strcasestr,
|
||||
AC_TRY_RUN([
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
@@ -46,7 +47,7 @@
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_NOTICE(using libmagic strcasestr implementation)
|
||||
libmagic_sources="$libmagic_sources libmagic/strcasestr.c"
|
||||
- ])
|
||||
+ ]))
|
||||
|
||||
PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I@ext_srcdir@/libmagic)
|
||||
PHP_ADD_BUILD_DIR($ext_builddir/libmagic)
|
||||
@@ -0,0 +1,35 @@
|
||||
From a874ba472151c6811018de322a5787d0ca6148c9 Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
Date: Tue, 9 Aug 2016 11:52:51 +0200
|
||||
Subject: [PATCH] ext/fileinfo/config.m4: allow cache answer for strcasestr
|
||||
discovery
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
---
|
||||
ext/fileinfo/config.m4 | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ext/fileinfo/config.m4 b/ext/fileinfo/config.m4
|
||||
index 7e98d62..8561962 100644
|
||||
--- a/ext/fileinfo/config.m4
|
||||
+++ b/ext/fileinfo/config.m4
|
||||
@@ -14,6 +14,7 @@ if test "$PHP_FILEINFO" != "no"; then
|
||||
libmagic/readcdf.c libmagic/softmagic.c"
|
||||
|
||||
AC_MSG_CHECKING([for strcasestr])
|
||||
+ AC_CACHE_VAL(ac_cv_func_strcasestr,
|
||||
AC_TRY_RUN([
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
@@ -46,7 +47,7 @@ int main(void)
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_NOTICE(using libmagic strcasestr implementation)
|
||||
libmagic_sources="$libmagic_sources libmagic/strcasestr.c"
|
||||
- ])
|
||||
+ ]))
|
||||
|
||||
PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I@ext_srcdir@/libmagic)
|
||||
PHP_ADD_BUILD_DIR($ext_builddir/libmagic)
|
||||
--
|
||||
2.7.4
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
From bb19125781c0794da9a63fee62e263ff4efff661 Mon Sep 17 00:00:00 2001
|
||||
From 1a8714d0b56e06301b3c261eaef93d897ec5d834 Mon Sep 17 00:00:00 2001
|
||||
From: Floris Bos <bos@je-eigen-domein.nl>
|
||||
Date: Fri, 1 May 2015 15:28:55 +0200
|
||||
Subject: [PATCH] Fix php-fpm.service.in
|
||||
@@ -31,5 +31,5 @@ index a2df30e..c135f04 100644
|
||||
|
||||
[Install]
|
||||
--
|
||||
2.1.4
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
From 9ca3de0446fcd31b1561b333020ae0674a83bec7 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Tue, 9 Aug 2016 11:39:10 +0200
|
||||
Subject: [PATCH] phpdbg_prompt: enclose phpdbg_load_module_or_extension() in
|
||||
HAVE_LIBDL
|
||||
|
||||
The phpdbg_load_module_or_extension() function relies on libdl
|
||||
functionality, so it should be enclosed in HAVE_LIBDL to avoid the
|
||||
following build failure when libdl support is not available:
|
||||
|
||||
php-7.0.9/sapi/phpdbg/phpdbg_prompt.c:(.text+0x1c20): undefined reference to `_DL_LOAD'
|
||||
php-7.0.9/sapi/phpdbg/phpdbg_prompt.c:(.text+0x1c36): undefined reference to `_GET_DL_ERROR'
|
||||
php-7.0.9/sapi/phpdbg/phpdbg_prompt.c:(.text+0x1c6a): undefined reference to `_DL_FETCH_SYMBOL'
|
||||
php-7.0.9/sapi/phpdbg/phpdbg_prompt.c:(.text+0x1c7e): undefined reference to `_DL_FETCH_SYMBOL'
|
||||
php-7.0.9/sapi/phpdbg/phpdbg_prompt.c:(.text+0x1dc6): undefined reference to `_DL_UNLOAD'
|
||||
|
||||
This function is only called in the "dl" debug command, inside an
|
||||
HAVE_LIBDL condition.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
sapi/phpdbg/phpdbg_prompt.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c
|
||||
index 6f73d30..6768dc5 100644
|
||||
--- a/sapi/phpdbg/phpdbg_prompt.c
|
||||
+++ b/sapi/phpdbg/phpdbg_prompt.c
|
||||
@@ -1019,6 +1019,7 @@ static int add_zendext_info(zend_extension *ext) /* {{{ */ {
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
+#ifdef HAVE_LIBDL
|
||||
PHPDBG_API const char *phpdbg_load_module_or_extension(char **path, char **name) /* {{{ */ {
|
||||
DL_HANDLE handle;
|
||||
char *extension_dir;
|
||||
@@ -1158,6 +1159,7 @@ quit:
|
||||
DL_UNLOAD(handle);
|
||||
return NULL;
|
||||
}
|
||||
+#endif
|
||||
/* }}} */
|
||||
|
||||
PHPDBG_COMMAND(dl) /* {{{ */
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
Fixes compile for m68k.
|
||||
|
||||
From upstream double-conversion commit da111796231:
|
||||
https://github.com/google/double-conversion/blob/master/double-conversion/utils.h
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
|
||||
diff -Nur poco-poco-1.7.2-release.orig/Foundation/src/utils.h poco-poco-1.7.2-release/Foundation/src/utils.h
|
||||
--- poco-poco-1.7.2-release.orig/Foundation/src/utils.h 2016-03-19 08:19:35.000000000 +0100
|
||||
+++ poco-poco-1.7.2-release/Foundation/src/utils.h 2016-08-11 02:55:02.827238119 +0200
|
||||
@@ -63,6 +63,8 @@
|
||||
defined(__AARCH64EL__) || \
|
||||
defined(nios2) || defined(__nios2) || defined(__nios2__)
|
||||
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
|
||||
+#elif defined(__mc68000__)
|
||||
+#undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS
|
||||
#elif defined(_M_IX86) || defined(__i386__) || defined(__i386)
|
||||
#if defined(_WIN32)
|
||||
// Windows uses a 64bit wide floating point stack.
|
||||
@@ -0,0 +1,32 @@
|
||||
From 4fc9a348026a945aec8eddffc7613de9cb10b10c Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 7 Aug 2016 11:08:26 +0200
|
||||
Subject: [PATCH] ps/output.c: include <dlfcn.h> only when necessary
|
||||
|
||||
dlopen() functionality is only used when SELinux support is enabled, so
|
||||
<dlfcn.h> only needs to be included when ENABLE_LIBSELINUX is
|
||||
defined. This fixes the build in configurations where <dlfcn.h> is not
|
||||
available.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
ps/output.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/ps/output.c b/ps/output.c
|
||||
index 42c04cf..f540832 100644
|
||||
--- a/ps/output.c
|
||||
+++ b/ps/output.c
|
||||
@@ -46,7 +46,9 @@
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
+#if ENABLE_LIBSELINUX
|
||||
#include <dlfcn.h>
|
||||
+#endif
|
||||
#include <fcntl.h>
|
||||
#include <grp.h>
|
||||
#include <limits.h>
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -47,4 +47,10 @@ PROCPS_NG_CONF_OPTS += \
|
||||
--enable-watch8bit
|
||||
endif
|
||||
|
||||
# numa support requires libdl, so explicitly disable it when
|
||||
# BR2_STATIC_LIBS=y
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
PROCPS_NG_CONF_OPTS += --disable-numa
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user