Bug 209483 - sysutils/syslog-ng ignore unselect doc and install docbook-*
Summary: sysutils/syslog-ng ignore unselect doc and install docbook-*
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-13 14:11 UTC by Victor Kustov
Modified: 2016-05-14 18:12 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Kustov 2016-05-13 14:11:31 UTC
Even no DOC selected syslog-ng (syslog-ng37) install

	 textproc/docbook-xsl 
	 textproc/docbook
	 textproc/docbook-sgml
	 textproc/iso8879
	 textproc/xmlcatmgr
	 textproc/docbook-xml
	 textproc/xmlcharent
	 textproc/sdocbook-xml
	 textproc/libxslt

Correct way: not install that packages wih no DOC flag selected.
Comment 1 Walter Schwarzenfeld 2016-05-14 08:46:23 UTC
Try this:
CONFIGURE_ENV+=         OPENSSL_CFLAGS="-I${OPENSSLINC}" \
-                        OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl" \
-                        --with-docbook-dir=${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl
+                       OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl"
         
+.if ${PORT_OPTIONS:MDOCS}
+CONFIGURE_ARGS+=        --with-docbook-dir=${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl
+.else
+CONFIGURE_ARGS+=        -without-dockbook-dir
+.endif


(should work, but I wan't test it.  I would deinstall to many dependencies if I deinstall docbook*)
Comment 2 Walter Schwarzenfeld 2016-05-14 08:49:50 UTC
Copy if ${PORT_OPTIONS:MDOCS} ....
after .include <bsd.port.options.mk> in the Makefile
Comment 3 Cy Schubert freebsd_committer freebsd_triage 2016-05-14 18:07:29 UTC
(In reply to w.schwarzenfeld from comment #2)
Yes. That is the correct fix.
Comment 4 Cy Schubert freebsd_committer freebsd_triage 2016-05-14 18:12:46 UTC
Fixed.
Comment 5 commit-hook freebsd_committer freebsd_triage 2016-05-14 18:12:59 UTC
A commit references this bug:

Author: cy
Date: Sat May 14 18:12:00 UTC 2016
New revision: 415194
URL: https://svnweb.freebsd.org/changeset/ports/415194

Log:
  Don't depend on textproc/libxslt and textproc/docbook-xsl when DOC not
  selected.

  PR:		209483

Changes:
  head/sysutils/syslog-ng37/Makefile