bugmake - Bugs: bug #47752, --no-print-directory has no effect...

 
 

bug #47752: --no-print-directory has no effect if command parsing complains about -j options

Submitter:  None
Submitted:  Thu 21 Apr 2016 11:24:47 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  4.0 Operating System:  Any
Fixed Release:  4.3 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 06 Dec 2020 07:13:25 PM UTC, comment #2: 

Turns out that this fix is present in 4.3, not 4.2.  Updated this bug to have correct metadata.

Paul D. Smith <psmith>
Group administrator
Sun 15 May 2016 07:48:02 PM UTC, comment #1: 

This has already been fixed in the current Git version...


$ make --version | head -n1
GNU Make 4.1.90

$ make -j4
make t1
make[1]: Entering directory '/tmp'
make -j2 t2
make[2]: Entering directory '/tmp'
make[2]: warning: -jN forced in submake: disabling jobserver mode.
t2
make[2]: Leaving directory '/tmp'
make[1]: Leaving directory '/tmp'


Paul D. Smith <psmith>
Group administrator
Thu 21 Apr 2016 11:24:47 AM UTC, original submission:  

If you run the attached makefile with "make" and "make -j4" you get different behaviours, in the latter case it fails.

I believe this to be a bug due to having parsed the long option --no-print-directory, but not having applied the setting yet.

Please also see the attached diff for a proposed patch.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #36973:  Makefile added by None (219B - application/octet-stream - Sample Makefile demonstrating the problem, proposed patch.)
file #36974:  make_main.diff added by None (414B - text/x-patch - Sample Makefile demonstrating the problem, proposed 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)
  •  

    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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-12-06 psmith StatusDuplicate Fixed
        Assigned toNone psmith
        Fixed ReleaseNone 4.3
    2016-05-15 psmith StatusNone Duplicate
        Open/ClosedOpen Closed
    2016-04-21 None Attached File- Added Makefile, #36973
        Attached File- Added make_main.diff, #36974

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code