Fix `make distcheck`
authorKirill Isakov <bootctl@gmail.com>
Sat, 12 Mar 2022 06:32:01 +0000 (12:32 +0600)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 12 Mar 2022 14:45:36 +0000 (15:45 +0100)
`make distcheck` builds and then calls both tinc and tincd with two options:

--version
--help

tincd behavior was changed by 28b7a53b6 to print usage information to
stderr, but automake expects to see a non-empty output from stdout, and
fails distcheck if it's empty.

src/Makefile.am
src/bsd/device.c
src/openssl/rsagen.c
src/tincd.c

index 0d79c90..7d6a31d 100644 (file)
@@ -244,22 +244,22 @@ sptps_speed_SOURCES += \
 else
 if GCRYPT
 tincd_SOURCES += \
-       gcrypt/cipher.c \
+       gcrypt/cipher.c gcrypt/cipher.h \
        gcrypt/crypto.c \
        gcrypt/digest.c gcrypt/digest.h \
        gcrypt/pem.c gcrypt/pem.h \
        gcrypt/prf.c \
-       gcrypt/rsa.c
+       gcrypt/rsa.c gcrypt/rsa.h
 tinc_SOURCES += \
-       gcrypt/cipher.c \
+       gcrypt/cipher.c gcrypt/cipher.h \
        gcrypt/crypto.c \
        gcrypt/digest.c gcrypt/digest.h \
        gcrypt/pem.c gcrypt/pem.h \
        gcrypt/prf.c \
-       gcrypt/rsa.c \
+       gcrypt/rsa.c gcrypt/rsa.h \
        gcrypt/rsagen.c
 sptps_test_SOURCES += \
-       gcrypt/cipher.c \
+       gcrypt/cipher.c gcrypt/cipher.h \
        gcrypt/crypto.c \
        gcrypt/digest.c gcrypt/digest.h \
        gcrypt/prf.c
index 0c1a62f..badd77d 100644 (file)
@@ -28,7 +28,7 @@
 #include "../xalloc.h"
 
 #ifdef ENABLE_TUNEMU
-#include "bsd/tunemu.h"
+#include "tunemu.h"
 #endif
 
 #ifdef HAVE_NET_IF_UTUN_H
index ce0bd0b..3674057 100644 (file)
@@ -17,7 +17,7 @@
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#include "system.h"
+#include "../system.h"
 
 #include <openssl/pem.h>
 #include <openssl/err.h>
index 022fb53..da3f03b 100644 (file)
@@ -143,7 +143,7 @@ static void usage(bool status) {
                        "\n"
                        "Report bugs to tinc@tinc-vpn.org.\n";
 
-               fprintf(stderr, message, program_name);
+               printf(message, program_name);
        }
 }