Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Apr 2017 07:55:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 218928] math/scilab partial patch to fix build with OPTIONS_UNSET=DOCS
Message-ID:  <bug-218928-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218928

            Bug ID: 218928
           Summary: math/scilab partial patch to fix build with
                    OPTIONS_UNSET=3DDOCS
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: makc@FreeBSD.org
          Reporter: zaphod@berentweb.com
             Flags: maintainer-feedback?(makc@FreeBSD.org)
          Assignee: makc@FreeBSD.org

Hello.
My poudriere.d/make.conf file has globally defined "OPTIONS_UNSET=3D DOCS
EXAMPLES NLS", This setting breaks the build for math/scilab when the GUI f=
lag
is turned on, because the Makefile sets by default java/javahelp and
textproc/docbook-xsl when GUI is enabled. Example from poudriere log:

-- Building documentation (en_US) --
LANG=3DC LC_ALL=3Den_US.UTF-8 SCI_DISABLE_TK=3D1 SCI_JAVA_ENABLE_HEADLESS=
=3D1
./bin/scilab-adv-cli -noatomsautoload -nb -l en_US -nouserstartup -e "try
xmltojar([],[],'en_US');catch disp(lasterror()); exit(-1);end;exit(0);"
Building the Scilab manual master document for en_US.
Building the scilab manual file [javaHelp]
!A fatal error has been detected by Scilab.
!Your instance will probably quit unexpectedly soon.=20

Objective: separate this out to where it belongs, under DOCS. The patch is
incomplete because:
a) Although poudriere build completes without error, fails at packaging sta=
ge
due to pkg-plist entries regarding help files (not fixed by this patch).
b) Most likely has other omissions as I'm not that familiar with the port.

math/scilab/Makefile:

@@  - 45,48  +45,48  @@
--OPTIONS_DEFINE=3D GUI OCAML TK
++OPTIONS_DEFINE=3D GUI OCAML TK DOCS
OPTIONS_RADIO=3D  BLAS
OPTIONS_RADIO_BLAS=3D     ATLAS NETLIB OPENBLAS
--OPTIONS_DEFAULT=3D GUI NETLIB OCAML TK
++OPTIONS_DEFAULT=3D GUI NETLIB OCAML TK DOCS

@@  - 62  @@
 --${JAVALIBDIR}/jhall.jar:java/javahelp \

@@  - 81,84  +81,84  @@
-- _GUI_DEPENDS+=3D  ${LOCALBASE}/share/xsl/docbook/javahelp/javahelp.xsl:t=
extpro
    c/docbook-xsl \
++ _GUI_DEPENDS+=3D  ${JAVALIBDIR}/saxon9he.jar:textproc/saxon-he \
--              ${JAVALIBDIR}/saxon9he.jar:textproc/saxon-he \
++            ${JAVALIBDIR}/xml-apis-ext.jar:textproc/xml-commons \
--               ${JAVALIBDIR}/xml-apis-ext.jar:textproc/xml-commons \
++             xsltproc:textproc/libxslt
--               xsltproc:textproc/libxslt
++ _DOCS_DEPENDS+=3D  xsltproc:textproc/libxslt

@@  - 94  +94  @@
--GUI_ALL_TARGET=3D all doc
++GUI_ALL_TARGET=3D all

@@  - 97,99  +97,100  @@
--GUI_CONFIGURE_ON=3D --with-jdk=3D${JAVA_HOME} \
++GUI_CONFIGURE_ON=3D --with-jdk=3D${JAVA_HOME}
--          --with-docbook=3D${LOCALBASE}/share/xsl/docbook \
++DOCS_CONFIGURE_OFF=3D     --disable-build-help
--          --enable-build-help
++DOCS_CONFIGURE_ON=3D      --with-docbook=3D${LOCALBASE}/share/xsl/docbook=
 \
++         --enable-build-help

@@  +104  @@
++DOCS_IMPLIES=3D          GUI

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218928-13>