bugmake - Bugs: bug #60435, Chained pattern rules with...


bug #60435: Chained pattern rules with multiple targets not removing all intermediate files

Submitter:  None
Submitted:  Thu 22 Apr 2021 02:00:49 AM UTC
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  4.3 Operating System:  POSIX-Based
Fixed Release:  4.4 Triage Status:  Medium Effort
* Mandatory Fields

Add a New Comment (Rich Markup)

Tue 07 Sep 2021 05:15:44 AM UTC, comment #2: 

I applied these patches with some light tweaking.

Thanks for the report (and thanks Dmitry for the patch!)

Paul D. Smith <psmith>
Project Administrator
Sun 25 Apr 2021 04:22:58 PM UTC, comment #1: 

i attached 3 patches, the fix, tests and a fix in the doc.
Thanks for your report.

Dmitry Goncharov <dgoncharov>
Thu 22 Apr 2021 02:00:49 AM UTC, original submission:  

In the following Makefile the a.2 file should have been deleted along with a.1.

~/src/pattern-chain $ gmake --version
GNU Make 4.3
Built for arm-apple-darwin20.2.0
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

~/src/pattern-chain $ ls -1

~/src/pattern-chain $ cat Makefile


%.3: %.1 %.2
cat $^ > $@

%.1 %.2:
touch $*.1 $*.2

~/src/pattern-chain $ make
touch a.1 a.2
cat a.1 a.2 > a.3
rm a.1
~/src/pattern-chain $ ls -1

~/src/pattern-chain $



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

Attach Files:

Attached Files
file #51317:  sv60435_fix.diff added by dgoncharov (4KiB - text/x-patch)
file #51318:  sv60435_doc.diff added by dgoncharov (662B - text/x-patch)
file #51319:  sv60435_tests.diff added by dgoncharov (5KiB - 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 (Updated 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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-09-07 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.4
        Triage StatusNone Medium Effort
    2021-04-25 dgoncharov Attached File- Added sv60435_fix.diff, #51317
        Attached File- Added sv60435_doc.diff, #51318
        Attached File- Added sv60435_tests.diff, #51319

    Back to the top

    Powered by Savane 3.11