Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 630022 - sys-apps/systemd-234-r3 fails to build: xsltApplySequenceConstructor: A potential infinite template recursion was detected
Summary: sys-apps/systemd-234-r3 fails to build: xsltApplySequenceConstructor: A poten...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: CVE-2017-5029
  Show dependency tree
 
Reported: 2017-09-05 18:58 UTC by Pacho Ramos
Modified: 2017-09-05 20:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.gz (systemd-234-r3:20170905-184804.log.gz,176.08 KB, application/gzip)
2017-09-05 18:58 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2017-09-05 18:58:06 UTC
Created attachment 492690 [details]
build.log.gz

At least with libxslt-1.1.30 (bug 612194 could maybe be related) it fails with:
[1757/1758] /usr/bin/xsltproc -o man/systemd.directives.7 --nonet --xinclude --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 --stringparam systemd.version 234 --path /var/tmp/portage/sys-apps/systemd-234-r3/work/systemd-234-abi_x86_64.amd64/man:/var/tmp/portage/sys-apps/systemd-234-r3/work/systemd-234/man ../systemd-234/man/custom-man.xsl man/systemd.directives.xml
[1758/1758] /usr/bin/xsltproc -o man/systemd.index.7 --nonet --xinclude --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 --stringparam systemd.version 234 --path /var/tmp/portage/sys-apps/systemd-234-r3/work/systemd-234-abi_x86_64.amd64/man:/var/tmp/portage/sys-apps/systemd-234-r3/work/systemd-234/man ../systemd-234/man/custom-man.xsl man/systemd.index.xml
FAILED: man/systemd.index.7 
/usr/bin/xsltproc -o man/systemd.index.7 --nonet --xinclude --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 --stringparam systemd.version 234 --path /var/tmp/portage/sys-apps/systemd-234-r3/work/systemd-234-abi_x86_64.amd64/man:/var/tmp/portage/sys-apps/systemd-234-r3/work/systemd-234/man ../systemd-234/man/custom-man.xsl man/systemd.index.xml
runtime error: file file:///usr/share/sgml/docbook/xsl-stylesheets/lib/lib.xsl line 60 element variable
xsltApplySequenceConstructor: A potential infinite template recursion was detected.
You can adjust xsltMaxDepth (--maxdepth) in order to raise the maximum number of nested template calls and variables/params (currently set to 3000).
Templates:
#0 name string.subst 
#1 name string.subst 
#2 name string.subst 
#3 name string.subst 
#4 name string.subst 
#5 name string.subst 
#6 name string.subst 
#7 name string.subst 
#8 name string.subst 
#9 name string.subst 
#10 name string.subst 
#11 name string.subst 
#12 name string.subst 
#13 name string.subst 
#14 name string.subst 
Variables:
#0
replacement 
target 
string 
#1
target 
string 
#2
string 
#3
replacement 
target 
string 
#4
target 
string 
#5
string 
#6
replacement 
target 
string 
#7
target 
string 
#8
string 
#9
replacement 
target 
string 
#10
target 
string 
#11
string 
#12
replacement 
target 
string 
#13
target 
string 
#14
string 
error: file man/systemd.index.xml
xsltRunStylesheet : run failed
ninja: build stopped: subcommand failed.
 * ERROR: sys-apps/systemd-234-r3::gentoo failed (compile phase):
 *   ninja -v -j1 -l0 failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 5648:  Called multilib-minimal_src_compile
 *   environment, line 3748:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 3979:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 3614:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 3612:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  650:  Called multilib-minimal_abi_src_compile
 *   environment, line 3742:  Called multilib_src_compile
 *   environment, line 4191:  Called eninja
 *   environment, line 1878:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=sys-apps/systemd-234-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/systemd-234-r3::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/sys-apps/systemd-234-r3:20170905-184804.log.gz'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-apps/systemd-234-r3/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/systemd-234-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/systemd-234-r3/work/systemd-234-abi_x86_64.amd64'
 * S: '/var/tmp/portage/sys-apps/systemd-234-r3/work/systemd-234'
Comment 1 Pacho Ramos gentoo-dev 2017-09-05 19:00:14 UTC
It's caused by this commit:
https://git.gnome.org/browse/libxslt/commit/?id=1c8e0e556289582fece6f1a59113a7a5bef46ba4

It's old but first included in this new release
Comment 2 Mike Gilbert gentoo-dev 2017-09-05 19:24:15 UTC
systemd upstream closed this as "not-our-bug" last year.

https://github.com/systemd/systemd/issues/4559
Comment 3 Mike Gilbert gentoo-dev 2017-09-05 19:29:24 UTC
Also see this Debian bug.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765567
Comment 4 Larry the Git Cow gentoo-dev 2017-09-05 20:25:54 UTC
Bug has been referenced in the following commit:
    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a3329a4c5efc9282fb53096420270cf00aff660

    commit 3a3329a4c5efc9282fb53096420270cf00aff660
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2017-09-05 20:24:44 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2017-09-05 20:25:40 +0000

    app-text/docbook-xsl-stylesheets: apply nonrecursive-string-subst.patch
    
    Patch taken from Debian.
    
    Bug: https://bugs.debian.org/765567
    Bug: https://bugs.gentoo.org/630022
    Package-Manager: Portage-2.3.6_p39, Repoman-2.3.3_p17

 .../docbook-xsl-stylesheets-1.79.1-r2.ebuild       | 101 +++++++++++++++++++++
 .../files/nonrecursive-string-subst.patch          |  30 ++++++
 2 files changed, 131 insertions(+)