Bug 218105 - multimedia/kodi fails to configure if doxygen is installed
Summary: multimedia/kodi fails to configure if doxygen is installed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-25 05:43 UTC by Walter Schwarzenfeld
Modified: 2017-03-25 21:05 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (mickael.maillot)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Schwarzenfeld 2017-03-25 05:43:36 UTC
Kodi 16.1.9. fails to configure if doxygen is installed.
The option DOCS is complete empty. There is no condition or configure option
in it. So it makes no sense to set it to off.

(There is alsi a post on pipermail: 
https://lists.freebsd.org/pipermail/freebsd-ports/2017-March/107851.html)

I made for me a workaround which works, but could never be correct:

.if empty (PORT_OPTIONS:MDOCS)
post-extract:
        ${REINPLACE_CMD}  's;$$(shell which JsonSchemaBuilder);tools/depends/native/JsonSchemaBuilder/bin/JsonSchemaBuilder;' ${WRKSRC}/codegenerator.mk
        ${REINPLACE_CMD}  's;DOXY_XML_PATH=$$(GENDIR)/doxygenxml;DOXYGEN = doxygen-not-found;' ${WRKSRC}/codegenerator.mk
.endif

(As you see I set the if and else branches of DOXYGEN and JSON_BUILDER in
coodegenerator.mk to the same For the moment I found no other way).
Comment 1 Walter Schwarzenfeld 2017-03-25 05:58:26 UTC
Error messages:
a lot of like this
WARNING: Cannot find doxygen file for function....
and ends with:
[Fatal Error] classXBMCAddon_1_1xbmcgui_1_1ControlSpin.xml:64:22: XML document structures must start and end within the same entity.
Caught: org.xml.sax.SAXParseException; systemId: file:///ram/usr/ports/multimedia/kodi/work/xbmc-c327c53/xbmc/interfaces/python/generated/doxygenxml/classXBMCAddon_1_1xbmcgui_1_1ControlSpin.xml; lineNumber: 64; columnNumber: 22; XML document structures must start and end within the same entity.
org.xml.sax.SAXParseException; systemId: file:///ram/usr/ports/multimedia/kodi/work/xbmc-c327c53/xbmc/interfaces/python/generated/doxygenxml/classXBMCAddon_1_1xbmcgui_1_1ControlSpin.xml; lineNumber: 64; columnNumber: 22; XML document structures must start and end within the same entity.
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
	at Helper.retrieveDocStringFromDoxygen(Helper.groovy:102)
	at Helper$_transformSwigXml_closure14.doCall(Helper.groovy:500)
	at Helper.transformSwigXml(Helper.groovy:495)
	at Helper$transformSwigXml$0.call(Unknown Source)
	at Generator.run(Generator.groovy:60)
gmake[2]: *** [codegenerator.mk:46: xbmc/interfaces/python/generated/AddonModuleXbmcgui.cpp] Error 1
rm xbmc/interfaces/python/generated/AddonModuleXbmcgui.xml
gmake[2]: Leaving directory '/ram/usr/ports/multimedia/kodi/work/xbmc-c327c53'
*** Error code 2

Stop.
make[1]: stopped in /usr/ports/multimedia/kodi
*** Error code 1
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2017-03-25 10:50:34 UTC
Can you give kodi-17.1 a go:
git clone -b kodi17 https://github.com/MikaelUrankar/FreeBSD-ports-rpi.git

make -C FreeBSD-ports-rpi/multimedia/kodi

poudriere ok on amd64/armv6
Comment 3 Walter Schwarzenfeld 2017-03-25 12:31:06 UTC
Configure stopps with:
hecking for CEC... no
configure: error: == libcec disabled. CEC adapter support will not be available. ==
===>  Script "configure" failed unexpectedly.
Please report the problem to mickael.maillot@gmail.com [maintainer] and attach
the "/usr/ports/multimedia/kodi/work/xbmc-fc1619b/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).
*** Error code 1


After set CEC off, it compiles fine.
Comment 4 Mikael Urankar freebsd_committer freebsd_triage 2017-03-25 12:35:06 UTC
You need libcec 4, There is an opened PR in bugzilla
Comment 5 Walter Schwarzenfeld 2017-03-25 12:52:44 UTC
Thanks, works fine with libcec-4.
Comment 6 Mikael Urankar freebsd_committer freebsd_triage 2017-03-25 17:10:08 UTC
patch for kodi 17 in bug #218121
Comment 7 Walter Schwarzenfeld 2017-03-25 21:05:06 UTC
I close here and mark it as solved cause of Bug 218121.