NetBSD Problem Report #51113

From www@NetBSD.org  Tue May  3 10:26:21 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 36F607A211
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  3 May 2016 10:26:21 +0000 (UTC)
Message-Id: <20160503102620.0B2657AA9F@mollari.NetBSD.org>
Date: Tue,  3 May 2016 10:26:20 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: multimedia/ffmpeg2 fails to install on Solaris 11
X-Send-Pr-Version: www-1.0

>Number:         51113
>Category:       pkg
>Synopsis:       multimedia/ffmpeg2 fails to install on Solaris 11
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    leot
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 03 10:30:00 +0000 2016
>Closed-Date:    Thu May 05 07:41:46 +0000 2016
>Last-Modified:  Tue May 10 08:55:00 +0000 2016
>Originator:     Joern Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
installation of multimedia/ffmpeg2 version 2.8.7 fails on Solaris, if textproc/texi2html is not present:

=> Creating binary package /opt/pkgsrc/pkg-web/pkgsrc/multimedia/ffmpeg2/work.pkgsrc-sol11i86/.packages/ffmp
eg2-2.8.7.tgz
pkg_create: can't stat `/opt/pkgsrc/pkg-web/pkgsrc/multimedia/ffmpeg2/work.pkgsrc-sol11i86/.destdir/opt/pkg-
web/20160411/share/doc/ffmpeg2/developer.html'
pkg_create: can't stat `/opt/pkgsrc/pkg-web/pkgsrc/multimedia/ffmpeg2/work.pkgsrc-sol11i86/.destdir/opt/pkg-
web/20160411/share/doc/ffmpeg2/faq.html'
pkg_create: can't stat `/opt/pkgsrc/pkg-web/pkgsrc/multimedia/ffmpeg2/work.pkgsrc-sol11i86/.destdir/opt/pkg-
web/20160411/share/doc/ffmpeg2/fate.html'

Solaris' native texi2html fails the configure test for unknown reasons:

texi2html enabled         no


>How-To-Repeat:

>Fix:
Personally, I'd prefer the old behaviour of not installing the HTML docs, i.e. add "--disable-htmlpages" as configure flag and fix PLIST.

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51113: multimedia/ffmpeg2 fails to install on Solaris 11
Date: Tue, 3 May 2016 18:24:18 +0000

 On Tue, May 03, 2016 at 10:30:00AM +0000, joern.clausen@uni-bielefeld.de wrote:
  > Personally, I'd prefer the old behaviour of not installing the HTML
  > docs, i.e. add "--disable-htmlpages" as configure flag and fix
  > PLIST.

 If one does that, does it still also need pod2man? (I figure probably
 yes)

 -- 
 David A. Holland
 dholland@netbsd.org

Responsible-Changed-From-To: pkg-manager->leot
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Tue, 03 May 2016 19:59:30 +0000
Responsible-Changed-Why:
I have originally committed the problematic part.
Take the responsibility for it!


From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51113: multimedia/ffmpeg2 fails to install on Solaris 11
Date: Tue, 03 May 2016 21:55:24 +0200

 Hello Joern,

 joern.clausen@uni-bielefeld.de writes:
 > [...]
 > Solaris' native texi2html fails the configure test for unknown reasons:
 > 
 > texi2html enabled         no
 >
 Can you please provide the output of `texi2html --help'? It seems that
 ffmpeg2's configure invoke it and try to parse the `init-file' option in
 the usage message. I guess that in your setup there is no match (if you
 are more interested/curious please give a look at configure:5415).

 > >Fix:
 > Personally, I'd prefer the old behaviour of not installing the HTML
 > docs, i.e. add "--disable-htmlpages" as configure flag and fix PLIST.
 While we can --disable-htmlpages, texi2html is also required to
 generate man pages (that's why I have looked at it recently). I
 think that having them is an improvement to the previous situation
 and so I prefer to find and fix the issue you have reported.


 Ciao,
 L.

From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51113: multimedia/ffmpeg2 fails to install on Solaris 11
Date: Tue, 03 May 2016 22:31:01 +0200

 Leonardo Taccari writes:
 > While we can --disable-htmlpages, texi2html is also required to
 > generate man pages (that's why I have looked at it recently). I
 > think that having them is an improvement to the previous situation
 > and so I prefer to find and fix the issue you have reported.
 I was completely wrong and David's presentiment was good indeed!

 Can you please try the following patches?

  http://netbsd.org/~leot/pkgsrc-patches/ffmpeg2-pkg51113-patches

 It will disable HTML docs (and the need for texi2html) but at the
 same time generate and install the man pages.


 Sorry again for the confusion!
 Ciao,
 L.

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51113: multimedia/ffmpeg2 fails to install on Solaris 11
Date: Wed, 4 May 2016 07:25:06 +0000

 On Tue, May 03, 2016 at 08:35:00PM +0000, Leonardo Taccari wrote:
  >  Can you please try the following patches?
  >  
  >   http://netbsd.org/~leot/pkgsrc-patches/ffmpeg2-pkg51113-patches
  >  
  >  It will disable HTML docs (and the need for texi2html) but at the
  >  same time generate and install the man pages.

 I had been thinking about making the HTML docs an option instead, but
 I haven't actually done the work so don't mind me :-)

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Wed, 04 May 2016 09:37:10 +0000
State-Changed-Why:
A patch to probably fix the problem is proposed


From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51113: multimedia/ffmpeg2 fails to install on Solaris 11
Date: Wed, 04 May 2016 11:35:04 +0200

 Hello David,

 David Holland writes:
 >  I had been thinking about making the HTML docs an option instead, but
 >  I haven't actually done the work so don't mind me :-)
 Seems doable (and probably I can handle that :))!

 However, for the moment I prefer to receive a feedback that the patch
 correctly works and then add a "doc" option (not enabled by default).

 (side note: probably ffmpeg3 is affected by the same problem reported
 in this PR, I will also look and fix it similarly)

 Thank you for the suggestion!
 Ciao,
 L.

From: =?ISO-8859-15?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: Leonardo Taccari <leot@NetBSD.org>, gnats-admin@NetBSD.org,
 pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/51113: multimedia/ffmpeg2 fails to install on Solaris 11
Date: Wed, 04 May 2016 11:47:01 +0200

 On 03.05.16 22:35, Leonardo Taccari wrote:
 >   Can you please try the following patches?
 >
 >    http://netbsd.org/~leot/pkgsrc-patches/ffmpeg2-pkg51113-patches
 >
 >   It will disable HTML docs (and the need for texi2html) but at the
 >   same time generate and install the man pages.

 With these patches applied, the package builds and installs for me.

 But I think the real culprit is somewhere else: Even with 
 textproc/texi2html installed, texi2html is not recognized by the 
 configure script. I guess, that this

 disabled makeinfo_html && texi2html --help 2> /dev/null | grep -q 
 'init-file' && enable texi2html || disable texi2html

 is again too deep magic for Solaris' shell. The main part

 texi2html --help 2> /dev/null | grep -q 'init-file'

 works as expected, so it's probably the surrounding logic.

 If native texi2html is used, the test has to fail, because "--help" does 
 indeed not return the string "init-file".

 If nobody objects to continue not installing the HTML docs, I would very 
 much appreciate this patch.

 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 Hochschulrechenzentrum

 Universität Bielefeld
 Universitätsstraße 25
 33615 Bielefeld
 Telefon: +49 521 106-12601
 E-Mail: joern.clausen@uni-bielefeld.de

 http://www.uni-bielefeld.de/hrz

From: "Leonardo Taccari" <leot@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51113 CVS commit: pkgsrc/multimedia
Date: Thu, 5 May 2016 07:03:48 +0000

 Module Name:	pkgsrc
 Committed By:	leot
 Date:		Thu May  5 07:03:47 UTC 2016

 Modified Files:
 	pkgsrc/multimedia/ffmpeg2: Makefile Makefile.common PLIST options.mk
 	pkgsrc/multimedia/ffmpeg3: Makefile Makefile.common PLIST options.mk

 Log Message:
 Add a new "doc" option to install multimedia/ffmpeg[23] HTML documentation,
 disabled by default.

 Fix PR pkg/51113 reported by Joern Clausen.
 ffmpeg needs texi2html features that can be not available in the version
 provided natively by the platform.

 While here also add a PRINT_PLIST_AWK to automa{g,t}ically print a PLIST that
 need less manual intervention.

 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -u -r1.28 -r1.29 pkgsrc/multimedia/ffmpeg2/Makefile
 cvs rdiff -u -r1.47 -r1.48 pkgsrc/multimedia/ffmpeg2/Makefile.common
 cvs rdiff -u -r1.11 -r1.12 pkgsrc/multimedia/ffmpeg2/PLIST
 cvs rdiff -u -r1.10 -r1.11 pkgsrc/multimedia/ffmpeg2/options.mk
 cvs rdiff -u -r1.5 -r1.6 pkgsrc/multimedia/ffmpeg3/Makefile \
     pkgsrc/multimedia/ffmpeg3/Makefile.common
 cvs rdiff -u -r1.3 -r1.4 pkgsrc/multimedia/ffmpeg3/PLIST
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/multimedia/ffmpeg3/options.mk

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

State-Changed-From-To: feedback->closed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Thu, 05 May 2016 07:41:46 +0000
State-Changed-Why:
Committed a modified version of the patch.

Now html documentation is generated only if the "doc"
option is selected.

Thank you very much Joern for the PR!


From: "Jonathan Perkin" <jperkin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51113 CVS commit: pkgsrc/mk/tools
Date: Tue, 10 May 2016 08:54:49 +0000

 Module Name:	pkgsrc
 Committed By:	jperkin
 Date:		Tue May 10 08:54:49 UTC 2016

 Modified Files:
 	pkgsrc/mk/tools: tools.SunOS.mk

 Log Message:
 Stop using the native texi2html on SunOS.  It's not fully compatible
 with what packages such as multimedia/ffmpeg2 expect, and as so few
 packages have texi2html in USE_TOOLS it may be causing more problems
 that it is worth to save a few dependencies.  PR#51113.


 To generate a diff of this commit:
 cvs rdiff -u -r1.49 -r1.50 pkgsrc/mk/tools/tools.SunOS.mk

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

>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.