Skip to content

Commit 637a560

Browse files
committed
Merge branch 'develop'
2 parents 489da22 + e207333 commit 637a560

22 files changed

+214
-114
lines changed

.github/workflows/dpdk.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
strategy:
3434
fail-fast: false
3535
matrix:
36-
os: [ubuntu-20.04]
37-
dpdk_version: [dpdk-20.11, dpdk-20.02, dpdk-19.11.5, dpdk-18.11.10, dpdk-17.11.10, dpdk-16.11.11]
36+
os: [ubuntu-22.04, ubuntu-20.04]
37+
dpdk_version: [dpdk-21.11, dpdk-20.11, dpdk-20.02, dpdk-19.11.5, dpdk-18.11.10, dpdk-17.11.10, dpdk-16.11.11]
3838
exclude:
3939
- os: ubuntu-16.04
4040
dpdk_version: dpdk-20.11

.github/workflows/pkg-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
- "debian:stretch"
2020
- "debian:buster"
2121
- "debian:bullseye"
22-
- "ubuntu:xenial"
2322
- "ubuntu:bionic"
2423
- "ubuntu:focal"
24+
- "ubuntu:jammy"
2525

2626
steps:
2727
- name: Checkout repo

.github/workflows/rpm-build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
target:
1919
- "centos:7"
2020
- "fedora:35"
21-
- "fedora:34"
21+
- "fedora:36"
2222
- "rockylinux:8.5"
23-
- "almalinux:8.4"
23+
- "almalinux:8.5"
2424

2525

2626
steps:

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ In no particular order, we would like to recognise:
4545
* Brendon Jones for creating the original Windows DLLs and writing bits of
4646
code here and there
4747
* Ryan Cai for patching a bunch of locking bugs.
48+
* Sam James for fixing some issues with our build system.
4849

4950
Apologies to anyone that we've missed out or forgotten. If you're really
5051
offended, fire one of us an email and we'll make sure you are added to the

INSTALL

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Requirements:
66

77
Optional:
88
* DAG libraries (both 2.4 and 2.5 versions are supported)
9+
* libyaml (required for traceanon)
910
* libcrypto (required for CryptoPAN anonymisation in traceanon)
1011
* libncurses (required for tracetop)
1112
* libwandder (required for ETSI LI decoding --
@@ -31,6 +32,26 @@ You may need to add the library location (e.g. /usr/local/lib) to your
3132

3233
----------------------------------
3334

35+
FreeBSD Notes
36+
-------------
37+
38+
Installing with DPDK support:
39+
40+
1. Install DPDK libraries on your system (DPDK version will differ depending
41+
on which version of FreeBSD you are running):
42+
43+
sudo pkg install dpdk20.11 gmake
44+
45+
2. Compile and install libtrace using gmake:
46+
47+
./bootstrap.sh
48+
./configure --with-dpdk LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/lib
49+
MAKE="gmake"
50+
gmake
51+
sudo gmake install
52+
53+
----------------------------------
54+
3455
Installation FAQ:
3556

3657
Q. I've installed libpcap but I'm still getting the following error:

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
libtrace 4.0.18
1+
libtrace 4.0.19
22

33
---------------------------------------------------------------------------
44
Copyright (c) 2007-2022 The University of Waikato, Hamilton, New Zealand.

bootstrap.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
#! /bin/sh
22

3+
ACLOCAL_DIRS="-I m4"
4+
if [ -d /usr/local/share/aclocal ]; then
5+
ACLOCAL_DIRS="${ACLOCAL_DIRS} -I /usr/local/share/aclocal"
6+
fi
7+
8+
if [ -d /usr/share/aclocal ]; then
9+
ACLOCAL_DIRS="${ACLOCAL_DIRS} -I /usr/share/aclocal"
10+
fi
11+
312
set -x
413
# Prefer aclocal 1.9 if we can find it
5-
aclocal-1.11 -I m4 ||
6-
aclocal-1.9 -I m4 ||
7-
aclocal -I m4
14+
aclocal-1.11 ${ACLOCAL_DIRS} ||
15+
aclocal-1.9 ${ACLOCAL_DIRS} ||
16+
aclocal ${ACLOCAL_DIRS}
817

918
# Darwin bizarrely uses glibtoolize
1019
libtoolize --force --copy ||

configure.in

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# Now you only need to update the version number in two places - below,
44
# and in the README
55

6-
AC_INIT([libtrace],[4.0.18],[contact@wand.net.nz],[libtrace])
6+
AC_INIT([libtrace],[4.0.19],[contact@wand.net.nz],[libtrace])
77

88
LIBTRACE_MAJOR=4
99
LIBTRACE_MID=0
10-
LIBTRACE_MINOR=18
10+
LIBTRACE_MINOR=19
1111

1212
# OpenSolaris hides libraries like libncurses in /usr/gnu/lib, which is not
1313
# searched by default - add it to LDFLAGS so we at least have a chance of
@@ -79,6 +79,8 @@ AC_PROG_INSTALL
7979
AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc)
8080
AM_PROG_LEX
8181

82+
PKG_PROG_PKG_CONFIG
83+
8284
# All our source files for function replacements are in lib/
8385
AC_CONFIG_LIBOBJ_DIR(lib)
8486

@@ -305,7 +307,7 @@ AC_ARG_WITH(xdp, AS_HELP_STRING(--with-xdp, include XDP capture support),
305307

306308
if test "$want_xdp" != no; then
307309
AC_CHECK_LIB(elf, elf_begin, elffound=1, elffound=0)
308-
if test "$elffound" == 1; then
310+
if test "$elffound" = 1; then
309311
# check for libbpf
310312
AC_CHECK_LIB(bpf, xsk_socket__create, bpffound=1, bpffound=0, -lelf)
311313

@@ -518,7 +520,23 @@ AC_CHECK_DECL([PACKET_FANOUT],
518520
[[#include <linux/if_packet.h>]])
519521

520522
# If we use DPDK we might be able to use libnuma
521-
AC_CHECK_LIB(numa, numa_node_to_cpus, have_numa=1, have_numa=0)
523+
AC_ARG_WITH(numa,
524+
AS_HELP_STRING(--without-numa,disable NUMA support),
525+
[
526+
if test "$withval" = no
527+
then
528+
want_numa=no
529+
else
530+
want_numa=yes
531+
fi
532+
],[
533+
# Default to building with NUMA
534+
want_numa=yes
535+
])
536+
537+
if test "$want_numa" != no; then
538+
AC_CHECK_LIB(numa, numa_node_to_cpus, have_numa=1, have_numa=0)
539+
fi
522540

523541
# Need libwandder for ETSI live decoding
524542
AC_CHECK_LIB(wandder, init_wandder_decoder, have_wandder=1, have_wandder=0)
@@ -900,6 +918,8 @@ if (test "$use_llvm" != "no"); then
900918
fi
901919
fi
902920

921+
PKG_CHECK_MODULES(ncurses,ncurses,have_ncurses=yes,have_ncurses=no)
922+
903923
AC_ARG_WITH([ncurses],
904924
AC_HELP_STRING([--with-ncurses], [build tracetop (requires ncurses)]))
905925

debian/changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
libtrace4 (4.0.19-1) unstable; urgency=medium
2+
3+
* Fixed issues with compiling against DPDK 21.11
4+
* Incorporate build system fixes from Gentoo
5+
6+
-- Shane Alcock <shane.alcock@waikato.ac.nz> Mon, 13 Jun 2022 11:17:29 +1200
7+
18
libtrace4 (4.0.18-1) unstable; urgency=medium
29

310
* Packets received via `etsilive:` can now be converted to pcap format.

debpkg-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export SOURCENAME=`echo ${GITHUB_REF##*/} | cut -d '-' -f 1`
1111
apt-get update
1212
apt-get install -y equivs devscripts dpkg-dev quilt curl apt-transport-https \
1313
apt-utils ssl-cert ca-certificates gnupg lsb-release debhelper git \
14-
pkg-config sed
14+
pkg-config sed clang
1515

1616
curl -1sLf 'https://dl.cloudsmith.io/public/wand/libwandio/cfg/setup/bash.deb.sh' | bash
1717
curl -1sLf 'https://dl.cloudsmith.io/public/wand/libwandder/cfg/setup/bash.deb.sh' | bash

0 commit comments

Comments
 (0)