]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
config/Makefile.am: Modify profile.fish in all-local
authorAaron Merey <amerey@redhat.com>
Fri, 10 May 2024 21:46:24 +0000 (17:46 -0400)
committerAaron Merey <amerey@redhat.com>
Fri, 10 May 2024 21:56:49 +0000 (17:56 -0400)
Fish shell scripts do not support bracketed variables.
config/Makefile.am removes brackets from a variable in
config/fish.profile in order to prevent an error when running the
script.

Currently the brackets are removed during make install.  This causes
testsuite failures if make check is run before make install.

Fix this by removing the brackets in all-local instead of
install-data-local.

Signed-off-by: Aaron Merey <amerey@redhat.com>
config/Makefile.am

index e42aacee0c9690ffe5d7156c6ad3f7ace438cb92..2dcbe94eaef12e349e3bbade849a622811fd210b 100644 (file)
@@ -38,10 +38,12 @@ pkgconfig_DATA = libelf.pc libdw.pc
 if LIBDEBUGINFOD
 pkgconfig_DATA += libdebuginfod.pc
 
+all-local:
+       sed -i 's/{prefix}/prefix/g' profile.fish
+
 install-data-local:
        $(INSTALL_DATA) profile.sh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh
        $(INSTALL_DATA) profile.csh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.csh
-       sed -i 's/{prefix}/prefix/g' profile.fish
        $(INSTALL_DATA) profile.fish -D $(DESTDIR)$(datadir)/fish/vendor_conf.d/debuginfod.fish
        mkdir -p $(DESTDIR)$(sysconfdir)/debuginfod
        if [ -n "@DEBUGINFOD_URLS@" ]; then \