mirror of https://github.com/getdnsapi/getdns.git
tpkg for dependencies checking
This commit is contained in:
parent
17d44a769c
commit
638b841855
13
configure.ac
13
configure.ac
|
@ -387,7 +387,18 @@ case "$enable_ecdsa" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(draft-dnssec-roadblock-avoidance, AC_HELP_STRING([--enable-draft-dnssec-roadblock-avoidance], [Enable experimental dnssec roadblock avoidance]))
|
AC_ARG_ENABLE(draft-dnssec-roadblock-avoidance, AC_HELP_STRING([--enable-draft-dnssec-roadblock-avoidance], [Enable experimental dnssec roadblock avoidance]))
|
||||||
|
AC_ARG_ENABLE(draft-edns-cookies, AC_HELP_STRING([--enable-draft-edns-cookies], [Enable experimental edns cookies]))
|
||||||
|
AC_ARG_ENABLE(all-drafts, AC_HELP_STRING([--enable-all-drafts], [Enable cookies and roadblock avoidance]))
|
||||||
|
case "$enable_all_drafts" in
|
||||||
|
yes)
|
||||||
|
enable_draft_dnssec_roadblock_avoidance=yes
|
||||||
|
enable_draft_edns_cookies=yes
|
||||||
|
;;
|
||||||
|
no|*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
case "$enable_draft_dnssec_roadblock_avoidance" in
|
case "$enable_draft_dnssec_roadblock_avoidance" in
|
||||||
yes)
|
yes)
|
||||||
AC_DEFINE_UNQUOTED([DNSSEC_ROADBLOCK_AVOIDANCE], [1], [Define this to enable the experimental draft dnssec roadblock avoidance.])
|
AC_DEFINE_UNQUOTED([DNSSEC_ROADBLOCK_AVOIDANCE], [1], [Define this to enable the experimental draft dnssec roadblock avoidance.])
|
||||||
|
@ -395,8 +406,6 @@ case "$enable_draft_dnssec_roadblock_avoidance" in
|
||||||
no|*)
|
no|*)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_ARG_ENABLE(draft-edns-cookies, AC_HELP_STRING([--enable-draft-edns-cookies], [Enable experimental edns cookies]))
|
|
||||||
case "$enable_draft_edns_cookies" in
|
case "$enable_draft_edns_cookies" in
|
||||||
yes)
|
yes)
|
||||||
if test "x_$HAVE_SSL" != "x_yes"; then
|
if test "x_$HAVE_SSL" != "x_yes"; then
|
||||||
|
|
|
@ -203,7 +203,7 @@ configure.status: configure
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
(cd $(srcdir) ; awk 'BEGIN{P=1}{if(P)print}/^# Dependencies/{P=0}' Makefile.in > Makefile.in.new )
|
(cd $(srcdir) ; awk 'BEGIN{P=1}{if(P)print}/^# Dependencies/{P=0}' Makefile.in > Makefile.in.new )
|
||||||
(cd $(srcdir) ; gcc -MM -I. *.c gldns/*.c compat/*.c util/*.c extension/*.c| \
|
(blddir=`pwd`; cd $(srcdir) ; gcc -MM -I. -I"$$blddir" *.c gldns/*.c compat/*.c util/*.c extension/*.c| \
|
||||||
sed -e 's?gldns/?$$(srcdir)/gldns/?g' \
|
sed -e 's?gldns/?$$(srcdir)/gldns/?g' \
|
||||||
-e 's?compat/?$$(srcdir)/compat/?g' \
|
-e 's?compat/?$$(srcdir)/compat/?g' \
|
||||||
-e 's?util/?$$(srcdir)/util/?g' \
|
-e 's?util/?$$(srcdir)/util/?g' \
|
||||||
|
|
|
@ -213,7 +213,7 @@ configure.status: configure
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
(cd $(srcdir) ; awk 'BEGIN{P=1}{if(P)print}/^# Dependencies/{P=0}' Makefile.in > Makefile.in.new )
|
(cd $(srcdir) ; awk 'BEGIN{P=1}{if(P)print}/^# Dependencies/{P=0}' Makefile.in > Makefile.in.new )
|
||||||
(cd $(srcdir) ; gcc -MM -I. -I.. *.c | \
|
(blddir=`pwd`; cd $(srcdir) ; gcc -MM -I. -I.. -I"$$blddir"/.. *.c | \
|
||||||
sed -e 's? \([a-z_-]*\)\.\([ch]\)? $$(srcdir)/\1.\2?g' \
|
sed -e 's? \([a-z_-]*\)\.\([ch]\)? $$(srcdir)/\1.\2?g' \
|
||||||
-e 's? \$$(srcdir)/config\.h? ../config.h?g' \
|
-e 's? \$$(srcdir)/config\.h? ../config.h?g' \
|
||||||
-e 's? $$(srcdir)/\.\./getdns/getdns_extra\.h? ../getdns/getdns_extra.h?g' \
|
-e 's? $$(srcdir)/\.\./getdns/getdns_extra\.h? ../getdns/getdns_extra.h?g' \
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
BaseName: 300-event-loops-compile
|
|
||||||
Version: 1.0
|
|
||||||
Description: Create a builddir and compile with event loops
|
|
||||||
CreationDate: do dec 10 11:38:35 CET 2015
|
|
||||||
Maintainer: Willem Toorop
|
|
||||||
Category:
|
|
||||||
Component:
|
|
||||||
CmdDepends:
|
|
||||||
Depends:
|
|
||||||
Help:
|
|
||||||
Pre: 300-event-loops-compile.pre
|
|
||||||
Post:
|
|
||||||
Test: 300-event-loops-compile.test
|
|
||||||
AuxFiles:
|
|
||||||
Passed:
|
|
||||||
Failure:
|
|
|
@ -1,25 +0,0 @@
|
||||||
# #-- 300-event-loops-compile.pre--#
|
|
||||||
# source the master var file when it's there
|
|
||||||
if [ -f ../.tpkg.var.master ]
|
|
||||||
then
|
|
||||||
source ../.tpkg.var.master
|
|
||||||
else
|
|
||||||
(
|
|
||||||
cd ..
|
|
||||||
[ -f "${TPKG_SRCDIR}/setup-env.sh" ] \
|
|
||||||
&& sh "${TPKG_SRCDIR}/setup-env.sh"
|
|
||||||
) && source ../.tpkg.var.master
|
|
||||||
fi
|
|
||||||
# use .tpkg.var.test for in test variable passing
|
|
||||||
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
|
||||||
|
|
||||||
rm -fr "${BUILDDIR}/build-event-loops"
|
|
||||||
mkdir "${BUILDDIR}/build-event-loops"
|
|
||||||
cd "${BUILDDIR}/build-event-loops"
|
|
||||||
"${SRCROOT}/configure" --with-libevent --with-libev --with-libuv \
|
|
||||||
|| "${SRCROOT}/configure" --with-libevent --with-libev \
|
|
||||||
|| "${SRCROOT}/configure" --with-libevent --with-libuv \
|
|
||||||
|| "${SRCROOT}/configure" --with-libev --with-libuv \
|
|
||||||
|| "${SRCROOT}/configure" --with-libevent \
|
|
||||||
|| "${SRCROOT}/configure" --with-libev \
|
|
||||||
|| "${SRCROOT}/configure" --with-libuv
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
BaseName: 300-event-loops-configure
|
||||||
|
Version: 1.0
|
||||||
|
Description: Create a build dir and configure for convering the largest codebase
|
||||||
|
CreationDate: vr dec 18 11:21:07 CET 2015
|
||||||
|
Maintainer: Willem Toorop
|
||||||
|
Category:
|
||||||
|
Component:
|
||||||
|
CmdDepends:
|
||||||
|
Depends:
|
||||||
|
Help:
|
||||||
|
Pre: 300-event-loops-configure.pre
|
||||||
|
Post:
|
||||||
|
Test: 300-event-loops-configure.test
|
||||||
|
AuxFiles:
|
||||||
|
Passed:
|
||||||
|
Failure:
|
|
@ -0,0 +1,14 @@
|
||||||
|
# #-- 300-event-loops-configure.pre--#
|
||||||
|
# source the master var file when it's there
|
||||||
|
if [ -f ../.tpkg.var.master ]
|
||||||
|
then
|
||||||
|
source ../.tpkg.var.master
|
||||||
|
else
|
||||||
|
(
|
||||||
|
cd ..
|
||||||
|
[ -f "${TPKG_SRCDIR}/setup-env.sh" ] \
|
||||||
|
&& sh "${TPKG_SRCDIR}/setup-env.sh"
|
||||||
|
) && source ../.tpkg.var.master
|
||||||
|
fi
|
||||||
|
# use .tpkg.var.test for in test variable passing
|
||||||
|
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
|
@ -0,0 +1,16 @@
|
||||||
|
# #-- 300-event-loops-configure.test --#
|
||||||
|
# source the master var file when it's there
|
||||||
|
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
|
||||||
|
# use .tpkg.var.test for in test variable passing
|
||||||
|
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
||||||
|
|
||||||
|
rm -fr "${BUILDDIR}/build-event-loops"
|
||||||
|
mkdir "${BUILDDIR}/build-event-loops"
|
||||||
|
cd "${BUILDDIR}/build-event-loops"
|
||||||
|
"${SRCROOT}/configure" --enable-all-drafts --with-libevent --with-libev --with-libuv \
|
||||||
|
|| "${SRCROOT}/configure" --enable-all-drafts --with-libevent --with-libev \
|
||||||
|
|| "${SRCROOT}/configure" --enable-all-drafts --with-libevent --with-libuv \
|
||||||
|
|| "${SRCROOT}/configure" --enable-all-drafts --with-libev --with-libuv \
|
||||||
|
|| "${SRCROOT}/configure" --enable-all-drafts --with-libevent \
|
||||||
|
|| "${SRCROOT}/configure" --enable-all-drafts --with-libev \
|
||||||
|
|| "${SRCROOT}/configure" --enable-all-drafts --with-libuv
|
|
@ -0,0 +1,16 @@
|
||||||
|
BaseName: 310-dependencies
|
||||||
|
Version: 1.0
|
||||||
|
Description: Check if all dependencies are (still) correct in the Makefiles
|
||||||
|
CreationDate: vr dec 18 11:25:59 CET 2015
|
||||||
|
Maintainer: Willem Toorop
|
||||||
|
Category:
|
||||||
|
Component:
|
||||||
|
CmdDepends:
|
||||||
|
Depends: 300-event-loops-configure.tpkg
|
||||||
|
Help:
|
||||||
|
Pre:
|
||||||
|
Post:
|
||||||
|
Test: 310-dependencies.test
|
||||||
|
AuxFiles:
|
||||||
|
Passed:
|
||||||
|
Failure:
|
|
@ -0,0 +1,49 @@
|
||||||
|
# #-- 310-dependencies.test --#
|
||||||
|
# source the master var file when it's there
|
||||||
|
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
|
||||||
|
# use .tpkg.var.test for in test variable passing
|
||||||
|
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
||||||
|
|
||||||
|
export TPKG_HERE=`pwd`
|
||||||
|
# Temporarily copy Makefile.in files
|
||||||
|
find . -type f -name "Makefile.in" -print0 | xargs -0 rm -f && (
|
||||||
|
cd "${SRCROOT}"
|
||||||
|
find . -maxdepth 3 -type f -name "Makefile.in" -print0 | xargs -0 tar cf -
|
||||||
|
) | (
|
||||||
|
cd "${TPKG_HERE}"
|
||||||
|
tar xf -
|
||||||
|
)
|
||||||
|
(
|
||||||
|
cd "${BUILDDIR}/build-event-loops"
|
||||||
|
if ! ./config.status --config | grep -q 'enable-all-drafts.*--with-libevent.*--with-libev.*--with-libuv'
|
||||||
|
then
|
||||||
|
echo Skipping because not covering enough code
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
make depend >/dev/null 2>&1
|
||||||
|
)
|
||||||
|
CHANGED_DEPENDENCIES=0
|
||||||
|
N_MAKEFILES=0
|
||||||
|
for mf in `find . -type f -name "Makefile.in"`
|
||||||
|
do
|
||||||
|
N_MAKEFILES=`expr $N_MAKEFILES + 1`
|
||||||
|
if ! diff -q "${mf}" "${SRCROOT}"/"${mf#./}"
|
||||||
|
then
|
||||||
|
echo "${mf}" and "${SRCROOT}"/"${mf#./}" differ
|
||||||
|
CHANGED_DEPENDENCIES=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ $N_MAKEFILES = 0 ]
|
||||||
|
then
|
||||||
|
echo "No Makefiles compared"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# Restore Makefile.in files
|
||||||
|
(
|
||||||
|
cd "${TPKG_HERE}"
|
||||||
|
find . -type f -name "Makefile.in" -print0 | xargs -0 tar cf -
|
||||||
|
)| (
|
||||||
|
cd "${SRCROOT}"
|
||||||
|
tar xf -
|
||||||
|
)
|
||||||
|
exit ${CHANGED_DEPENDENCIES}
|
|
@ -0,0 +1,16 @@
|
||||||
|
BaseName: 320-event-loops-compile
|
||||||
|
Version: 1.0
|
||||||
|
Description: Compile the with event loops configured getdns
|
||||||
|
CreationDate: vr dec 18 11:20:35 CET 2015
|
||||||
|
Maintainer: Willem Toorop
|
||||||
|
Category:
|
||||||
|
Component:
|
||||||
|
CmdDepends:
|
||||||
|
Depends: 300-event-loops-configure.tpkg
|
||||||
|
Help:
|
||||||
|
Pre:
|
||||||
|
Post:
|
||||||
|
Test: 320-event-loops-compile.test
|
||||||
|
AuxFiles:
|
||||||
|
Passed:
|
||||||
|
Failure:
|
|
@ -1,4 +1,4 @@
|
||||||
# #-- 300-event-loops-compile.test --#
|
# #-- 320-event-loops-compile.test --#
|
||||||
# source the master var file when it's there
|
# source the master var file when it's there
|
||||||
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
|
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
|
||||||
# use .tpkg.var.test for in test variable passing
|
# use .tpkg.var.test for in test variable passing
|
|
@ -6,7 +6,7 @@ Maintainer: Willem Toorop
|
||||||
Category:
|
Category:
|
||||||
Component:
|
Component:
|
||||||
CmdDepends:
|
CmdDepends:
|
||||||
Depends: 300-event-loops-compile.tpkg
|
Depends: 320-event-loops-compile.tpkg
|
||||||
Help:
|
Help:
|
||||||
Pre:
|
Pre:
|
||||||
Post:
|
Post:
|
||||||
|
|
Loading…
Reference in New Issue