Skip to content

Prepare new release, including cmake support, updated autotools and a few small fixes#94

Merged
ofalk merged 28 commits intomasterfrom
devel
Oct 12, 2023
Merged

Prepare new release, including cmake support, updated autotools and a few small fixes#94
ofalk merged 28 commits intomasterfrom
devel

Conversation

@ofalk
Copy link
Owner

@ofalk ofalk commented Oct 12, 2023

No description provided.

ofalk and others added 27 commits June 29, 2022 13:27
- Use latest toolchain (autotools) and update files
- Update rpm spec w/ latest version and get rid of *la exclude
- Get rid of distutils from Python and use setuptools
* configure: Replace use of AC_EGREP_CPP
Use AC_COMPILE_IFELSE instead to compute platform support for arp ioctls AC_EGREP_CPP does not work as used with upcoming autoconf 2.72

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Oliver Falk <oliver@linux-kernel.at>
Nothing actually uses this define, other `HAVE_*` defines are equally
unused in C code.
tun(4) needs `<sys/types.h>` just like bpf(4) does.
This builds `src/tun-bsd.c` instead of `src/tun-none.c` on OpenBSD.
`struct rt_msghdr` is a structure, so it has no symbol.

Look for a member like autoconf's script and include required headers as per
https://man.openbsd.org/route.4 to correctly detect this feature on OpenBSD.

Not sure how this could've worked on Linux. #81
`HAVE_NET_IF_ARP_H` is entirely unused and might as well be removed,
but fix it first while sweeping through BSD configure/compile errors.

`src/arp-ioctl.h` includes this header, but it is (no longer) used on BSDs.
https://man.openbsd.org/pf.4 ought to be used on OpenBSD,
this makes it build `src/fw-pf.c` instead of `src/fw-none.c`.
The official net/libdnet port has been carrying this patch since 2012[0],
when the ioctl interface was reworked.

Current 1.16.4 fails to compile without it.
Guard our local patch under `__OpenBSD__` just to be sure.

FreeBSD for example uses its own libdnet fork[1] which still seems to be
fine without this patch[2].

0: openbsd/ports@c4b4fc9
1: https://cgit.freebsd.org/ports/commit/net/libdnet/Makefile?id=b7f05445c00f2625aa19b4154ebcbce5ed2daa52
2:
https://github.com/5u623l20/libdnet/blob/2d51667e6ea3a26be84a2027a238bfced1364e5d/src/intf.c
OpenBSD: Drop SIOCSIFNETMASK before SIOCSIFADDR
CMake: BSD: More feature detection fixes
@ofalk ofalk self-assigned this Oct 12, 2023
@ofalk ofalk merged commit 912f784 into master Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants