VirtualBox

Changeset 103978 in vbox for trunk


Ignore:
Timestamp:
Mar 21, 2024 3:32:41 AM (10 months ago)
Author:
vboxsync
Message:

doc/manual,/Config.kmk: Workaround for newish libxml restriction.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r103903 r103978  
    36333633        $(QUIET)$(APPEND) '$@' 'VBOX_JAVA_VERSION    := $(call VBOX_JAVA_FIGURE_VERSION, $(VBOX_JAVAC))'
    36343634 endif
     3635        $(QUIET)$(APPEND) '$@' '#$(which $(VBOX_XSLTPROC))'
     3636        $(QUIET)$(APPEND) '$@' 'VBOX_XSLTPROC_VERSION        := $$(firstword $(shell $(VBOX_XSLTPROC) --version | $(SED) -e /libxslt/q | $(SED) -e 's/^.*libxslt \([0-9][0-9]*\)[^0-9]*.*/\1/' ) 0)'
     3637        $(QUIET)$(APPEND) '$@' 'VBOX_XSLTPROC_LIBXML_VERSION := $$(firstword $(shell $(VBOX_XSLTPROC) --version | $(SED) -e /libxml/q  | $(SED) -e 's/^.*libxml \([0-9][0-9]*\)[^0-9]*.*/\1/'  ) 0)'
    36353638
    36363639        $(QUIET)$(ECHO) '========= START OF $@ ========='
  • trunk/doc/manual/Config.kmk

    r99619 r103978  
    140140  VBOX_XMLLINT_WITH_CAT    = $(VBOX_XMLLINT) --nonet --xinclude --noout $(VBOX_XMLLINT_OPTS) --path "$(VBOX_PATH_MANUAL_OUTBASE)"
    141141 endif
     142 # Workaround for a security (?) fix in libxml (xsltproc doesn't have a way of setting the max amp level):
     143 #     utilitiesDomain.mod:135: parser error : Maximum entity amplification factor exceeded, see xmlCtxtSetMaxAmplification.
     144 if $(firstword $(VBOX_XSLTPROC_LIBXML_VERSION) 0) >= 21206 ## @todo not sure which version introduced this issue.
     145  VBOX_XSLTPROC_WORKAROUND := --novalid
     146 else
     147  VBOX_XSLTPROC_WORKAROUND :=
     148 endif
    142149
    143150
  • trunk/doc/manual/Makefile.kmk

    r101553 r103978  
    672672                --mapping-file "$$(VBOX_USER_MANUAL_ID_MAPPING_FILE_$1)" \
    673673                "$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/topics/flat-$(2).dita"
    674         $$(QUIET)$$(ASH) \
     674        $$(QUIET)$$(ASH) -x \
    675675                "$$(VBOX_PATH_MANUAL_SRC)/dita-refentry-flat-to-single-topic.sh" \
    676676                "$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/topics/flat-$(2).dita" \
     
    678678                "$$(VBOX_PATH_MANUAL_SRC)/dita-refentry-flat-to-single-topic.xsl" \
    679679                "$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/topics" \
    680                 -- $$(subst $$(REDIRECT),$$(REDIRECT_EXT),$$(call VBOX_XSLTPROC_WITH_CAT)) \
     680                -- $$(subst $$(REDIRECT),$$(REDIRECT_EXT),$$(call VBOX_XSLTPROC_WITH_CAT)) $(VBOX_XSLTPROC_WORKAROUND) \
    681681                --path "$$(VBOX_DITA_TECHNICAL_CONTENT_DTD_PATH)"
    682         $$(QUIET)$$(call VBOX_XSLTPROC_WITH_CAT) \
     682        $$(QUIET)$$(call VBOX_XSLTPROC_WITH_CAT) $(VBOX_XSLTPROC_WORKAROUND) \
    683683                --path "$$(VBOX_DITA_TECHNICAL_CONTENT_DTD_PATH)" \
    684684                --stringparam g_sMode map \
     
    732732                $(VBOX_PATH_MANUAL_SRC)/$(1)/dita/UserManual.ditamap
    733733        $$(APPEND) -n "[email protected]" '</files>'
    734         $$(QUIET)$$(call VBOX_XSLTPROC_WITH_CAT) --path "$$(VBOX_DITA_TECHNICAL_CONTENT_DTD_PATH)" \
     734        $$(QUIET)$$(call VBOX_XSLTPROC_WITH_CAT) $(VBOX_XSLTPROC_WORKAROUND) --path "$$(VBOX_DITA_TECHNICAL_CONTENT_DTD_PATH)" \
    735735                --output "$$@" \
    736736                $$(VBOX_PATH_MANUAL_SRC)/$(1)/vboxmanage-cmd-overview.xsl \
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette