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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 73672 in the body.
You can then email your comments to 73672 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-libtool <at> gnu.org:
bug#73672; Package libtool. (Mon, 07 Oct 2024 03:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Pratt <mcpratt <at> pm.me>:
New bug report received and forwarded. Copy sent to bug-libtool <at> gnu.org. (Mon, 07 Oct 2024 03:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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







Reply sent to Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>:
You have taken responsibility. (Wed, 09 Oct 2024 17:34:03 GMT) Full text and rfc822 format available.

Notification sent to Michael Pratt <mcpratt <at> pm.me>:
bug acknowledged by developer. (Wed, 09 Oct 2024 17:34:03 GMT) Full text and rfc822 format available.

Message #10 received at 73672-done <at> debbugs.gnu.org (full text, mbox):

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 1 (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)]

Information forwarded to bug-libtool <at> gnu.org:
bug#73672; Package libtool. (Tue, 15 Oct 2024 15:56:02 GMT) Full text and rfc822 format available.

Message #13 received at 73672 <at> debbugs.gnu.org (full text, mbox):

From: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
To: 73672 <at> debbugs.gnu.org
Cc: Michael Pratt <mcpratt <at> pm.me>
Subject: Re: bug#73672: error in distclean and maintainer-clean from releases
Date: Tue, 15 Oct 2024 18:53:54 +0300
[Message part 1 (text/plain, inline)]
The patch has been updated [1] after noticing some issues with it on
other operating systems.

[1] 
https://git.savannah.gnu.org/cgit/libtool.git/commit/?h=development&id=7292b13945ddd2e2af37d31ec398561e81729305

-- 
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)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 13 Nov 2024 12:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 218 days ago.

Previous Next


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