[bug #63552] includes specified with -I ignored when -C is also used, since 4.4

2022-12-24 Thread Paul D. Smith
Update of bug #63552 (project make):

  Status:None => Fixed  
 Assigned to:None => psmith 
 Open/Closed:Open => Closed 
Operating System:None => Any
   Fixed Release:None => SCM
   Triage Status:None => Small Effort   


___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/




[bug #63552] includes specified with -I ignored when -C is also used, since 4.4

2022-12-24 Thread Paul D. Smith
Follow-up Comment #1, bug #63552 (project make):

Thanks for the report.  I have a fix for this.


___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/




[bug #63552] includes specified with -I ignored when -C is also used, since 4.4

2022-12-20 Thread Michael Pujos
Additional Item Attachment, bug #63552 (project make):

File name: make_include_bug.tar.gzSize:0 KB




___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/




[bug #63552] includes specified with -I ignored when -C is also used, since 4.4

2022-12-20 Thread anonymous
URL:
  

 Summary: includes specified with -I ignored when -C is also
used, since 4.4
 Project: make
   Submitter: None
   Submitted: Tue 20 Dec 2022 11:14:25 AM UTC
Severity: 3 - Normal
  Item Group: Bug
  Status: None
 Privacy: Public
 Assigned to: None
 Open/Closed: Open
 Discussion Lock: Any
   Component Version: 4.4
Operating System: None
   Fixed Release: None
   Triage Status: None


___

Follow-up Comments:


---
Date: Tue 20 Dec 2022 11:14:25 AM UTC By: Anonymous
There's a regression in v4.4 where if you invoke make with both -C and -I
parameters, the include directory specified by -I is not seen in the Makefile
by the include directives it contains.

for example let's consider a folder containing these files/folders:

inc/test  (empty file included by Makefile)
src/Makefile

Makefile has this content


include test

all:


In that folder, this execution fails, as the include directive is not taken
into account -I../inc (the bug):


make -C src -I../inc all
make: Entering directory '/tmp/make_include_bug/src'
Makefile:1: test: No such file or directory
make: *** No rule to make target 'test'.  Stop.
make: Leaving directory '/tmp/make_include_bug/src'


v4.3 works fine (no error), as well as:


(cd src ; make -I../inc all)


So it is really the combination of -C and -I that does not work anymore.

I have attached a small archive with the folder structure above.

This regression was initially discovered when compiling sbcl which is using
such construct. 







___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/