pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/59074: audio/flac installation fails if pandoc is found



>Number:         59074
>Category:       pkg
>Synopsis:       audio/flac installation fails if pandoc is found
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 13 09:50:00 +0000 2025
>Originator:     Frédéric Fauberteau
>Release:        Darwin 24.3.0
>Organization:
>Environment:
System: Darwin arbiter.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:06 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8103 arm64
Architecture: arm
Machine: arm64
>Description:
When updating audio/flac, I get the following error:
    => Checking file-check results for flac-1.5.0
    ERROR: ************************************************************
    ERROR: The following files are in /Users/triaxx/pkgsrc/audio/flac/work/.destdir/Users/triaxx/pkg but not in the PLIST:
    ERROR:         /Users/triaxx/pkgsrc/audio/flac/work/.destdir/Users/triaxx/pkg/share/doc/flac/flac.html
    ERROR:         /Users/triaxx/pkgsrc/audio/flac/work/.destdir/Users/triaxx/pkg/share/doc/flac/metaflac.html
    *** Error code 1
    
    Stop.
    bmake[2]: stopped making "install" in /Users/triaxx/pkgsrc/audio/flac
    *** Error code 1
    
    Stop.
    bmake[1]: stopped making "install" in /Users/triaxx/pkgsrc/audio/flac
    *** Error code 1
    
    Stop.
    bmake: stopped making "update" in /Users/triaxx/pkgsrc/audio/flac
>How-To-Repeat:
These two missing files are generated because the pandoc program has been found on the system:
    % which pandoc
    /usr/local/bin/pandoc
>Fix:
There is several strategies to fix this bug:
  1. Add converters/pandoc as build dependencies. The disadvantage of this strategy is that a tool with a lot of dependencies is needed to generate only two html files.
  2. Patch the CMakeLists.txt file to remove the section testing the presence of pandoc. The disadvantage of this strategy is the necessity of maintaining a patch.
  3. Patch the CMakeLists.txt file to add an additional USE_PANDOC option (which we could disable). The disadvantage of this strategy is that it involves additional development.

My personal preference would be for the third solution because the development time should not be too long and we could commit the patch upstream.



Home | Main Index | Thread Index | Old Index