]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
lsb_release -sir on debian produces separate lines fche/copr
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 7 Jan 2020 15:48:31 +0000 (10:48 -0500)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 7 Jan 2020 15:48:31 +0000 (10:48 -0500)
debuginfod/Makefile.am

index 2e62e7726f153c46d5ccf6fc1c0878dca33173de..97042d0b26b5064d7343293e1e26874d03008600 100644 (file)
@@ -74,7 +74,7 @@ debuginfod-client-useragent.h:
                echo '#define DEBUGINFOD_CLIENT_USERAGENT_1 ""' > $@; \
        fi
        if type lsb_release 2>/dev/null; then \
-               echo '#define DEBUGINFOD_CLIENT_USERAGENT_2 "'`lsb_release -sir | sed -e 's, ,/,g'`'"' >> $@; \
+               echo '#define DEBUGINFOD_CLIENT_USERAGENT_2 "'`lsb_release -sir | tr '\012' ' ' | sed -e 's, ,/,g'`'"' >> $@; \
        else \
                echo '#define DEBUGINFOD_CLIENT_USERAGENT_2 ""' >> $@; \
        fi