Skip to content

Commit

Permalink
Merge pull request #2500 from pqarmitage/updates
Browse files Browse the repository at this point in the history
Fix building with busybox sh and musl libraries
  • Loading branch information
pqarmitage authored Nov 7, 2024
2 parents 5a1938e + f4fc3e8 commit 1fbccf8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.kernel_versions
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ SUSE 15 SP5 5.14.21 26-01-25 https://en.wikipedia.org/wiki/SUSE_Linux_Enter
SUSE 15 SP6 6.4.0 A service pack is supported for 6 months after release of next service pack (approx annual)
Manjaro Rolling 4.19.322 https://en.wikipedia.org/wiki/Manjaro and https://manjaristas.org/branch_compare?q=%23kernels
Oracle 7 3.10 31-12-24 https://en.wikipedia.org/wiki/Oracle_Linux
Oracle 8 4.18 31-07-29 https://en.wikipedia.org/wiki/Oracle_Linux

=============================================================================

Expand Down
12 changes: 6 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,10 @@ ENABLE_LOG_FILE_APPEND=No
# Ensure we don't override FORTIFY_SOURCE
ADD_FORTIFY_SOURCE=1
grep -q -- "-D *_FORTIFY_SOURCE=" <<<$CPPFLAGS
echo $CPPFLAGS | grep -q -- "-D *_FORTIFY_SOURCE="
AS_IF([test $? -eq 0],
[
FORTIFY_SOURCE=$(<<<$CPPFLAGS $SED -e "s/.*-D *_FORTIFY_SOURCE=//" -e "s/ .*//")
FORTIFY_SOURCE=$(echo $CPPFLAGS | $SED -e "s/.*-D *_FORTIFY_SOURCE=//" -e "s/ .*//")
ADD_FORTIFY_SOURCE=0
],[FORTIFY_SOURCE=2])
Expand Down Expand Up @@ -715,7 +715,7 @@ for field in t tv.tv_sec tv.tv_usec ts.tv_sec ts.tv_nsec; do
if [[ $field = t ]]; then
name=time_t
else
name=$(<<<$field $SED -e "s/\.tv//")
name=$(echo $field | $SED -e "s/\.tv//")
fi
AC_DEFINE_UNQUOTED([PRI_$name], [ "$len$sign" ])
], [])
Expand Down Expand Up @@ -2766,7 +2766,7 @@ AS_IF([test .${with_iproute_usr_dir} = . && test .${with_iproute_etc_dir} = . ],
AS_IF([test $? = 0],
[
IPROUTE_DIRS=$(man ip route | tr " \t" "\n\n" | $SED -e "s/[[\.,;:?\!]]*//g" | grep "/rt_tables$" | $SED -e "s:/rt_tables$::")
set $(<<<$IPROUTE_DIRS sort -u)
set $(echo $IPROUTE_DIRS | sort -u)
second_route=$2
set $IPROUTE_DIRS
AS_IF([test .$second_route = .],
Expand All @@ -2783,9 +2783,9 @@ AS_IF([test .${with_iproute_usr_dir} = . && test .${with_iproute_etc_dir} = . ],
# try finding the paths in the executable
set $(strings $(type -p ip) | grep /rt_tables | $SED -e "s:/rt_tables::")
for i in $1 $2; do
grep -q /etc <<<$i
echo $i | grep -q /etc
AS_IF([test $? -eq 0], [iproute_etc_dir=$i])
grep -q /usr <<<$i
echo $i | grep -q /usr
AS_IF([test $? -eq 0], [iproute_usr_dir=$i])
done
])
Expand Down
4 changes: 3 additions & 1 deletion keepalived/vrrp/vrrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@
#include <netinet/ip6.h>
#include <stdint.h>
#include <net/if_arp.h>
#include <linux/if_ether.h>
#include <net/ethernet.h>
#if !defined ETH_HLEN || !defined ETH_ZLEN
#include <linux/if_ether.h> /* This may not be needed at all - try removing and see if any issues raised */
#endif
#ifdef _NETWORK_TIMESTAMP_
#include <linux/net_tstamp.h>
#endif
Expand Down

0 comments on commit 1fbccf8

Please sign in to comment.