bugmake - Bugs: bug #50823, MAKEFILE_LIST contains wrong file...


bug #50823: MAKEFILE_LIST contains wrong file name if file name contains dollar character

Submitted by:  None
Submitted on:  Tue 18 Apr 2017 08:16:02 AM UTC  
Severity: 3 - NormalItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: Paul D. Smith <psmith>Open/Closed: Closed
Component Version: 4.2.1Operating System: POSIX-Based
Fixed Release: SCMTriage Status: None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 04 Jun 2017 10:55:37 PM UTC, comment #2:

I decided to use a different fix, that didn't have any backward-compat issues.

A fix has been pushed and will be in the next release. Thank you for filing a report!

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Tue 25 Apr 2017 02:56:13 PM UTC, comment #1:

Patch to fix #50823, see attached file.

(file #40504)

Dominik Muth <dominik_muth>
Tue 18 Apr 2017 08:16:02 AM UTC, original submission:

To reproduce:

$ echo -e 'all:\n\techo $(value MAKEFILE_LIST)' > /tmp/foo\$bar.mk
$ ./make -f '/tmp/foo$bar.mk'
echo /tmp/fooar.mk

I think this is inconsistent and contradicts the documentation, which states "MAKEFILE_LIST Contains the name of each makefile that is parsed by make, in the order in which it was parsed."

See also http://stackoverflow.com/q/43466130/2965738



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

Attach File(s):

Attached Files
file #40504:  0001-Make-MAKEFILE_LIST-a-recursively-expanded-variable.patch added by dominik_muth (3KiB - application/octet-stream - Patch to fix #50823)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by psmith (Posted a comment)
  • -unavailable- added by dominik_muth (Updated the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 04 Jun 2017 10:55:37 PM UTCpsmithStatusNone=>Fixed
      Assigned toNone=>psmith
      Fixed ReleaseNone=>SCM
    Tue 25 Apr 2017 02:56:13 PM UTCdominik_muthAttached File-=>Added 0001-Make-MAKEFILE_LIST-a-recursively-expanded-variable.patch, #40504

    Back to the top

    Powered by Savane 3.1-cleanup1