Commit Graph

228 Commits

Author SHA1 Message Date
Ovidiu Panait dbf619019d net-snmp: upgrade 5.8 -> 5.9
Upgrade net-snmp 5.8 -> 5.9:
* refresh patches
* drop backports:
  https://github.com/net-snmp/net-snmp/commit/5f881d3bf24599b90d67a45cae7a3eb099cd71c9
  https://github.com/net-snmp/net-snmp/commit/6e1329bde834e0edcfadb88d3c05e6015e945638
  https://github.com/net-snmp/net-snmp/commit/abdcb6af8df352a257a7092c1649471af1e4e97b
  https://github.com/net-snmp/net-snmp/commit/21260fdd60c172839f997fb6f888a6e21c6825eb

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-31 13:04:43 -07:00
Khem Raj a49b1ab1ad openlldp: Update to latest master
Backport patches from https://github.com/intel/openlldp/pull/55
to fix build with -fno-common

Append SRCPV to PV since we are not at exact release point

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-13 22:32:07 -07:00
Khem Raj e24ea72c2b quagga: Use -fcommon to compile
clang11 and gcc10 have switched to using -fno-common by default this
hoowever still needs to use -fcommon until fixed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-13 22:32:07 -07:00
Zheng Ruoqin e85644f929 babeld: upgrade 1.9.1 -> 1.9.2
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-07-20 10:06:09 -07:00
Mingde (Matthew) Zeng 3063ae3b14 net-snmp, openjpeg: add proper CVE tags to patches
Signed-off-by: Mingde (Matthew) Zeng <matthew.zeng@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-07-16 07:14:00 -07:00
Armin Kuster 96a63b1ecf net-snmp: Security fix CVE-2019-20892
Source: net-snmp.org
MR: 104509
Type: Security Fix
Disposition: Backport from https://github.com/net-snmp/net-snmp/commit/5f881d3bf24599b90d67a45cae7a3eb099cd71c9
ChangeID: 206d822029d48d904864f23fd1b1af69dffc26c8
Description:

Fixes CVE-2019-20892 which affect net-snmp <= 5.8pre1

Had to fix up some file do to later code restructioning.
"int             refcnt;" addition was done in include/net-snmp/library/snmpusm.h

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-26 22:06:19 -07:00
Ovidiu Panait 486f1d19ce freediameter: upgrade 1.3.2 -> 1.4.0
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-23 12:14:31 -07:00
Patrick Williams 9c3b872f84 net-snmp: refresh patches
Refreshed patches for 5.8 due to the following:

    ERROR: net-snmp-5.8-r0 do_patch: Command Error: 'quilt --quiltrc .../net-snmp/5.8-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
    Applying patch 0001-Add-pkg-config-support-for-building-applications-and.patch
    patching file configure
    ...
    Hunk #1 succeeded at 32248 with fuzz 2 (offset 1826 lines).
    Hunk #2 FAILED at 31447.
    1 out of 2 hunks FAILED -- rejects in file configure
    ...
    Patch 0001-Add-pkg-config-support-for-building-applications-and.patch does not apply (enforce with -f)

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-05-30 11:27:48 -07:00
Wang Mingyu 49371d0e48 mdns: upgrade 878.260.1 -> 878.270.2
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-08 08:15:03 -07:00
Pierre-Jean Texier eedc028256 usrsctp: use UPSTREAM_CHECK_COMMITS
Fixes:

$: devtool check-upgrade-status usrsctp
<...>

INFO: usrsctp                   git             UNKNOWN_BROKEN  None f4e14ab5e12187cb2cf1ddbdc0ee5555aead3f72

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-04 07:22:16 -07:00
Jeremy Puhlman cd6b342f18 net-snmp: fix reproducibilty issues in net-snmp-config
Both STAGING_HOST_DIR and -fmacro-prefix-map path to WORKDIR were
encoded in the config.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-06 23:31:26 -08:00
Jeremy Puhlman 49e60520cc net-snmp: multilib fixes
net-snmp/net-snmp-config.h:
- encodes type sizes
- encodes pathing into the libdir
net-snmp-config:
- encodes build configuration data and lib pathing.

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-06 17:37:14 -08:00
Pierre-Jean Texier 1725078571 babeld: add UPSTREAM_CHECK_GITTAGREGEX
Fixes:

INFO: babeld, 1.9.1, 20110804, None, 794863e90f81ee38b9dddd72dfabcba634b2fc07

After this commit:

INFO: Skip package babeld (status = MATCH, current version = 1.9.1, next version = 1.9.1)

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-06 17:23:54 -08:00
Jeremy Puhlman d67a35bcb1 quagga: make version.h a multilib header
version.h contains the configure options passed during the build
which differs between multilibs

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-06 09:37:44 -08:00
Jeremy Puhlman 1d4356c6ef quagga: fix reproducibily issue.
version.h contains the options passed to configure, which includes
the path to the recipe-sysroot on the build host.

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-06 09:37:43 -08:00
Jonathan Richardson 4fc18c9d7b open-lldp: Add initial version 1.0.1
Open-LLDP provides a Link Layer Discovery Protocol agent that supports
DCB (Data Center Bridging). The tc utility from iproute is needed to
manipulate  traffic control settings in the kernel.

Signed-off-by: Jonathan Richardson <jonathan.richardson@broadcom.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-27 08:25:49 -08:00
Jeremy Puhlman fd53a1ab86 net-snmp: Add pkgconfig file support
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-20 08:22:38 -08:00
Callaghan, Dan 28a3bbff54 quagga: install tmpfiles snippet to /usr/lib/tmpfiles.d
Package-owned tmpfiles snippets belong in /usr/lib/tmpfiles.d,
/etc/tmpfiles.d is for administrator customisations.

Signed-off-by: Dan Callaghan <dan.callaghan@opengear.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-19 14:44:47 -08:00
Callaghan, Dan ff543375f4 quagga: fix tmpfiles snippet to refer to /run instead of /var/run
This fixes a complaint from systemd on boot:

    systemd-tmpfiles[393]: [/etc/tmpfiles.d/quagga.conf:1] Line
    references path below legacy directory /var/run/, updating
    /var/run/quagga → /run/quagga; please update the tmpfiles.d/ drop-in
    file accordingly.

Signed-off-by: Dan Callaghan <dan.callaghan@opengear.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-19 14:44:47 -08:00
Matt Hoosier a44430fe91 mdns: improve numerous aspects of Posix backend
Apple's default implementation of the Posix backend for mDNSResponder
has a number of weaknesses. Address several of them, most notably:

* Improve interface tracking, preventing confusion to mdns's state
  machine. Prevents spurious removal/republication cycles whenever
  network interfaces are added or removed.

* Support network interfaces whose indeces are great than 31. Indices
  grow past that range surprisingly quickly, especially with multi-
  homed, mobile, wifi, Bluetooth, VPN, VLANs, or other interfaces
  present.

* Correctly handle edge cases during removal of a network interface.

The fixes are kept as a patch series for clarity.

Signed-off-by: Matt Hoosier <matt.hoosier@garmin.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-06 07:20:03 -08:00
Khem Raj 3eaed6f989 recipes: Inherit perlnative for pod2man
replace host version of pod2man perl-native provides, helps in
improving reproducability

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-02 22:16:25 -08:00
Kai Kang f317eb0d04 openl2tp: update systemd service file
It shows an warning of openl2tp in systemd log:

| /lib/systemd/system/openl2tpd.service:8: PIDFile= references a path
| below legacy directory /var/run/, updating /var/run/openl2tpd.pid →
| /run/openl2tpd.pid; please update the unit file accordingly.

Update the systemd service file to fix the warning.

Update SRC_URI as well that the homepage openl2tp.org has been closed.
Use archived file on sourceforge instead.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-19 13:56:59 -08:00
Denys Dmytriyenko 4c00e5fed9 recipes: rename distro_features_check to features_check
Avoid warning due to the class rename in OE-Core.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-21 17:51:37 -08:00
Zheng Ruoqin 82888970bf mdns: upgrade 878.200.35 -> 878.260.1
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-04 12:14:08 -08:00
Adrian Bunk b317539ef1 mdns: Mark as incompatible with musl
musl does not support mDNS or NSS plugins.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-01 17:22:52 -07:00
Zheng Ruoqin 59a32e0a37 babeld: upgrade 1.8.4 -> 1.9.1
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-01 17:22:52 -07:00
Adrian Bunk 2418c5b0f0 usrsctp: Upgrade to a more recent git snapshot
Patch applied upstream removed.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-01 17:22:52 -07:00
Christophe PRIOUZEAU d82bc71538 radiusclient: Clarify BSD license variant
The License of radiusclient is BSD-3-Clause and
BSD-2-Clause and HPND.

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-24 01:01:43 -07:00
Christophe PRIOUZEAU 27fb126c18 freediameter: Clarify BSD license variant
The License of freediameter is BSD-3-Clause.

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-24 01:01:43 -07:00
Trevor Gamblin db9dbfdc78 quagga: fix PIDFile path for service files
Multiple quagga service files are causing the following type of message to
appear during boot:

/lib/systemd/system/zebra.service:10: PIDFile= references a path below legacy
directory /var/run/, updating /var/run/quagga/zebra.pid → /run/quagga/zebra.pid;
please update the unit file accordingly.

Update the service files included as part of the recipe to use /run instead of
/var/run as the PIDFile path.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-17 08:33:53 -07:00
Robert Yang 80aca39963 net-snmp: Fix PACKAGECONFIG for perl
* Remove perl-lib since it had been removed by oe-core:
  commit 68552c353255188de3d5b42135360a30e7eac535
  Author: Alexander Kanavin <alex.kanavin@gmail.com>
  Date:   Sun Dec 2 12:46:37 2018 +0100

      perl: remove the previous version of the recipe

  Now the files are in perl pacakge.

* Fix perl paths when perl is enabled.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-30 16:54:51 -07:00
Kai Kang e018a9a954 net-snmp: update SRC_URI
Replace source zip ball with tarball for net-snmp to avoid zip bomb issue.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-26 14:29:17 -07:00
Oleksandr Kravchuk 310df900fb freediameter: update to 1.2.1
License checksum changed due to modified copyright years.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-10 09:24:32 -07:00
Adrian Bunk de09894f39 xl2tpd: Remove the old 1.3.6 version
It started as one recipe for the latest stable release and one
for the latest git, but after these became ancient release and
latest release it no longer made sense to have two recipees.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-06-18 15:58:26 -07:00
Hongxu Jia 7a07c5480c net-snmp: split net-snmp-config to package net-snmp-dev
Move net-snmp-config in which contains build path from
package net-snmp to net-snmp-dev.

It refers ubuntu, here are we got from Ubuntu 18.04
$ dpkg -c /var/cache/apt/archives/libsnmp-dev_5.7.3+dfsg-1.8ubuntu3.1_amd64.deb
drwxr-xr-x root/root         0 2018-10-15 22:16 ./usr/bin/
-rwxr-xr-x root/root     43797 2018-10-15 22:16 ./usr/bin/mib2c
-rwxr-xr-x root/root      8780 2018-10-15 22:16 ./usr/bin/mib2c-update
-rwxr-xr-x root/root     29427 2018-10-15 22:16 ./usr/bin/net-snmp-config
-rwxr-xr-x root/root      3688 2018-10-15 22:16 ./usr/bin/net-snmp-create-v3-user

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-06-15 16:45:33 -07:00
Oleksandr Kravchuk 4a7b942dc1 mdns: update to 878.200.35
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-05-23 08:26:14 -07:00
Oleksandr Kravchuk 05138d26fe rp-pppoe: update to 3.13
Removed patch was upstreamed.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-05-21 10:45:39 -07:00
Oleksandr Kravchuk ab19763267 xl2tpd: update to 1.3.14
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-05-18 12:42:47 -07:00
Adrian Bunk 285a93a5a9 pptp-linux: Upgrade 1.9.0 -> 1.10.0
Remove patch for issue fixed upstream.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-05-09 20:34:33 -07:00
Oleksandr Kravchuk 1077f7da32 babeld: update to 1.8.4
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-04-09 18:09:00 -07:00
douglas.royds 781f6cfb1c net-snmp: Licenses are in the COPYING file
A bit of an unholy mixture of MIT, BSD 3-clause,
and too old to really know BSD-style,
with a wide variety of copyright holders.

I'm open to better suggestions on how to handle this.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-07 09:33:45 -08:00
Changqing Li 6b209cba53 net-snmp: Add PACKAGECONFIG des
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-01 18:51:29 -08:00
Changqing Li 875cc55028 net-snmp: fix compile error with --disable-des
| scapi.c: In function 'sc_encrypt':
| scapi.c:1256:5: error: 'pad_size' undeclared (first use in this function); did you mean 'dysize'?
|      pad_size = pai->pad_size;
|      ^~~~~~~~
|      dysize

pad_size is defined only without --disable-des
[snip]
    int             pad, plast, pad_size = 0;

but used when disable-des
[snip]
        QUITFUN(SNMPERR_GENERR, sc_encrypt_quit);
    }
    pad_size = pai->pad_size;

    memset(my_iv, 0, sizeof(my_iv));

    if (USM_CREATE_USER_PRIV_DES == (pai->type & USM_PRIV_MASK_ALG)) {

        /*

fix by move it into #ifndef NETSNMP_DISABLE_DES

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-02-26 17:37:33 -08:00
douglas.royds 39a33ccca5 net-snmp: reproducibility: Strip host paths from ptest files
net-snmp also installs net-snmp-config and gen-variables files
that need to have host paths stripped.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-13 21:18:42 -08:00
Kai Kang 49466c7917 net-snmp: inherit ptest
Inherit ptest for net-snmp to create ${PN}-ptest. Update run-ptest as
well to avoid only could be run in the same directory.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-27 11:13:36 -08:00
douglas.royds af46a5ef3a net-snmp: Simplify sed expressions
Readability.
The existing patterns allowed each pattern to be matched multiple times (with no
intevening spaces), but the "g" modifier achieves this anyway.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-26 09:38:14 -08:00
douglas.royds dcdb5fa302 net-snmp: Reproducibility: Set NETSNMP_CONFIGURE_OPTIONS null
To avoid build host paths being written into binaries,
accept a null NETSNMP_CONFIGURE_OPTIONS from the environment.

Upstream-Status: Submitted https://sourceforge.net/p/net-snmp/patches/1384/
Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-26 09:38:14 -08:00
douglas.royds 374bfe0cc6 net-snmp: Reproducibility: Don't check build host for /etc/printcap
Don't check for /etc/printcap on the build machine when cross-compiling.
Use AC_CHECK_FILE to set the cached variable ac_cv_file__etc_printcap instead.
When cross-compiling, this variable should be set in the environment to "yes" or
"no" as appropriate for the target platform.

I have taken the simple expedient of setting ac_cv_file__etc_printcap=no.
If this proves to be a problem, we can easily add a new variable, HAS_PRINTCAP.

Upstream-Status: Submitted https://sourceforge.net/p/net-snmp/patches/1385/
Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-26 09:38:14 -08:00
douglas.royds e3151ee00a net-snmp: Reproducibility: Remove PKG_CONFIG paths from net-snmp-config
PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR point into the net-snmp recipe-sysroot.
Careful not to trim trailing quotes from the CFLAGS

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-26 09:38:14 -08:00
douglas.royds 231fb5d1a4 net-snmp: Reproducibility: Fixed path to /bin/uname
Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-26 09:38:14 -08:00