Compare commits

...
101 Commits
Author SHA1 Message Date
Thomas Petazzoni 985b46be0c Update for 2015.08-rc2
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-24 22:20:16 +02:00
Vicente Olivert Riera 2c1e3a1a79 apitrace: bump to version 7.0
Our current apitrace version can't detect the host-python version
correctly, so if both host-python and host-python3 where installed, it
will take the last one and it will fail with an "invalid syntax" error.
The latest apitrace version has this problem solved and it detects the
host-python version correctly.

Fixes:

  http://autobuild.buildroot.net/results/22a/22a73b4ba0adcc874ecc153917ae6edcfd4d37af/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-08-24 17:17:19 +02:00
Peter Korsgaard eaddabf557 tftpd: fix init script
The daemon binary is tftpd, not in.tftpd. While we are at it, drop the
unneeded /usr/local from the PATH.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-08-24 17:13:37 +02:00
Yann E. MORIN 29a0f05579 package/dropbear: fix when readlink is from busybox
Busybox "readlink -f" does not canonicalise paths when the target is
missing, while coreutils do.

Fix that by:
  - making an absolute symlink
  - dropping "-f" when calling readlink

Fixes #8276.

Reported-by: Jason Tang <tang@jtang.org>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Paul Cercueil <paul@crapouillou.net>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Tested-by: Jason Tang <tang@jtang.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-08-24 17:06:06 +02:00
Peter Korsgaard 7deaa277fd arch/arm: add missing arm1136j-s variant
Identical to arm1136jf-s, except that is doesn't have a vfp unit.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-08-24 00:43:12 +02:00
Yann E. MORIN d824792b75 linux: enable all options needed by xtables-addons
Both of CONFIG_NF_CONNTRACK and CONFIG_NF_CONNTRACK_MARK are needed by
xtables-addons.

Although the current code does enable them in the linux' .config file,
the former is protected behind CONFIG_NETFILTER_ADVANCED, which may be
missing from a user-supplied (def)config file, and is missing from some
of the bundled defconfigs as well.

For example, the following defconfig fails to build:

    BR2_TOOLCHAIN_EXTERNAL=y
    BR2_LINUX_KERNEL=y
    BR2_LINUX_KERNEL_DEFCONFIG="i386"
    BR2_PACKAGE_XTABLES_ADDONS=y

So, also force-enable CONFIG_NETFILTER_ADVANCED.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-23 21:01:51 +02:00
Yann E. MORIN 8c1bff77f4 package: add comment about ipkg/opkg/rpm
Too often the question is raised, that ipkg, opkg and rpm do not work,
and users complain they can not install packages.

Even though we do have a clear and clearly explained section in our
manual, people do not read it (when will users read manuals? sigh...).

So, add a big fat comment about ipkg/opkg/rpm, that Buildroot does not
generate binary packages and does not provide any package database for
any of those package manager.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-23 20:59:43 +02:00
Yann E. MORIN 42f1e5ce5b package/librtas: only show comment on supported architectures
librtas is only available for PPC and PPC64, so only show the comment
about the (e)glibc dependency for those archs.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Sam Bobroff <sam.bobroff@au1.ibm.com>
Reviewed-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-20 23:58:57 +02:00
Yann E. MORIN ce3864a44b package/weston: mark the RDP backend as broken
weston needs FreeRDP from master, as it uses new settings only
introduced in there.

Since it is too late in the release cycle to bump FreeRDP, just mark the
weston RDP backend as broken.

Fixes:
    http://autobuild.buildroot.org/results/ef6/ef685a41a56e81dc93a40f23f8cd55860f44e055/
    http://autobuild.buildroot.org/results/c42/c42d72498e05364a718748caef74bba6c423d7d1/
    http://autobuild.buildroot.org/results/c78/c783695a5b1a18976361ea36627505b281b11781/
    ...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-20 23:58:03 +02:00
Thomas Petazzoni 881845f5fc libselinux: mark as not available on ARC
libselinux causes some build problems due to the toolchain on ARC,
which haven't been solved so far. As a temporary solution for Buildroot
2015.08, this commit makes libselinux (and its reverse dependencies)
unavailable on ARC. Of course, once the toolchain problem is
addressed, this commit can be reverted to re-enable libselinux on ARC.

Fixes:

   http://autobuild.buildroot.org/results/220/2207f6aad44a6988bf07b02b583b6418ad930dc8/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-08-19 23:06:59 +02:00
Thomas Petazzoni b7aee38fe2 boost: fix build on ARC
This commit adds a patch to Boost to make it use the eventfd()
function provided by the C library when uClibc is used, rather than
falling back to using directly the __NR_eventfd system call. This
fixes the build on ARC, which doesn't define __NR_eventfd.

The original problem is that uClibc pretends to be glibc 2.2, which
didn't had eventfd(), so Boost makes the system call
manually. uClibc-ng, in its next release, will pretend to be glibc
2.10 (see
http://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=4ff3a6c8eb91db71d6dc3d2932b66e848bd20ac3),
which will also fix the problem, but requires bumping the uClibc
version, rebuilding the external toolchains, and so on.

Ideally, Boost should be doing a compile test to detect if eventfd()
is available or not, but the Boost build system is so brain-damaged
that doing so would require way too much effort.

Fixes:

  http://autobuild.buildroot.org/results/22b/22b710346d2cd78b7b51cdccd18d670bb6ac5d24/
  and many similar build failures

[Peter: minor tweaks to description]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-08-19 23:06:59 +02:00
Thomas Petazzoni 93f6baf135 mono: depend on shared library support
The mono source code includes <dlfcn.h>, which is only available when
shared library support is available. While it might be possible to do
a fully static installation of Mono, it probably isn't very useful.

While we're at it, this commit also makes sure that the Config.in
comment is not visible when the architecture doesn't support Mono.

Fixes:

  http://autobuild.buildroot.net/results/5d99bdf77f1942fa403081267c362aa1f8fd0dab/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-19 22:54:45 +02:00
Matthew Shyu 580513320e qt5base: install libQt5XcbQpa.so for xcb backend
When the XCB backend is selected, the libqxcb.so plugin is installed,
and is linked against libQt5XcbQpa.so. However, until, Buildroot was
not installing this library. This commit fixes this.

[Thomas: tweak commit log.]

Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-19 21:16:16 +02:00
Thomas Petazzoni 97e9db4332 libpthsem: fix setjmp/longjmp detection
libpthsem has been affected since quite a while by build issues, but
occuring only on Nathaniel Roach's autobuilder. The failure message
is:

  error: #error "Unsupported Linux (g)libc version and/or platform"

This message comes from pth_mctx.c file, which implements five methods
for machine context initialization:

  VARIANT 1: THE STANDARDIZED SVR4/SUSv2 APPROACH
  VARIANT 2: THE SIGNAL STACK TRICK
  VARIANT 3: LINUX SPECIFIC JMP_BUF FIDDLING
  VARIANT 4: INTERACTIVE SPECIFIC JMP_BUF FIDDLING
  VARIANT 5: WIN32 SPECIFIC JMP_BUF FIDDLING

The "Unsupported (g)libc version and/or platform" only appears when
"VARIANT 4" is used, since VARIANT 4 only supports a very limited
number of platforms. So when building with Nathaniel's autobuilder,
VARIANT 4 is chosen.

However, when you build libpthsem on some other machine than
Nathaniel's autobuilder, VARIANT 2 is chosen, and works regardless of
the glibc version or architecture.

VARIANT 2 is chosen when:

      !PTH_MCTX_DSP(sjljlx)  &&\
      !PTH_MCTX_DSP(sjljisc) &&\
      !PTH_MCTX_DSP(sjljw32)

On both Nathaniel's autobuilder, and on a different machine, the
PTH_MCTX_MTH macro gives sjlj:

  #define PTH_MCTX_MTH_use PTH_MCTX_MTH_sjlj

However, on a "normal" machine, the PTH_MCTX_DSP macro gives ssjlj:

  #define PTH_MCTX_DSP_use PTH_MCTX_DSP_ssjlj

While on Nathaniel's autobuilder, it gives:

  #define PTH_MCTX_DSP_use PTH_MCTX_DSP_sjljlx

This explains why VARIANT 4 is being used on Nathaniel's autobuilder,
while VARIANT 2 is used when building on other platforms.

The decision of the value for PTH_MCTX_DSP is derived as follows in
configure.ac:

 AC_CHECK_SJLJ(sjlj=yes, sjlj=no, sjlj_type)
 [...]
 elif test ".$sjlj" = .yes; then
    mctx_mth=sjlj
    mctx_dsp=$sjlj_type
 [...]
 AC_DEFINE_UNQUOTED(PTH_MCTX_DSP_use, [PTH_MCTX_DSP_$mctx_dsp], [define for machine context dispatching])

So basically, the value of PTH_MCTX_DSP is $sjlj_type, as returned by
the AC_CHECK_SJLJ autoconf macro, implemented in
acinclude.m4. However, reading this macro is quite informative: it
does a number of tests that are not cross-compile
friendly. Especially, it looks at the kernel version with 'uname -r'
to decide whether the Linux system is braindead or not. If the system
runs a 2.2.x kernel or newer 2.x, or a 3.x kernel, everything is fine,
the system is not braindead, and sjlj_type is set to ssjlj. However,
if the build system runs a 4.x kernel, then it is considered as
braindead, and sjlj_type is set to sjljlx.

And indeed, Nathaniel's autobuilder is running a 4.x kernel, while all
other autobuilders run 2.x or 3.x kernels.

Since for all sane Linux systems, this AC_CHECK_SJLJ macro concludes
that the setjmp/longtmp type is ssjlj, this commit takes the simplest
route of forcing this value, skipping the broken detection.

Note that we're overriding ac_cv_check_sjlj instead of using the
--with-mctx-* options, since the latter do not work properly in the
context of Nathaniel's autobuilder, as the broken cross-compilation
tests continue to cause problems.

Fixes:

  http://autobuild.buildroot.org/results/3dd/3dd66d70c2e36f2d9fb0a0fe01bbdec009d55067/
  and many similar build failures

This patch has been tested by Nathaniel Roach in the context of his
autobuilder instance which was causing the original problem.

Tested-by: Nathaniel Roach <nroach44@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-08-19 17:45:51 +02:00
Baruch Siach d9b6ad84f1 libiio: test programs require threads
Fixes:
http://autobuild.buildroot.net/results/228/228a32167d05337acf17b0e3689aa91e8a67d8fb/
http://autobuild.buildroot.net/results/86a/86adb968659fec56684ba80e1c4230230fd7a1c8/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 22:45:48 +02:00
Vivien Didelot 7a691d08e3 fs: iso9660: change boot menu entry text
Replace Grub-specific "menu.lst" with "menu config" in the
BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU Kconfig entry text, and mention
missing grub.cfg for Grub 2.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 21:42:51 +02:00
Yann E. MORIN 8d3e126e83 package/protobuf: needs dynamic libraries
Eventhough it should be theoretically possible to build protobuf in
static-only, configure.ac includes an m4 macro, ACX_PTHREAD defined in
m4/acx_pthread.m4, which forcibly checks for threads *with* shared libs,
and is completely broken for static-only (as it forces -shared whatever
the user selection), ending up with these configure results:

    checking for the pthreads library -lpthreads... no
    checking whether pthreads work without any flags... no
    checking whether pthreads work with -Kthread... no
    checking whether pthreads work with -kthread... no
    checking for the pthreads library -llthread... no
    checking whether pthreads work with -pthread... yes
    checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
    checking if more special flags are required for pthreads... no
    checking whether to check for GCC pthread/shared inconsistencies... yes
    checking whether -pthread is sufficient with -shared... no
    checking whether -lpthread fixes that... no
    checking whether -lc_r fixes that... no
    configure: WARNING: Impossible to determine how to use pthreads with shared libraries
    checking whether what we have so far is sufficient with -nostdlib... no
    checking whether -lpthread saves the day... no
    configure: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib

Fixing this macro is far from trivial; protobuf in a static-only
scenario is probably not too common. So, just disable protobuf for
static-only builds.

Fixes:
    http://autobuild.buildroot.org/results/3ef/3efb86c7e8ec2db5d953d634470cafae79bd34cf/
    http://autobuild.buildroot.org/results/96a/96ae1108fc3193df2a93a779057130b774379655/
    http://autobuild.buildroot.org/results/00c/00c29795980319d38823eec1301e9ebd860ebd2a/
    ...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Nimai Mahajan <nimaim@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 21:41:12 +02:00
Yann E. MORIN e1bd76412d package/protobuf-c: threads dependency is a direct dependency
Currently, protobuf-c's dependency on threads is labelled as being
inherited from protobuf.

This is wrong, as protobuf-c does not depend on protobuf, and such
dependency was removed in e16865a (protobuf-c: Don't require protobuf on
target), but forgot to remove the corresponding comment.

Remove it now.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 21:40:28 +02:00
Simon Marchi 932442e7a3 ola: Add patch to fix linking issue
This patch fixes this autobuild failure:

  http://autobuild.buildroot.net/results/e14/e14e1700d4fe359c56be57587bdb509e002e5753/build-end.log

The problem is caused by the -fvisibility-inlines-hidden switch.
Removing the switch is probably the least intrusive way we can make the
problem go away.  The first solution that was considered was to move the
definition of the offending method to the .cpp file.  However, with
other combinations of compilers and platforms, I suppose it could happen
with other methods as well.  Removing the switch ensures we catch them
all.

Built-tested with the config from the build bot, as well as with all OLA
options/plugins enabled.

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 21:06:20 +02:00
Vicente Olivert Riera 4c551f4594 webkitgtk24: fix MIPS64 n64 ABI detection
webkitgtk24 is failing to compile for MIPS64 n64 because the ABI is not
detected correctly. It causes failures like these ones:

./Source/JavaScriptCore/runtime/JSCJSValueInlines.h:201:53: error: cast
from 'JSC::JSCell*' to 'int32_t {aka int}' loses precision
[-fpermissive]

[snip]

./Source/WTF/wtf/StdLibExtras.h:137:5: error: static assertion failed:
bitwise_cast size of FromType and ToType must be equal!

Bug report:

  https://bugs.webkit.org/show_bug.cgi?id=145113

Upstream patch:

  http://trac.webkit.org/changeset/185863

Fixes:

  http://autobuild.buildroot.net/results/0d5/0d56a5bf6e92e7344dcee7acb85e176198f703e7/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 21:05:27 +02:00
Viallard Anthony ef7a8c7903 msmtp: don't try to use IDN feature
autoconf can't detect if AI_IDN is really supported
(http://sourceforge.net/p/msmtp/code/ci/907916e8089ea9303a7c091b763087530c88a063/),
so a --disable-gai-idn flag was added to explicitly disable the usage
of IDN.

Before this patch, msmtp failed to send mail with the following
output:

  msmtp: cannot locate host smtp.mandrillapp.com: Bad value for ai_flags

[Thomas: tweak commit log.]

Signed-off-by: Anthony Viallard <viallard@syscom-instruments.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 14:18:01 +02:00
Gustavo Zacarias 6a2aa6ba4f wireshark: security bump to version 1.12.7
Fixes:
wnpa-sec-2015-21 - Protocol tree crash.
wnpa-sec-2015-22 - Memory manager crash.
wnpa-sec-2015-23 - Dissector table crash.
wnpa-sec-2015-24 - ZigBee crash.
wnpa-sec-2015-25 - GSM RLC/MAC inifite loop.
wnpa-sec-2015-26 - WaveAgent crash.
wnpa-sec-2015-27 - OpenFlow infinite loop.
wnpa-sec-2015-28 - Ptvcursor crash.
wnpa-sec-2015-29 - WCCP crash.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 14:14:42 +02:00
Yann E. MORIN 9fa58ed79b package/mosh: fix dependencies
mosh selects protobuf, so it needs to propagate *all* its dependencies.

Fixes:
    http://autobuild.buildroot.org/results/1e7/1e7d28018252fa48ee1ccd68d0a21afb3e0f072f/
    http://autobuild.buildroot.org/results/a91/a91ea29454a6f8eefc0bf4f0eb137dd8e061f028/
    http://autobuild.buildroot.org/results/ecb/ecb67c1d1b04a79ad9fbe4a09121ec492fe1501c/
    [...]

[Thomas: add missing C++ comment.]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 13:14:48 +02:00
Gustavo Zacarias 7c8c18a616 gnutls: security bump to version 3.3.17.1
Fixes GNUTLS-SA-2015-3 - Double free in certificate DN decoding.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 13:07:52 +02:00
Yann E. MORIN 23fde76859 toolchain/external: ensure gcc version is known
Currently, when a preconfigured prebuilt toolchain forgets to specify
its gcc version, the error message is a bit misleading, like:

    Incorrect selection of gcc version: expected .x, got 4.9.2

Add a an explicit check for the gcc version being set, that reports a
better error message.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 11:47:23 +02:00
Yann E. MORIN ab2a9598fe package/systat: fix linking with -lintl
When linking, libraries should be listed in the reverse-dependency order,
that is the library/ies with no dependency last, preceded by libraries
that depend on them.

And most importantly, libraries should be listed *after* the local
objects, .o files.

Currently, sysstat uses CFLAGS to shoehorn the -lintl linker flags,
which is incorrect, as the CFLAGS are passed before the object files.

However, sysstat has a LFLAGS variable that, presumably, is to be used
to pass linker flags. This is where we want to shoehorn -lintl.

Fixes:
    http://autobuild.buildroot.org/results/8cc/8cc547074de23b9482ad110234ef7458a44e174a/
    http://autobuild.buildroot.org/results/360/360f7b8252dc9f6bb47841b1d7207a121f90048c/
    http://autobuild.buildroot.org/results/04c/04cfc76a09e089985549a4320f34f6669d21cab5/
    http://autobuild.buildroot.org/results/818/818c08decf4a6190a9ed39915eae4cd3d2779880/
    ...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 11:38:09 +02:00
Baruch Siach a371869499 lightning: requires share library support
Uses -ldl unconditionally.

Fixes:
http://autobuild.buildroot.net/results/55d/55d30db7212863d9f898bb929f0c75d529036bad/
http://autobuild.buildroot.net/results/6c3/6c37a1cd353b7cac854cc85d29a8232233414c68/
http://autobuild.buildroot.net/results/459/459ab12bc3eeb493f39efa2450bc829a351ee3a3/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 11:19:41 +02:00
Yann E. MORIN 6170eaf4c4 package/nbd: fix static builds
Fixes:
    http://autobuild.buildroot.org/results/aa8/aa8a1ac35a93e1c8b9fddbc2b5d66ecaa921f31e/ (arm)
    http://autobuild.buildroot.org/results/e5b/e5bd05623dd6c57bb0338592ecd21a5ba0cbe95a/ (arc)
    http://autobuild.buildroot.org/results/e0f/e0fd23eec2dd31bece122d84515b2b7cb14594b8/ (ppc)
    http://autobuild.buildroot.org/results/3a2/3a2d4124f78d4e504e8e961fabe038e570923408/ (mips)
    ...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 11:17:43 +02:00
Yann E. MORIN f36ad80b80 package/bwm-ng: fix build failures with gcc-5
Bumping to the latest release, for 0.6 -> 0.6.1 to fix gcc-5 build
failures due to incorrect definitions of 'static' functions.

The project also has a new home.

Fixes:
    http://autobuild.buildroot.org/results/546/546b332cf95a48412d88add2feec2ffd4712857c/
    http://autobuild.buildroot.org/results/751/751797f3b97839f69626682ce81dca9bcb2cff22/
    ...

[Thomas: keep only the locally calculated sha256 hash, and do not
mention the commented SF.net hash, since SF.net is no longer the
official upstream location.]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 11:15:35 +02:00
Jörg Krause 2560cbb6fe package/libpfm4: disable Werror
Set `DBG` to an empty value to disable -Werror when building libpfm4. Build
aborts with a musl toolchain because of warnings about redirecting incorrect
header includes.

So -Werror shouldn't be used in released code since it can cause random build
failures on moderate warnings. It also depends on the used toolchain since
different toolchains may or may not print the same warnings.

Fixes:
http://autobuild.buildroot.net/results/6df/6df9b94a79be1dc5ba878f7b67bf9ad4ce2f2e98/

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 10:59:58 +02:00
Yann E. MORIN c17af71d2c package/audit: not available for musl
audit uses strndupa() which is missing from musl.

Even though the implementation of strndupa is not too complex, we won't
go as far as duplicating it in audit, and we just disable audit for the
musl C library.

Fixes;
    http://autobuild.buildroot.org/results/e22/e22a70f9ff14bc52f642a6135da44c14e41b6cbb/
    http://autobuild.buildroot.org/results/233/2333c9b3d8f81b15602263b918d422e440f09d60/
    ...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
Cc: Matthew Weber <matthew.weber@rockwellcollins.com>
Cc: Ryan Barnett <rjbarnet@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 10:58:53 +02:00
Jörg Krause 4d53184aff package/cifs-utils: add upstream patch to fix musl build
Fixes build error with the musl C library:

```
error: '_PATH_MOUNTED' undeclared (first use in this function)
```

Fixes:
http://autobuild.buildroot.net/results/44e/44e800d9933160c48b9c2447d63eeb37a0065d03/
http://autobuild.buildroot.net/results/b9f/b9f918bba4952566e3818fb99f45a7e425acf727/
http://autobuild.buildroot.net/results/8de/8dec8c46ad1959066101efe7cc1781f3d4732028/
http://autobuild.buildroot.net/results/cc3/cc38e7581b4bba362a9be388099b0ea237f4e580/

and many more.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-17 22:53:58 +02:00
Yann E. MORIN a1c16fb299 package/beecrypt: fix C++ support
C++ support unconditionally needs shared libraries; it uses
dlopen/dlsym.

Also, fix the conditions under which the comment is shown.

Finally, explicitly require C++ support when configuring.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-17 22:45:25 +02:00
Alex Suykov 4c71130b61 clapack: fix build with musl
Fixes
http://autobuild.buildroot.net/results/a94f097193cd5444dee5cd9df9d544ce736a7e7e/
http://autobuild.buildroot.net/results/036014e492f7caf793b92a9822ab6a0b1a54f2e8/

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-17 22:41:53 +02:00
Yann E. MORIN 578a0459a3 package/libnetfilter_queue: fix build with musl
Backport a patch from upstream.

Fixes:
    http://autobuild.buildroot.org/results/59b/59bd31c10a0d445d2ea56550a36920ecb2ef89ed/
    http://autobuild.buildroot.org/results/60a/60ab98b4cf909b04a57207b2326e9f8080d1721b/
    http://autobuild.buildroot.org/results/7db/7db3a5c2bebabfdc26947f45382893bb14656617/

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-17 22:34:48 +02:00
Yann E. MORIN 123c41ff72 package/oprofile: fix static linking
When getext is enabled, popt links with -lintl, specifies it in its
popt.pc and has done so for the past 6+ years. But oprofile does not
use pkconfig to find popt, so misses -lintl, which is important for
a static build. We have to do the call to pkgconfig manually...

Fixes:
    http://autobuild.buildroot.org/results/a48/a485f2171a3fcbfa2e0e5aec8e653cf88512615d/
    http://autobuild.buildroot.org/results/b37/b374874f1915ab1d7aa6262604ccc8db102bb0b0/
    http://autobuild.buildroot.org/results/261/2616a63081ed8c55c7ca1a6879b1a6a14e19f918/
    http://autobuild.buildroot.org/results/73f/73f34ab59d54ded68ff60608a0212a6e5a5190e5/
    ...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-17 22:28:00 +02:00
Yann E. MORIN 581d7fd6cc package/dosfstools: fix build with musl
Use correct and standard int types.

Fixes:
    http://autobuild.buildroot.org/results/a09/a0923d7f6d4dbae02eba4c5024bbdae3a52aa85a/
    http://autobuild.buildroot.org/results/62b/62b1a71c4fedb6f9209663e7544d7a36fb42c580/
    http://autobuild.buildroot.org/results/e80/e808e692220ced315d30d8ee9c93bdf4a5e32a03/
    http://autobuild.buildroot.org/results/7b7/7b778b7a9ec8c91ec3cea6ee81c6f5c75f0b959a/

[Thomas: update upstream status.]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-17 22:23:20 +02:00
Noé Rubinstein 8df95d926e pkg-kernel-module: die if kernel module support is disabled
Test the configuration of the kernel to see if loadable module support
is enabled, and error out otherwise. This makes build failures of
external kernel modules less confusing.

[Thomas: tweak the commit log.]

Signed-off-by: Noé Rubinstein <nrubinstein@aldebaran.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-17 16:29:52 +02:00
Baruch Siach 3ffa368342 libv4l: update homepage link
The official wiki page is more informative and up to date.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-17 16:24:25 +02:00
Thomas Petazzoni 15a53b93a0 fs/common: add <fs>_POST_GEN_HOOKS support
The common filesystem infrastructure already supports a
<fs>_PRE_GEN_HOOKS variable, which allows filesystem makefiles to
register some actions to be done before the root filesystem image is
generated.

This commit adds a similiar <fs>_POST_GEN_HOOKS variable, which will
allow filesystem makefiles to do some actions after the filesystem
image has been generated. It will initially be used by the iso9660
filesystem to delete the temporary directory it creates.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Noé Rubinstein <nrubinstein@aldebaran.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-10 20:56:05 +02:00
Waldemar Brodkorb b1c6801f1c postgresql: fix sparc compile issue
Fixes autobuilder compile error:
http://autobuild.buildroot.net/results/f374d3535cf91f139ce80703cd2d0a2be5d3b2b1/

The predefines are wrong:
./output/host/usr/bin/sparc-buildroot-linux-uclibc-gcc -dM -E - </dev/null|grep sparc
#define sparc 1
#define __sparc__ 1
#define __sparc 1
#define __sparc_v8__ 1

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-10 15:55:44 +02:00
Romain Naour 076c508d1b package/util-linux: fix vipw build with musl
__P() is used for compatibility with old K&R C compilers. With
ANSI C this macro has no effect.

This fixes a compilation error with musl libc because of undeclared
__P.

Fixes:
http://autobuild.buildroot.net/results/237/2377ae85bb9d85ba4c02706207f0b3bde3ccd027

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-10 15:44:03 +02:00
Bernd Kuhls 5ccc4c9cf5 package/php: security bump to version 5.6.12
http://www.php.net/ChangeLog-5.php#5.6.12
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-10 15:43:17 +02:00
Alexey Brodkin 38ea889ed0 tinc: disable PIE on ARC
Even though ARC gcc understands "-pie" option and attempts to generate
PIE binaries as of today PIE is not really supported for user-space
applications.

So we disable PIE detection if building for ARC.
That fixes http://autobuild.buildroot.net/results/2b1/2b1aa474fc432f3f79b03c4577d68642bb7e0f9c
and also prevents execution of non-supported PIE binary in runtime.

[Thomas: fix indentation.]

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-10 15:42:25 +02:00
Bernd Kuhls 9c635f86d8 package/mesa3d: needs dynamic library
Fixes
http://autobuild.buildroot.net/results/5ee/5eef099e82e7a65d9b459d88fcb82b468ccf8fed/
http://autobuild.buildroot.net/results/e5c/e5c0e693505798ec366328ed87de3460cd07894d/
http://autobuild.buildroot.net/results/c6b/c6b6a21f73fc84f4784dd00de504ef0eea3bdaf1/
http://autobuild.buildroot.net/results/abd/abd3e2850ee457fc456de3f1641b92405d995e16/
http://autobuild.buildroot.net/results/2c4/2c40fe209e6006fdf148e547b1fafe9180afc85d/

[Thomas: remove propagation of the dynamic library dependency to
glmark2 and mesa3d-demos, since none of them select mesa3d.]

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-10 15:22:32 +02:00
Alexey Brodkin 855bb15aa1 libsodium: disable PIE on ARC
Even though ARC gcc understands "-pie" option and attempts to generate
PIE binaries as of today PIE is not really supported for user-space
applications.

So we disable PIE detection if building for ARC.
That fixes http://autobuild.buildroot.net/results/be4/be46b621ce5443788b0a1bc9fab614c4ca5d0859
and also prevents execution of non-supported PIE binary in runtime.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-10 15:04:47 +02:00
Yann E. MORIN 4a5f878946 toolchain/external: better check for gcc-5
gcc will always report a three-digit version sting, like 4.9.3 or 5.1.0.

For gcc before 5, we want to check the first two digits, while starting
with gcc 5, we are only concerned about the first digit.

So, change our matching code to test for the leading part of the version
string, up to the first dot after as-many version digit we're interested
in.

Note: we're adding the dot in the .mk code rather than in the Kconfig
symbol, because it seemed cleaner to do so.

Reported-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-09 16:58:55 +02:00
Bernd Kuhls a871ffd182 package/sysdig: Fix typo in comment
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-09 16:58:15 +02:00
Romain Naour f7b4865479 package/powertop: add missing headers for musl
Reported upstream:
https://github.com/fenrus75/powertop/pull/20

Fixes:
http://autobuild.buildroot.net/results/713/713df99bebd625434e029abdf360574de879afa3/

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-09 16:56:19 +02:00
Waldemar Brodkorb ef3d0426f3 haveged: for sparc we need generic clockgettime
This fixes autobuilder error:
http://autobuild.buildroot.net/results/5b8bbc30f347140309ab2f81e1fe50f517356a3e/

As sparcv9 assembly is used, we need to enable generic clock_gettime
for sparcv8 systems.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-09 11:40:27 +02:00
Romain Naour ba45919e1f package/wvstreams: disable for musl toolchains
The project seems not maintained anymore since there
is no commit since 2011:
https://github.com/wlach/wvstreams

After fixing the first build issue by adding a missing limit.h header...
xplc/modulemgr.cc:90:14: error: ‘PATH_MAX’ was not declared in this scope
   char fname[PATH_MAX];

and fixing a basename() conflict between the gnu and posix version,
the build fail due to missing __libc_stack_end.

wvtask.cc:(.test+0xb08): undefined reference to `__libc_stack_end'

There is a configure test for __libc_stack_end support but it
doesn't work properly with a musl toolchain.

Since we already have several fixes for uClibc, let's mark wvstreams
as not available for musl toolchains, until someone interested
enough fixes it.

[Thomas: replace uClibc-ng by just uClibc in the Config.in comments.]

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-09 11:24:32 +02:00
Bernd Kuhls 8a2aa343c8 package/x11r7/libepoxy: fix OpenGL / EGL dependencies
libepoxy depends on egl, opengl is an optional dependency

Fixes
http://autobuild.buildroot.net/results/f7e/f7e6a42f53cb4ca523d2eeefde85c44770f6011e
http://autobuild.buildroot.net/results/025/025a3d3b4d3dd4f496dcbf09f2dd279116250207

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-09 11:23:07 +02:00
Yann E. MORIN fdad2e564e package/elfutils: fix dependency on C library
As Thomas puts it:

    The comment can only be visible when a toolchain that is *not*
    uclibc and *not* glibc is used. I.e, the comment is now only visible
    when musl is used. Which is not what we want.

Indeed, I completely borked the conditions. When a glibc or uClibc
toolchain is selected, the comment is entirely hidden, and we don;t get
the extra requirements (wchar, !static).

Fix that with the solution proposed by Thomas.

Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-09 11:22:08 +02:00
Romain Naour e86fc46a99 package/cdrkit: fix musl build
Define __THROW if not already defined by the C library.

Fixes:
http://autobuild.buildroot.net/results/d27/d2781e70b04a207e2e9397d888032294c7285034/

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-09 11:21:39 +02:00
Thomas Petazzoni 5e554d3c78 libnfnetlink: add patch to fix musl build issue
Fixes:

  http://autobuild.buildroot.net/results/17aac78e49d016b1044be4e600033b85a3420c5b/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 23:55:52 +02:00
Thomas Petazzoni bb9502a7e0 libev: add patch to fix build on SPARCv8
Due to a mistake in a compile time conditional, SPARCv9 code was being
compiled in libev on a SPARCv8 system. A newly added patch fixes this,
which fixes the following build failure:

  http://autobuild.buildroot.net/results/55d6190b60a08c9bc4d659cf009df52388db676a/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 23:47:23 +02:00
Thomas Petazzoni c5e96d8935 c-periphery: fix SPARC build issue
Some of the serial port highest speed are not defined on SPARC, so
c-periphery should not use them, so we add a patch to fix that.

Fixes:

  http://autobuild.buildroot.net/results/a5d34ef58d45be6fe0b6c8a71ed665d5dc29dfd9/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 22:59:06 +02:00
Thomas Petazzoni 60974ee92d c-periphery: add patch to fix musl compatibility
Fixes:

  http://autobuild.buildroot.net/results/ebfc9a44a305ab45305f8b393761304576ae9077/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 22:44:44 +02:00
Thomas Petazzoni 6364c770ed zyre: backport fix to build with recent versions of ZeroMQ
Since the recent bump of ZeroMQ, Zyre failed to build, due to the
const qualifier being dropped in a number of functions.

A backport from the upstream Github repository fixes the problem, and
therefore fixes the following build failure:

  http://autobuild.buildroot.org/results/d24/d24d7ccb878151bd81003763ba1a6bcd91d41dc9/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 18:08:22 +02:00
Thomas Petazzoni feaa241ce3 bcusdk: make it build with the musl C library
This commit makes bcusdk build with the musl C library by:

 * Adding a dependency on argp-standalone

 * Adding a patch to fix the incorrect usage of <sys/cdefs.h>

 * Adding a patch to fix a missing header include for fd_set

Both patches have been submitted upstream,
https://sourceforge.net/p/bcusdk/patches/3/.

Fixes:

  http://autobuild.buildroot.net/results/46054f28d3fde173dd8f880fa8ac2784c8e1750f/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 17:50:55 +02:00
Thomas Petazzoni af84025bc8 netatalk: needs dynamic library
Even though netatalk checks if dlfcn.h is available and has some code
that supposedly copes with non-dynamic library cases, it in fact does
not build. Since there is probably little interest in using netatalk
in pure statically linked environments, let's simply require dynamic
library support.

Fixes:

  http://autobuild.buildroot.net/results/79e55e64885d64392407e830560175c556953a20/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 17:31:13 +02:00
Thomas Petazzoni d21932508e opencv: mark as not available on Xtensa
OpenCV currently does not build on Xtensa due to compiler/assembler
issues:

  Error: operand 2 of 'l32r' has out of range value '4294632228'

Until this gets fixed, let's disable OpenCV on Xtensa.

Temporarily works around:

   http://autobuild.buildroot.net/results/0be/0bed0779685d9ed83466a4d29a0281ca93043a2e/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 17:16:19 +02:00
Thomas Petazzoni 8069253ad1 dawgdic: enable with gcc 4.6
According to Nicolas Cavallari and confirmed by testing, std::strtoll
is indeed available in gcc 4.6, so the dawgdic package can be enabled
on gcc >= 4.6 instead of gcc >= 4.7.

Reported-by: Nicolas Cavallari <Nicolas.Cavallari@green-communications.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 17:10:12 +02:00
Thomas Petazzoni ad0f85e57e gcc: add missing NIOS-II patch after bump to 4.9.3
When gcc 4.9.x was bumped from 4.9.2 to 4.9.3 in commit
2fed00ea1e, patch
920-libgcc-remove-unistd-header.patch was removed with the argument
that it had been applied upstream.

However, it is not the case, and the patch continues to apply fine on
gcc 4.9.3, and is actually needed to make gcc build properly on
NIOS-II.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 14:36:23 +02:00
Waldemar Brodkorb 9dd523c48f empty: fix compile with toolchain w/o threads
As found via autobuilders and discussed on the list, the
ifdef is wrong, as empty uses SysV semaphores and not POSIX
semaphores.

Tested with glibc/uclibc-ng builds. And with uclibc-ng without
threads.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 12:45:51 +02:00
Yann E. MORIN 0b84959fbb package/filemq: bump version
Fixes:
    http://autobuild.buildroot.org/results/e09/e0907c5453dfb1df546c07869faf00ec51b49181/
    http://autobuild.buildroot.org/results/5c5/5c591c2fe4e3e1d5c23b54a8486de741fe0e329d/
    http://autobuild.buildroot.org/results/89f/89ffd2a03f295c810399680621440b08f7c7762f/
    [...]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 12:40:32 +02:00
Yann E. MORIN 5aae95764d package/czmq: bump version
Drop the patch that no longer applies, and has instead been done
differently by upstream.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 12:40:22 +02:00
Yann E. MORIN 73db4ab6ab package/qt5quickcontrols: fix licensing information
Since the bump to 5.5.0, the LGPv2.1-with-exception has been dropped,
with only the LGPLv3 or GPLv2 as alternatives.

Drop LGPLv2.1-with-exception.

Add GFDL (GNU Free Documentation License) as it is explicitly referenced
in the source tree.

Fixes:
    http://autobuild.buildroot.org/results/0dc/0dc96010cc81a34d2363eb4fe1a155db0e3769fd/
    http://autobuild.buildroot.org/results/2b0/2b0b4c170dfa0d95c10bf030e6f249b3305dd318/

[Thomas: add version to GFDL specification.]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Julien CORJON <corjon.j@ecagroup.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 12:39:01 +02:00
Thomas Petazzoni 39f3f4a00a fan-ctrl: re-enable package
SourceForge is working again, and Peter has copied the file to
fan-ctrl.c on sources.buildroot.org so that it gets found if
SourceForge breaks again. Therefore this commit re-enables the
fan-ctrl package.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 12:12:58 +02:00
Romain Naour cf4bdbe74d package/dawgdic: needs gcc >= 4.7
std::strtoll is only supported since C++11.

Fixes:
http://autobuild.buildroot.net/results/cae/cae3cda9be779ea8359f94d13bbbca97e68495ca/

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 11:57:35 +02:00
Romain Naour 51b7086c14 package/libgpgme: add argp-standalone dependency with musl
Since argp-standalone is only available for uClibc-ng
and musl toolchains, it's safe to link with it when
the package is selected.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 11:16:44 +02:00
Romain Naour f70c58c2c7 package/cpio: remove useless comment
This comment is about host-cpio which hasn't
been added in Buildroot.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 11:16:30 +02:00
Romain Naour 7d53040f33 package/cpio: add argp-standalone dependency with musl
Since argp-standalone is only available for uClibc-ng
and musl toolchains, add the dependendy only if it's
selected.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 11:16:04 +02:00
Romain Naour 6b47541e5e package/libv4l: disable for musl toolchains
musl toolchains are not supported yet in libv4l but
it's a work in progress.

see:
http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=70570c6095fa5859cecd0f9522fe7fd749f1d554
http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=403a4e2697a1ff96fe2fa16589039595f21cadf0

But it's not enough.

Disable musl toolchains for libv4l 1.6.3 and wait for a new release.

[Thomas: update Config.in comment to take into account the uclibc or
glibc dependency.]

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 11:13:22 +02:00
Romain Naour ca86361eaa package/libv4l: needs argp-standalone with musl toolchains
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 11:08:31 +02:00
Romain Naour b81ee16e8e package/rng-tools: needs argp-standalone with musl toolchains
Since argp-standalone is only available for uClibc-ng
and musl toolchains, it's safe to link with it when
the package is selected.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 11:02:07 +02:00
Yann E. MORIN eb60820c0a package/elfutils: does not build with musl
elfutils uses so many GNUisms in so many places that patching them out
is a tedious task which would make us diverge so much from upstream that
it would become a nightmare to bump elfutils in the future.

Furthermore, elfutils needs argp, which is missing in musl, so it would
need argp-standalone too (as when using a uClibc toolchain).

Make elfutils depend on either glibc or uClibc. argp-standalone is
already required when using a uClibc toolchain, but since we do not
support musl, no need to add that to the condition.

Fixes (configure failures due to missing argp):
    http://autobuild.buildroot.org/results/743/7432ccd0d060a70bc35f0ac21ec92ae0071592ae/
    http://autobuild.buildroot.org/results/cc9/cc90bd9312f30f91daa50af4253629f58b82c486/
    http://autobuild.buildroot.org/results/d5e/d5e583c695afbc2e686e3002765ce9e1937aa0d5/
    [...]

Fixes (build failures due to GNUisms):
    http://autobuild.buildroot.org/results/ee7/ee7eaf80247dd96548d66be9884b179e20204a98/
    http://autobuild.buildroot.org/results/3f2/3f242853e600bb6bec6ce2f0598d304751ceb81a/
    http://autobuild.buildroot.org/results/7f0/7f0c7c9cb746104f93907544247bc1008d6ad0dc/
    [...]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-08 10:56:11 +02:00
Thomas Petazzoni 74e99ce319 lrzsz: mark as not available for static builds
lrzsz could technically build in a static-only environment, but it
unconditionally redefines the error() and error_at_line() functions,
which clashes with the definition from uClibc. Since the autotools
packaging dates back from 1998, lots of work is needed to fix it, and
do some proper tests on the availability of such functions.

So, let's mark it as not available for static builds, until someone
interested enough fixes it.

Fixes:

  http://autobuild.buildroot.net/results/8106ab057f538d1408d736736fdbe50b99ae709d/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-07 13:04:58 +02:00
Thomas Petazzoni 49593aba5a guile: fix static-only build
guile uses bdwgc, which is already compiled with GC_NO_DLOPEN in
static-only scenarios. However, the bdwgc headers continue to include
<dlfcn.h> if used with GC_NO_DLOPEN undefined.

Therefore, to make guile link properly in a static-only scenario, we
have to build it with GC_NO_DLOPEN defined.

Fixes:

  http://autobuild.buildroot.net/results/1bf/1bf73dd4c28d6607e8c24d3abf259b8032712a02/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-07 12:20:39 +02:00
Thomas Petazzoni b6289cb1db lirc-tools: needs dlopen(), not available for static only builds
Fixes:

  http://autobuild.buildroot.net/results/87c/87cf6312bef189e4f3a49983bfc662d69afa05b4/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-07 11:47:02 +02:00
Thomas Petazzoni 305beebb74 libpfm4: fix static-only build
By default, libpfm4 tries to build a shared library. However, by
passing CONFIG_PFMLIB_SHARED=n, we can convince it to build only a
static library. Therefore, this commit uses that to fix the
static-only build, therefore fixing:

  http://autobuild.buildroot.net/results/efa/efae782912face7c36417dfb1023228d6b137654/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-07 11:40:35 +02:00
Thomas Petazzoni 38454e1058 libsigsegv: not available on SuperH with uClibc
Like PowerPC, the uClibc port on SuperH doesn't implement ucontext, so
we can't build libsigsegv in such a configuration. Therefore this
commit marks libsigsegv as not available on SuperH/uClibc.

Fixes:

  http://autobuild.buildroot.net/results/2128a3507e57e707ee5c726f1ccfddadb7b19112/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-07 11:08:12 +02:00
Thomas Petazzoni e43875916a audit: mark as not available for static builds
audit uses -fPIE/-pie, which is not compatible with static only builds
with uClibc. Since using audit in a statically linked environment is
probably not a very common use case, let's simply mark it as
non-available in such situations.

Fixes:

  http://autobuild.buildroot.net/results/549492270f3f43747a96a8326aef1d7ae1d3b213/

Thanks to Waldemar for explaining the source of the problem.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-07 10:56:50 +02:00
Gustavo Zacarias 10c07b9ac1 dnsmasq: bump to version 2.75
[Thomas: applying for 2015.08, because it fixes a regression
introduced in dnsmasq 2.74, as reported by Gustavo.]

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-07 00:22:06 +02:00
Thomas Petazzoni e7f6166178 c-icap: fix incorrect dependency on BR2_PREFER_STATIC_LIB
BR2_PREFER_STATIC_LIB has been changed/renamed quite some time ago to
BR2_STATIC_LIBS, but the c-icap submission was done before that, and
during the review/merge of the patch, this rename was forgotten.

This commit therefore fixes the c-icap dependency on BR2_STATIC_LIBS,
which should fix:

  http://autobuild.buildroot.net/results/cb623460de30dd7c4ef3275fe13220c1ca0642a5/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 20:51:07 +02:00
Thomas Petazzoni e911e95df4 squid: fix systemd unit file location
squid.service is in tools/systemd/, not in tools/.

Fixes:

  http://autobuild.buildroot.net/results/cec/cecb968172cb00281e439566e5ae154538435a51/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 11:06:32 +02:00
Scott Fan e6884604ea package/tz: fix incorrect timezone setting for uclibc
According to the doc file from <uclibc-src>/docs/
Glibc_vs_uClibc_Differences.txt, the uclibc library read the
TZ environment variable, or the /etc/TZ file; the /etc/TZ file
should be a single line, ending with a newline, containing the
TZ setting.  For example: echo CST6CDT > /etc/TZ

Whereas the tzdump cmd would output two lines like this:
  # Asia/Shanghai
  CST-8

This make the uclibc could not read the correct TZ setting, therefore
e.g. the 'busybox date' cmd always show the UTC timezone.

This fix remove the redundant first line from the tzdump output.

Signed-off-by: Scott Fan <fancp2007@gmail.com>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 09:12:18 +02:00
Brendan Heading 7df8f06d08 package/bdwgc: musl build failure
Fixes http://autobuild.buildroot.net/results/1ed/1edb5e7dab88d3fefca533ab56f7ddc7dd5411d2/

Upstream removed unused code which was causing musl compilation issues.

Signed-off-by: Brendan Heading <brendanheading@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 09:08:15 +02:00
Romain Naour 8541fc05a3 package/eudev: fix build with musl + libselinux
Add a patch to disable mallinfo statistics with musl toolchains
which doesn't have struct mallinfo.

Fixes:
selinux-util.c: In function ‘mac_selinux_init’:
selinux-util.c:70:25: error: storage size of ‘before_mallinfo’ isn’t known
         struct mallinfo before_mallinfo, after_mallinfo;

Add a second patch for strndupa() which is a GNU extension.

Fixes:
./.libs/libudev-core.a(selinux-util.o): In function `mac_selinux_bind':
selinux-util.c:(.text+0xd94): undefined reference to `strndupa'
collect2: error: ld returned 1 exit status

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Cc: Clayton Shotwell <clshotwe@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 09:06:01 +02:00
Bernd Kuhls 227ae6888f package/x11r7/xdriver_xf86-input-synaptics: depends on libevdev
Fixes
http://autobuild.buildroot.net/results/05e/05ecfaf591e85a20071875ecd18068762193defa/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 09:02:27 +02:00
Jörg Krause aab10cedec package/nodejs/0.10.x: add patch to fix musl build error
The musl C library does not understand the feature test macro __USE_MISC and so
libuv (built-in dependency of nodejs) does not use the correct struct stat
definition for musl:
	error: ‘uv_statbuf_t’ has no member named ‘st_ctimensec’
	error: ‘uv_statbuf_t’ has no member named ‘st_mtimensec’

The macro __USE_MISC is defined by glibc if _BSD_SOURCE or _SVID_SOURCE is
defined.

The libuv build system enables the feature test macro _GNU_SOURCE for linux
builds.

Since glibc 2.19, defining _GNU_SOURCE also has the effect of implicitly
defining _DEFAULT_SOURCE - the replacement for _BSD_SOURCE and _SVID_SOURCE.

In glibc versions before 2.20, defining _GNU_SOURCE also had the effect of
implicitly defining _BSD_SOURCE and _SVID_SOURCE. This is also true for uClibc.

Alltogether, we can safely replace __USE_MISC by _GNU_SOURCE to support building
nodejs 0.10.x with the musl C library.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 09:00:09 +02:00
Brendan Heading f68270c92e package/imlib2: fix musl compilation issue
Fixes http://autobuild.buildroot.net/results/a6e/a6e61bfb376946b479085f243601d6e1634adc6d/

musl is strict about including time.h when using time_t.

Signed-off-by: Brendan Heading <brendanheading@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 08:57:46 +02:00
Jörg Krause 073a89196a package/poco: disable for static build
poco requires dlopen(). There is a --no-sharedlibs option that is
supposed to support building in a statically linked environment, but
it doesn't do anything.

Fixes:

  http://autobuild.buildroot.net/results/952/952f05efd245ba59991f3c5be02a0572e8b9e544/

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 08:54:52 +02:00
Jörg Krause 3db495e4d7 package/mpd: add patch to fix musl gcc5 build issue
Add a patch from the Alpine Linux project [1] to fix a musl build issue with
gcc 5:

```
error: temporary of non-literal type ‘pthread_mutex_t’ in a constant expression
  constexpr PosixMutex():mutex(PTHREAD_MUTEX_INITIALIZER) {}
```

Problem has been reported by the Alpine team upstream and was closed by the MPD
maintainer with WONTFIX:
http://bugs.musicpd.org/view.php?id=4387
http://bugs.musicpd.org/view.php?id=4110

However...

POSIX does not permit using PTHREAD_COND_INITIALIZER except for static
initialization, and certainly does not permit using it as a value.

Also POSIX does not specify the type of the object (it's opaque) so if
there are any types for which their code would be invalid C++, then their
code is invalid.

Also, volatile in the type is necessary. without that, LTO can break the code.

[1]
http://git.alpinelinux.org/cgit/aports/log/main/mpd/musl-gcc5-fixes.patch

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 08:45:13 +02:00
Jonathan Ben Avraham fe500c5c5c rapidjson: Add comment for "_INSTALL_TARGET = NO"
It is Buildroot convention to comment when "_INSTALL_TARGET = NO".

Signed-off-by: Jonathan Ben Avraham <yba@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 08:43:30 +02:00
Thomas Petazzoni 051dac93b3 mono: add Angelo SoB + upstream status on vasprintf related patch
Angelo is the author of the upstream patch, so it is safe to add his
SoB. This commit also adds the upstream status of the patch.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 08:35:04 +02:00
Angelo Compagnucci 3ed77ba878 package/mono: fixing multiple definition of vasprintf
This patch fixes the detection of an available
vasprintf function, this way the internal vasprintf
function is not compiled.

Fixes http://autobuild.buildroot.net/results/3ab2b8667e5657bf07f55dd04dd857167ab4c62a/
      http://autobuild.buildroot.net/results/3ab2b8667e5657bf07f55dd04dd857167ab4c62a/

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 08:31:25 +02:00
Yann E. MORIN bfcffb6f81 package/cramfs: fix missing type
loff_t is guarded by _GNU_SOURCE. although already properly defined in
cramfsck, it was not defined in mkcramfs.

Fixes;
    http://autobuild.buildroot.org/results/57d/57de9e838fa953e2fb5e358cd535603fb249b7d2/
    http://autobuild.buildroot.org/results/e02/e023014934bf291add9d9dfdfc005bfec34dc1ff/
    [...]

Note: since cramfs was last released in 2002-02-24, we don't stand a
chance to get this merged any time soon... :-(

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 08:30:41 +02:00
Yann E. MORIN 712bb469da package/libcec: needs gcc >= 4.7
As per upstream, gcc-4.7 is required to build libcec:
    https://github.com/Pulse-Eight/libcec/issues/78#issuecomment-91578591

Fixes:
    http://autobuild.buildroot.org/results/3b5/3b5611725c13668472482ed4ad3b46886d4c63d9/
    http://autobuild.buildroot.org/results/0d0/0d032cdd8dbf6d0ddef392c3e5a734881e00ee64/
    http://autobuild.buildroot.org/results/c21/c21c555c38261f6911349ff9fdac6edeb4debaac/
    [...]

Possibly fixes:
    http://autobuild.buildroot.org/results/4a7/4a7b2af2fc3924255ac89e18f4f5c90bb8383265/
    http://autobuild.buildroot.org/results/dd6/dd61c186e6d85a9b30cd32edb74a52f7a4f73cc8/
    [...]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
Acked-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 08:27:42 +02:00
Gustavo Zacarias e3517f72e0 webkitgtk24: depends on gcc >= 4.8
Webkit 2.4.x depends on gcc being >= 4.8.x so use the new
BR2_TOOLCHAIN_GCC_AT_LEAST_X_Y knob and drop the manual x86* external
toolchain exclusions.
Follow up in the midori package as well.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-06 08:19:13 +02:00
Thomas Petazzoni 6b804f75eb docs/website: add announcement e-mail link for 2015.08-rc1
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-05 23:13:36 +02:00
127 changed files with 1619 additions and 342 deletions
+31
View File
@@ -1,3 +1,34 @@
2015.08-rc2, Released August, 24th 2015
Fixes all over the tree.
Toolchain: fix gcc build on NIOS-II.
Infrastructure: add <fs>_POST_GEN_HOOKS mechanism to fix
hybrid ISO image generation.
Architectures: add arm1136j-s variant.
Updated/fixed packages: apitrace, audit, bcusdk, bdwgc,
beecrypt, boost, bwm-ng, cdrkit, c-icap, cifs-utils, clapack,
c-periphery, cpio, cramfs, czmq, dawgdic, dnsmasq, dosfstools,
dropbear, elfutils, empty, eudev, fan-ctrl, filemq, gnutls,
guile, haveged, imlib2, libcec, libepoxy, libev, libgpgme,
libiio, libnetfilter_queue, libnfnetlink, libpfm4, libpthsem,
librtas, libselinux, libsigsegv, libsodium, libv4l, lightning,
linux, lirc-tools, lrzsz, mono, mosh, mpd, msmtp, nbd,
netatalk, nodejs, ola, opencv, oprofile, php, poco,
postgresql, powertop, protobuf, protobuf-c, qt5base,
qt5quickcontrols, rapidjson, rng-tools, squid, sysdig,
sysstat, tftpd, tinc, tz, util-linux, webkitgtk24, weston,
wireshark, wvstreams, xdriver_xf86-input-synaptics, zyre.
Issues resolved (http://bugs.uclibc.org):
#8276: package/dropbear: symlink resolution incorrect
#8286: Error with buildroot
#8301: ldconfig parameter in Makefile
2015.08-rc1, Released August, 5th 2015
Fixes all over the tree and new features.
+1 -1
View File
@@ -41,7 +41,7 @@ else # umask
all:
# Set and export the version string
export BR2_VERSION := 2015.08-rc1
export BR2_VERSION := 2015.08-rc2
# Save running make version since it's clobbered by the make package
RUNNING_MAKE_VERSION := $(MAKE_VERSION)
+6
View File
@@ -78,6 +78,12 @@ config BR2_arm926t
select BR2_ARM_CPU_HAS_THUMB
select BR2_ARM_CPU_ARMV5
select BR2_ARCH_HAS_MMU_OPTIONAL
config BR2_arm1136j_s
bool "arm1136j-s"
select BR2_ARM_CPU_HAS_ARM
select BR2_ARM_CPU_HAS_THUMB
select BR2_ARM_CPU_ARMV6
select BR2_ARCH_HAS_MMU_OPTIONAL
config BR2_arm1136jf_s
bool "arm1136jf-s"
select BR2_ARM_CPU_HAS_ARM
+5 -5
View File
@@ -17,14 +17,14 @@ or
(<a href="/downloads/buildroot-2015.05.tar.bz2.sign">PGP signature</a>).
<p>
The latest release candidate is <b>2015.08-rc1</b>, which can be
The latest release candidate is <b>2015.08-rc2</b>, which can be
downloaded here:<p>
<a href="/downloads/buildroot-2015.08-rc1.tar.gz">buildroot-2015.08-rc1.tar.gz</a>
(<a href="/downloads/buildroot-2015.08-rc1.tar.gz.sign">PGP signature</a>)
<a href="/downloads/buildroot-2015.08-rc2.tar.gz">buildroot-2015.08-rc1.tar.gz</a>
(<a href="/downloads/buildroot-2015.08-rc2.tar.gz.sign">PGP signature</a>)
or
<a href="/downloads/buildroot-2015.08-rc1.tar.bz2">buildroot-2015.08-rc1.tar.bz2</a>
(<a href="/downloads/buildroot-2015.08-rc1.tar.bz2.sign">PGP signature</a>).
<a href="/downloads/buildroot-2015.08-rc2.tar.bz2">buildroot-2015.08-rc1.tar.bz2</a>
(<a href="/downloads/buildroot-2015.08-rc2.tar.bz2.sign">PGP signature</a>).
<p>
This and earlier releases (and their PGP signatures) can always be downloaded from
+17 -3
View File
@@ -8,12 +8,26 @@
<p>
<ul>
<li><b>24 August 2015 -- 2015.08-rc2 released</b>
<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=2015.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-2015.08-rc2.tar.bz2">2015.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>
<li><b>5 August 2015 -- 2015.08-rc1 released</b>
<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=2015.08-rc1">CHANGES</a>
file for details.</p>
tree, see
the <a href="http://git.buildroot.net/buildroot/plain/CHANGES?id=2015.08-rc1">CHANGES</a>
file for details, read
the <a href="http://lists.busybox.net/pipermail/buildroot/2015-August/135417.html">announcement</a>.</p>
<p>Head to the <a href="/downloads/">downloads page</a> to pick up the
<a href="/downloads/buildroot-2015.08-rc1.tar.bz2">2015.08-rc1
+4
View File
@@ -16,6 +16,9 @@
# ROOTFS_$(FSTYPE)_PRE_GEN_HOOKS, a list of hooks to call before
# generating the filesystem image
#
# ROOTFS_$(FSTYPE)_POST_GEN_HOOKS, a list of hooks to call after
# generating the filesystem image
#
# ROOTFS_$(FSTYPE)_POST_TARGETS, the list of targets that should be
# run after running the main filesystem target. This is useful for
# initramfs, to rebuild the kernel once the initramfs is generated.
@@ -96,6 +99,7 @@ endif
ifneq ($$(ROOTFS_$(2)_COMPRESS_CMD),)
PATH=$$(BR_PATH) $$(ROOTFS_$(2)_COMPRESS_CMD) $$@ > $$@$$(ROOTFS_$(2)_COMPRESS_EXT)
endif
$$(foreach hook,$$(ROOTFS_$(2)_POST_GEN_HOOKS),$$(call $$(hook))$$(sep))
rootfs-$(1)-show-depends:
@echo $$(ROOTFS_$(2)_DEPENDENCIES)
+3 -2
View File
@@ -47,13 +47,14 @@ config BR2_TARGET_ROOTFS_ISO9660_ISOLINUX
endchoice
config BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU
string "Boot menu.lst file"
string "Boot menu config file"
default "fs/iso9660/menu.lst" if BR2_TARGET_ROOTFS_ISO9660_GRUB
default "fs/iso9660/grub.cfg" if BR2_TARGET_ROOTFS_ISO9660_GRUB2
default "fs/iso9660/isolinux.cfg" if BR2_TARGET_ROOTFS_ISO9660_ISOLINUX
help
Use this option to provide a custom bootloader configuration
file (menu.lst for Grub, isolinux.cfg for isolinux).
file (menu.lst for Grub, grub.cfg for Grub 2, isolinux.cfg for
isolinux).
Note that the strings __KERNEL_PATH__ and __INITRD_PATH__
will automatically be replaced by the path to the kernel and
+1
View File
@@ -215,6 +215,7 @@ define LINUX_KCONFIG_FIXUP_CMDS
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER,$(@D)/.config)
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_XTABLES,$(@D)/.config))
$(if $(BR2_PACKAGE_XTABLES_ADDONS),
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_ADVANCED,$(@D)/.config)
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK,$(@D)/.config)
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK_MARK,$(@D)/.config))
$(if $(BR2_LINUX_KERNEL_APPENDED_DTB),
+12
View File
@@ -1371,6 +1371,18 @@ endif
endmenu
menu "Package managers"
comment "-----------------------------------------------------"
comment "Please note: "
comment "- Buildroot does *not* generate binary packages, "
comment "- Buildroot does *not* install any package database. "
comment "* "
comment "It is up to you to provide those by yourself if you "
comment "want to use any of those package managers. "
comment "* "
comment "See the manual: "
comment "http://buildroot.org/downloads/manual/manual.html#faq"
comment "-no-binary-packages "
comment "-----------------------------------------------------"
source "package/ipkg/Config.in"
source "package/opkg/Config.in"
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+1 -1
View File
@@ -4,7 +4,7 @@
#
################################################################################
APITRACE_VERSION = c181b7fbf4b1c3912424761fec8ac7124640543a
APITRACE_VERSION = 7.0
APITRACE_SITE = $(call github,apitrace,apitrace,$(APITRACE_VERSION))
APITRACE_LICENSE = MIT
APITRACE_LICENSE_FILES = LICENSE
View File
+5 -2
View File
@@ -8,6 +8,8 @@ config BR2_PACKAGE_AUDIT
bool "audit"
depends on BR2_PACKAGE_AUDIT_ARCH_SUPPORTS
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_STATIC_LIBS
depends on !BR2_TOOLCHAIN_USES_MUSL
help
The audit package contains the user space utilities for
storing and searching the audit records generated by
@@ -17,6 +19,7 @@ config BR2_PACKAGE_AUDIT
http://people.redhat.com/sgrubb/audit/
comment "audit needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
comment "audit needs a uClibc or (e)glibc toolchain w/ threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
|| BR2_TOOLCHAIN_USES_MUSL
depends on BR2_PACKAGE_AUDIT_ARCH_SUPPORTS
+4 -2
View File
@@ -8,12 +8,14 @@ config BR2_PACKAGE_AVRDUDE
depends on BR2_USE_WCHAR # elfutils
depends on !BR2_STATIC_LIBS # elfutils
depends on !BR2_bfin # elfutils
depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC # elfutils
help
avrdude is a programmer for Atmel AVR microcontrollers
this package provides a version with new linuxspi driver
https://github.com/kcuzner/avrdude
comment "avrdude needs a toolchain w/ threads, wchar, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || BR2_STATIC_LIBS
comment "avrdude needs a uclibc or (e)glibc toolchain w/ threads, wchar, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || BR2_STATIC_LIBS \
|| !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
depends on !BR2_bfin
@@ -0,0 +1,48 @@
From c36db3f798bf576f42d81a0c51198b17d7112e8c Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Sat, 8 Aug 2015 17:43:28 +0200
Subject: [PATCH] Do not use the non-standard <sys/cdefs.h> header
<sys/cdefs.h> is glibc-specific, and should be used only internally by
glibc, not by external libraries/programs. It is not available in all
standard C libraries.
Submitted upstream: https://sourceforge.net/p/bcusdk/patches/3/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
eibd/include/eibclient.h | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/eibd/include/eibclient.h b/eibd/include/eibclient.h
index 2781878..b095a1c 100644
--- a/eibd/include/eibclient.h
+++ b/eibd/include/eibclient.h
@@ -27,10 +27,11 @@
#ifndef EIBCLIENT_H
#define EIBCLIENT_H
-#include <sys/cdefs.h>
#include <stdint.h>
-__BEGIN_DECLS;
+#ifdef __cplusplus
+extern "C" {
+#endif
#include "eibloadresult.h"
@@ -889,5 +890,9 @@ int EIB_Cache_LastUpdates_async (EIBConnection * con, uint16_t start,
uint16_t * end);
-__END_DECLS
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
--
2.5.0
@@ -0,0 +1,31 @@
From 2541ee3d709803096b17e45610ccc1404e2e5eee Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Sat, 8 Aug 2015 17:46:34 +0200
Subject: [PATCH] fd_set requires inclusion of <sys/select.h>
According to POSIX.1-2001, the definition fd_set and related macros is
in <sys/select.h>, so it should be included in files using fd_set to
make the code compatible with all standard C libraries.
Submitted upstream: https://sourceforge.net/p/bcusdk/patches/3/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
eibd/examples/common.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/eibd/examples/common.h b/eibd/examples/common.h
index 51fc514..f038da1 100644
--- a/eibd/examples/common.h
+++ b/eibd/examples/common.h
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
+#include <sys/select.h>
#include "eibclient.h"
/** unsigned char*/
--
2.5.0
+1 -1
View File
@@ -3,7 +3,7 @@ config BR2_PACKAGE_BCUSDK
depends on BR2_USE_MMU # libpthsem
depends on BR2_INSTALL_LIBSTDCPP
select BR2_PACKAGE_LIBPTHSEM
select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC
select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL
help
A free development environment for the Bus Coupling Units of
the European Installation Bus.
@@ -0,0 +1,61 @@
From c887470e0e3310c81ecdb7e736bc5d2ead45db2a Mon Sep 17 00:00:00 2001
From: Ivan Maidanski <ivmai@mail.ru>
Date: Mon, 6 Apr 2015 20:06:47 +0300
Subject: [PATCH 1/1] Do not include sigcontext.h and asm/sigcontext.h (these
Linux headers define sigcontext which is no longer used as replaced with
ucontext_t in GC 7.0alpha1)
* os_dep.c: Do not include linux/version.h (do not test
LINUX_VERSION_CODE), asm/signal.h, sigcontext.h, asm/sigcontext.h
since struct sigcontext not used in GC v7+.
Signed-off-by: Brendan Heading <brendanheading@gmail.com>
Upstream-status: backport
---
os_dep.c | 30 ------------------------------
1 file changed, 30 deletions(-)
diff --git a/os_dep.c b/os_dep.c
index f62d4ed..a1bafbd 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -16,36 +16,6 @@
#include "private/gc_priv.h"
-#if defined(LINUX) && !defined(POWERPC) && !defined(NO_SIGCONTEXT_H)
-# include <linux/version.h>
-# if (LINUX_VERSION_CODE <= 0x10400)
- /* Ugly hack to get struct sigcontext_struct definition. Required */
- /* for some early 1.3.X releases. Will hopefully go away soon. */
- /* in some later Linux releases, asm/sigcontext.h may have to */
- /* be included instead. */
-# define __KERNEL__
-# include <asm/signal.h>
-# undef __KERNEL__
-# else
- /* Kernels prior to 2.1.1 defined struct sigcontext_struct instead of */
- /* struct sigcontext. libc6 (glibc2) uses "struct sigcontext" in */
- /* prototypes, so we have to include the top-level sigcontext.h to */
- /* make sure the former gets defined to be the latter if appropriate. */
-# include <features.h>
-# if 2 <= __GLIBC__
-# if 2 == __GLIBC__ && 0 == __GLIBC_MINOR__
- /* glibc 2.1 no longer has sigcontext.h. But signal.h */
- /* has the right declaration for glibc 2.1. */
-# include <sigcontext.h>
-# endif /* 0 == __GLIBC_MINOR__ */
-# else /* __GLIBC__ < 2 */
- /* libc5 doesn't have <sigcontext.h>: go directly with the kernel */
- /* one. Check LINUX_VERSION_CODE to see which we should reference. */
-# include <asm/sigcontext.h>
-# endif /* __GLIBC__ < 2 */
-# endif
-#endif /* LINUX && !POWERPC */
-
#if !defined(OS2) && !defined(PCR) && !defined(AMIGA) && !defined(MACOS) \
&& !defined(MSWINCE) && !defined(__CC_ARM)
# include <sys/types.h>
--
2.4.3
+4 -2
View File
@@ -17,13 +17,15 @@ config BR2_PACKAGE_BEECRYPT_CPP
depends on BR2_USE_WCHAR # icu
depends on !BR2_BINFMT_FLAT # icu
depends on BR2_ARCH_HAS_ATOMICS # icu
depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_ICU
help
Enable C++ support. This pulls in the (large) icu package.
comment "C++ support needs a toolchain w/ wchar"
comment "C++ support needs a toolchain w/ C++, wchar, dynamic libraries"
depends on !BR2_BINFMT_FLAT
depends on BR2_ARCH_HAS_ATOMICS
depends on BR2_INSTALL_LIBSTDCPP && !BR2_USE_WCHAR
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR \
|| BR2_STATIC_LIBS
endif # BR2_PACKAGE_BEECRYPT
+1
View File
@@ -19,6 +19,7 @@ BEECRYPT_CONF_OPTS = \
ifeq ($(BR2_PACKAGE_BEECRYPT_CPP),y)
BEECRYPT_DEPENDENCIES += icu
BEECRYPT_CONF_OPTS += --with-cplusplus
else
BEECRYPT_CONF_OPTS += --without-cplusplus
@@ -0,0 +1,38 @@
Use eventfd() function with uClibc
The Boost eventfd code either directly makes the eventfd system call
using __NR_eventfd (when __GLIBC_MINOR is less than 8), or otherwise
uses the eventfd() function provided by the C library.
However, since uClibc pretends to be glibc 2.2, the Boost eventfd code
directly uses the system call. While it works fine on most
architectures, it doesn't on ARC since __NR_eventfd is not defined on
this architecture. However, eventfd() is properly implemented.
So, this patch adjusts the logic used by Boost to consider uClibc as a
C library providing the eventfd() function.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Index: b/boost/asio/detail/impl/eventfd_select_interrupter.ipp
===================================================================
--- a/boost/asio/detail/impl/eventfd_select_interrupter.ipp
+++ b/boost/asio/detail/impl/eventfd_select_interrupter.ipp
@@ -23,7 +23,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
-#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 8
+#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 8 && !defined(__UCLIBC__)
# include <asm/unistd.h>
#else // __GLIBC__ == 2 && __GLIBC_MINOR__ < 8
# include <sys/eventfd.h>
@@ -46,7 +46,7 @@
void eventfd_select_interrupter::open_descriptors()
{
-#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 8
+#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 8 && !defined(__UCLIBC__)
write_descriptor_ = read_descriptor_ = syscall(__NR_eventfd, 0);
if (read_descriptor_ != -1)
{
+1
View File
@@ -36,6 +36,7 @@ config BR2_PACKAGE_BUSYBOX_SELINUX
select BR2_PACKAGE_LIBSELINUX
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_STATIC_LIBS
depends on !BR2_arc
bool "Enable SELinux support"
help
Enable SELinux support in BusyBox. Please note that
+1 -1
View File
@@ -5,4 +5,4 @@ config BR2_PACKAGE_BWM_NG
network and disk-io bandwidth monitor for Linux, BSD,
Solaris, Mac OS X and others.
http://sourceforge.net/projects/bwmng/
http://www.gropp.org/?id=projects&sub=bwm-ng
+1 -1
View File
@@ -1,2 +1,2 @@
# Locally calculated
sha256 c1134358e268329d438b0996399003b0f0b966034fb4b5b138761c2f3c62ffdd bwm-ng-0.6.tar.gz
sha256 027cf3c960cd96fc9ffacdf7713df62d0fc55eeef4a1388289f8a62ae5e50df0 bwm-ng-0.6.1.tar.gz
+2 -2
View File
@@ -4,8 +4,8 @@
#
################################################################################
BWM_NG_VERSION = 0.6
BWM_NG_SITE = http://downloads.sourceforge.net/project/bwmng/bwmng/$(BWM_NG_VERSION)
BWM_NG_VERSION = 0.6.1
BWM_NG_SITE = http://www.gropp.org/bwm-ng
BWM_NG_CONF_OPTS = --with-procnetdev --with-diskstats
BWM_NG_LICENSE = GPLv2
BWM_NG_LICENSE_FILES = COPYING
+2 -2
View File
@@ -1,6 +1,6 @@
config BR2_PACKAGE_C_ICAP
bool "c-icap"
depends on !BR2_PREFER_STATIC_LIB
depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_MMU # fork()
help
@@ -15,4 +15,4 @@ config BR2_PACKAGE_C_ICAP
comment "c-icap needs a toolchain w/ threads and dynamic library"
depends on BR2_USE_MMU
depends on BR2_PREFER_STATIC_LIB || !BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
@@ -0,0 +1,32 @@
From 1d8cb0ad54099c3d7261aaa19a2c0786f16736d0 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Sat, 8 Aug 2015 22:42:39 +0200
Subject: [PATCH] Add missing header for musl compatibility
<linux/ioctl.h> is needed to get the definition of _IOC_SIZEBITS and
solve the following build failure:
src/spi.c: In function 'spi_transfer':
src/spi.c:100:24: error: '_IOC_SIZEBITS' undeclared (first use in this function)
if (ioctl(spi->fd, SPI_IOC_MESSAGE(1), &spi_xfer) < 1)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
src/spi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/spi.c b/src/spi.c
index 52a8d3d..1a6b17c 100644
--- a/src/spi.c
+++ b/src/spi.c
@@ -16,6 +16,7 @@
#include <errno.h>
#include <sys/ioctl.h>
+#include <linux/ioctl.h>
#include <linux/spi/spidev.h>
#include "spi.h"
--
2.5.0
@@ -0,0 +1,70 @@
From 295316c3f44c3e779e85d7453424496a3bb4bc48 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Sat, 8 Aug 2015 22:56:09 +0200
Subject: [PATCH] Fix build on SPARC
On SPARC, the definitions of B2500000, B3000000, B3500000 and B4000000
are not necessarily available, so use those values only if defined in
the kernel headers.
It fixes SPARC build failures such as:
src/serial.c: In function '_serial_baudrate_to_bits':
src/serial.c:73:30: error: 'B2500000' undeclared (first use in this function)
case 2500000: return B2500000;
^
src/serial.c:73:30: note: each undeclared identifier is reported only once for each function it appears in
src/serial.c:74:30: error: 'B3000000' undeclared (first use in this function)
case 3000000: return B3000000;
^
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
src/serial.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/serial.c b/src/serial.c
index e385309..efd425e 100644
--- a/src/serial.c
+++ b/src/serial.c
@@ -70,10 +70,18 @@ static int _serial_baudrate_to_bits(uint32_t baudrate) {
case 1152000: return B1152000;
case 1500000: return B1500000;
case 2000000: return B2000000;
+#ifdef B2500000
case 2500000: return B2500000;
+#endif
+#ifdef B3000000
case 3000000: return B3000000;
+#endif
+#ifdef B3500000
case 3500000: return B3500000;
+#endif
+#ifdef B4000000
case 4000000: return B4000000;
+#endif
default: return -1;
}
}
@@ -107,10 +115,18 @@ static int _serial_bits_to_baudrate(uint32_t bits) {
case B1152000: return 1152000;
case B1500000: return 1500000;
case B2000000: return 2000000;
+#ifdef B2500000
case B2500000: return 2500000;
+#endif
+#ifdef B3000000
case B3000000: return 3000000;
+#endif
+#ifdef B3500000
case B3500000: return 3500000;
+#endif
+#ifdef B4000000
case B4000000: return 4000000;
+#endif
default: return -1;
}
}
--
2.5.0
@@ -0,0 +1,47 @@
From 9454ef47db30caa4359766c8730d9d92f65c64f7 Mon Sep 17 00:00:00 2001
From: Romain Naour <romain.naour@openwide.fr>
Date: Sat, 8 Aug 2015 22:58:57 +0200
Subject: [PATCH] define __THROW to avoid build issue with musl
Fixes:
http://autobuild.buildroot.net/results/d27/d2781e70b04a207e2e9397d888032294c7285034/build-end.log
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
genisoimage/sha256.h | 4 ++++
genisoimage/sha512.h | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/genisoimage/sha256.h b/genisoimage/sha256.h
index e7f4cb9..bcae7ef 100644
--- a/genisoimage/sha256.h
+++ b/genisoimage/sha256.h
@@ -29,6 +29,10 @@
#include <stdint.h>
#include <stdio.h>
+/* define __THROW to avoid build issue when it's not available from the libc */
+#ifndef __THROW
+# define __THROW
+#endif
/* Structure to save state of computation between the single steps. */
struct sha256_ctx
diff --git a/genisoimage/sha512.h b/genisoimage/sha512.h
index 7298355..8cee8b0 100644
--- a/genisoimage/sha512.h
+++ b/genisoimage/sha512.h
@@ -29,6 +29,10 @@
#include <stdint.h>
#include <stdio.h>
+/* define __THROW to avoid build issue when it's not available from the libc */
+#ifndef __THROW
+# define __THROW
+#endif
/* Structure to save state of computation between the single steps. */
struct sha512_ctx
--
2.4.3
@@ -0,0 +1,31 @@
From 6603cef0f06c450196a1bca06bb143d8fcda5651 Mon Sep 17 00:00:00 2001
From: Felix Janda <felix.janda@posteo.de>
Date: Fri, 5 Dec 2014 23:19:29 +0100
Subject: [PATCH 1/1] mtab.c: include <paths.h> for _PATH_MOUNTED
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Backported from: 6603cef0f06c450196a1bca06bb143d8fcda5651
Signed-off-by: Felix Janda <felix.janda@posteo.de>
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
---
mtab.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mtab.c b/mtab.c
index 7b365b3..a662a3c 100644
--- a/mtab.c
+++ b/mtab.c
@@ -38,6 +38,7 @@
#include <mntent.h>
#include <stdlib.h>
#include <signal.h>
+#include <paths.h>
#include "mount.h"
#include "config.h"
--
2.5.0
@@ -0,0 +1,24 @@
uninit.c includes glibc-specific <fpu_control.h> not provided by musl.
Somewhat portable replacement is <fenv.h>, which is available in musl
but requires non-trivial changes to uninit.c.
f2c uses _uninit_f2c() from uninit.c to implement its -trapuv option,
pre-initializiing floating-point variables to NaN and asking FPU to send
SIGFPE whenever NaN value is encountered.
clapack source has already been run through f2c without -trapuv,
so uninit.c code is not used anywhere and can be safely excluded.
Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
--- a/F2CLIBS/libf2c/CMakeLists.txt
+++ b/F2CLIBS/libf2c/CMakeLists.txt
@@ -1,7 +1,7 @@
set(MISC
f77vers.c i77vers.c main.c s_rnge.c abort_.c exit_.c getarg_.c iargc_.c
getenv_.c signal_.c s_stop.c s_paus.c system_.c cabs.c ctype.c
- derf_.c derfc_.c erf_.c erfc_.c sig_die.c uninit.c)
+ derf_.c derfc_.c erf_.c erfc_.c sig_die.c)
set(POW pow_ci.c pow_dd.c pow_di.c pow_hh.c pow_ii.c pow_ri.c pow_zi.c pow_zz.c)
set(CX c_abs.c c_cos.c c_div.c c_exp.c c_log.c c_sin.c c_sqrt.c)
set(DCX z_abs.c z_cos.c z_div.c z_exp.c z_log.c z_sin.c z_sqrt.c)
+16
View File
@@ -0,0 +1,16 @@
musl only provides off64_t, not __off64_t.
glibc and uclibc have both defined.
Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
--- a/F2CLIBS/libf2c/sysdep1.h
+++ b/F2CLIBS/libf2c/sysdep1.h
@@ -10,7 +10,7 @@
#ifdef __linux__
#define USE_LARGEFILE
-#define OFF_T __off64_t
+#define OFF_T off64_t
#endif
#ifdef _AIX43
+1 -1
View File
@@ -1,7 +1,7 @@
config BR2_PACKAGE_CPIO
bool "cpio"
# Need argp.h support
select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC
select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL
depends on BR2_USE_WCHAR
help
cpio archive utility for creation and extraction.
+3 -4
View File
@@ -15,10 +15,9 @@ CPIO_PATCH = \
https://projects.archlinux.org/svntogit/packages.git/plain/cpio/trunk/cpio-2.11-check_for_symlinks-CVE-2015-1197.patch \
https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-arch/cpio/files/cpio-2.11-stat.patch
# cpio uses argp.h which is not provided by uclibc by default.
# Use the argp-standalone package to provide this but make sure
# the host package does not try to use the host version.
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
# cpio uses argp.h which is not provided by uclibc or musl by default.
# Use the argp-standalone package to provide this.
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
CPIO_DEPENDENCIES += argp-standalone
endif
@@ -0,0 +1,17 @@
mkcramfs; loff_t is guarded by _GNU_SOURCE
Although already properly done in cramfsck, it was missing in mkcramfs.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
diff -durN cramfs-1.1.orig/mkcramfs.c cramfs-1.1/mkcramfs.c
--- cramfs-1.1.orig/mkcramfs.c 2015-08-05 22:31:16.830543096 +0200
+++ cramfs-1.1/mkcramfs.c 2015-08-05 22:33:33.136289744 +0200
@@ -22,6 +22,7 @@
* If you change the disk format of cramfs, please update fs/cramfs/README.
*/
+#define _GNU_SOURCE
#include <sys/types.h>
#include <stdio.h>
#include <sys/stat.h>
@@ -1,206 +0,0 @@
From 23591404610b1eeffb69712d93c77c2327b9ef7a Mon Sep 17 00:00:00 2001
From: Phillip Mienk <mienkphi@gmail.com>
Date: Fri, 31 Oct 2014 00:55:35 -0700
Subject: [PATCH] Simply configure.ac to prevent contradictory discovery of
libzmq.
[Romain: rebase on top of 3.0.0]
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
Makefile.am | 3 ++-
addons/Makefile.am.supplement | 3 ++-
configure.ac | 46 ++-----------------------------------------
model/build-autoconf.gsl | 28 ++++++++++++++++++++++++++
model/project.xml | 3 +++
src/Makefile.am.supplement | 12 ++++++++++-
6 files changed, 48 insertions(+), 47 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 10f21fb..187c62b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,8 @@
ACLOCAL_AMFLAGS = -I config
AM_CPPFLAGS = \
- -I$(srcdir)/include
+ ${zmq_CFLAGS} \
+ -I$(srcdir)/include
EXTRA_DIST = \
version.sh \
diff --git a/addons/Makefile.am.supplement b/addons/Makefile.am.supplement
index 8800db4..74f0c60 100644
--- a/addons/Makefile.am.supplement
+++ b/addons/Makefile.am.supplement
@@ -4,7 +4,8 @@ EXTRA_DIST += \
bin_PROGRAMS += makecert
makecert_LDADD = \
- libczmq.la
+ libczmq.la \
+ ${zmq_LIBS}
makecert_SOURCES = \
addons/makecert.c
diff --git a/configure.ac b/configure.ac
index 1a4667e..1ccae06 100755
--- a/configure.ac
+++ b/configure.ac
@@ -74,50 +74,8 @@ if test "x${CZMQ_GCOV}" == "xyes"; then
fi
fi
-# Check for libzmq library
-libzmq_prefix=detect
-AC_ARG_WITH([libzmq],
- [AS_HELP_STRING([--with-libzmq=PREFIX],
- [build with ZeroMQ library installed in PREFIX [default=autodetect]])],
- [case "x$withval" in
- xno)
- AC_MSG_ERROR([CZMQ requires the ZeroMQ library])
- ;;
- xyes|x)
- ;;
- *)
- CPPFLAGS="$CPPFLAGS -I${withval}/include"
- LDFLAGS="$LDFLAGS -L${withval}/lib"
- zeromq_prefix=${withval}
- ;;
- esac ]
-)
-if test "x$libzmq_prefix" = "xdetect"; then
- PKG_CHECK_MODULES(
- [ZeroMQ], [libzmq], [libzmq_prefix=pkgconfig], [libzmq_prefix=])
- if test "x$libzmq_prefix" = "xpkgconfig"; then
- CPPFLAGS="$CPPFLAGS ${ZeroMQ_CFLAGS}"
- LDFLAGS="$LDFLAGS ${ZeroMQ_LIBS}"
- fi
-fi
-
-if test "x$czmq_search_libzmq" = "xyes"; then
- if test -r "${with_libzmq}/include/zmq.h"; then
- CFLAGS="-I${with_libzmq}/include ${CFLAGS}"
- LDFLAGS="-L${with_libzmq}/lib ${LDFLAGS}"
- fi
-fi
-
-AC_CHECK_HEADER([zmq.h], [], [AC_MSG_ERROR([cannot find zmq.h])])
-
-AC_CHECK_LIB(zmq, zmq_init, ,[AC_MSG_ERROR([cannot link with -lzmq, install libzmq.])])
-
-AC_MSG_CHECKING([whether libzmq installation works])
-AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <zmq.h>],
- [zmq_init(1);])
- ],
- [AC_MSG_RESULT([yes])],
- [AC_MSG_ERROR([no. Please specify libzmq installation prefix using --with-libzmq])])
+# Check for libzmq
+PKG_CHECK_MODULES([zmq], [libzmq])
# Platform specific checks
czmq_on_mingw32="no"
diff --git a/model/build-autoconf.gsl b/model/build-autoconf.gsl
index d012a3c..30aff14 100644
--- a/model/build-autoconf.gsl
+++ b/model/build-autoconf.gsl
@@ -46,12 +46,39 @@ lib$(project.name)_la_SOURCES = \\
bin_PROGRAMS = $(project.name)_selftest
+$(project.name)_selftest_CPPFLAGS = \\
+.for package_dependency where defined (package_dependency.for_test)
+ \${$(package_dependency.name)_CFLAGS} \\
+.endfor
+ \${lib$(project.name)_la_CFLAGS}
+
$(project.name)_selftest_LDADD = \\
+.if count (package_dependency, defined (count.for_lib) | defined (count.for_test) | defined (count.for_all)) > 0
+ lib$(project.name).la \\
+.else
lib$(project.name).la
+.endif
+.for package_dependency where defined (package_dependency.for_lib) | defined (package_dependency.for_test) | defined (package_dependency.for_all)
+. if last()
+ \${$(package_dependency.name)_LIBS}
+. else
+ \${$(package_dependency.name)_LIBS} \\
+.endif
+.endfor
$(project.name)_selftest_SOURCES = \\
src/$(project.name)_selftest.c
+lib$(project.name)_la_CPPFLAGS = \\
+.for package_dependency where defined (package_dependency.for_lib)
+. if last()
+ \${$(package_dependency.name)_CFLAGS}
+. else
+ \${$(package_dependency.name)_CFLAGS} \\
+. endif
+.endfor
+ ${AM_CPPFLAGS}
+
lib$(project.name)_la_LDFLAGS = \\
-version-info @LTVER@
@@ -62,6 +89,7 @@ lib$(project.name)_la_LDFLAGS += \\
endif
TESTS = $(project.name)_selftest
+
.for model
. if first ()
diff --git a/model/project.xml b/model/project.xml
index 91306cf..b7bab4a 100644
--- a/model/project.xml
+++ b/model/project.xml
@@ -2,6 +2,9 @@
name = "czmq"
script = "project.gsl"
>
+
+ <package_dependency name="zmq" pkg_name="libzmq" for_all="1" />
+
<header name = "czmq" />
<header name = "czmq_prelude" />
diff --git a/src/Makefile.am.supplement b/src/Makefile.am.supplement
index 91e5b62..929aa07 100644
--- a/src/Makefile.am.supplement
+++ b/src/Makefile.am.supplement
@@ -95,12 +95,19 @@ libczmq_la_SOURCES = \
bin_PROGRAMS = czmq_selftest
+czmq_selftest_CPPFLAGS = \
+ ${src_libczmq_la_CFLAGS}
+
czmq_selftest_LDADD = \
- libczmq.la
+ libczmq.la \
+ ${zmq_LIBS}
czmq_selftest_SOURCES = \
src/czmq_selftest.c
+libczmq_la_CPPFLAGS = \
+ ${AM_CPPFLAGS}
+
libczmq_la_LDFLAGS = \
-version-info @LTVER@
@@ -112,6 +119,9 @@ endif
TESTS = czmq_selftest
+# define custom target for all products of /src
+src: src/libczmq.la src/czmq_selftest
+
# Produce generated models; do this manually in src directory
code:
gsl -q src/sockopts.xml
--
1.9.3
+1 -1
View File
@@ -4,7 +4,7 @@
#
################################################################################
CZMQ_VERSION = v3.0.0
CZMQ_VERSION = v3.0.2
CZMQ_SITE = $(call github,zeromq,czmq,$(CZMQ_VERSION))
# Autoreconf required as we use the git tree
+4 -2
View File
@@ -1,6 +1,8 @@
config BR2_PACKAGE_DAWGDIC
bool "dawgdic"
depends on BR2_INSTALL_LIBSTDCPP
# needs std::strtoll
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
help
dawgdic provides a library for building and accessing
dictionaries implemented with directed acyclic word graphs
@@ -13,5 +15,5 @@ config BR2_PACKAGE_DAWGDIC
https://github.com/stil/dawgdic
comment "dawgdic needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP
comment "dawgdic needs a toolchain w/ C++, gcc >= 4.6"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
+1 -1
View File
@@ -1,2 +1,2 @@
# Locally calculated after checking pgp signature
sha256 9ed484b9879d63f7a0bc1010562f17d8aaadf4261e9a126299796cb9696d93ba dnsmasq-2.74.tar.xz
sha256 640c4e1d4c298e42458419cd78cfc26acc549401b1a34d271cd3e0e4226941f1 dnsmasq-2.75.tar.xz
+1 -1
View File
@@ -4,7 +4,7 @@
#
################################################################################
DNSMASQ_VERSION = 2.74
DNSMASQ_VERSION = 2.75
DNSMASQ_SOURCE = dnsmasq-$(DNSMASQ_VERSION).tar.xz
DNSMASQ_SITE = http://thekelleys.org.uk/dnsmasq
DNSMASQ_MAKE_ENV = $(TARGET_MAKE_ENV) CC="$(TARGET_CC)"
@@ -0,0 +1,45 @@
From 7a589ef6dab52ad32a296939f0ed2acb4d76b2a7 Mon Sep 17 00:00:00 2001
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
Date: Sun, 16 Aug 2015 15:55:43 +0200
Subject: [PATCH] mkfs.fat: fix incorrect int type
u_int32_t is not a stanard type, while uint32_t is. This fixes builds
with the musl C library, which only defines so-called "clean" headers;
build failures are like (back-quotes and elision manually added for
readability):
http://autobuild.buildroot.org/results/a09/a0923d7f6d4dbae02eba4c5024bbdae3a52aa85a/build-end.log
/home/peko/autobuild/instance-1/output/host/usr/bin/x86_64-linux-gcc -D_LARGEFILE_SOURCE \
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -D_GNU_SOURCE -D_LARGEFILE_SOURCE \
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o mkfs.fat.o src/mkfs.fat.c
src/mkfs.fat.c: In function 'main':
src/mkfs.fat.c:1415:18: error: 'u_int32_t' undeclared (first use in this function)
volume_id = (u_int32_t) ((create_timeval.tv_sec << 20) | create_timeval.tv_usec); [...]
^
src/mkfs.fat.c:1415:18: note: each undeclared identifier is reported only once for each
function it appears in
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
Upstream status: applied: https://github.com/dosfstools/dosfstools/pull/9
---
src/mkfs.fat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mkfs.fat.c b/src/mkfs.fat.c
index b38d116..dddbe24 100644
--- a/src/mkfs.fat.c
+++ b/src/mkfs.fat.c
@@ -1412,7 +1412,7 @@ int main(int argc, char **argv)
gettimeofday(&create_timeval, NULL);
create_time = create_timeval.tv_sec;
- volume_id = (u_int32_t) ((create_timeval.tv_sec << 20) | create_timeval.tv_usec); /* Default volume ID = creation time, fudged for more uniqueness */
+ volume_id = (uint32_t) ((create_timeval.tv_sec << 20) | create_timeval.tv_usec); /* Default volume ID = creation time, fudged for more uniqueness */
check_atari();
printf("mkfs.fat " VERSION " (" VERSION_DATE ")\n");
--
1.9.1
+1 -1
View File
@@ -18,7 +18,7 @@ start() {
# - the filesystem is RW (i.e. we can rm the symlink),
# replace the symlink with an actual directory
if [ -L /etc/dropbear \
-a "$(readlink -f /etc/dropbear)" = "/var/run/dropbear" ]
-a "$(readlink /etc/dropbear)" = "/var/run/dropbear" ]
then
if rm -f /etc/dropbear; then
mkdir -p /etc/dropbear
+1 -1
View File
@@ -93,7 +93,7 @@ define DROPBEAR_INSTALL_TARGET_CMDS
for f in $(DROPBEAR_TARGET_BINS); do \
ln -snf ../sbin/dropbear $(TARGET_DIR)/usr/bin/$$f ; \
done
ln -snf ../var/run/dropbear $(TARGET_DIR)/etc/dropbear
ln -snf /var/run/dropbear $(TARGET_DIR)/etc/dropbear
endef
$(eval $(autotools-package))
+1 -1
View File
@@ -10,7 +10,7 @@ After=syslog.target network.target auditd.service
# replace the symlink with an actual directory
ExecStartPre=/bin/sh -c '\
if [ -L /etc/dropbear \
-a "$(readlink -f /etc/dropbear)" = "/var/run/dropbear" ]; then \
-a "$(readlink /etc/dropbear)" = "/var/run/dropbear" ]; then \
if rm -f /etc/dropbear; then \
mkdir -p /etc/dropbear; \
else \
+5 -2
View File
@@ -1,6 +1,7 @@
comment "elfutils needs a toolchain w/ wchar, dynamic library"
comment "elfutils needs a uClibc or (e)glibc toolchain w/ wchar, dynamic library"
depends on !BR2_bfin
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \
|| !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
config BR2_PACKAGE_ELFUTILS
bool "elfutils"
@@ -8,6 +9,8 @@ config BR2_PACKAGE_ELFUTILS
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
depends on BR2_USE_WCHAR
depends on !BR2_STATIC_LIBS
# Only glibc and uClibc implement the myriad of required GNUisms
depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC
# build issue caused by the _ prefix used on blackfin for
# assembly symbols
depends on !BR2_bfin
@@ -0,0 +1,49 @@
empty uses SysV semaphores, so the ifdef is wrong here.
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
--- empty-0.6.19b.orig/empty.c 2012-09-19 13:24:05.000000000 +0200
+++ empty-0.6.19b/empty.c 2015-07-09 02:00:09.000000000 +0200
@@ -179,25 +179,23 @@ int main (int argc, char *argv[]) {
2 - unknown */
/* semaphores */
-#ifdef _POSIX_SEMAPHORES
- #if defined(__linux__) && defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)
- /* union semun is defined by including <sys/sem.h> */
- #else
- union semun {
- int val;
- struct semid_ds *buf;
- #ifdef __SVR4
- ushort_t *array;
- #endif
- #ifdef __hpux__
- ushort *array;
- #endif
- #ifdef __linux__
- unsigned short *array;
- struct seminfo *__buf; /* buffer for IPC_INFO */
- #endif
- };
- #endif
+#if defined(__linux__) && defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)
+ /* union semun is defined by including <sys/sem.h> */
+#else
+ union semun {
+ int val;
+ struct semid_ds *buf;
+ #ifdef __SVR4
+ ushort_t *array;
+ #endif
+ #ifdef __hpux__
+ ushort *array;
+ #endif
+ #ifdef __linux__
+ unsigned short *array;
+ struct seminfo *__buf; /* buffer for IPC_INFO */
+ #endif
+ };
#endif
union semun semu;
@@ -0,0 +1,93 @@
From 1205e0b50067c5ebfa082f149f0996304aa04335 Mon Sep 17 00:00:00 2001
From: Romain Naour <romain.naour@openwide.fr>
Date: Thu, 30 Jul 2015 16:55:45 +0200
Subject: [PATCH] build-sys: check for mallinfo
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
mallinfo is not specified by POSIX or the C standards, therefore
it's not available for all libc libraries (musl).
Add the ability to disable mallinfo statistics.
Fixes:
selinux-util.c: In function ‘mac_selinux_init’:
selinux-util.c:70:25: error: storage size of ‘before_mallinfo’ isn’t known
struct mallinfo before_mallinfo, after_mallinfo;
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
configure.ac | 3 +++
src/shared/selinux-util.c | 15 +++++++++++++++
2 files changed, 18 insertions(+)
diff --git a/configure.ac b/configure.ac
index ec23ab5..4a293b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -226,6 +226,9 @@ else
fi
AC_SUBST(sushell)
+# selinux-util.c uses struct mallinfo which is not available for all C libraries (musl).
+AC_CHECK_FUNCS([mallinfo])
+
# ------------------------------------------------------------------------------
AC_CHECK_DECL([unshare],
diff --git a/src/shared/selinux-util.c b/src/shared/selinux-util.c
index 756215e..4e0866b 100644
--- a/src/shared/selinux-util.c
+++ b/src/shared/selinux-util.c
@@ -67,7 +67,10 @@ int mac_selinux_init(const char *prefix) {
#ifdef HAVE_SELINUX
usec_t before_timestamp, after_timestamp;
+
+#ifdef HAVE_MALLINFO
struct mallinfo before_mallinfo, after_mallinfo;
+#endif
if (!mac_selinux_use())
return 0;
@@ -75,7 +78,10 @@ int mac_selinux_init(const char *prefix) {
if (label_hnd)
return 0;
+#ifdef HAVE_MALLINFO
before_mallinfo = mallinfo();
+#endif
+
before_timestamp = now(CLOCK_MONOTONIC);
if (prefix) {
@@ -92,9 +98,14 @@ int mac_selinux_init(const char *prefix) {
r = security_getenforce() == 1 ? -errno : 0;
} else {
char timespan[FORMAT_TIMESPAN_MAX];
+
+#ifdef HAVE_MALLINFO
int l;
+#endif
after_timestamp = now(CLOCK_MONOTONIC);
+
+#ifdef HAVE_MALLINFO
after_mallinfo = mallinfo();
l = after_mallinfo.uordblks > before_mallinfo.uordblks ? after_mallinfo.uordblks - before_mallinfo.uordblks : 0;
@@ -102,6 +113,10 @@ int mac_selinux_init(const char *prefix) {
log_debug("Successfully loaded SELinux database in %s, size on heap is %iK.",
format_timespan(timespan, sizeof(timespan), after_timestamp - before_timestamp, 0),
(l+1023)/1024);
+#else
+ log_debug("Successfully loaded SELinux database in %s",
+ format_timespan(timespan, sizeof(timespan), after_timestamp - before_timestamp, 0));
+#endif
}
#endif
--
2.4.3
@@ -0,0 +1,69 @@
From 0b04a8347981ceb1030768c3002ac3c2bc0a0bf1 Mon Sep 17 00:00:00 2001
From: Romain Naour <romain.naour@openwide.fr>
Date: Thu, 30 Jul 2015 17:31:31 +0200
Subject: [PATCH] build-sys: check for strndupa
strndupa is a GNU extension, therefore it's not available
for all libc libraries (musl).
This patch is based on the one proposed by Emil Renner Berthing for
systemd [1].
[1] http://lists.freedesktop.org/archives/systemd-devel/2014-September/023190.html
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
configure.ac | 3 ++-
src/shared/missing.h | 11 +++++++++++
src/shared/selinux-util.c | 1 +
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 4a293b2..9c383c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,8 +66,9 @@ AC_C_INLINE
AC_TYPE_MODE_T
AC_TYPE_PID_T
AC_CHECK_MEMBERS([struct stat.st_rdev])
-AC_CHECK_DECLS([getrandom, gettid, name_to_handle_at, accept4, mkostemp], [], [], [[#include <sys/types.h>
+AC_CHECK_DECLS([getrandom, gettid, name_to_handle_at, accept4, mkostemp, strndupa], [], [], [[#include <sys/types.h>
#include <unistd.h>
+#include <string.h>
#include <sys/mount.h>
#include <fcntl.h>
#include <sys/socket.h>
diff --git a/src/shared/missing.h b/src/shared/missing.h
index 2dc9d84..9031119 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -158,3 +158,14 @@ static inline int name_to_handle_at(int fd, const char *name, struct file_handle
#ifndef AT_EMPTY_PATH
#define AT_EMPTY_PATH 0x1000
#endif
+
+#if !HAVE_DECL_STRNDUPA
+#define strndupa(s, n) \
+ ({ \
+ const char *__old = (s); \
+ size_t __len = strnlen(__old, (n)); \
+ char *__new = (char *)alloca(__len + 1); \
+ __new[__len] = '\0'; \
+ (char *)memcpy(__new, __old, __len); \
+ })
+#endif
diff --git a/src/shared/selinux-util.c b/src/shared/selinux-util.c
index 4e0866b..a18a5a7 100644
--- a/src/shared/selinux-util.c
+++ b/src/shared/selinux-util.c
@@ -31,6 +31,7 @@
#include "strv.h"
#include "path-util.h"
#include "selinux-util.h"
+#include "missing.h"
#ifdef HAVE_SELINUX
DEFINE_TRIVIAL_CLEANUP_FUNC(security_context_t, freecon);
--
2.4.3
+5
View File
@@ -11,6 +11,11 @@ EUDEV_LICENSE = GPLv2+ (programs), LGPLv2.1+ (libraries)
EUDEV_LICENSE_FILES = COPYING
EUDEV_INSTALL_STAGING = YES
# configure.ac is patched by:
# 0002-build-sys-check-for-mallinfo.patch
# 0003-build-sys-check-for-strndupa.patch
EUDEV_AUTORECONF = YES
# mq_getattr is in librt
EUDEV_CONF_ENV += LIBS=-lrt
-3
View File
@@ -1,9 +1,6 @@
config BR2_PACKAGE_FAN_CTRL
bool "fan-ctrl"
depends on BR2_USE_MMU # fork()
# SourceForge is down, not backup location, let's disable for
# now.
depends on BR2_BROKEN
help
Fan-ctrl is a little daemon that controls the speed of one
or more system or CPU fans. It does so by monitoring
+1 -1
View File
@@ -4,7 +4,7 @@
#
################################################################################
FILEMQ_VERSION = 482797b8aa30fcc9ea1377aabdf2b0769f9f698e
FILEMQ_VERSION = acf6c0e003fee938994ad803aa7b78245dca57ba
FILEMQ_SITE = $(call github,zeromq,filemq,$(FILEMQ_VERSION))
FILEMQ_AUTORECONF = YES
@@ -0,0 +1,12 @@
Upstream status: In progress
--- a/libgcc/config/nios2/linux-atomic.c
+++ b/libgcc/config/nios2/linux-atomic.c
@@ -20,7 +20,6 @@
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */
-#include <asm/unistd.h>
#define EFAULT 14
#define EBUSY 16
#define ENOSYS 38
+1 -1
View File
@@ -1,2 +1,2 @@
# Locally calculated after checking pgp signature
sha256 80a471c723572a43ddbe75d7825a3275f640650cc99eae42963ab39b9d0b7552 gnutls-3.3.16.tar.xz
sha256 b40f158030a92f450a07b20300a3996710ca19800848d9f6fd62493170c5bbb4 gnutls-3.3.17.1.tar.xz
+1 -1
View File
@@ -5,7 +5,7 @@
################################################################################
GNUTLS_VERSION_MAJOR = 3.3
GNUTLS_VERSION = $(GNUTLS_VERSION_MAJOR).16
GNUTLS_VERSION = $(GNUTLS_VERSION_MAJOR).17.1
GNUTLS_SOURCE = gnutls-$(GNUTLS_VERSION).tar.xz
GNUTLS_SITE = ftp://ftp.gnutls.org/gcrypt/gnutls/v$(GNUTLS_VERSION_MAJOR)
GNUTLS_LICENSE = GPLv3+ LGPLv2.1+
+4
View File
@@ -28,6 +28,10 @@ GUILE_CFLAGS = \
-DHAVE_GC_GET_FREE_SPACE_DIVISOR \
-DHAVE_GC_SET_FINALIZE_ON_DEMAND
ifeq ($(BR2_STATIC_LIBS),y)
GUILE_CFLAGS += -DGC_NO_DLOPEN
endif
GUILE_CONF_ENV += GUILE_FOR_BUILD=$(HOST_DIR)/usr/bin/guile \
CFLAGS="$(TARGET_CFLAGS) $(GUILE_CFLAGS)"
+4
View File
@@ -9,6 +9,10 @@ HAVEGED_SITE = http://www.issihosts.com/haveged
HAVEGED_LICENSE = GPLv3+
HAVEGED_LICENSE_FILES = COPYING
ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y)
HAVEGED_CONF_OPTS += --enable-clock_gettime=yes
endif
define HAVEGED_INSTALL_INIT_SYSV
$(INSTALL) -m 755 -D package/haveged/S21haveged \
$(TARGET_DIR)/etc/init.d/S21haveged
@@ -0,0 +1,31 @@
From bdfa1169c549122a8dc848b84469458101adeb20 Mon Sep 17 00:00:00 2001
From: Brendan Heading <brendanheading@gmail.com>
Date: Mon, 3 Aug 2015 12:44:55 +0100
Subject: [PATCH 1/1] fix compilation issues with musl
Using time_t strictly requires time.h to be included.
NOTE I've stuck to the convention on this project where most of the
files appear to pick up most of their headers by including "common.h".
Upstream-status: pending
Signed-off-by: Brendan Heading <brendanheading@gmail.com>
---
src/lib/common.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lib/common.h b/src/lib/common.h
index 798965f..9053826 100644
--- a/src/lib/common.h
+++ b/src/lib/common.h
@@ -9,6 +9,7 @@
#include <config.h>
#include <string.h>
#include <math.h>
+#include <time.h>
#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif
--
2.4.3
+4 -2
View File
@@ -3,6 +3,7 @@ config BR2_PACKAGE_KEXEC_LITE
depends on BR2_powerpc || BR2_powerpc64
depends on !BR2_STATIC_LIBS # dtc, elfutils
depends on BR2_USE_WCHAR # elfutils
depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC # elfutils
select BR2_PACKAGE_ELFUTILS
select BR2_PACKAGE_DTC
select BR2_PACKAGE_DTC_PROGRAMS
@@ -13,6 +14,7 @@ config BR2_PACKAGE_KEXEC_LITE
This package is a tiny implementation of the kexec userspace
components, for devicetree-based platforms.
comment "kexec-lite needs a toolchain w/ wchar, dynamic library"
comment "kexec-lite needs a uClibc or (e)glibc toolchain w/ wchar, dynamic library"
depends on BR2_powerpc || BR2_powerpc64
depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR
depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR \
|| !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
+3 -1
View File
@@ -158,13 +158,15 @@ config BR2_PACKAGE_KODI_LIBCEC
bool "hdmi cec"
depends on !BR2_STATIC_LIBS # libcec
depends on BR2_PACKAGE_HAS_UDEV
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # libcec
select BR2_PACKAGE_LIBCEC
help
Enable CEC (Consumer Electronics Control) support.
Select this if you want Kodi to support HDMI CEC.
comment "hdmi cec support needs udev /dev management and a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS || !BR2_PACKAGE_HAS_UDEV
depends on BR2_STATIC_LIBS || !BR2_PACKAGE_HAS_UDEV || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
config BR2_PACKAGE_KODI_LIRC
bool "lirc"
+4 -2
View File
@@ -4,6 +4,7 @@ config BR2_PACKAGE_LIBCEC
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_WCHAR
depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11
select BR2_PACKAGE_LIBPLATFORM
help
libcec allows you in combination with the right hardware to
@@ -12,6 +13,7 @@ config BR2_PACKAGE_LIBCEC
http://libcec.pulse-eight.com
comment "libcec needs a toolchain w/ C++, wchar, threads, dynamic library"
comment "libcec needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 4.7"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_USE_WCHAR || BR2_STATIC_LIBS
!BR2_USE_WCHAR || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 || \
BR2_STATIC_LIBS
@@ -0,0 +1,29 @@
Fix SPARCv8 condition
The define provided by the compiler on SPARCv8 is __sparc_v8__ and not
__sparcv8. From a SPARCv8 gcc:
$ sparc-linux-gcc --version
sparc-linux-gcc (Buildroot 2015.08-git-00497-ge110081) 4.9.3
[...]
$ sparc-linux-gcc -dM -E - < /dev/null | grep sparc
#define sparc 1
#define __sparc__ 1
#define __sparc 1
#define __sparc_v8__ 1
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Index: b/ev.c
===================================================================
--- a/ev.c
+++ b/ev.c
@@ -649,7 +649,7 @@
#define ECB_MEMORY_FENCE __asm__ __volatile__ ("dmb" : : : "memory")
#elif __aarch64__
#define ECB_MEMORY_FENCE __asm__ __volatile__ ("dmb ish" : : : "memory")
- #elif (__sparc || __sparc__) && !__sparcv8
+ #elif (__sparc || __sparc__) && !__sparc_v8__
#define ECB_MEMORY_FENCE __asm__ __volatile__ ("membar #LoadStore | #LoadLoad | #StoreStore | #StoreLoad" : : : "memory")
#define ECB_MEMORY_FENCE_ACQUIRE __asm__ __volatile__ ("membar #LoadStore | #LoadLoad" : : : "memory")
#define ECB_MEMORY_FENCE_RELEASE __asm__ __volatile__ ("membar #LoadStore | #StoreStore")
+1 -1
View File
@@ -22,7 +22,7 @@ LIBGPGME_CONF_OPTS = --with-gpg=/usr/bin/gpg \
--disable-gpg-test
# Handle argp-standalone or it errors out during build
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE)$(BR2_TOOLCHAIN_USES_UCLIBC),yy)
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
LIBGPGME_CONF_ENV += LIBS="-largp"
LIBGPGME_DEPENDENCIES += argp-standalone
endif
+4
View File
@@ -37,9 +37,13 @@ config BR2_PACKAGE_LIBIIO_TESTS
bool "Install test programs"
select BR2_PACKAGE_LIBIIO_LOCAL_BACKEND
select BR2_PACKAGE_LIBIIO_NETWORK_BACKEND
depends on BR2_TOOLCHAIN_HAS_THREADS
help
Install the test programs (iio_info, iio_genxml, iio_readdev).
comment "IIO test programs need a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
config BR2_PACKAGE_LIBIIO_BINDINGS_CSHARP
bool "Install C# bindings"
depends on BR2_PACKAGE_MONO
@@ -0,0 +1,45 @@
From 5348da83403383a60831f4c297841afb98692887 Mon Sep 17 00:00:00 2001
From: Felix Janda <felix.janda@posteo.de>
Date: Sat, 16 May 2015 14:45:46 +0200
Subject: [PATCH] extra: Define _GNU_SOURCE to get members of tcphdr&ucphdr
The source uses linux names for members of tcphdr. For example
"source" instead of "th_sport", ... musl libc's headers need
_GNU_SOURCE defined in order to expose these.
Signed-off-by: Felix Janda <felix.janda@posteo.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
[yann.morin.1998@free.fr: backported from upstream]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
src/extra/tcp.c | 1 +
src/extra/udp.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/extra/tcp.c b/src/extra/tcp.c
index bf161aa..d1cd79d 100644
--- a/src/extra/tcp.c
+++ b/src/extra/tcp.c
@@ -15,6 +15,7 @@
#include <arpa/inet.h>
#include <netinet/ip.h>
#include <netinet/ip6.h>
+#define _GNU_SOURCE
#include <netinet/tcp.h>
#include <libnetfilter_queue/libnetfilter_queue.h>
diff --git a/src/extra/udp.c b/src/extra/udp.c
index 6e6baed..8c44a66 100644
--- a/src/extra/udp.c
+++ b/src/extra/udp.c
@@ -14,6 +14,7 @@
#include <arpa/inet.h>
#include <netinet/ip.h>
#include <netinet/ip6.h>
+#define _GNU_SOURCE
#include <netinet/udp.h>
#include <libnetfilter_queue/libnetfilter_queue.h>
--
1.9.1
+32
View File
@@ -0,0 +1,32 @@
Include <sys/types.h> to get the u_int* definitions
This is needed to fix the build with the musl C library, and this
patch comes from
http://git.alpinelinux.org/cgit/aports/plain/main/libnfnetlink/musl-fix-includes.patch.
It will no longer be needed with upcoming upstream releases of
libnfnetlink, since they have switched to use the <stdint.h> types
instead. However this change was too invasive to backport.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
--- libnfnetlink-1.0.1.orig/include/libnfnetlink/linux_nfnetlink.h
+++ libnfnetlink-1.0.1/include/libnfnetlink/linux_nfnetlink.h
@@ -1,6 +1,6 @@
#ifndef _NFNETLINK_H
#define _NFNETLINK_H
-#include <linux/types.h>
+#include <sys/types.h>
#include <libnfnetlink/linux_nfnetlink_compat.h>
enum nfnetlink_groups {
--- libnfnetlink-1.0.1.orig/include/libnfnetlink/libnfnetlink.h
+++ libnfnetlink-1.0.1/include/libnfnetlink/libnfnetlink.h
@@ -15,6 +15,7 @@
#define aligned_u64 unsigned long long __attribute__((aligned(8)))
#endif
+#include <sys/types.h>
#include <sys/socket.h> /* for sa_family_t */
#include <linux/netlink.h>
#include <libnfnetlink/linux_nfnetlink.h>
+4 -1
View File
@@ -11,7 +11,10 @@ LIBPFM4_LICENSE = libpfm4 license
LIBPFM4_LICENSE_FILES = COPYING
LIBPFM4_INSTALL_STAGING = YES
LIBPFM4_FLAGS = SYS=Linux ARCH=$(BR2_ARCH) CC="$(TARGET_CC)" LDCONFIG=true
LIBPFM4_FLAGS = SYS=Linux ARCH=$(BR2_ARCH) \
CC="$(TARGET_CC)" LDCONFIG=true \
CONFIG_PFMLIB_SHARED=$(if $(BR2_STATIC_LIBS),n,y) \
DBG=
define LIBPFM4_BUILD_CMDS
$(MAKE) -C $(@D) $(LIBPFM4_FLAGS)
+14
View File
@@ -13,6 +13,20 @@ LIBPTHSEM_AUTORECONF = YES
LIBPTHSEM_INSTALL_STAGING = YES
LIBPTHSEM_CONFIG_SCRIPTS = pthsem-config
# Force the setjmp/longjmp detection, because the test being done in
# the AC_CHECK_SJLJ macro is not cross-compilation safe: it checks the
# running kernel with 'uname -r', and checks the C library version by
# looking at /usr/include/features.h. In terms of kernel version, it
# assumes any version later than 2.2.x is fine, except that it doesn't
# recognize 4.x as a valid kernel version, recognizing such systems as
# "braindead" and therefore falling back to the 'sjljlx' value for
# ac_cv_check_sjlj. In terms of C library version, it wants
# __GLIBC_MINOR to be at least 1. Since both conditions are true for
# all Buildroot systems, we can simply force the setjmp/longjmp
# detection to ssjlj.
LIBPTHSEM_CONF_ENV += \
ac_cv_check_sjlj=ssjlj
ifeq ($(BR2_PACKAGE_LIBPTHSEM_COMPAT),y)
LIBPTHSEM_CONF_OPTS += --enable-compat
LIBPTHSEM_CONFIG_SCRIPTS += pth-config
+1
View File
@@ -10,4 +10,5 @@ config BR2_PACKAGE_LIBRTAS
http://librtas.sourceforge.net/
comment "librtas needs an (e)glibc toolchain"
depends on BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
depends on !BR2_TOOLCHAIN_USES_GLIBC
+3
View File
@@ -4,6 +4,8 @@ config BR2_PACKAGE_LIBSELINUX
select BR2_PACKAGE_PCRE
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_STATIC_LIBS
# Toolchain issue: "fixup not contained within frag"
depends on !BR2_arc
help
libselinux is the runtime SELinux library that provides
interfaces (e.g. library functions for the SELinux kernel
@@ -16,4 +18,5 @@ config BR2_PACKAGE_LIBSELINUX
http://selinuxproject.org/page/Main_Page
comment "libselinux needs a toolchain w/ threads, dynamic library"
depends on !BR2_arc
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+2
View File
@@ -5,6 +5,7 @@ config BR2_PACKAGE_LIBSEMANAGE
select BR2_PACKAGE_BZIP2
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_STATIC_LIBS
depends on !BR2_arc
help
libsemanage is the policy management library. It uses
libsepol for binary policy manipulation and libselinux for
@@ -17,4 +18,5 @@ config BR2_PACKAGE_LIBSEMANAGE
http://selinuxproject.org/page/Main_Page
comment "libsemanage needs a toolchain w/ threads, dynamic library"
depends on !BR2_arc
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+3 -3
View File
@@ -3,12 +3,12 @@ config BR2_PACKAGE_LIBSIGSEGV
depends on !BR2_xtensa
depends on !BR2_arc # no ucontext_i.sym file
depends on !BR2_microblaze
# No ucontext support in uclibc for powerpc
depends on !(BR2_powerpc && BR2_TOOLCHAIN_USES_UCLIBC)
# No ucontext support in uclibc for powerpc and superh
depends on !((BR2_powerpc || BR2_sh) && BR2_TOOLCHAIN_USES_UCLIBC)
help
Library for handling page faults in user mode.
http://libsigsegv.sourceforge.net/
comment "libsigsegv needs an (e)glibc toolchain"
depends on BR2_powerpc && BR2_TOOLCHAIN_USES_UCLIBC
depends on (BR2_powerpc || BR2_sh) && BR2_TOOLCHAIN_USES_UCLIBC
+4
View File
@@ -10,4 +10,8 @@ LIBSODIUM_LICENSE = ISC
LIBSODIUM_LICENSE_FILES = LICENSE
LIBSODIUM_INSTALL_STAGING = YES
ifeq ($(BR2_arc),y)
LIBSODIUM_CONF_OPTS += --disable-pie
endif
$(eval $(autotools-package))
+7 -4
View File
@@ -5,14 +5,16 @@ config BR2_PACKAGE_LIBV4L
depends on !BR2_STATIC_LIBS # dlopen()
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # media headers
select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC
# wait for libv4l 1.7+ for musl compatibility
depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC
select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
help
libv4l is a collection of libraries which adds a thin abstraction
layer on top of video4linux2 devices. libv4l consists of 3 different
libraries: libv4lconvert, libv4l1 and libv4l2.
http://freshmeat.net/projects/libv4l
http://linuxtv.org/wiki/index.php/V4l-utils
if BR2_PACKAGE_LIBV4L
@@ -29,7 +31,8 @@ config BR2_PACKAGE_LIBV4L_UTILS
endif
comment "libv4l needs a toolchain w/ threads, dynamic library, C++ and headers >= 3.0"
comment "libv4l needs an uClibc or (e)glibc toolchain w/ threads, dynamic library, C++ and headers >= 3.0"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
|| !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
|| !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 \
|| !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
+6
View File
@@ -1,7 +1,13 @@
comment "lightning needs a toolchain w/ dynamic library"
depends on BR2_sparc || BR2_i386 || BR2_x86_64 || BR2_mips || \
BR2_mipsel || BR2_arm || BR2_powerpc
depends on BR2_STATIC_LIBS
config BR2_PACKAGE_LIGHTNING
bool "lightning"
depends on BR2_sparc || BR2_i386 || BR2_x86_64 || BR2_mips || \
BR2_mipsel || BR2_arm || BR2_powerpc
depends on !BR2_STATIC_LIBS
help
GNU lightning is a library that generates
assembly language code at run-time.
+4 -2
View File
@@ -2,6 +2,8 @@ config BR2_PACKAGE_LIRC_TOOLS
bool "lirc-tools"
depends on BR2_USE_MMU # fork()
depends on BR2_TOOLCHAIN_HAS_THREADS
# dlopen()
depends on !BR2_STATIC_LIBS
help
LIRC is a package that supports receiving and sending IR
signals of the most common IR remote controls. It contains a
@@ -15,6 +17,6 @@ config BR2_PACKAGE_LIRC_TOOLS
http://www.lirc.org/
comment "lirc-tools needs a toolchain w/ threads"
comment "lirc-tools needs a toolchain w/ threads, dynamic library"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+10
View File
@@ -1,6 +1,16 @@
config BR2_PACKAGE_LRZSZ
bool "lrzsz"
# It could technically build in a static-only environment, but
# it unconditionally redefines the error() and error_at_line()
# functions, which clashes with the definition from
# uClibc. Since the autotools packaging dates back from 1998,
# lots of work is needed to fix it, and do some proper tests
# on the availability of such functions.
depends on !BR2_STATIC_LIBS
help
Portable and fast implementation of the X/Y/Zmodem protocols.
http://www.ohse.de/uwe/software/lrzsz.html
comment "lrzsz needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS
+4 -2
View File
@@ -9,6 +9,7 @@ config BR2_PACKAGE_LTRACE
select BR2_PACKAGE_ELFUTILS
depends on BR2_USE_WCHAR # elfutils
depends on !BR2_STATIC_LIBS # elfutils
depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC # elfutils
help
Debugging program which runs a specified command until it exits.
While the command is executing, ltrace intercepts and records
@@ -17,5 +18,6 @@ config BR2_PACKAGE_LTRACE
http://ltrace.org
comment "ltrace needs toolchain w/ wchar, dynamic library"
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
comment "ltrace needs a uclibc or (e)glibc toolchain w/ wchar, dynamic library"
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \
|| !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
+8 -6
View File
@@ -10,6 +10,7 @@ menuconfig BR2_PACKAGE_MESA3D
select BR2_PACKAGE_XLIB_LIBXFIXES if BR2_PACKAGE_XORG7
select BR2_PACKAGE_LIBXCB if BR2_PACKAGE_XORG7
depends on BR2_INSTALL_LIBSTDCPP
depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
# Triggers the _gp link issue in nios2
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305
@@ -76,10 +77,10 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST
This is a software opengl implementation using the Gallium3D
infrastructure.
comment "DRI drivers needs X.Org and a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS || !BR2_PACKAGE_XORG7
comment "DRI drivers need X.Org"
depends on !BR2_PACKAGE_XORG7
if !BR2_STATIC_LIBS && BR2_PACKAGE_XORG7
if BR2_PACKAGE_XORG7
comment "DRI drivers"
@@ -114,7 +115,7 @@ config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON
help
Legacy Radeon driver for R100 series GPUs.
endif # !BR2_STATIC_LIBS && BR2_PACKAGE_XORG7
endif # BR2_PACKAGE_XORG7
if BR2_PACKAGE_MESA3D_DRIVER
@@ -144,7 +145,8 @@ config BR2_PACKAGE_PROVIDES_LIBGLES
endif # BR2_PACKAGE_MESA3D
comment "mesa3d needs a toolchain w/ C++, NPTL"
comment "mesa3d needs a toolchain w/ C++, NPTL, dynamic library"
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
BR2_STATIC_LIBS
-5
View File
@@ -58,11 +58,6 @@ MESA3D_CONF_OPTS += \
--disable-xa
endif
ifeq ($(BR2_STATIC_LIBS),)
# fix for "configure: error: Cannot use static libraries for DRI drivers"
MESA3D_CONF_OPTS += --disable-static
endif
# Drivers
#Gallium Drivers
+4 -2
View File
@@ -1,7 +1,8 @@
comment "midori needs libgtk2 and a toolchain w/ C++, wchar, NPTL"
comment "midori needs libgtk2 and a toolchain w/ C++, wchar, NPTL, gcc >= 4.8"
depends on BR2_PACKAGE_WEBKITGTK24_ARCH_SUPPORTS
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
!BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_PACKAGE_LIBGTK2
!BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_PACKAGE_LIBGTK2 \
|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
config BR2_PACKAGE_MIDORI
bool "midori"
@@ -16,6 +17,7 @@ config BR2_PACKAGE_MIDORI
depends on BR2_INSTALL_LIBSTDCPP # webkitgtk24
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # webkitgtk24
depends on BR2_USE_WCHAR # webkitgtk24
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # webkitgtk24
depends on BR2_PACKAGE_WEBKITGTK24_ARCH_SUPPORTS
help
Midori is a lightweight web browser based on WebKit
@@ -0,0 +1,29 @@
From 1c3d615d93b20d10c2729478d5104977dd9af23f Mon Sep 17 00:00:00 2001
From: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Date: Wed, 5 Aug 2015 12:59:45 +0200
Subject: [PATCH] Fixing initialization of have_vasprintf
This patch initialize properly have_vasprintf in case vasprint function is found.
Solves multiple definition of `vasprintf' error in case vasprint is not properly detected.
Patch is upstream:
https://github.com/mono/mono/commit/40c171799b671718969ee28a02f92884d7fd181e
Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
eglib/configure.ac | 1 +
1 file changed, 1 insertion(+)
diff --git a/eglib/configure.ac b/eglib/configure.ac
index 5281419..4bf91e5 100644
--- a/eglib/configure.ac
+++ b/eglib/configure.ac
@@ -135,6 +135,7 @@ AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long)
AC_CHECK_FUNCS(strlcpy stpcpy strtok_r rewinddir vasprintf)
+AC_CHECK_FUNC(vasprintf, have_vasprintf=yes)
AC_CHECK_FUNCS(getrlimit)
#
+4 -2
View File
@@ -7,6 +7,7 @@ config BR2_PACKAGE_MONO
bool "mono"
depends on BR2_PACKAGE_MONO_ARCH_SUPPORTS
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
help
An open source, cross-platform, implementation of C#
@@ -14,5 +15,6 @@ config BR2_PACKAGE_MONO
http://download.mono-project.com/sources/mono/
comment "mono needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
comment "mono needs a toolchain w/ threads, dynamic library"
depends on BR2_PACKAGE_MONO_ARCH_SUPPORTS
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+6 -3
View File
@@ -1,11 +1,14 @@
comment "mosh needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
comment "mosh needs a toolchain w/ C++, threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP \
|| BR2_STATIC_LIBS
depends on !(BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64)
config BR2_PACKAGE_MOSH
bool "mosh"
depends on BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64 # protobuf
depends on BR2_TOOLCHAIN_HAS_THREADS #protobuf
depends on BR2_INSTALL_LIBSTDCPP # protobuf
depends on BR2_TOOLCHAIN_HAS_THREADS # protobuf
depends on !BR2_STATIC_LIBS # protobuf
depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86" # protobuf
select BR2_PACKAGE_PROTOBUF
select BR2_PACKAGE_NCURSES
+56
View File
@@ -0,0 +1,56 @@
musl gcc5 fixes
Fetch from:
http://git.alpinelinux.org/cgit/aports/plain/main/mpd/musl-gcc5-fixes.patch
Problem has been reported upstream and closed with WONTFIX:
http://bugs.musicpd.org/view.php?id=4387
http://bugs.musicpd.org/view.php?id=4110
however...
POSIX does not permit using PTHREAD_COND_INITIALIZER except for static
initialization, and certainly does not permit using it as a value
also POSIX does not specify the type of the object (it's opaque) so if
there are any types for which their code would be invalid C++, then their
code is invalid
also, volatile in the type is necessary. without that, LTO can break the code.
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
--- ./src/notify.hxx.orig
+++ ./src/notify.hxx
@@ -28,7 +28,7 @@
Cond cond;
bool pending;
-#if !defined(WIN32) && !defined(__NetBSD__) && !defined(__BIONIC__)
+#if defined(__GLIBC__)
constexpr
#endif
notify():pending(false) {}
--- ./src/thread/PosixCond.hxx.orig
+++ ./src/thread/PosixCond.hxx
@@ -41,7 +41,7 @@
pthread_cond_t cond;
public:
-#if defined(__NetBSD__) || defined(__BIONIC__)
+#if !defined(__GLIBC__)
/* NetBSD's PTHREAD_COND_INITIALIZER is not compatible with
"constexpr" */
PosixCond() {
--- ./src/thread/PosixMutex.hxx.orig
+++ ./src/thread/PosixMutex.hxx
@@ -41,7 +41,7 @@
pthread_mutex_t mutex;
public:
-#if defined(__NetBSD__) || defined(__BIONIC__)
+#if !defined(__GLIBC__)
/* NetBSD's PTHREAD_MUTEX_INITIALIZER is not compatible with
"constexpr" */
PosixMutex() {
+1
View File
@@ -10,6 +10,7 @@ MSMTP_SOURCE = msmtp-$(MSMTP_VERSION).tar.xz
MSMTP_DEPENDENCIES = host-pkgconf
MSMTP_CONF_OPTS = \
--without-libidn \
--disable-gai-idn \
--without-libgsasl
MSMTP_LICENSE = GPLv3+
MSMTP_LICENSE_FILES = COPYING
@@ -0,0 +1,28 @@
rename err() function to avoid clashing with err() form C library
err() is a function available in the C library, so when static linking,
there is a clash at link timebecause the function is provided both by
nbd and the C library:
http://autobuild.buildroot.org/results/aa8/aa8a1ac35a93e1c8b9fddbc2b5d66ecaa921f31e/build-end.log
Fix that by renaming err() to nbd_err() and providing a small maco
wrapper to avoid touching the many call sites.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
Upstream status: hack, not submitted.
diff -durN nbd-3.11.orig/cliserv.h nbd-3.11/cliserv.h
--- nbd-3.11.orig/cliserv.h 2015-05-25 12:27:56.000000000 +0200
+++ nbd-3.11/cliserv.h 2015-08-13 19:28:21.609467505 +0200
@@ -75,7 +75,8 @@
void setmysockopt(int sock);
void err_nonfatal(const char *s);
-void err(const char *s) G_GNUC_NORETURN;
+void nbd_err(const char *s) G_GNUC_NORETURN;
+#define err(S) nbd_err(S)
void logging(const char* name);
+3 -2
View File
@@ -2,6 +2,7 @@ config BR2_PACKAGE_NETATALK
bool "netatalk"
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_MMU # fork()
depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_BERKELEYDB
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_LIBEVENT
@@ -13,6 +14,6 @@ config BR2_PACKAGE_NETATALK
http://netatalk.sourceforge.net/
comment "netatalk needs a toolchain w/ threads"
comment "netatalk needs a toolchain w/ threads, dynamic library"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
@@ -0,0 +1,47 @@
From 0bc482abeb814573251ecafb5a1e045c885b13a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
Date: Mon, 25 May 2015 16:22:57 +0200
Subject: [PATCH 1/1] Fix musl __USE_MISC issue
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The musl C library does not define __USE_MISC and so libuv (built-in dependency)
does not use the correct struct stat definition for musl.
The feature test macro __USE_MISC is defined by glibc if _BSD_SOURCE or
_SVID_SOURCE is defined.
The libuv build system enables the feature test macro _GNU_SOURCE for linux
builds.
Since glibc 2.19, defining _GNU_SOURCE also has the effect of implicitly
defining _DEFAULT_SOURCE - the replacement for _BSD_SOURCE and _SVID_SOURCE.
In glibc versions before 2.20, defining _GNU_SOURCE also had the effect of
implicitly defining _BSD_SOURCE and _SVID_SOURCE. This is also true for uClibc.
Alltogether, we can safely replace __USE_MISC by _GNU_SOURCE to support building
nodejs 0.10.x with the musl C library.
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
---
deps/uv/src/fs-poll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/deps/uv/src/fs-poll.c b/deps/uv/src/fs-poll.c
index ad27f18..094447e 100644
--- a/deps/uv/src/fs-poll.c
+++ b/deps/uv/src/fs-poll.c
@@ -198,7 +198,7 @@ static int statbuf_eq(const uv_statbuf_t* a, const uv_statbuf_t* b) {
/* Jump through a few hoops to get sub-second granularity on Linux. */
# if defined(__linux__)
-# if defined(__USE_MISC) /* _BSD_SOURCE || _SVID_SOURCE */
+# if defined(_GNU_SOURCE) /* _BSD_SOURCE || _SVID_SOURCE */
if (a->st_ctim.tv_nsec != b->st_ctim.tv_nsec) return 0;
if (a->st_mtim.tv_nsec != b->st_mtim.tv_nsec) return 0;
# else
--
2.4.1
@@ -0,0 +1,26 @@
From cd4f5d9d8a10c368584e8e714ebb0f9695267063 Mon Sep 17 00:00:00 2001
From: Simon Marchi <simon.marchi@polymtl.ca>
Date: Mon, 10 Aug 2015 15:01:42 -0400
Subject: [PATCH] Remove -fvisibiliy-inlines-hidden
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 714e435..17a23e2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,7 +32,7 @@ AM_DISTCHECK_CONFIGURE_FLAGS = --enable-python-libs
COMMON_CXXFLAGS_ONLY_WARNINGS = \
-I$(top_srcdir)/include \
-I$(top_builddir)/include \
- -Wall -Wformat -W -fvisibility-inlines-hidden \
+ -Wall -Wformat -W \
$(libprotobuf_CFLAGS)
COMMON_CXXFLAGS = $(COMMON_CXXFLAGS_ONLY_WARNINGS)
--
2.5.0
+4 -2
View File
@@ -1,5 +1,6 @@
comment "ola needs a toolchain w/ C++, threads, wchar"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
comment "ola needs a toolchain w/ C++, threads, wchar, dynamic library"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR \
|| !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
depends on BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64
config BR2_PACKAGE_OLA
@@ -8,6 +9,7 @@ config BR2_PACKAGE_OLA
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
select BR2_PACKAGE_UTIL_LINUX
depends on BR2_INSTALL_LIBSTDCPP # protobuf
depends on !BR2_STATIC_LIBS # protobuf
depends on BR2_USE_WCHAR # util-linux
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64 # protobuf
+3
View File
@@ -5,6 +5,8 @@ menuconfig BR2_PACKAGE_OPENCV
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_USE_WCHAR
depends on !BR2_STATIC_LIBS # include dlfcn.h
# Causes some toolchain failures on Xtensa
depends on !BR2_xtensa
help
OpenCV (Open Source Computer Vision) is a library of programming
functions for real time computer vision.
@@ -334,6 +336,7 @@ config BR2_PACKAGE_OPENCV_INSTALL_DATA
endif # BR2_PACKAGE_OPENCV
comment "opencv needs a toolchain w/ C++, NPTL, wchar, dynamic library"
depends on !BR2_xtensa
depends on !BR2_INSTALL_LIBSTDCPP || \
!BR2_USE_WCHAR || \
!BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
+6
View File
@@ -41,6 +41,12 @@ ifeq ($(BR2_PACKAGE_LIBPFM4),y)
OPROFILE_DEPENDENCIES += libpfm4
endif
# When getext is enabled, popt links with -lintl, specifies it in its
# popt.pc and has done so for the past 6+ years. But oprofile does not
# use pkconfig to find popt, so misses -lintl, which is important for
# a static build. We have to do the call to pkgconfig manually...
OPROFILE_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs popt`"
define OPROFILE_INSTALL_TARGET_CMDS
$(INSTALL) -d -m 755 $(TARGET_DIR)/usr/bin
$(INSTALL) -d -m 755 $(TARGET_DIR)/usr/share/oprofile
+1 -1
View File
@@ -1,2 +1,2 @@
# From http://php.net/downloads.php
sha256 3f97dbb1c646b90e1ef638defabe429ef036f903b5baa1c34769d3de4fe62bd4 php-5.6.11.tar.xz
sha256 f8a8446866c0dc3f33319aa196ce87b64d71cab3dd96e39c8816adccc7e8ef33 php-5.6.12.tar.xz
+1 -1
View File
@@ -5,7 +5,7 @@
################################################################################
PHP_VERSION_MAJOR = 5.6
PHP_VERSION = $(PHP_VERSION_MAJOR).11
PHP_VERSION = $(PHP_VERSION_MAJOR).12
PHP_SITE = http://www.php.net/distributions
PHP_SOURCE = php-$(PHP_VERSION).tar.xz
PHP_INSTALL_STAGING = YES
+4
View File
@@ -60,6 +60,10 @@ $(2)_MODULE_SUBDIRS ?= .
# includes and other support files (Booo!)
define $(2)_KERNEL_MODULES_BUILD
@$$(call MESSAGE,"Building kernel module(s)")
@if ! grep -Fqx 'CONFIG_MODULES=y' $(LINUX_DIR)/.config; then \
echo "ERROR: Kernel does not support loadable modules"; \
exit 1; \
fi
$$(foreach d,$$($(2)_MODULE_SUBDIRS), \
$$(LINUX_MAKE_ENV) $$($$(PKG)_MAKE) \
-C $$(LINUX_DIR) \
+3 -2
View File
@@ -3,6 +3,7 @@ config BR2_PACKAGE_POCO
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_USE_WCHAR
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_STATIC_LIBS # dlopen()
depends on !(BR2_arc || BR2_bfin || BR2_microblaze || BR2_mipsel \
|| BR2_xtensa)
select BR2_PACKAGE_ZLIB
@@ -60,8 +61,8 @@ config BR2_PACKAGE_POCO_DATA_MYSQL
endif # BR2_PACKAGE_POCO
comment "poco needs a toolchain w/ wchar, threads, C++"
comment "poco needs a toolchain w/ wchar, threads, C++, dynamic library"
depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP \
|| !BR2_TOOLCHAIN_HAS_THREADS
|| !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
depends on !(BR2_arc || BR2_bfin || BR2_microblaze || BR2_mipsel \
|| BR2_xtensa)
@@ -0,0 +1,38 @@
The gcc predefines for Linux are __sparc_v8__/__sparc_v7__
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
diff -Nur postgresql-9.4.4.orig/src/include/storage/s_lock.h postgresql-9.4.4/src/include/storage/s_lock.h
--- postgresql-9.4.4.orig/src/include/storage/s_lock.h 2015-06-09 21:29:38.000000000 +0200
+++ postgresql-9.4.4/src/include/storage/s_lock.h 2015-08-09 19:57:06.000000000 +0200
@@ -420,12 +420,12 @@
: "=r"(_res), "+m"(*lock)
: "r"(lock)
: "memory");
-#if defined(__sparcv7)
+#if defined(__sparcv7) || defined(__sparc_v7__)
/*
* No stbar or membar available, luckily no actually produced hardware
* requires a barrier.
*/
-#elif defined(__sparcv8)
+#elif defined(__sparcv8) || defined(__sparc_v8__)
/* stbar is available (and required for both PSO, RMO), membar isn't */
__asm__ __volatile__ ("stbar \n":::"memory");
#else
@@ -438,13 +438,13 @@
return (int) _res;
}
-#if defined(__sparcv7)
+#if defined(__sparcv7) || defined(__sparc_v7__)
/*
* No stbar or membar available, luckily no actually produced hardware
* requires a barrier.
*/
#define S_UNLOCK(lock) (*((volatile slock_t *) (lock)) = 0)
-#elif defined(__sparcv8)
+#elif defined(__sparcv8) || defined(__sparc_v8__)
/* stbar is available (and required for both PSO, RMO), membar isn't */
#define S_UNLOCK(lock) \
do \
@@ -0,0 +1,35 @@
From 283cab667a9ac3ae3a675b5e5d1a42191188699f Mon Sep 17 00:00:00 2001
From: Romain Naour <romain.naour@openwide.fr>
Date: Sat, 8 Aug 2015 18:24:48 +0200
Subject: [PATCH] add missing sys/time.h header
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
struct timeval is defined in sys/time.h with a musl toolchain.
Fixes:
In file included from devices/devfreq.cpp:35:0:
devices/devfreq.h:35:18: error: field ‘stamp_before’ has incomplete type ‘timeval’
struct timeval stamp_before, stamp_after;
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
src/devices/devfreq.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/devices/devfreq.h b/src/devices/devfreq.h
index 16a60fb..4a8983b 100644
--- a/src/devices/devfreq.h
+++ b/src/devices/devfreq.h
@@ -27,6 +27,7 @@
#include "device.h"
#include "../parameters/parameters.h"
+#include <sys/time.h>
struct frequency;
--
2.4.3
@@ -0,0 +1,35 @@
From e6cfd977c81b335664db1d5d3d6b5488c245e30f Mon Sep 17 00:00:00 2001
From: Romain Naour <romain.naour@openwide.fr>
Date: Sat, 8 Aug 2015 18:26:15 +0200
Subject: [PATCH] add missing stdio.h header
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
snprinf is defined in stdio.h.
Fixes:
perf/perf_bundle.cpp: In function ‘void parse_event_format(const char*)’:
perf/perf_bundle.cpp:141:75: error: ‘sprintf’ was not declared in this scope
sprintf(file, "/sys/kernel/debug/tracing/events/%s/%s/format", sys, event);
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
src/perf/perf_bundle.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/perf/perf_bundle.cpp b/src/perf/perf_bundle.cpp
index cf1ae11..3d216ff 100644
--- a/src/perf/perf_bundle.cpp
+++ b/src/perf/perf_bundle.cpp
@@ -31,6 +31,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
+#include <stdio.h>
#include "perf_bundle.h"
#include "perf_event.h"
--
2.4.3
+1 -1
View File
@@ -1,7 +1,7 @@
config BR2_PACKAGE_PROTOBUF_C
bool "protobuf-c"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS # protobuf
depends on BR2_TOOLCHAIN_HAS_THREADS
# host-protobuf only builds on certain architectures
depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
help
+4 -2
View File
@@ -7,13 +7,15 @@ config BR2_PACKAGE_PROTOBUF
depends on BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64
# host-protobuf only builds on certain architectures
depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
depends on !BR2_STATIC_LIBS
help
Protocol buffers are Google's language-neutral, platform-neutral,
extensible mechanism for serializing structured data.
https://developers.google.com/protocol-buffers
comment "protobuf needs a toolchain w/ C++, threads"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
comment "protobuf needs a toolchain w/ C++, threads, dynamic library"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
|| BR2_STATIC_LIBS
depends on BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64
depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"

Some files were not shown because too many files have changed in this diff Show More