buildroot.git
4 years agopackage/x11r7/xserver_xorg-server: remove unmaintained versions 1.14.7 & 1.17.4
Bernd Kuhls [Sat, 29 Aug 2020 11:34:03 +0000 (13:34 +0200)]
package/x11r7/xserver_xorg-server: remove unmaintained versions 1.14.7 & 1.17.4

Upstream does not maintain these older versions anymore. Due to security
fixes not being backported to these versions anymore we remove these old
X server versions.

Move current patches from version-specific directory to package directory.

No legacy handling is added for the old versions, since it's simply a
version bump. THe old packages and features (AIGLX) that depend on the
old versions do have legacy handling.

Remove legacy handling for 1.19.*

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
4 years agopackage/amd-catalyst: remove package
Bernd Kuhls [Sat, 29 Aug 2020 11:34:02 +0000 (13:34 +0200)]
package/amd-catalyst: remove package

Current X.org X server is incompatible with this driver.

We no longer support unmaintainted versions of X.org X server.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
4 years agopackage/nvidia-tegra23: remove package
Bernd Kuhls [Sat, 29 Aug 2020 11:34:01 +0000 (13:34 +0200)]
package/nvidia-tegra23: remove package

Current X.org X server is incompatible with this driver.

We no longer support unmaintainted versions of X.org X server.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
4 years agopackage/uhd: propagate toolchain bug 64735 dependency from boost-thread
Gwenhael Goavec-Merou [Tue, 1 Sep 2020 09:37:28 +0000 (11:37 +0200)]
package/uhd: propagate toolchain bug 64735 dependency from boost-thread

boost-thread needs std::current_exception since version 1.71.0 and
https://github.com/boostorg/exception/commit/386f5507cb8ec99c03ca535bea4f8bd61e0de910

std::current_exception depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 as a
result, uhd fails to build on:
In file included from /home/buildroot/autobuild/run/instance-2/output-1/build/uhd-3.15.0.0/host/include/uhd/error.h:74:0,
                 from /home/buildroot/autobuild/run/instance-2/output-1/build/uhd-3.15.0.0/host/include/uhd/types/metadata.h:12,
                 from /home/buildroot/autobuild/run/instance-2/output-1/build/uhd-3.15.0.0/host/lib/types/metadata_c.cpp:8:
/home/buildroot/autobuild/run/instance-2/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/boost/exception/diagnostic_information.hpp: In function 'std::__cxx11::string boost::current_exception_diagnostic_information(bool)':
/home/buildroot/autobuild/run/instance-2/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/boost/exception/diagnostic_information.hpp:54:26: error: 'current_exception' is not a member of 'std'
         else if (auto* p=std::current_exception().__cxa_exception_type())
                          ^
In file included from /home/buildroot/autobuild/run/instance-2/output-1/build/uhd-3.15.0.0/host/include/uhd/error.h:74:0,
                 from /home/buildroot/autobuild/run/instance-2/output-1/build/uhd-3.15.0.0/host/include/uhd/types/ranges.h:12,
                 from /home/buildroot/autobuild/run/instance-2/output-1/build/uhd-3.15.0.0/host/lib/types/ranges_c.cpp:8:
/home/buildroot/autobuild/run/instance-2/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/boost/exception/diagnostic_information.hpp: In function 'std::__cxx11::string boost::current_exception_diagnostic_information(bool)':
/home/buildroot/autobuild/run/instance-2/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/boost/exception/diagnostic_information.hpp:54:26: error: 'current_exception' is not a member of 'std'
         else if (auto* p=std::current_exception().__cxa_exception_type())

So add a dependency to !BR2_TOOLCHAIN_HAS_GCC_BUG_64735

Fix:
 - http://autobuild.buildroot.net/results/0cdbf01df174648cf0dfb34d9506eb80570e99c0/

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
4 years agopackages/{eudev, systemd}: move common users to package/udev
Carlos Santos [Wed, 30 Oct 2019 13:27:59 +0000 (10:27 -0300)]
packages/{eudev, systemd}: move common users to package/udev

Use UDEV_USERS, now that it's suported by virtual packages.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
4 years agopackages/luainterpreter: remove target-finalize hack
Carlos Santos [Wed, 30 Oct 2019 13:27:58 +0000 (10:27 -0300)]
packages/luainterpreter: remove target-finalize hack

Use LUAINTERPRETER_TARGET_FINALIZE_HOOKS, now that it's suported by
virtual packages.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
[Arnout: don't remove relevant comment]

4 years agopackage/pkg-generic.mk: support hooks and tables in virtual packages
Carlos Santos [Wed, 30 Oct 2019 13:27:57 +0000 (10:27 -0300)]
package/pkg-generic.mk: support hooks and tables in virtual packages

Virtual packages are not built but it's useful to allow them to have
permission/device/user tables and target-finalize/rootfs-pre-cmd hooks.

With this change we don't need to duplicate data as currently done in
eudev and systemd user tables, or test if the package is selected to add
a target-finalize hook as in luainterpreter.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
4 years agouredir: remove default value of _SOURCE variable
Arnout Vandecappelle (Essensium/Mind) [Sun, 30 Aug 2020 15:17:53 +0000 (17:17 +0200)]
uredir: remove default value of _SOURCE variable

As reported by check-package.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
4 years agoutil-linux: organize libcap-ng dependency like the others
Arnout Vandecappelle (Essensium/Mind) [Sun, 30 Aug 2020 14:07:03 +0000 (16:07 +0200)]
util-linux: organize libcap-ng dependency like the others

Reformat the dependency on libcap-ng same as other dependencies: in one
line, preceded by a comment that it is used only by setpriv.

This also makes it clear why it's not included in util-linux-libs.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
4 years agoutil-linux: rename UTIL_LINUX_LIBS -> UTIL_LINUX_LINK_LIBS
Arnout Vandecappelle (Essensium/Mind) [Sun, 30 Aug 2020 14:00:41 +0000 (16:00 +0200)]
util-linux: rename UTIL_LINUX_LIBS -> UTIL_LINUX_LINK_LIBS

There was a private variable UTIL_LINUX_LIBS that is used by the
util-linux package. With the addition of the util-linux-libs package,
this is a bit confusing. Therefore, rename the variable to
UTIL_LINUX_LINK_LIBS.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
4 years agopackage/util-linux: build programs and libraries in separate packages
Carlos Santos [Sun, 29 Sep 2019 14:01:35 +0000 (11:01 -0300)]
package/util-linux: build programs and libraries in separate packages

The different tools and libraries in util-linux have a lot of optional
dependencies. When we want to support those optional dependencies, we
can easily generate dependency cycles. For instance, findmount and lsblk
need udev to work correctly, but eudev and systemd both depend libblkid,
which comes from util-linux.

Normal distros (e.g. Debian) solve this by first building a minimal
package that has no dependencies at all, then build the packages that
depend on util-linux, and finally rebuild util-linux with all bells and
whistles. Solve it in Buildroot by means of the following changes:

- Split util-linux into two packages:
  - util-linux-libs, providing lib{blkid,fdisk,mount,smartcols,uuid}.
  - util-linux, providing both the aforementioned libs and the programs.
- Add a blind selection for util-linux-libs, i.e. it is indirectly
  selected according to the util-linux options.
- Make host and target util-linux have a build dependencies on the -libs
  packages.
- Make eudev and systemd have build dependencies on util-linux-libs.
  This can be extended to other packages in the future but is not needed
  right now because the configuration options are backward-compatible.
- Make util-linux have an optional build dependency on the package that
  provides libudev (either eudev or systemd), if it is selected.

Installing util-linux overrides files installed by util-linux-libs but
this is not a problem: it's allowed for a package to overwrite files
from another package, as long as there is a dependency between the two.

util-linux-libs has a Config.in symbol for the package as a whole, but
not for the individual libraries: it simply reuses the symbols of the
full package.

The build dependency of util-linux on util-linux-libs ensures that
util-linux overwrites the files installed by util-linux-libs and not
vice versa. In practice this dependency shouldn't be needed: the only
reason for util-linux-libs to be built is to break a circular
dependency. In that case, there is already a transitive dependency of
util-linux on util-linux-libs, so adding it explicitly is redundant.
Still, better safe than sorry.

host-util-linux-libs is not needed at the moment. It can be added if we
have a dependency cycle problem later.

With this approach we don't need to patch configuration files neither
change packages other than eudev and systemd.

Other packages that require util-linux libraries and whose libraries may
be used by util-linux programs can be updated later. We also don't need
to change any existing defconfig, since all configuration options are
kept in the util-linux package.

Fixes: https://bugs.busybox.net/show_bug.cgi?id=11811
Signed-off-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
4 years agopackage/meson-tools: new package
Dagg Stompler [Fri, 17 Jul 2020 16:46:40 +0000 (19:46 +0300)]
package/meson-tools: new package

Add meson-tools for handling of amlogic boards boot firmware
signature.

Signed-off-by: Dagg Stompler <daggs@gmx.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/udisks/udisks.mk: fix alphabetic ordering of dependencies
Adam Duskett [Sat, 25 Jul 2020 23:06:17 +0000 (16:06 -0700)]
package/udisks/udisks.mk: fix alphabetic ordering of dependencies

This patch makes the upcoming udisks2 version bump patch easier to
read, and also fixes the udisks.mk, so it follows Buildroot's package
guidelines.

Host packages are placed on top of the dependency list, followed by
target dependencies.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/udisks/Config.in: fix alphabetic ordering of selects
Adam Duskett [Sat, 25 Jul 2020 23:06:16 +0000 (16:06 -0700)]
package/udisks/Config.in: fix alphabetic ordering of selects

This patch makes the upcoming udisks2 version bump patch easier to
read, and also fixes the Config.in, so it follows Buildroot's package
guidelines.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/ncmpc: bump to version 0.39
Fabrice Fontaine [Sat, 29 Aug 2020 21:10:53 +0000 (23:10 +0200)]
package/ncmpc: bump to version 0.39

https://raw.githubusercontent.com/MusicPlayerDaemon/ncmpc/v0.39/NEWS

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libcap: bump to version 2.42
Fabrice Fontaine [Sat, 29 Aug 2020 20:57:31 +0000 (22:57 +0200)]
package/libcap: bump to version 2.42

- Drop first patch (already in version:
  https://git.kernel.org/pub/scm/linux/kernel/git/morgan/libcap.git/commit/?id=22f2e207f7824d231aab4de973e547f006e3ea3c)
- Drop second patch (already in version:
  https://git.kernel.org/pub/scm/linux/kernel/git/morgan/libcap.git/commit/?id=786b64b72b5ba3d4b6195f40c0096932d2c72b57)
- Drop third patch (not needed since
  https://git.kernel.org/pub/scm/linux/kernel/git/morgan/libcap.git/commit?id=f1c3ac995d02d4f17b9d15656ab6d58f4c87435a)
- Update indentation in hash file (two spaces)

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/oprofile: bump to version 1.4.0
Fabrice Fontaine [Sat, 29 Aug 2020 20:29:05 +0000 (22:29 +0200)]
package/oprofile: bump to version 1.4.0

- Drop third patch (already in version) and so drop second patch and
  autoreconf
- Update indentation in hash file (two spaces)

https://oprofile.sourceforge.io/release-notes/oprofile-1.4.0

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libmatroska: bump to version 1.6.2
Fabrice Fontaine [Sat, 29 Aug 2020 20:24:48 +0000 (22:24 +0200)]
package/libmatroska: bump to version 1.6.2

Extract from ChangeLog:
 - In release 1.6.1 the version number in CMakeLists.txt wasn't
   updated, affecting the installed cmake and pkgconfig files. The
   version number has been bumped to 1.6.2 in all relevant files now.
 - "KaxBlockAddIDValue" class: this class is no longer marked as
   "mandatory" in order to coincide with the latest specification.

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libidn: bump to version 1.36
Fabrice Fontaine [Sat, 29 Aug 2020 20:17:54 +0000 (22:17 +0200)]
package/libidn: bump to version 1.36

Update indentation in hash file (two spaces)

Extract from NEWS:
 - Fix unlikely memory leak in idna_to_unicode_4z4z().
 - Check codepoint validity in punycode_decode() and punycode_decode().
 - tld: Add U+00EF to .nl TLD table.
 - Indent code.
 - Translation fixes.
 - Update gnulib files.
 - API and ABI is backwards compatible with the previous version.

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libupnpp: bump to version 0.19.3
Fabrice Fontaine [Sat, 29 Aug 2020 20:11:05 +0000 (22:11 +0200)]
package/libupnpp: bump to version 0.19.3

https://www.lesbonscomptes.com/upmpdcli/releases.html#_2020_07_04_libupnpp_0_19_3

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libnpupnp: bump to version 4.0.10
Fabrice Fontaine [Sat, 29 Aug 2020 20:11:04 +0000 (22:11 +0200)]
package/libnpupnp: bump to version 4.0.10

https://www.lesbonscomptes.com/upmpdcli/releases.html#_2020_07_20_libnpupnp_4_0_10

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/gsl: bump to version 2.6
Fabrice Fontaine [Sat, 29 Aug 2020 17:36:41 +0000 (19:36 +0200)]
package/gsl: bump to version 2.6

Update indentation in hash file (two spaces)

http://git.savannah.gnu.org/cgit/gsl.git/tree/NEWS?h=release-2-6

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libcap-ng: bump to version 0.7.11
Fabrice Fontaine [Sat, 29 Aug 2020 20:45:14 +0000 (22:45 +0200)]
package/libcap-ng: bump to version 0.7.11

- Drop patch (already in version) and so autoreconf
- Update indentation in hash file (two spaces)

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/lftp: bump to version 4.9.2
Fabrice Fontaine [Sat, 29 Aug 2020 20:41:10 +0000 (22:41 +0200)]
package/lftp: bump to version 4.9.2

Update indentation in hash file (two spaces)

Extract from NEWS:

- mkdir: fixed exit code with -f option.
- ftp: made ftp:use-pret setting tri-boolean.
- get/mget/put/mput: don't try next files after error if cmd:fail-exit
  is true.
- get/mget: fixed -O option with remote URL and xfer:use-temp-file being
  true.
- mirror: disallow empty patterns; don't delete "..".
- mirror: fixed --on-change with --reverse.
- sftp: fixed a bug with truncated files when packets are reordered
  (finally).

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/freeswitch: bump version to 1.10.5
Bernd Kuhls [Sat, 29 Aug 2020 20:40:05 +0000 (22:40 +0200)]
package/freeswitch: bump version to 1.10.5

Upstream removed spandsp and sofia-sip from source and now uses external
packages, removed patch 0001 which fixed a bug in the internal sofia-sip
code, removed insecure md5 and sha1 hashes.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/sofia-sip: bump version to 1.13.1
Bernd Kuhls [Sat, 29 Aug 2020 20:40:04 +0000 (22:40 +0200)]
package/sofia-sip: bump version to 1.13.1

Rebased patch 0001.

Added patch 0002 previously used for the sofia-sip library which was
bundled with the freeswitch source:
https://git.buildroot.net/buildroot/commit/package/freeswitch?id=3c2e8b2b29a88c35c8a9867537d3ce3d0af85bc2
The bundled library was removed in freeswitch-1.10.4.

Switched upstream to freeswitch repo according to
http://sofia-sip.sourceforge.net/

"This repository is not currently maintained.

 The FreeSWITCH project hosts a currently maintained version of this
 library at https://github.com/freeswitch/sofia-sip"

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/spandsp: bump version to 3.0.0
Bernd Kuhls [Sat, 29 Aug 2020 20:40:03 +0000 (22:40 +0200)]
package/spandsp: bump version to 3.0.0

Reformatted hashes.

Switched upstream to freeswitch repo which is maintained by the author
of spandsp:
https://github.com/signalwire/freeswitch/issues/681#issuecomment-671498542

The previous project URL http://www.soft-switch.org/ is not reachable
anymore.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/gupnp: bump to version 1.2.4
Fabrice Fontaine [Sat, 29 Aug 2020 18:39:33 +0000 (20:39 +0200)]
package/gupnp: bump to version 1.2.4

Extract from NEWS:
- Fix subscription check on V6 link-local addresses
- Add autofree function for GUPnPServiceProxyAction

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/i2pd: bump to version 2.33.0
Fabrice Fontaine [Sat, 29 Aug 2020 18:25:52 +0000 (20:25 +0200)]
package/i2pd: bump to version 2.33.0

>From https://github.com/PurpleI2P/i2pd/releases/tag/2.33.0:
 - UDP tunnels through ECIES-X25519-AEAD-Ratchet
 - Shared transient addresses
 - ECIES-X25519-AEAD-Ratchet and multiple encryption keys through I2CP
 - Pre-calculated x25519 ephemeral keys
 - crypto.ratchet.inboundTags parameter
 - Don't save invalid address to AddressBook
 - Correct ECDSA signatures names in SAM
 - New webconsole layout
 - Shared routing path for datagram session
 - Change datagram routing path if nothing comes back in 10 seconds
 - Updated reseed servers list
 - Don't connect through terminated SAM destination

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/botan: bump to version 2.15.0
Fabrice Fontaine [Sat, 29 Aug 2020 15:44:49 +0000 (17:44 +0200)]
package/botan: bump to version 2.15.0

https://botan.randombit.net/news.html

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libblockdev: add support for swap plugin
Adam Duskett [Sat, 25 Jul 2020 23:06:15 +0000 (16:06 -0700)]
package/libblockdev: add support for swap plugin

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libblockdev: add support for part plugin
Adam Duskett [Sat, 25 Jul 2020 23:06:14 +0000 (16:06 -0700)]
package/libblockdev: add support for part plugin

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libblockdev: add support for mdraid plugin
Adam Duskett [Sat, 25 Jul 2020 23:06:13 +0000 (16:06 -0700)]
package/libblockdev: add support for mdraid plugin

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libblockdev: add support for lvm plugin
Adam Duskett [Sat, 25 Jul 2020 23:06:12 +0000 (16:06 -0700)]
package/libblockdev: add support for lvm plugin

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libblockdev: add support for loop plugin
Adam Duskett [Sat, 25 Jul 2020 23:06:11 +0000 (16:06 -0700)]
package/libblockdev: add support for loop plugin

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libblockdev: add support for fs plugin
Adam Duskett [Sat, 25 Jul 2020 23:06:10 +0000 (16:06 -0700)]
package/libblockdev: add support for fs plugin

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agoRevert "package/parted: disable on uclibc"
Waldemar Brodkorb [Wed, 27 May 2020 09:50:58 +0000 (11:50 +0200)]
Revert "package/parted: disable on uclibc"

Commit 25b1dc4613326b1b2674ab07484993991ab90886 disabled parted on
uClibc due to the following build failure:

atari.c:221:9: error: dereferencing pointer to incomplete type 'struct __uclibc_locale_struct'
  return isalnum_l(part->id[0], atr_c_locale)

This was fixed in upstream uClibc-ng as of upstream commit
d1a3ca7ca56630fddde7311a0474eed4a21335a7, which was part of the 1.0.33
uClibc-ng release. On the Buildroot side, even though Buildroot
2020.02 was using uClibc-ng 1.0.32, we already had this patch
backported.

So we can now safely re-enable parted for uClibc-ng toolchains, as
well as its reverse dependencies.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libblockdev: add support for crypto plugin
Adam Duskett [Sat, 25 Jul 2020 23:06:09 +0000 (16:06 -0700)]
package/libblockdev: add support for crypto plugin

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libbytesize: new package
Adam Duskett [Sat, 25 Jul 2020 23:06:08 +0000 (16:06 -0700)]
package/libbytesize: new package

Libbytesize is a small library providing a C "class" for working with
arbitrary big sizes in bytes.

The mdraid plugin for libblockdev depends on this package, which newer
versions of udisks require when building with the udisks daemon
enabled.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libblockdev: new package
Adam Duskett [Sat, 25 Jul 2020 23:06:07 +0000 (16:06 -0700)]
package/libblockdev: new package

libblockdev is a C library supporting GObject introspection for
manipulation of block devices. It has a plugin-based architecture
where each technology (like LVM, Btrfs, MD RAID, Swap,...) is
implemented in a separate plugin, possibly with multiple
implementations.

gobject-introspection is not a strict dependency and may be disabled
via a configure flag.

This is the base package with everything disabled, the subsequent
patches in this series will add more options necessary to bump udisks
to the latest.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agosupport/scripts/gen-bootlin-toolchains: be less verbose
Yann E. MORIN [Sat, 29 Aug 2020 14:10:02 +0000 (16:10 +0200)]
support/scripts/gen-bootlin-toolchains: be less verbose

Drop the debug-level print as noticed by Titouan.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Titouan Christophe <titouan.christophe@railnova.eu>
4 years agosupport/testing/test/toolchain/test_external_bootlin: new test cases
Thomas Petazzoni [Fri, 14 Aug 2020 19:52:35 +0000 (21:52 +0200)]
support/testing/test/toolchain/test_external_bootlin: new test cases

This commit adds the new test cases generated automatically by the
bl-toolchains-gen script, to test the integration of the Bootlin
toolchains.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
4 years agotoolchain/toolchain-external/toolchain-external-bootlin: finalize package addition
Thomas Petazzoni [Fri, 14 Aug 2020 19:52:34 +0000 (21:52 +0200)]
toolchain/toolchain-external/toolchain-external-bootlin: finalize package addition

This commit wires-up the toolchain-external-bootlin package into
Buildroot by:

 - Adding
   toolchain/toolchain-external/toolchain-external-bootlin/Config.in,
   which is not generated by the bl-toolchains-gen script as it is a
   static file that does not depend on the list and characteristics of
   available Bootlin toolchains.

 - Including that file, as well as the Config.in.options file, from
   toolchain/toolchain-external/Config.in.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: Titouan Christophe <titouan.christophe@railnova.eu>
Tested-by: Titouan Christophe <titouan.christophe@railnova.eu>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
4 years agotoolchain/toolchain-external/toolchain-external-bootlin: add auto-generated files
Thomas Petazzoni [Fri, 14 Aug 2020 19:52:33 +0000 (21:52 +0200)]
toolchain/toolchain-external/toolchain-external-bootlin: add auto-generated files

This commit adds the contents of the
toolchain/toolchain-external/toolchain-external-bootlin/ files
generated by bl-toolchains-gen, unmodified.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Tested-by: Titouan Christophe <titouan.christophe@railnova.eu>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
4 years agosupport/scripts/gen-bootlin-toolchains: add new script to support Bootlin toolchains
Thomas Petazzoni [Fri, 14 Aug 2020 19:52:31 +0000 (21:52 +0200)]
support/scripts/gen-bootlin-toolchains: add new script to support Bootlin toolchains

https://toolchains.bootlin.com/ has been providing for a few years a
number of ready-to-use pre-built toolchains, for a wide range of
architectures (which it turns out, are all built using Buildroot).

While toolchains.bootlin.com provides Buildroot config fragments to
easily use those toolchains with Buildroot (see [0] for example), this
is not visible anywhere. So instead, we would like to add support for
these toolchains in Buildroot just like we have existing support for
Linaro, ARM, Synopsys, etc. toolchains.

[0] https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64/fragments/aarch64--glibc--bleeding-edge-2020.02-2.frag

However, the number of toolchains provided by toolchains.bootlin.com
is really large, and they are regularly updated. Maintaining that
manually would be time consuming and error-prone. So instead, this
commit introduces a script that automatically generates:

 - toolchain/toolchain-external/toolchain-external-bootlin/Config.in.options
 - toolchain/toolchain-external/toolchain-external-bootlin/toolchain-external-bootlin.mk
 - toolchain/toolchain-external/toolchain-external-bootlin/toolchain-external-bootlin.hash
 - support/testing/tests/toolchain/test_external_bootlin.py

We create a single external toolchain package, with a Kconfig "choice"
as a sub-option to select the toolchain variant to be used. The script
contains a Python dict that provides the mapping between the
toolchains provided by toolchains.bootlin.com, and the architecture
options/variants they are applicable to.

The test cases allow to verify that the toolchain configuration is
correct, and that it is able to build a Busybox based system. It
doesn't do any runtime testing as such testing is already done by
toolchains.bootlin.com: the test cases here are only meant to verify
that the toolchain-external-bootlin package works as expected.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: Titouan Christophe <titouan.christophe@railnova.eu>
Tested-by: Titouan Christophe <titouan.christophe@railnova.eu>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
4 years agopackage/docker-cli: drop <pkg>_WORKSPACE variable
Thomas Petazzoni [Sat, 29 Aug 2020 13:02:30 +0000 (15:02 +0200)]
package/docker-cli: drop <pkg>_WORKSPACE variable

Since the go.mod integration, the <pkg>_WORKSPACE variable is useless,
so drop it.

Reported-by: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agodocs/manual/adding-packages-golang.txt: update following go.mod integration
Thomas Petazzoni [Sat, 29 Aug 2020 12:43:11 +0000 (14:43 +0200)]
docs/manual/adding-packages-golang.txt: update following go.mod integration

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/mender-artifact: drop custom GOFLAGS
Thomas Petazzoni [Sat, 29 Aug 2020 12:04:19 +0000 (14:04 +0200)]
package/mender-artifact: drop custom GOFLAGS

Now that we have switched to the go.mod integration, all Go packages
are built with -mod=vendor, so there's no need to have custom GOFLAGS
in mender-artifact.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/docker-proxy: drop <pkg>_WORKSPACE variable
Christian Stewart [Sat, 29 Aug 2020 09:48:23 +0000 (11:48 +0200)]
package/docker-proxy: drop <pkg>_WORKSPACE variable

With the go.mod integration, the <pkg>_WORKSPACE variable has become
useless, drop it.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/docker-engine: drop <pkg>_SRC_SUBDIR variable
Christian Stewart [Sat, 29 Aug 2020 09:42:00 +0000 (11:42 +0200)]
package/docker-engine: drop <pkg>_SRC_SUBDIR variable

With the go.mod integration, the DOCKER_ENGINE_SRC_SUBDIR has become
useless, drop it.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/docker-containerd: drop <pkg>_WORKSPACE variable
Christian Stewart [Sat, 29 Aug 2020 09:39:46 +0000 (11:39 +0200)]
package/docker-containerd: drop <pkg>_WORKSPACE variable

With the go.mod integration, the <pkg>_WORKSPACE variable is no longer
needed, drop it.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/runc: drop <pkg>_WORKSPACE variable
Christian Stewart [Thu, 13 Aug 2020 21:32:15 +0000 (14:32 -0700)]
package/runc: drop <pkg>_WORKSPACE variable

With the go.mod integration, the <pkg>_WORKSPACE variable has become
useless, so drop it.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/go: implement go modules integration
Christian Stewart [Sat, 29 Aug 2020 09:28:37 +0000 (11:28 +0200)]
package/go: implement go modules integration

The Go compiler needs to know the "import path" to the root of package
source repositories. Previously, this was done by creating a fake
_gopath in the build directory and symlinking the package source into
that path.

Go has deprecated the GOPATH mechanism in favor of a new approach -
Modules - which specifies the root import path (and dependencies) in a
"go.mod" file. This commit moves Buildroot to use the new go.mod
approach, which requires:

 - Passing GO111MODULE=on when building host or target Go packages.

 - Passing GOPROXY=off and -mod=vendor to prevent the Go module system
   from downloading by itself sources from the Internet. We currently
   only support Go packages that have all their dependencies in their
   source tree in "vendor" directories.

 - Specifying a <pkg>_GOMOD variable, which is used both to create a
   minimal go.mod file in the package source tree if it exists, and to
   invoke the right build targets. Indeed, all elements in
   <pkg>_BUILD_TARGETS are now relative to <pkg>_GOMOD.

Reference: https://github.com/golang/go/wiki/Modules

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/docker-cli: define <pkg>_GOMOD variable
Christian Stewart [Sat, 29 Aug 2020 09:44:33 +0000 (11:44 +0200)]
package/docker-cli: define <pkg>_GOMOD variable

In preparation for the go.mod integration, define the DOCKER_CLI_GOMOD
variable.

We also use it as a handy shortcut when defining DOCKER_CLI_LDFLAGS.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/docker-engine: define <pkg>_GOMOD variable
Christian Stewart [Sat, 29 Aug 2020 09:40:58 +0000 (11:40 +0200)]
package/docker-engine: define <pkg>_GOMOD variable

In preparation for the go.mod integration, define the
DOCKER_ENGINE_GOMOD variable.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/docker-containerd: define <pkg>_GOMOD variable
Christian Stewart [Sat, 29 Aug 2020 09:38:11 +0000 (11:38 +0200)]
package/docker-containerd: define <pkg>_GOMOD variable

In preparation for the go.mod integration, define the
DOCKER_CONTAINERD_GOMOD variable.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/go: drop GO_TARGET_ENV / GO_HOST_ENV
Thomas Petazzoni [Sat, 29 Aug 2020 09:15:49 +0000 (11:15 +0200)]
package/go: drop GO_TARGET_ENV / GO_HOST_ENV

Now that GO_TARGET_ENV and GO_HOST_ENV are just aliases to
HOST_GO_TARGET_ENV and HOST_GO_HOST_ENV, drop the former two, and use
the latter two directly.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/go: re-integrate GO_COMMON_ENV into HOST_GO_COMMON_ENV
Thomas Petazzoni [Sat, 29 Aug 2020 09:14:35 +0000 (11:14 +0200)]
package/go: re-integrate GO_COMMON_ENV into HOST_GO_COMMON_ENV

There is no point in having some common Go env variables defined in
pkg-golang.mk:GO_COMMON_ENV, and some in
package/go/go.mk:HOST_GO_COMMON_ENV. Let's move all of them to
package/go/go.mk:HOST_GO_COMMON_ENV.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/go: pass CFLAGS/CXXFLAGS/LDFLAGS in HOST_GO_TARGET_ENV
Thomas Petazzoni [Sat, 29 Aug 2020 09:13:07 +0000 (11:13 +0200)]
package/go: pass CFLAGS/CXXFLAGS/LDFLAGS in HOST_GO_TARGET_ENV

HOST_GO_HOST_ENV is explicitly specifying
HOST_CGO_{CFLAGS,CXXFLAGS,LDFLAGS}, so let's do the same for target
packages.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/go: introduce HOST_GO_COMMON_ENV
Thomas Petazzoni [Sat, 29 Aug 2020 09:04:25 +0000 (11:04 +0200)]
package/go: introduce HOST_GO_COMMON_ENV

A few variables are common between HOST_GO_TARGET_ENV and
HOST_GO_HOST_ENV, so let's introduce a HOST_GO_COMMON_ENV variable for
those few common ones (which will increase in follow-up commits).

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/go: add a HOST_GO_HOST_ENV variable
Thomas Petazzoni [Sat, 29 Aug 2020 08:58:42 +0000 (10:58 +0200)]
package/go: add a HOST_GO_HOST_ENV variable

package/go/go.mk provides a HOST_GO_TARGET_ENV which provides a useful
set of environment variables needed to build target Go packages.

For host packages, we simply have package/pkg-golang.mk defining
GO_HOST_ENV to specify CFLAGS/LDFLAGS, but that's it: we don't pass an
explicit path to the compiler, we don't pass GO111MODULE, GOCACHE,
GOROOT, etc.

This commit introduces a HOST_GO_HOST_ENV variable that provides the
appropriate set of environment variables to use when building host
golang packages.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/watchdog: drop AUTORECONF
Thomas Petazzoni [Sat, 29 Aug 2020 12:34:15 +0000 (14:34 +0200)]
package/watchdog: drop AUTORECONF

The upstream tarball provides an already generated configure script,
which works fine, so there's no need to AUTORECONF.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agoDEVELOPERS: add Alejandro González for watchdog
Thomas Petazzoni [Sat, 29 Aug 2020 12:33:00 +0000 (14:33 +0200)]
DEVELOPERS: add Alejandro González for watchdog

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/watchdog: new package
Alejandro González [Sat, 8 Aug 2020 21:48:15 +0000 (23:48 +0200)]
package/watchdog: new package

watchdog is a flexible watchdog daemon that improves on the already
available Busybox watchdog daemon by providing more advanced features,
like defining custom system status checks and executing repair scripts
to react upon invariants that don't hold.

Due to "watchdog" being also provided by Busybox, we need to make that
package/watchdog installs the watchdog binary in the same place as
Busybox (i.e in /sbin), and need to add a dependency of Busybox on
this new watchdog package.

Signed-off-by: Alejandro González <alejandro.gonzalez.correo@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/wayland-utils: new package
Peter Seiderer [Fri, 31 Jul 2020 22:13:47 +0000 (00:13 +0200)]
package/wayland-utils: new package

From [1] (for details see [2]):

This is first release of wayland-utils which only contains (for now)
wayland-info, a utility for displaying information about the Wayland
protocols supported by a Wayland compositor.

wayland-info is basically a standalone version of weston-info as found
in weston repository.

[1] https://lists.freedesktop.org/archives/wayland-devel/2020-July/041565.html
[2] https://lists.freedesktop.org/archives/wayland-devel/2020-July/041520.html

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/mender-artifact: do not download modules during the build process
Adam Duskett [Thu, 13 Aug 2020 20:29:52 +0000 (13:29 -0700)]
package/mender-artifact: do not download modules during the build process

By default, go will attempt to download needed modules before building, which
is not desirable. This behavior also causes permission issues when cleaning,
as go downloads modules as read-only by default. Because mender-artifact
includes the modules in the vendor directory, mod=vendor prevents the package
from downloading the go modules during the build process and prevents
permission issues when cleaning.

Fixes:
http://autobuild.buildroot.net/results/d5bcaca73ae74fe8b0ebd39b6331564cd639fb66

Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agoConfig.in.legacy: adjust location of gdb 8.1 legacy option
Thomas Petazzoni [Sat, 29 Aug 2020 11:50:52 +0000 (13:50 +0200)]
Config.in.legacy: adjust location of gdb 8.1 legacy option

The gdb 8.1 option will have been removed from 2020.11, not 2020.08.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/easyframes: new package
Horatiu Vultur [Sat, 29 Aug 2020 07:24:16 +0000 (09:24 +0200)]
package/easyframes: new package

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/uhd: new package
Gwenhael Goavec-Merou [Mon, 24 Aug 2020 12:02:46 +0000 (14:02 +0200)]
package/uhd: new package

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/powertop: bump version to 2.13
Sergio Prado [Fri, 28 Aug 2020 09:46:39 +0000 (06:46 -0300)]
package/powertop: bump version to 2.13

Also separate the fields in the hash file by two spaces and add pgp
signature check.

Since we're now using the default value for POWERTOP_SOURCE, drop this
variable definition.

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agoconfigs/roseapplepi: switch to mainline 5.7.19 kernel
Peter Korsgaard [Fri, 28 Aug 2020 11:30:51 +0000 (13:30 +0200)]
configs/roseapplepi: switch to mainline 5.7.19 kernel

Mainline Linux now has basic s500/roseapplepi support, so switch to that to
get rid of the dependency on gcc7.  Add two patches for the dts / fix that
didn't make it for kernel 5.7.

The mainline kernel does not yet have support for the mmc interface, so
change to initramfs for now.  Patches for mmc support have been posted
recently, so this can be reverted once they show up in a stable kernel:

https://lore.kernel.org/lkml/cover.1593124368.git.cristian.ciocaltea@gmail.com/

The owl serial port is called ttyOWLn in mainline, so adjust the bootargs to
match.  Also drop the unneeded execute permission on uEnv.txt.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agosupport/scripts/cve-checker: add a per configuration CVE checker
Gregory CLEMENT [Fri, 24 Jul 2020 15:43:53 +0000 (17:43 +0200)]
support/scripts/cve-checker: add a per configuration CVE checker

This scripts takes as entry on stdin a JSON description of the package
used for a given configuration. This description is the one generated
by "make show-info".

The script generates the list of all the packages used and if they are
affected by a CVE. The output is either a JSON or an HTML file similar
to the one generated by pkg-stats.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Tested-by: Matthew Weber <matthew.weber@rockwellcollins.com>=
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agosupport/scripts: make CVE class independent of the Packaage class
Gregory CLEMENT [Fri, 24 Jul 2020 15:43:52 +0000 (17:43 +0200)]
support/scripts: make CVE class independent of the Packaage class

The affects method of the CVE uses the Package class defined in
pkg-stats. The purpose of migrating the CVE class outside of pkg-stats
was to be able to reuse it from other scripts. So let's remove the
Package dependency and only use the needed information.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/pkg-utils.mk: report the list of ignored CVEs in show-info
Gregory CLEMENT [Fri, 24 Jul 2020 15:43:51 +0000 (17:43 +0200)]
package/pkg-utils.mk: report the list of ignored CVEs in show-info

Add the list of the CVEs to ignore for each package because they
already have a fix for it.

This information will be useful for a cve-checker.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agosupport/scripts/cve.py: use the JSON data in 1.1 schema
Gregory CLEMENT [Fri, 24 Jul 2020 15:43:50 +0000 (17:43 +0200)]
support/scripts/cve.py: use the JSON data in 1.1 schema

In 2019, the JSON vulnerability feeds switched their schema from
version 1.0 to 1.1.

The main difference is the removal of the "affects" element that we
were using to check if a package was affected by a CVE.

This information is now available in the "configuration" element which
contains the cpeid as well as properties about the versions
affected. Instead of having a list of the versions affected, with
these properties, it is possible to have a range of versions.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agosupport/scripts/pkg-stats: move CVE related code to a separate module
Gregory CLEMENT [Fri, 24 Jul 2020 15:43:49 +0000 (17:43 +0200)]
support/scripts/pkg-stats: move CVE related code to a separate module

In order to be able to use the CVE checking logic outside of
pkg-stats, move the CVE class in a module that can be used by other
scripts.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agosupport/scripts/pkg-stats: consider "-" as a wildcard when doing CVE version matching
Thomas Petazzoni [Thu, 27 Aug 2020 16:55:08 +0000 (18:55 +0200)]
support/scripts/pkg-stats: consider "-" as a wildcard when doing CVE version matching

Some CVE entries in the NVD database have version_value set to "-",
which seems to indicate that it applies to all versions of the
software project, or that they don't really know which versions are
affected, and which are not.

So, for the benefit of doubt, it seems more appropriate to consider
such CVEs as affecting our packages.

This makes the total number of CVEs affecting our next branch jump
from 141 CVEs to 658 CVEs, but that number will go back down once we
switch to the JSON 1.1 schema. Indeed, in the JSON 1.0 schema, there
are often cases where a version_value is set to "=" *and* specific
versions are set to.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agosupport/scripts/pkg-stats: drop erroneous "break" in CVE.affects()
Thomas Petazzoni [Thu, 27 Aug 2020 15:47:07 +0000 (17:47 +0200)]
support/scripts/pkg-stats: drop erroneous "break" in CVE.affects()

Commit 7d2779ecbb142b62f8913d30352b11058f922b2a
("support/script/pkg-stats: handle exception when version comparison
fails") erroneousy introduced a "break" within a try/expect block.

This break has the unfortunate consequence that every CVE that was
using the <= operator was skipped, and according to the current
CVE statistics, made us miss 74 CVEs out of 141 CVEs.

Here is for reference the complete list of CVEs we missed:

 - gnupg
   CVE-2006-3082
   CVE-2019-13050

 - jhead
   CVE-2020-6624
   CVE-2020-6625

 - patch
   CVE-2018-6952
   CVE-2019-20633

 - json-c
   CVE-2020-12762

 - git
   CVE-2018-1000110
   CVE-2018-1000182
   CVE-2019-1003010
   CVE-2020-2136

 - iperf2
   CVE-2016-4303

 - libtorrent
   CVE-2009-1760
   CVE-2016-5301

 - lua
   CVE-2020-15888
   CVE-2020-15889
   CVE-2020-15945
   CVE-2020-24342

 - openvpn
   CVE-2020-7224

 - smack
   CVE-2016-10027

 - bashtop
   CVE-2019-18276

 - links
   CVE-2008-3319

 - argus
   CVE-2011-3332

 - libraw
   CVE-2020-15503

 - netcat
   CVE-2008-5727
   CVE-2008-5728
   CVE-2008-5729
   CVE-2008-5730
   CVE-2008-5742
   CVE-2015-2214

 - subversion
   CVE-2017-1000085
   CVE-2018-1000111
   CVE-2020-2111

 - python
   CVE-2013-1753
   CVE-2015-5652
   CVE-2017-17522
   CVE-2017-18207
   CVE-2019-20907
   CVE-2019-9674

 - cereal
   CVE-2020-11104
   CVE-2020-11105

 - opencv
   CVE-2017-1000450
   CVE-2017-12597
   CVE-2017-12598
   CVE-2017-12599
   CVE-2017-12600
   CVE-2017-12601
   CVE-2017-12602
   CVE-2017-12603
   CVE-2017-12604
   CVE-2017-12605
   CVE-2017-12606
   CVE-2017-12862
   CVE-2017-12863
   CVE-2017-12864
   CVE-2019-15939

 - docker
   CVE-2015-1843
   CVE-2015-3627
   CVE-2015-3630
   CVE-2015-3631
   CVE-2016-3697
   CVE-2017-14992
   CVE-2019-16884

 - trousers
   CVE-2020-24330
   CVE-2020-24331
   CVE-2020-24332

 - libcroco
   CVE-2020-12825

 - libpupnp
   CVE-2020-13848

 - openjpeg
   CVE-2020-15389

 - flex
   CVE-2015-1773

 - libesmtp
   CVE-2019-19977

 - ed
   CVE-2015-2987

 - libmad
   CVE-2018-7263

 - grub
   CVE-2020-15705

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/linuxptp: bump version to 3.0
Heiko Thiery [Thu, 27 Aug 2020 11:05:39 +0000 (13:05 +0200)]
package/linuxptp: bump version to 3.0

- remove patch that is in new version
- update indentation in hash file (two spaces)

Run tests:

             br-arm-full [1/6]: OK
  br-arm-cortex-a9-glibc [2/6]: OK
   br-arm-cortex-m4-full [3/6]: OK
          br-x86-64-musl [4/6]: OK
      br-arm-full-static [5/6]: OK
            sourcery-arm [6/6]: OK

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libnss: bump version to 3.56
Giulio Benetti [Wed, 26 Aug 2020 23:25:42 +0000 (01:25 +0200)]
package/libnss: bump version to 3.56

Bump version to 3.56. Unfortunately local patch is still pending
upstream and not applied and I've just asked why:
https://bugzilla.mozilla.org/show_bug.cgi?id=1642174

This version requires NSPR 4.28.

Release Notes:
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_3.56_release_notes

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libnspr: bump version to 4.28
Giulio Benetti [Wed, 26 Aug 2020 23:25:41 +0000 (01:25 +0200)]
package/libnspr: bump version to 4.28

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/netdata: bump to 1.21.1
Marcin Niestroj [Wed, 29 Apr 2020 22:26:09 +0000 (00:26 +0200)]
package/netdata: bump to 1.21.1

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/python-packaging: new package
Marcin Niestroj [Thu, 30 Apr 2020 13:11:29 +0000 (15:11 +0200)]
package/python-packaging: new package

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Reviewed-by: Asaf Kahlon <asafka7@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/python-ansicolors: new package
Marcin Niestroj [Thu, 30 Apr 2020 13:11:03 +0000 (15:11 +0200)]
package/python-ansicolors: new package

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Reviewed-by: Asaf Kahlon <asafka7@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/iptraf-ng: add dependency on Linux headers >= 3.14
Jugurtha BELKALEM [Thu, 27 Aug 2020 09:18:21 +0000 (11:18 +0200)]
package/iptraf-ng: add dependency on Linux headers >= 3.14

iptraf-ng uses a number of definitions (like PACKET_KERNEL and
PACKET_USERSPACE) provided by the Linux kernel headers, which were
introduced in Linux 3.14 [1], so we need to add a dependency on
BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14.

[1] https://elixir.bootlin.com/linux/v3.14-rc1/source/include/uapi/linux/if_packet.h

Fixes:

  http://autobuild.buildroot.net/results/480b00b4b264cfe1da533c762595d21b72fa8211/

Signed-off-by: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/netopeer2: bump version to 1.1.39
Heiko Thiery [Thu, 27 Aug 2020 11:17:32 +0000 (13:17 +0200)]
package/netopeer2: bump version to 1.1.39

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/sysrepo: bump version to 1.4.70
Heiko Thiery [Thu, 27 Aug 2020 11:05:13 +0000 (13:05 +0200)]
package/sysrepo: bump version to 1.4.70

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libyang: bump version to 1.0.184
Heiko Thiery [Thu, 27 Aug 2020 11:04:59 +0000 (13:04 +0200)]
package/libyang: bump version to 1.0.184

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/kodi-visualisation-goom: bump version to 2.2.2-Leia
Bernd Kuhls [Wed, 26 Aug 2020 17:15:45 +0000 (19:15 +0200)]
package/kodi-visualisation-goom: bump version to 2.2.2-Leia

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/mutt: bump version to 1.14.6
Sergio Prado [Tue, 25 Aug 2020 22:40:23 +0000 (19:40 -0300)]
package/mutt: bump version to 1.14.6

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/nano: bump version to 5.2
Sergio Prado [Tue, 25 Aug 2020 22:59:24 +0000 (19:59 -0300)]
package/nano: bump version to 5.2

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/nasm: bump version to 2.15.04
Sergio Prado [Tue, 25 Aug 2020 23:12:14 +0000 (20:12 -0300)]
package/nasm: bump version to 2.15.04

Also separate the fields in the hash file by two spaces.

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/frr: new package
Vadim Kochan [Tue, 25 Feb 2020 15:53:22 +0000 (17:53 +0200)]
package/frr: new package

FRR is free software that implements and manages various IPv4 and IPv6
routing protocols. It runs on nearly all distributions of Linux and
BSD as well as Solaris and supports all modern CPU architectures.

FRR currently supports the following protocols:

    BGP
    OSPFv2
    OSPFv3
    RIPv1
    RIPv2
    RIPng
    IS-IS
    PIM-SM/MSDP
    LDP
    BFD
    Babel
    PBR
    OpenFabric
    VRRP
    EIGRP (alpha)
    NHRP (alpha)

Some not-needed features were disabled to minimize package
dependencies:

    - POSIX capabilities
    - RPKi

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
[Thomas:
 - select bash instead of depending on it
 - switch to version 7.4, since 7.3 was not building (it's using
   TRUE/FALSE, which are not standard, and this was fixed in 7.4)
 - use the github macro to define FRR_SITE
 - use host-python3 instead of host-python]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libyang: enable LYD_PRIV option for frr package
Vadim Kochan [Tue, 25 Feb 2020 15:53:21 +0000 (17:53 +0200)]
package/libyang: enable LYD_PRIV option for frr package

This option is required by frr package, so enable it by default as there
is no size difference with or without this option enabled.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/iptraf-ng: bump to version 1.2.1
Jugurtha BELKALEM [Wed, 19 Aug 2020 10:41:31 +0000 (12:41 +0200)]
package/iptraf-ng: bump to version 1.2.1

IPTraf-ng is a console-based network monitoring program for Linux that
displays information about IP traffic. It returns such information as:

- Current TCP connections
- UDP, ICMP, OSPF, and other types of IP packets
- Packet and byte counts on TCP connections
- IP, TCP, UDP, ICMP, non-IP, and other packet and byte counts
- TCP/UDP counts by ports
- Packet counts by packet sizes
- Packet and byte counts by IP address
- Interface activity
- Flag statuses on TCP packets
- LAN station statistics

V1.2.1 fixed multiple issues in V1.1.4 like :
- Introduce packet capturing abstraction: add recvmmsg(),
  TPACKET_V2 and TPACKET_V3 to capture in multigigabit speeds.
- Handling mlock() failures and carry on execution (without
  crashing iptraf-ng).
- Properly account non-IP packets.
- Show dropped packet count.

Signed-off-by: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/collectd: add nut support
Bernd Kuhls [Sat, 22 Aug 2020 08:56:43 +0000 (10:56 +0200)]
package/collectd: add nut support

The NUT plugin has status "supported":
https://collectd.org/wiki/index.php/Plugin:NUT

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/nut: install to staging
Bernd Kuhls [Sat, 22 Aug 2020 08:56:42 +0000 (10:56 +0200)]
package/nut: install to staging

Needed for collectd plugin.

Added --with-dev to enable install of pkgconfig files:
https://github.com/networkupstools/nut/blob/master/lib/Makefile.am#L3

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/{mesa3d, mesa3d-headers}: bump version to 20.1.6
Bernd Kuhls [Sat, 22 Aug 2020 06:23:19 +0000 (08:23 +0200)]
package/{mesa3d, mesa3d-headers}: bump version to 20.1.6

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/python-sh: bump to version 1.13.1
Asaf Kahlon [Mon, 24 Aug 2020 17:21:20 +0000 (20:21 +0300)]
package/python-sh: bump to version 1.13.1

Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
4 years agopackage/libuhttpd: bump version to 3.2.0
Jianhui Zhao [Mon, 24 Aug 2020 16:14:17 +0000 (00:14 +0800)]
package/libuhttpd: bump version to 3.2.0

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>