bugmake - Bugs: bug #62356, Setting -R through MAKEFLAGS...

 
 

bug #62356: Setting -R through MAKEFLAGS should set -r.

Submitter:  Dmitry Goncharov <dgoncharov>
Submitted:  Sat 23 Apr 2022 02:11:17 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  4.4 Operating System:  None
Fixed Release:  4.4 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 24 Apr 2022 06:26:26 PM UTC, comment #1: 

Fixed, thanks!

Paul D. Smith <psmith>
Group administrator
Sat 23 Apr 2022 02:11:17 PM UTC, original submission:  

Setting -R through MAKEFLAGS should set -r, just like -R on the command line sets -r.



$ cat makefile
MAKEFLAGS:=-R
all: hello.o
$ make --debug=implicit 2>&1 |tail -10
    Trying implicit prerequisite 'RCS/hello.mod,v'.
    Trying pattern rule with stem 'hello.mod'.
    Trying implicit prerequisite 'RCS/hello.mod'.
    Trying pattern rule with stem 'hello.mod'.
    Trying implicit prerequisite 's.hello.mod'.
    Trying pattern rule with stem 'hello.mod'.
    Trying implicit prerequisite 'SCCS/s.hello.mod'.
   No implicit rule found for 'hello.o'.
  Must remake target 'hello.o'.
make: *** No rule to make target 'hello.o', needed by 'all'.  Stop.
$


Same example with this patch.


$ make --debug=implicit 2>&1 |tail -10
Updating makefiles....
Updating goal targets....
 File 'all' does not exist.
 Looking for an implicit rule for 'all'.
 No implicit rule found for 'all'.
   File 'hello.o' does not exist.
   Looking for an implicit rule for 'hello.o'.
   No implicit rule found for 'hello.o'.
  Must remake target 'hello.o'.
make: *** No rule to make target 'hello.o', needed by 'all'.  Stop.
$


Dmitry Goncharov <dgoncharov>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #53136:  sv62356_test.diff added by dgoncharov (804B - text/x-patch)
file #53137:  sv62356_fix.diff added by dgoncharov (850B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by dgoncharov (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-04-24 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.4
    2022-04-23 dgoncharov Attached File- Added sv62356_test.diff, #53136
        Attached File- Added sv62356_fix.diff, #53137

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code