]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix errors in distclean and maintainer-clean
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 9 Oct 2024 17:02:28 +0000 (20:02 +0300)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Tue, 22 Oct 2024 16:55:50 +0000 (19:55 +0300)
The variable, LT_ARGZ_H, can be empty, which causes distclean and
maintainer-clean to error as a directory is attempted to be removed
instead of a file.

When running maintainer-clean for gnulib-tests, the .version file is
missing, which is needed by config.status, so the command will error.

* configure.ac: Update CONFIG_STATUS_DEPENDENCIES to use dotversion so
  that the .version file can be generated if needed.
* libltdl/ltdl.mk: Add conditional with LTARGZH_EXISTS to append path for
  LT_ARGZ_H file to BUILT_SOURCES.
* m4/ltdl.m4: Add AM_CONDITIONAL for LTARGZH_EXISTS that is set to
  true if LT_ARGZ_H is non-empty.
* NO-THANKS: Add 'Michael Pratt' for bug#73672 contribution.
* NEWS: List additional bug fix.

NEWS
NO-THANKS
configure.ac
libltdl/ltdl.mk
m4/ltdl.m4

diff --git a/NEWS b/NEWS
index 4c76075fc7ecadf91010fb84f054cdd796a87825..c89f6575cbde4a19c676c0af97b0871e6b1ed02f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,8 @@ NEWS - list of user-visible changes between releases of GNU Libtool
   - Fix incorrect use of workarounds designed for Darwin versions that
     don't have -single_module support.
 
+  - Fix errors when executing 'make distclean' and 'make maintainer-clean'.
+
 
 * Noteworthy changes in release 2.5.3 (2024-09-25) [stable]
 
index e35deaa20e6be4aae7f9e33daf7bdedae2eafb23..218590bb5ffd6047b6391a968c0ff8bc03ae2d8e 100644 (file)
--- a/NO-THANKS
+++ b/NO-THANKS
@@ -49,6 +49,7 @@ Juergen Reuter                        reuter@theoc01.desy.de
 Karl Berry                     karl@gnu.org
 Maciej W. Rozycki              macro@linux-mips.org
 Manfred Weichel                        weichel@global.nacamar.de
+Michael Pratt                  mcpratt@pm.me
 Mike Gorchak                   mike@malva.ua
 Mo DeJong                      mdejong@redhat.com
 Nick Hudson                    skrll@netbsd.org
index 4b3a2082c77463e510d485ec6ae50487591fb38f..dee87e8ece5e43ea69dced1b57e32f163acd0357 100644 (file)
@@ -108,7 +108,7 @@ AB_INIT([$autobuild_mode])
 
 
 dnl Make sure config.status is regenerated when the version timestamp changes
-AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/.version'])
+AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(dotversion)'])
 
 
 ## ------------------------------- ##
index 1b7b8a3809a46029d62cce15b5f56560cbf5a8b4..9d6be8292ffd060f6de0acbcb796a6b210b105b3 100644 (file)
@@ -131,7 +131,9 @@ EXTRA_DIST         += libltdl/COPYING.LIB \
 ## Gnulib Makefile.am snippets ##
 ## --------------------------- ##
 
+if LTARGZH_EXISTS
 BUILT_SOURCES  += libltdl/libltdl/$(LT_ARGZ_H)
+endif
 EXTRA_DIST     += libltdl/libltdl/lt__argz_.h \
                   libltdl/lt__argz.c
 
index c47bb98c750d8a3b77066e97cc4b06503e9bfc8d..af2440896b4cacd948094552bfa88f32026e3070 100644 (file)
@@ -8,7 +8,7 @@
 # unlimited permission to copy and/or distribute it, with or without
 # modifications, as long as this notice is preserved.
 
-# serial 23 LTDL_INIT
+# serial 24 LTDL_INIT
 
 # LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
 # ------------------------------------------
@@ -435,7 +435,8 @@ esac
 
 m4_ifdef([AM_CONDITIONAL],
 [AM_CONDITIONAL(INSTALL_LTDL, test no != "${enable_ltdl_install-no}")
- AM_CONDITIONAL(CONVENIENCE_LTDL, test no != "${enable_ltdl_convenience-no}")])
+ AM_CONDITIONAL(CONVENIENCE_LTDL, test no != "${enable_ltdl_convenience-no}")
+ AM_CONDITIONAL(LTARGZH_EXISTS, test -n "$LT_ARGZ_H")])
 ])# _LT_ENABLE_INSTALL