Bug 204785 - audio/audacity: Fails to build with DOCS option enabled (Add missing dependencies)
Summary: audio/audacity: Fails to build with DOCS option enabled (Add missing dependen...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Thomas Zander
URL:
Keywords: easy, patch, patch-ready
Depends on:
Blocks:
 
Reported: 2015-11-24 15:15 UTC by Rainer Hurling
Modified: 2015-11-28 14:46 UTC (History)
3 users (show)

See Also:
koobs: maintainer-feedback+


Attachments
patch audacity: add build deps for docs (513 bytes, patch)
2015-11-24 15:15 UTC, Rainer Hurling
no flags Details | Diff
Patch to add needed depends if DOCS selected (440 bytes, patch)
2015-11-27 10:31 UTC, Jack
xxjack12xx: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Hurling freebsd_committer freebsd_triage 2015-11-24 15:15:44 UTC
Created attachment 163484 [details]
patch audacity: add build deps for docs

With option DOCS enabled, the build fails. Bash complains about missing command docbook-to-man and docbook2man.

Including build dependencies textproc/docbook-to-man and textproc/docbook-utils seem to solve the problem.
Comment 1 Rainer Hurling freebsd_committer freebsd_triage 2015-11-24 15:16:40 UTC
(In reply to Rainer Hurling from comment #0)

Forgot to say, that Poudriere builds fine with them, but fails without.

portlint -AC ok, also.
Comment 2 Jack 2015-11-24 21:18:31 UTC
Since DOC installation is an option, should convert it to DOC_DEPENDS= so it only installs those dependencies if DOC is chosen.
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2015-11-27 02:36:01 UTC
@Jack as per comment 2, does this need an updated patch or is attachment 163484 [details] OK? Please provide clear instructions: approved or not approved for <attachment id> with comment

Otherwise this issue is a blanket fix that has implicit (portmgr/ports-secteam) approval
Comment 4 Jack 2015-11-27 02:47:48 UTC
I'll make a new docs options specific patch shortly
Comment 5 Rainer Hurling freebsd_committer freebsd_triage 2015-11-27 06:20:53 UTC
(In reply to xxjack12xx from comment #2)

Thanks, Jack, I like the idea, to make the docbook-* dependend on the docs option.

It would have been better, if my patch implied it under DOC_DEPENDS already. Sorry for missing that.
Comment 6 Jack 2015-11-27 10:31:16 UTC
Created attachment 163575 [details]
Patch to add needed depends if DOCS selected
Comment 7 Kubilay Kocak freebsd_committer freebsd_triage 2015-11-27 10:57:31 UTC
@Jack, attachment 163575 [details] doesn't appear to have the documentation dependencies dependent on DOCS like Rainer's attachment 163484 [details], or am I misunderstanding something?
Comment 8 Jack 2015-11-27 13:29:54 UTC
If you configure the port with the DOCS option selected, it will pull in the dependencies during the build. If DOCS option is not selected, then don't pull in any dependencies that DOCS needs. Does that make sense?
Comment 9 Kubilay Kocak freebsd_committer freebsd_triage 2015-11-27 13:34:09 UTC
(In reply to xxjack12xx from comment #8)

The statement does, but the patch in attachment 163575 [details] doesn't seem to have the 'conditionality' on the DOCS option (or any option).

What am I missing?
Comment 10 Jack 2015-11-27 13:36:19 UTC
Doesn't DOCS_BUILD_DEPENDS= only pull in the deps if DOCS is selected?
Comment 11 Kubilay Kocak freebsd_committer freebsd_triage 2015-11-27 13:46:15 UTC
(In reply to xxjack12xx from comment #10)

The patch you approved (attachment 163575 [details]) adds the dependencies to BUILD_DEPENDS, not using DOCS_BUILD_DEPENDS as Rainers patch does (attachment 163484 [details])

If Rainers patch is complete and correct, you can just approve it (in a comment: "I approve attachment 163484 [details]")

Your previous comment 4 is what is confusing. If Rainers patch already adds DOCS_BUILD_DEPENDS, why was a new patch needed?

Please clarify.
Comment 12 Kubilay Kocak freebsd_committer freebsd_triage 2015-11-27 13:48:45 UTC
Sorry, in my previous comment I got the attachment id's backwards.

Rainers patch (attachment 163484 [details]) uses DOCS_BUILD_DEPENDS (conditional on DOCS option)
Your patch (attachment 163575 [details]) uses BUILD_DEPENDS (not conditional on DOCS option)
Comment 13 Jack 2015-11-27 13:54:22 UTC
I think you still have it backwards

My attachment 163575 [details] uses DOCS_BUILD_DEPENDS (conditional on DOCS option)
Rainers patch attachment 163484 [details] uses BUILD_DEPENDS (conditional on DOCS option)
Comment 14 Jack 2015-11-27 13:54:51 UTC
last line should read unconditional
Comment 15 Kubilay Kocak freebsd_committer freebsd_triage 2015-11-27 14:29:07 UTC
Whoah, I don't know how that happened Jack, but I checked them multiple times. Thank you for your patience :)
Comment 16 commit-hook freebsd_committer freebsd_triage 2015-11-28 14:43:25 UTC
A commit references this bug:

Author: riggs
Date: Sat Nov 28 14:43:17 UTC 2015
New revision: 402536
URL: https://svnweb.freebsd.org/changeset/ports/402536

Log:
  Fix build failure with DOCS option and edge case

  In certain situations, e.g. when docbook ports have been deinstalled
  before building audacity with DOCS option, build may fail. Prevent
  this case by explicitly including required docbook ports in
  DOCS_BUILD_DEPENDS

  PR:		204785
  Submitted by:	rhurlin@gwdg.de
  Reviewed by:	xxjack12xx@gmail.com (maintainer)
  Approved by:	xxjack12xx@gmail.com (maintainer)

Changes:
  head/audio/audacity/Makefile