Skip to content

Commit

Permalink
[mdns] update mDNSResponder to 1790.80.10
Browse files Browse the repository at this point in the history
  • Loading branch information
agners committed Aug 14, 2023
1 parent 3ecc588 commit 7a552b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
11 changes: 5 additions & 6 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,15 @@ install_packages_apt()

# mDNS
sudo apt-get install --no-install-recommends -y libavahi-client3 libavahi-common-dev libavahi-client-dev avahi-daemon
(MDNS_RESPONDER_SOURCE_NAME=mDNSResponder-1310.80.1 \
(MDNS_RESPONDER_SOURCE_NAME=mDNSResponder-1790.80.10 \
&& cd /tmp \
&& wget --no-check-certificate https://github.com/apple-oss-distributions/mDNSResponder/archive/refs/tags/$MDNS_RESPONDER_SOURCE_NAME.tar.gz \
&& mkdir -p $MDNS_RESPONDER_SOURCE_NAME \
&& tar xvf $MDNS_RESPONDER_SOURCE_NAME.tar.gz -C $MDNS_RESPONDER_SOURCE_NAME --strip-components=1 \
&& cd /tmp/$MDNS_RESPONDER_SOURCE_NAME/Clients \
&& sed -i '/#include <ctype.h>/a #include <stdarg.h>' dns-sd.c \
&& sed -i '/#include <ctype.h>/a #include <sys/param.h>' dns-sd.c \
&& cd /tmp/$MDNS_RESPONDER_SOURCE_NAME/mDNSPosix \
&& make os=linux && sudo make install os=linux)
&& cd /tmp/"$MDNS_RESPONDER_SOURCE_NAME"/mDNSShared \
&& sed -i 's/__block mStatus err;/mStatus err;/' uds_daemon.c \
&& cd /tmp/"$MDNS_RESPONDER_SOURCE_NAME"/mDNSPosix \
&& make os=linux tls=no && sudo make install os=linux tls=no)

# Boost
sudo apt-get install --no-install-recommends -y libboost-dev libboost-filesystem-dev libboost-system-dev
Expand Down
9 changes: 4 additions & 5 deletions tests/scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,14 @@ case "$(uname)" in
fi

if [ "${OTBR_MDNS-}" == 'mDNSResponder' ]; then
SOURCE_NAME=mDNSResponder-1310.80.1
SOURCE_NAME=mDNSResponder-1790.80.10
wget https://github.com/apple-oss-distributions/mDNSResponder/archive/refs/tags/$SOURCE_NAME.tar.gz \
&& mkdir -p $SOURCE_NAME \
&& tar xvf $SOURCE_NAME.tar.gz -C $SOURCE_NAME --strip-components=1 \
&& cd $SOURCE_NAME/Clients \
&& sed -i '/#include <ctype.h>/a #include <stdarg.h>' dns-sd.c \
&& sed -i '/#include <ctype.h>/a #include <sys/param.h>' dns-sd.c \
&& cd "$SOURCE_NAME"/mDNSShared \
&& sed -i 's/__block mStatus err;/mStatus err;/' uds_daemon.c \
&& cd ../mDNSPosix \
&& make os=linux && sudo make install os=linux
&& make os=linux tls=no && sudo make install os=linux tls=no
fi

# Enable IPv6
Expand Down

0 comments on commit 7a552b7

Please sign in to comment.