Bug 289997 - `make delete-old` throws duplicate script warnings
Summary: `make delete-old` throws duplicate script warnings
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 16.0-CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Kyle Evans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-04 17:13 UTC by Kenneth Raplee
Modified: 2025-10-06 17:52 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Raplee 2025-10-04 17:13:38 UTC
make -C /usr/src BATCH_DELETE_OLD_FILES=YES delete-old
make[1]: /usr/src/Makefile.inc1:2867: warning: duplicate script for target "_bootstrap-tools-lib/libmd" ignored
make[1]: /usr/src/Makefile.inc1:2867: warning: using previous script for "_bootstrap-tools-lib/libmd" defined here
>>> Removing old files (only deletes safe to delete libs)
make[2]: /usr/src/Makefile.inc1:2867: warning: duplicate script for target "_bootstrap-tools-lib/libmd" ignored
make[2]: /usr/src/Makefile.inc1:2867: warning: using previous script for "_bootstrap-tools-lib/libmd" defined here
make[3]: /usr/src/Makefile.inc1:2867: warning: duplicate script for target "_bootstrap-tools-lib/libmd" ignored
make[3]: /usr/src/Makefile.inc1:2867: warning: using previous script for "_bootstrap-tools-lib/libmd" defined here
/usr/libexec/kgdb/acttrace.py
>>> Old files removed
>>> Removing old directories
make[2]: /usr/src/Makefile.inc1:2867: warning: duplicate script for target "_bootstrap-tools-lib/libmd" ignored
make[2]: /usr/src/Makefile.inc1:2867: warning: using previous script for "_bootstrap-tools-lib/libmd" defined here
make[3]: /usr/src/Makefile.inc1:2867: warning: duplicate script for target "_bootstrap-tools-lib/libmd" ignored
make[3]: /usr/src/Makefile.inc1:2867: warning: using previous script for "_bootstrap-tools-lib/libmd" defined here
/usr/libexec/kgdb
>>> Old directories removed
To remove old libraries run 'make delete-old-libs'.

# uname -aKU
FreeBSD freebsd 16.0-CURRENT FreeBSD 16.0-CURRENT #0 main-n280899-02dfca245808: Sat Oct  4 08:51:42 PDT 2025     root@freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 1600001 1600001
Comment 1 Warner Losh freebsd_committer freebsd_triage 2025-10-05 15:05:19 UTC
https://reviews.freebsd.org/D52904
Comment 2 commit-hook freebsd_committer freebsd_triage 2025-10-06 17:52:22 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=ab492c08fc3cbf4fb5d569663c0751bc2a41cb1f

commit ab492c08fc3cbf4fb5d569663c0751bc2a41cb1f
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2025-10-06 17:50:22 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2025-10-06 17:51:29 +0000

    build: don't create duplicate bootstrap-tools targets

    The general problem is that we might have a somewhat complicated
    dependency tree depending on bootstrap version requirements.  We could
    document when multiple bootstrap tools might have a shared dependency
    and be careful to add them only once to the list, but that is a little
    more fragile- particularly if we purge some bootstrap tools and need to
    re-work the logic a little bit.

    Just avoid redefining the build commands as we're iterating over the
    list so that we can keep the actual requirements intact.

    PR:             289997
    Reported by:    dhw, others
    Reviewed by:    imp
    Fixes:  151bd3516b5 ("flua: support our flua modules in [...]")
    Differential Revision:  https://reviews.freebsd.org/D52904

 Makefile.inc1 | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
Comment 3 Kyle Evans freebsd_committer freebsd_triage 2025-10-06 17:52:46 UTC
Should be good now- thanks for the report.