Bug 219249 - databases/py-xapian expects py-sphinx if doc is not build
Summary: databases/py-xapian expects py-sphinx if doc is not build
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: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-13 06:13 UTC by Gerrit Beine
Modified: 2018-01-25 13:11 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
poudriere logfile (27.94 KB, text/plain)
2017-05-13 06:13 UTC, Gerrit Beine
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerrit Beine 2017-05-13 06:13:14 UTC
Created attachment 182556 [details]
poudriere logfile

Build fails if built without DOCS on amd64, armv6 and i386

checking for /usr/local/bin/python2.7... /usr/local/bin/python2.7
checking /usr/local/bin/python2.7 version... 2.7
checking for python2 sphinx module... no
configure: error: Couldn't import sphinx module and call sphinx.main() for Python2 - try package python-sphinx
===>  Script "configure" failed unexpectedly.
Please report the problem to sunpoet@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/databases/py-xapian/work/xapian-bindings-1.4.4/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
Comment 1 commit-hook freebsd_committer freebsd_triage 2017-05-13 12:12:02 UTC
A commit references this bug:

Author: sunpoet
Date: Sat May 13 12:11:24 UTC 2017
New revision: 440793
URL: https://svnweb.freebsd.org/changeset/ports/440793

Log:
  Add py-sphinx to BUILD_DEPENDS unconditionally

  PR:		219249
  Reported by:	Gerrit Beine <mail+freebsd@gerritbeine.de>

Changes:
  head/databases/py-xapian/Makefile
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2017-05-13 12:12:27 UTC
Committed. Thanks!
Comment 3 Gerrit Beine 2017-05-14 10:14:29 UTC
This was the worst solution of all, because sphinx is not needed for the Python module but for building the documentation.
So, the problem is within the configure script, but not with the dependency.

Is anyone around who can fix configure scripts?
I've found the problem within the script. But I have no clue how to pass something like --no-docs to the script.
Comment 4 commit-hook freebsd_committer freebsd_triage 2018-01-25 13:07:02 UTC
A commit references this bug:

Author: sunpoet
Date: Thu Jan 25 13:06:24 UTC 2018
New revision: 459929
URL: https://svnweb.freebsd.org/changeset/ports/459929

Log:
  Update BUILD_DEPENDS: restrict py-sphinx to DOCS option

  PR:		219249
  Reported by:	Gerrit Beine <mail+freebsd@gerritbeine.de>

Changes:
  head/databases/py-xapian/Makefile
  head/databases/py-xapian/files/
  head/databases/py-xapian/files/patch-configure