[bug #68409] $(call) doesn't undefine unspecified temporary variables properly
Geza Herman <[email protected]> Sat, 30 May 2026 07:02:05 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.make.bugs |
|---|---|
| Message-ID | <[email protected]> |
--8323329-1714636915-1780138924=:784746
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline
URL:=0A <https://savannah.gnu.org/bugs/?68409>=0A=0A Summa=
ry: $(call) doesn't undefine unspecified temporary=0Avariables properly=0A =
Group: make=0A Submitter: geza=0A =
Submitted: Sat 30 May 2026 11:01:59 AM UTC=0A Severity:=
3 - Normal=0A Priority: 5 - Normal=0A Item Gro=
up: Bug=0A Status: None=0A Privacy: Public=
=0A Assigned to: None=0A Open/Closed: Open=0A =
Discussion Lock: Unlocked=0A Component Version: 4.4.1=0A Op=
erating System: POSIX-Based=0A Fixed Release: None=0A T=
riage Status: None=0A=0A=0A ____________________________________________=
___________=0A=0AFollow-up Comments:=0A=0A=0A------------------------------=
-------------------------=0ADate: Sat 30 May 2026 11:01:59 AM UTC By: Geza =
Herman <geza>=0AWhen $(call) is expanded inside a variable, make doesn't un=
define unspecified=0Aarguments properly.=0A=0AI attached a simple Makefile.=
foo takes 2 arguments. If it is called=0Adirectly with one argument, $(o=
rigin 2) is correctly "undefined". But if foo=0Ais called from bar, $(orig=
in 2) reports "automatic". Note: $2's value is empty=0A(so it is not a left=
over of bar's $2), but I think $(origin 2) should be=0A"undefined", just li=
ke when foo is called directly.=0A=0A=0A=0A=0A=0A=0A=0A ________________=
_______________________________________=0AFile Attachments:=0A=0AName: Make=
file Size: 194B=0A <https://file.savannah.gnu.org/=
file/Makefile?file_id=3D58666>=0A=0A=0A=0A AGPL NOTICE=0A=0AThese attach=
ments are served by Savane. You can download the corresponding=0Asource cod=
e of Savane at=0Ahttps://savannah.gnu.org/source/savane-c36938be85ff6c1b727=
bc7dd7fd30e48f9142870.tar.gz=0A=0A _____________________________________=
__________________=0A=0AReply to this item at:=0A=0A <https://savannah.gnu=
.org/bugs/?68409>=0A=0A_______________________________________________=0AMe=
ssage sent via Savannah=0Ahttps://savannah.gnu.org/=0A
--8323329-1714636915-1780138924=:784746
Content-Type: APPLICATION/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCahrDrAAKCRCqLAuaBUf3
TpynAP42aAxAY+T1ViuI2qlTmIWm6DwJc7Uu1t6cyA0+K6i0FgD8C3wzDzSdM/Mw
1S+Jhj1nHHjNkfj5j0kPtTjOAt4vEAk=
=CIk5
-----END PGP SIGNATURE-----
--8323329-1714636915-1780138924=:784746--