Bug 266275 - graphics/ImageMagick6: build broken with TESTS enabled
Summary: graphics/ImageMagick6: build broken with TESTS enabled
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-07 16:12 UTC by Dmitry Marakasov
Modified: 2022-10-13 20:16 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 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(-)