NetBSD Problem Report #59074

From triaxx@netbsd.org  Thu Feb 13 09:46:29 2025
Return-Path: <triaxx@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 5887E1A923A
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 13 Feb 2025 09:46:29 +0000 (UTC)
Message-Id: <20250213094628.40CCE1A923C@mollari.NetBSD.org>
Date: Thu, 13 Feb 2025 09:46:28 +0000 (UTC)
From: triaxx@netbsd.org
Reply-To: triaxx@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: audio/flac installation fails if pandoc is found
X-Send-Pr-Version: 3.95

>Number:         59074
>Category:       pkg
>Synopsis:       audio/flac installation fails if pandoc is found
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 13 09:50:00 +0000 2025
>Closed-Date:    Thu Feb 13 11:01:45 +0000 2025
>Last-Modified:  Thu Feb 13 11:01:45 +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.

>Release-Note:

>Audit-Trail:
From: =?UTF-8?B?RnLDqWTDqXJpYyBGYXViZXJ0ZWF1?= <triaxx@triaxx.online>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/59074: audio/flac installation fails if pandoc is found
Date: Thu, 13 Feb 2025 10:57:14 +0100

 Actually, audio/flac uses GNU configure (and not CMake) for the 
 configuration step. Therefore the second and third strategies suggested 
 in PR 59074 are not relevent.

From: =?UTF-8?B?RnLDqWTDqXJpYyBGYXViZXJ0ZWF1?= <triaxx@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/59074 CVS commit: pkgsrc/audio/flac
Date: Thu, 13 Feb 2025 10:59:45 +0000

 Module Name:	pkgsrc
 Committed By:	triaxx
 Date:		Thu Feb 13 10:59:45 UTC 2025

 Modified Files:
 	pkgsrc/audio/flac: Makefile

 Log Message:
 flac: Fix PR pkg/59074


 To generate a diff of this commit:
 cvs rdiff -u -r1.62 -r1.63 pkgsrc/audio/flac/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: triaxx@NetBSD.org
State-Changed-When: Thu, 13 Feb 2025 11:01:45 +0000
State-Changed-Why:
Fix applied


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.