A NOTE has been added to this issue. 
====================================================================== 
https://www.austingroupbugs.net/view.php?id=1422 
====================================================================== 
Reported By:                joerg
Assigned To:                
====================================================================== 
Project:                    Issue 8 drafts
Issue ID:                   1422
Category:                   Shell and Utilities
Type:                       Error
Severity:                   Objection
Priority:                   normal
Status:                     Resolved
Name:                       Jörg Schilling 
Organization:                
User Reference:              
Section:                     
Page Number:                2894-2895 
Line Number:                97277-97282 
Final Accepted Text:       
https://www.austingroupbugs.net/view.php?id=1422#c5265 
Resolution:                 Accepted As Marked
Fixed in Version:           
====================================================================== 
Date Submitted:             2020-11-18 13:49 UTC
Last Modified:              2021-03-11 22:07 UTC
====================================================================== 
Summary:                    The current definition for the += assingment is in
conflict  with existing behavior of make and unpredictable/error-prone
====================================================================== 

---------------------------------------------------------------------- 
 (0005267) dmitry_goncharov (reporter) - 2021-03-11 22:07
 https://www.austingroupbugs.net/view.php?id=1422#c5267 
---------------------------------------------------------------------- 
> Make on AIX supports += and explicitly documents that macros are always
expanded at use time.

The man page for aix make says
"Variable substitution occurs at two distinct times, depending on where the
variable is being used. Variables in dependency lines are expanded as the
line is read. Variables in shell commands are expanded when the shell
command is executed."

$ cat makefile
what = hello
msg += $(what)
all:
        @echo msg=$(msg)


what=bye
$ /usr/bin/make
msg=bye
$
$ cat makefile2
what = hello
msg += $(what)
all: $(msg)
        @echo msg=$(msg)


what=bye
$ /usr/bin/make -f makefile2
make: 1254-002 Cannot find a rule to create target hello from
dependencies.
Stop.
$

> I currently have no access and thus cannot say
whether there is also support fpr :=.

No support for :=. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2020-11-18 13:49 joerg          New Issue                                    
2020-11-18 13:49 joerg          Name                      => Jörg Schilling 
2020-11-18 13:49 joerg          Page Number               => 2894-2895       
2020-11-18 13:49 joerg          Line Number               => 97277-97282     
2021-03-05 16:11 geoffclare     Note Added: 0005257                          
2021-03-05 17:07 psmith         Note Added: 0005258                          
2021-03-05 17:10 psmith         Note Edited: 0005258                         
2021-03-05 17:11 psmith         Note Edited: 0005258                         
2021-03-05 17:17 psmith         Note Edited: 0005258                         
2021-03-05 18:30 joerg          Note Added: 0005259                          
2021-03-05 19:18 psmith         Note Added: 0005260                          
2021-03-05 19:18 psmith         Note Added: 0005261                          
2021-03-05 19:18 psmith         Note Deleted: 0005261                        
2021-03-05 19:38 psmith         Note Edited: 0005260                         
2021-03-08 15:32 joerg          Note Added: 0005262                          
2021-03-08 15:42 joerg          Note Edited: 0005262                         
2021-03-08 18:56 psmith         Note Added: 0005263                          
2021-03-08 18:58 psmith         Note Edited: 0005263                         
2021-03-11 15:50 joerg          Note Added: 0005264                          
2021-03-11 15:51 joerg          Note Edited: 0005264                         
2021-03-11 16:26 geoffclare     Note Added: 0005265                          
2021-03-11 16:26 geoffclare     Final Accepted Text       =>
https://www.austingroupbugs.net/view.php?id=1422#c5265    
2021-03-11 16:26 geoffclare     Status                   New => Resolved     
2021-03-11 16:26 geoffclare     Resolution               Open => Accepted As
Marked
2021-03-11 16:27 geoffclare     Tag Attached: issue8                         
2021-03-11 22:07 dmitry_goncharovNote Added: 0005267                          
======================================================================


  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group

Reply via email to