GNU bug report logs - #73672
error in distclean and maintainer-clean from releases

Previous Next

Package: libtool;

Reported by: Michael Pratt <mcpratt <at> pm.me>

Date: Mon, 7 Oct 2024 03:45:02 UTC

Severity: normal

Done: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Michael Pratt <mcpratt <at> pm.me>
Subject: bug#73672: closed (Re: bug#73672: error in distclean and
 maintainer-clean from releases)
Date: Wed, 09 Oct 2024 17:34:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#73672: error in distclean and maintainer-clean from releases

which was filed against the libtool package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 73672 <at> debbugs.gnu.org.

-- 
73672: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=73672
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
To: 73672-done <at> debbugs.gnu.org
Cc: Michael Pratt <mcpratt <at> pm.me>
Subject: Re: bug#73672: error in distclean and maintainer-clean from releases
Date: Wed, 9 Oct 2024 20:31:46 +0300
[Message part 3 (text/plain, inline)]
On 07/10/2024 03:32, Michael Pratt via bug-libtool via Bug reports for 
the GNU libtool shared library maintenance tool wrote:
> Hi,
> 
> After configuring with a release, on my system the variable $(LT_ARGZ_H) ends up being blank.
> For building this is no problem, however, if I wanted to run the clean targets there is an error:
> 
>    This command is intended for maintainers to use
>    it deletes files that may require special tools to rebuild.
>    test -z "libtool libtoolize libltdl/libltdl/ ./.version" || rm -f libtool libtoolize libltdl/libltdl/ ./.version
>    rm: cannot remove 'libltdl/libltdl/': Is a directory
>    make[4]: [Makefile:2003: maintainer-clean-generic] Error 1 (ignored)
> 
> even though it is allowed to pass, the rest of the rules do not run for that subdirectory "."
> A quick patch can workaround this:
> 
> --- a/libltdl/ltdl.mk
> +++ b/libltdl/ltdl.mk
> @@ -134,7 +134,7 @@ EXTRA_DIST	       += libltdl/COPYING.LIB
>   ## Gnulib Makefile.am snippets ##
>   ## --------------------------- ##
> 
> -BUILT_SOURCES	+= libltdl/libltdl/$(LT_ARGZ_H)
> +BUILT_SOURCES	+= $(if $(LT_ARGZ_H),libltdl/libltdl/$(LT_ARGZ_H))
>   EXTRA_DIST	+= libltdl/libltdl/lt__argz_.h \
>   		   libltdl/lt__argz.c
> 
> 
> 
> however this results in a warning:
> 
>    libltdl/ltdl.mk:137: warning: if $(LT_ARGZ_H: non-POSIX variable name
>    libltdl/ltdl.mk:137: (probably a GNU make extension)
> 
> 
> so probably there is a better way to fix it...
> 

Thank you for the bug report! I have updated the development branch [1]
based off of your workaround and something I found when researching [2]
to avoid the warning you mentioned.

This should fix the issue you reported with the one I noticed. If there
are any issues, I will reopen the bug.

[1] 
https://git.savannah.gnu.org/cgit/libtool.git/commit/?h=development&id=a1fe29d73b5b2cb34053aa85d31c522c48a7785a
[2] 
https://autoconf.gnu.narkive.com/DvFhTSVq/autoreconf-stops-with-non-posix-variable-name

-- 
Ileana Dumitrescu

GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354

[OpenPGP_0x6570EA01146F7354.asc (application/pgp-keys, attachment)]
[OpenPGP_signature.asc (application/pgp-signature, attachment)]
[Message part 6 (message/rfc822, inline)]
From: Michael Pratt <mcpratt <at> pm.me>
To: "bug-libtool <at> gnu.org" <bug-libtool <at> gnu.org>
Subject: error in distclean and maintainer-clean from releases
Date: Mon, 07 Oct 2024 00:32:22 +0000
Hi,

After configuring with a release, on my system the variable $(LT_ARGZ_H) ends up being blank.
For building this is no problem, however, if I wanted to run the clean targets there is an error:

  This command is intended for maintainers to use
  it deletes files that may require special tools to rebuild.
  test -z "libtool libtoolize libltdl/libltdl/ ./.version" || rm -f libtool libtoolize libltdl/libltdl/ ./.version
  rm: cannot remove 'libltdl/libltdl/': Is a directory
  make[4]: [Makefile:2003: maintainer-clean-generic] Error 1 (ignored)

even though it is allowed to pass, the rest of the rules do not run for that subdirectory "."
A quick patch can workaround this:

--- a/libltdl/ltdl.mk
+++ b/libltdl/ltdl.mk
@@ -134,7 +134,7 @@ EXTRA_DIST	       += libltdl/COPYING.LIB
 ## Gnulib Makefile.am snippets ##
 ## --------------------------- ##

-BUILT_SOURCES	+= libltdl/libltdl/$(LT_ARGZ_H)
+BUILT_SOURCES	+= $(if $(LT_ARGZ_H),libltdl/libltdl/$(LT_ARGZ_H))
 EXTRA_DIST	+= libltdl/libltdl/lt__argz_.h \
 		   libltdl/lt__argz.c



however this results in a warning:

  libltdl/ltdl.mk:137: warning: if $(LT_ARGZ_H: non-POSIX variable name
  libltdl/ltdl.mk:137: (probably a GNU make extension)


so probably there is a better way to fix it...

--
MCP






This bug report was last modified 240 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.