salsa.debian.org/debian / smcroute

New upstream version 2.5.5

Micha Lenk · 4 years ago 🏷 upstream/2.5.5commit 68b5d6f · parent dd4057e · child c5c9fe0 · patch
diff --git a/ChangeLog.md b/ChangeLog.md
index 168b0cc..f6f6048 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -4,6 +4,19 @@ ChangeLog
 All notable changes to the project are documented in this file.
 
 
+[v2.5.5][] - 2021-11-21
+-----------------------
+
+### Changes
+- Revert extraction of version from GIT tag.  Incompatible with systems
+  that do `autoreconf` on a dist. tarball
+
+### Fixes
+- Fix #175: Parse error in `/etc/smcroute.conf`.  SMCRoute fails to
+  start on interfaces with `mrdisc` disabled, when built with mrdisc
+  support and `-N` passed on command line
+
+
 [v2.5.4][] - 2021-11-13
 -----------------------
 
@@ -604,7 +617,8 @@ Initial public release by Carsten Schill.
 
 [mrdisc]:     https://github.com/troglobit/mrdisc
 [RFC4286]:    https://tools.ietf.org/html/rfc4286
-[UNRELEASED]: https://github.com/troglobit/smcroute/compare/2.5.4...HEAD
+[UNRELEASED]: https://github.com/troglobit/smcroute/compare/2.5.5...HEAD
+[v2.5.5]:     https://github.com/troglobit/smcroute/compare/2.5.4...2.5.5
 [v2.5.4]:     https://github.com/troglobit/smcroute/compare/2.5.3...2.5.4
 [v2.5.3]:     https://github.com/troglobit/smcroute/compare/2.5.2...2.5.3
 [v2.5.2]:     https://github.com/troglobit/smcroute/compare/2.5.1...2.5.2
diff --git a/Makefile.am b/Makefile.am
index fdfb82a..7bdf164 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,11 +1,10 @@
 ## SMCRoute - A static multicast routing tool             -*-Makefile-*-
 ACLOCAL_AMFLAGS         = -I m4
-TAG                     = $(top_srcdir)/.git/refs/tags/$(PACKAGE_VERSION)
+SUBDIRS                 = man src
 DISTCLEANFILES		= *~ DEADJOE semantic.cache *.gdb *.elf core core.* *.d
 dist_sbin_SCRIPTS       = smcroute
 doc_DATA		= README.md COPYING smcroute.conf
 EXTRA_DIST		= README.md ChangeLog.md autogen.sh smcroute.conf smcroute.default smcroute.init
-SUBDIRS                 = man src
 
 if ENABLE_TEST
 SUBDIRS                += test
@@ -16,12 +15,25 @@ systemd_DATA            = smcroute.service
 endif
 
 ## Check if tagged in git
-$(TAG):
-	@printf "\e[1m\e[41mPlease create the \"$(PACKAGE_VERSION)\" tag first\e[0m\n"
-	@exit 1
+release-hook:
+	@if [ ! `git tag -l $(PACKAGE_VERSION) | grep $(PACKAGE_VERSION)` ]; then	\
+		echo;									\
+		printf "\e[1m\e[41mCannot find release tag $(PACKAGE_VERSION)\e[0m\n";	\
+		printf "\e[1m\e[5mDo release anyway?\e[0m "; read yorn;			\
+		if [ "$$yorn" != "y" -a "$$yorn" != "Y" ]; then				\
+			printf "OK, aborting release.\n";				\
+			exit 1;								\
+		fi;									\
+		echo;									\
+	else										\
+		echo;									\
+		printf "\e[1m\e[42mFound GIT release tag $(PACKAGE_VERSION)\e[0m\n";	\
+		printf "\e[1m\e[44m>>Remember to push tags!\e[0m\n";			\
+		echo;									\
+	fi
 
 ## Target to run when building a release
-release: $(TAG) distcheck
+release: release-hook distcheck
 	@for file in $(DIST_ARCHIVES); do		\
 		md5sum    $$file > ../$$file.md5;	\
 		sha256sum $$file > ../$$file.sha256;	\
diff --git a/Makefile.in b/Makefile.in
index 0dad156..9ad0b16 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -337,12 +337,11 @@ top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 ACLOCAL_AMFLAGS = -I m4
-TAG = $(top_srcdir)/.git/refs/tags/$(PACKAGE_VERSION)
+SUBDIRS = man src $(am__append_1)
 DISTCLEANFILES = *~ DEADJOE semantic.cache *.gdb *.elf core core.* *.d
 dist_sbin_SCRIPTS = smcroute
 doc_DATA = README.md COPYING smcroute.conf
 EXTRA_DIST = README.md ChangeLog.md autogen.sh smcroute.conf smcroute.default smcroute.init
-SUBDIRS = man src $(am__append_1)
 @HAVE_SYSTEMD_TRUE@systemd_DATA = smcroute.service
 
 # Workaround for systemd unit file duing distcheck
@@ -908,11 +907,24 @@ uninstall-am: uninstall-dist_sbinSCRIPTS uninstall-docDATA \
 .PRECIOUS: Makefile
 
 
-$(TAG):
-	@printf "\e[1m\e[41mPlease create the \"$(PACKAGE_VERSION)\" tag first\e[0m\n"
-	@exit 1
+release-hook:
+	@if [ ! `git tag -l $(PACKAGE_VERSION) | grep $(PACKAGE_VERSION)` ]; then	\
+		echo;									\
+		printf "\e[1m\e[41mCannot find release tag $(PACKAGE_VERSION)\e[0m\n";	\
+		printf "\e[1m\e[5mDo release anyway?\e[0m "; read yorn;			\
+		if [ "$$yorn" != "y" -a "$$yorn" != "Y" ]; then				\
+			printf "OK, aborting release.\n";				\
+			exit 1;								\
+		fi;									\
+		echo;									\
+	else										\
+		echo;									\
+		printf "\e[1m\e[42mFound GIT release tag $(PACKAGE_VERSION)\e[0m\n";	\
+		printf "\e[1m\e[44m>>Remember to push tags!\e[0m\n";			\
+		echo;									\
+	fi
 
-release: $(TAG) distcheck
+release: release-hook distcheck
 	@for file in $(DIST_ARCHIVES); do		\
 		md5sum    $$file > ../$$file.md5;	\
 		sha256sum $$file > ../$$file.sha256;	\
diff --git a/configure b/configure
index 0e5fe85..0dde368 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for SMCRoute 2.5.4.
+# Generated by GNU Autoconf 2.69 for SMCRoute 2.5.5.
 #
 # Report bugs to <https://github.com/troglobit/smcroute/issues>.
 #
@@ -580,8 +580,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='SMCRoute'
 PACKAGE_TARNAME='smcroute'
-PACKAGE_VERSION='2.5.4'
-PACKAGE_STRING='SMCRoute 2.5.4'
+PACKAGE_VERSION='2.5.5'
+PACKAGE_STRING='SMCRoute 2.5.5'
 PACKAGE_BUGREPORT='https://github.com/troglobit/smcroute/issues'
 PACKAGE_URL='https://troglobit.com/smcroute.html'
 
@@ -1310,7 +1310,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures SMCRoute 2.5.4 to adapt to many kinds of systems.
+\`configure' configures SMCRoute 2.5.5 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1377,7 +1377,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of SMCRoute 2.5.4:";;
+     short | recursive ) echo "Configuration of SMCRoute 2.5.5:";;
    esac
   cat <<\_ACEOF
 
@@ -1487,7 +1487,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-SMCRoute configure 2.5.4
+SMCRoute configure 2.5.5
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2021,7 +2021,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by SMCRoute $as_me 2.5.4, which was
+It was created by SMCRoute $as_me 2.5.5, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2884,7 +2884,7 @@ fi
 
 # Define the identity of the package.
  PACKAGE='smcroute'
- VERSION='2.5.4'
+ VERSION='2.5.5'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -6815,7 +6815,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by SMCRoute $as_me 2.5.4, which was
+This file was extended by SMCRoute $as_me 2.5.5, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -6882,7 +6882,7 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-SMCRoute config.status 2.5.4
+SMCRoute config.status 2.5.5
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff --git a/configure.ac b/configure.ac
index a2b12f4..38666d2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,9 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.61)
-AC_INIT(SMCRoute, m4_esyscmd_s(git describe --always --dirty --tags),
-	https://github.com/troglobit/smcroute/issues, smcroute,
-	https://troglobit.com/smcroute.html)
+AC_INIT(SMCRoute, 2.5.5, https://github.com/troglobit/smcroute/issues, smcroute, https://troglobit.com/smcroute.html)
 AC_CONFIG_AUX_DIR(aux)
 AM_INIT_AUTOMAKE([1.11 foreign])
 AM_SILENT_RULES([yes])
diff --git a/src/Makefile.in b/src/Makefile.in
index db5c240..9f6d830 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -410,10 +410,10 @@ clean-sbinPROGRAMS:
 ../lib/$(am__dirstamp):
 	@$(MKDIR_P) ../lib/
 	@: > ../lib/$(am__dirstamp)
-../lib/tempfile.$(OBJEXT): ../lib/$(am__dirstamp)
-../lib/strlcat.$(OBJEXT): ../lib/$(am__dirstamp)
 ../lib/strlcpy.$(OBJEXT): ../lib/$(am__dirstamp)
 ../lib/utimensat.$(OBJEXT): ../lib/$(am__dirstamp)
+../lib/strlcat.$(OBJEXT): ../lib/$(am__dirstamp)
+../lib/tempfile.$(OBJEXT): ../lib/$(am__dirstamp)
 
 smcroutectl$(EXEEXT): $(smcroutectl_OBJECTS) $(smcroutectl_DEPENDENCIES) $(EXTRA_smcroutectl_DEPENDENCIES) 
 	@rm -f smcroutectl$(EXEEXT)
diff --git a/src/mrdisc.c b/src/mrdisc.c
index fe87654..dfb2215 100644
--- a/src/mrdisc.c
+++ b/src/mrdisc.c
@@ -325,8 +325,7 @@ int mrdisc_deregister(short vif)
 		return 0;
 	}
 
-	errno = ENOENT;
-	return -1;
+	return 0;
 }
 
 void mrdisc_send(void *arg)