1. 10 Aug, 2017 1 commit
  2. 09 Aug, 2017 9 commits
    • Francois Perrad's avatar
      ficl: fix build with gcc 7 · 128a16ac
      Francois Perrad authored
      gcc 7 with -Os (optimize for size) takes the liberty to remove the code
      of inline functions entirely - which is indeed allowed according to the
      C99 standard, cfr. this [1] very complete StackOverflow answer. This
      leads to undefined function references at link time.
      
      The proper approach is to patch the code to use 'static inline'
      instead. However, for various reasons such a patch is not entirely
      trivial, and upstream has not moved since 7 years, so instead take the
      simpler approach of restoring the gcc original inline behaviour with
      -fgnu89-inline to fix this issue.
      
      Fixes http://autobuild.buildroot.org/results/d72/d72a7e9775a10bc884b9953dd2eba3ad32100cca
      
      [1] https://stackoverflow.com/questions/6312597/is-inline-without-static-or-extern-ever-useful-in-c99
      
      Signed-off-by: default avatarFrancois Perrad <francois.perrad@gadz.org>
      Signed-off-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
      128a16ac
    • Bernd Kuhls's avatar
    • Yann E. MORIN's avatar
      Revert "package/skeleton-custom: also check for missing directories" · aff2f739
      Yann E. MORIN authored
      This partially reverts commit cf6d321e.
      
      The underlying reason for doing the checks is to ensure that a
      merged-usr setting is properly enforced, even for custom skeletons.
      
      Before that patch, a custom skeleton where both /bin and /usr/bin were
      missing was accepted; but then the first package that intalled something
      in /bin would create it as a directory, thus breaking the merged-usr
      situation. Ditto sbin and lib, of course.
      
      cf6d321e
      
       was created to detect that situation, and the fix was to require
      that both directories do exist in the custom skeleton, so that we new
      the check for consistency were OK, in all cases.
      
      However, that broke existing skeletons which where missing both
      directories, and some people are shinning about it...
      
      The crux of the problem is that Buildroot should be responsible for
      creating the directories or the symliks when they are missing, and only
      fail if the existing ones are incorrect, but not impose the burden on
      the user.
      
      A situation where the problem arises is when a skeleton is shared
      between various builds, some using a merged-usr while other do not.
      
      We fix that by reverting the offending changes change, back to the
      previous behaviour. We keep the stderr redirection in stat calls, and
      the variable renaming.
      
      A proper fix to create the missing directories can be added later.
      Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
      Cc: Arnout Vandecappelle <arnout@mind.be>
      Signed-off-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
      aff2f739
    • Waldemar Brodkorb's avatar
      uclibc: allow thread_db to be built with C++ · c21fca53
      Waldemar Brodkorb authored
      
      
      gdb 7.12+ is compiled and linked with C++, therefore the thread_db
      headers need to use extern "C", to be usable for C++ code.
      
      Fixes:
       Issue when building gdbserver for m68k-coldfire:
      
      thread-db.o: In function `thread_db_init()':
      thread-db.c:(.text+0x5b6): undefined reference to `td_ta_new(ps_prochandle*, td_thragent**)'
      thread-db.c:(.text+0x61e): undefined reference to `td_thr_get_info(td_thrhandle const*, td_thrinfo*)'
      thread-db.c:(.text+0x632): undefined reference to `td_symbol_list()'
      ...
      Signed-off-by: default avatarWaldemar Brodkorb <wbx@openadk.org>
      Tested-by: default avatarRomain Naour <romain.naour@gmail.com>
      Signed-off-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
      c21fca53
    • Samuel Martin's avatar
      pkg-cmake.mk: set pkg-config env. vars. in the host configure environment · c9f9b16a
      Samuel Martin authored
      This change is fixing the bug reported in [1].
      
      Cmake may run pkg-config to find the dependencies when configuring a
      package. Because of the value of PATH, and it will use the Buildroot's
      pkg-config wrapper, which, by default, is configured (via some
      environment variables) to find the target dependencies.
      
      When configuring a host package using cmake, to prevent cmake from
      wrongly solving dependencies from the target tree (when the
      *-config.cmake files are using pkg-config) instead of looking for them
      in the Buildroot's host tree or in the host system itself, we need to
      set the environment variables altering the pkg-config behavior in the
      cmake configure environment.
      
      So, this change is fixing the cmake host-packages configuration step,
      by properly setting the pkg-config environment variables to their values
      for finding host dependencies.
      
      Before this patch:
      
        make O=/opt/br/abo/cmake-host-find-root-path libxml2 host-mariadb{-dirclean,-configure} && echo $?
        [...]
        >>> host-mariadb 10.1.25 Configuring
        (mkdir -p /opt/br/abo/cmake-host-find-root-path/build/host-mariadb-10.1.25/ && cd /opt/br/abo/cmake-host-find-root-path/build/host-mariadb-10.1.25/ && rm -f CMakeCache.txt && PATH="/opt/br/abo/cmake-host-find-root-path/host/bin:/opt/br/abo/cmake-host-find-root-path/host/sbin:/home/sam/.local/bin:/sbin:/usr/sbin:/bin:/usr/bin"  /usr/bin/cmake /opt/br/abo/cmake-host-find-root-path/build/host-mariadb-10.1.25/ -DCMAKE_INSTALL_SO_NO_EXE=0 -DCMAKE_FIND_ROOT_PATH="/opt/br/abo/cmake-host-find-root-path/host" -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="BOTH" -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="BOTH" -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="BOTH" -DCMAKE_INSTALL_PREFIX="/opt/br/abo/cmake-host-find-root-path/host" -DCMAKE_C_FLAGS="-O2 -I/opt/br/abo/cmake-host-find-root-path/host/include" -DCMAKE_CXX_FLAGS="-O2 -I/opt/br/abo/cmake-host-find-root-path/host/include" -DCMAKE_EXE_LINKER_FLAGS="-L/opt/br/abo/cmake-host-find-root-path/host/lib -Wl,-rpath,/opt/br/abo/cmake-host-find-root-path/host/lib"
        -DCMAKE_ASM_COMPILER="/usr/bin/as" -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++"  -DCMAKE_C_COMPILER_ARG1="" -DCMAKE_CXX_COMPILER_ARG1=""  -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF  -DWITH_SSL=bundled )
        -- Running cmake version 3.8.2
        [...]
        -- Found PkgConfig: /opt/br/abo/cmake-host-find-root-path/host/bin/pkg-config (found version "0.28")
        [...]
        -- Found LibXml2: /opt/br/abo/cmake-host-find-root-path/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libxml2.so (found version "2.9.4")
        [...]
        0
      
      After this patch is applied:
      
        make O=/opt/br/abo/cmake-host-find-root-path libxml2 host-mariadb{-dirclean,-configure} && echo $?
        [...]
        >>> host-mariadb 10.1.25 Configuring
        (mkdir -p /opt/br/abo/cmake-host-find-root-path/build/host-mariadb-10.1.25/ && cd /opt/br/abo/cmake-host-find-root-path/build/host-mariadb-10.1.25/ && rm -f CMakeCache.txt && PATH="/opt/br/abo/cmake-host-find-root-path/host/bin:/opt/br/abo/cmake-host-find-root-path/host/sbin:/home/sam/.local/bin:/sbin:/usr/sbin:/bin:/usr/bin" PKG_CONFIG="/opt/br/abo/cmake-host-find-root-path/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/opt/br/abo/cmake-host-find-root-path/host/lib/pkgconfig:/opt/br/abo/cmake-host-find-root-path/host/share/pkgconfig" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1  /usr/bin/cmake /opt/br/abo/cmake-host-find-root-path/build/host-mariadb-10.1.25/ -DCMAKE_INSTALL_SO_NO_EXE=0 -DCMAKE_FIND_ROOT_PATH="/opt/br/abo/cmake-host-find-root-path/host" -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="BOTH" -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="BOTH" -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="BOTH" -DCMAKE_INSTALL_PREFIX="/opt/br/abo/cmake-host-find-roo
       t-path/host" -DCMAKE_C_FLAGS="-O2 -I/opt/br/abo/cmake-host-find-root-path/host/include" -DCMAKE_CXX_FLAGS="-O2 -I/opt/br/abo/cmake-host-find-root-path/host/include" -DCMAKE_EXE_LINKER_FLAGS="-L/opt/br/abo/cmake-host-find-root-path/host/lib -Wl,-rpath,/opt/br/abo/cmake-host-find-root-path/host/lib" -DCMAKE_ASM_COMPILER="/usr/bin/as" -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++"  -DCMAKE_C_COMPILER_ARG1="" -DCMAKE_CXX_COMPILER_ARG1=""  -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF  -DWITH_SSL=bundled )
        -- Running cmake version 3.8.2
        [...]
        -- Found PkgConfig: /opt/br/abo/cmake-host-find-root-path/host/bin/pkg-config (found version "0.28")
        [...]
        -- Found LibXml2: /usr/lib/libxml2.so (found version "2.9.4")
        [...]
        0
      
      [1] http://lists.busybox.net/pipermail/buildroot/2017-August/199776.html
      
      Reported-by: default avatar"Sigalas, Antonios (Nokia - GR/Athens)" <antonios.sigalas@nokia.com>
      Cc: "Sigalas, Antonios (Nokia - GR/Athens)" <antonios.sigalas@nokia.com>
      Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Signed-off-by: default avatarSamuel Martin <s.martin49@gmail.com>
      Signed-off-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
      c9f9b16a
    • Baruch Siach's avatar
      faad2: security bump to version 2.8.1 · 1e2c245b
      Baruch Siach authored
      Fixes: CVE-2017-9218, CVE-2017-9219, CVE-2017-9220, CVE-2017-9221,
      CVE-2017-9222, CVE-2017-9223, CVE-2017-9253, CVE-2017-9254,
      CVE-2017-9255, CVE-2017-9256, CVE-2017-9257
      
      http://seclists.org/fulldisclosure/2017/Jun/32
      
      
      
      Switch to .tar.bz2 to save some bandwidth.
      
      Add autoreconf since unfortunately upstream tarball does not ship the
      configure script.
      
      Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
      Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
      Signed-off-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
      1e2c245b
    • Baruch Siach's avatar
      nvme: remove the udev optional dependency · 73240a5b
      Baruch Siach authored
      
      
      Upstream removed the udev dependent code in commit 4cbe5888f4bc (nvme-cli:
      fabrics: remove libudev dependency).
      
      Cc: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
      Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
      Signed-off-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
      73240a5b
    • Baruch Siach's avatar
      nvme: fix libuuid test when cross compiling · 8e13f7e1
      Baruch Siach authored
      Use $(LD) to test whether libuuid is installed, so that we check the target,
      not the host.
      
      Fixes:
      http://autobuild.buildroot.net/results/e26/e263ffbf8947374c2aac73ab42edcbf4d9a3600a/
      http://autobuild.buildroot.net/results/53b/53b2d1e0c3cdeafb980389bcfd8a10b6ca48fbc2/
      
      
      
      Cc: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
      Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
      Signed-off-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
      8e13f7e1
    • Bernd Kuhls's avatar
      package/snappy: remove pthread handling for static builds · 6e6208ea
      Bernd Kuhls authored
      Commit 0e2ee0e6 (package.snappy: fix static builds with threads)
      added LIBS=-pthread to configure options to fix static build with
      threads on some architectures. This works for autotools packages. Then,
      commit d26282b3 (package/snappy: bump version, switch to cmake)
      switched to cmake that does not understand the 'LIBS' parameter.
      
      As pointed out by Thomas[1] the special handling of libpthread for
      static builds is not needed anymore: it was needed only to build the
      tests, and these are no longer built. Note that packages that link
      statically with snappy will still need to link with -pthread. Only
      two in-tree packages currently depend on snappy: lua-csnappy depends
      on !BR2_STATIC_LIBS and leveldb adds -pthread from its build system.
      
      Tested with the following musl & uclibc defconfigs which also fix build
      errors:
      http://autobuild.buildroot.net/results/39f/39f9fc4300ddca19e8a533765b46838003752000/
      http://autobuild.buildroot.net/results/886/8860b9259f7a3aecb2ddbfa787be048072bd347b/
      
      [1] http://lists.busybox.net/pipermail/buildroot/2017-July/199549.html
      
      Signed-off-by: default avatarBernd Kuhls <bernd.kuhls@t-online.de>
      Acked-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
      [Baruch: improved commit message]
      Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
      [Arnout: improved commit message more, based on Yann's input]
      Signed-off-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
      6e6208ea
  3. 08 Aug, 2017 14 commits
  4. 04 Aug, 2017 3 commits
  5. 03 Aug, 2017 1 commit
  6. 02 Aug, 2017 12 commits