Bug 266275

Summary: graphics/ImageMagick6: build broken with TESTS enabled
Product: Ports & Packages Reporter: Dmitry Marakasov <amdmi3>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Some People CC: kwm, ml
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Dmitry Marakasov freebsd_committer freebsd_triage 2022-09-07 16:12:17 UTC
graphics/ImageMagick6 uses broken logic to run tests when TESTS option is enabled. Because of this line:

    post-install-TESTS-on: test

post-install target depends on test, but test depends on stage and stage depends on post-install. As a result of dependency loop, build fails with obscure error:

    ====> Compressing man pages (compress-man)
    `stage' not remade because of errors.
    
    Stop.

To fix the problem, quoted dependency line should be removed.
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-10-13 20:16:30 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d438d1a3fa510978252e9fedd96d8cfe7dd515f6

commit d438d1a3fa510978252e9fedd96d8cfe7dd515f6
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-10-11 19:46:53 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-10-13 20:13:06 +0000

    graphics/ImageMagick6: fix build with TESTS enabled

    Fix by removing circular dependency between targets:

        install /→/ test → stage → install

    PR:             266275
    Approved by:    maintainer timeout

 graphics/ImageMagick6/Makefile | 2 --
 1 file changed, 2 deletions(-)