[pkg-php-pear] Bug#1078838: php-twig: FTBFS: PHP Fatal error: require_once(): Failed opening required '/usr/share/php/Symfony/Component/HttpKernel/../HttpClient/autoload.php' (include_path='.:/usr/share/php') in /usr/share/php/Symfony/Component/HttpKernel/autoload.php on line 6
Santiago Vila
sanvila at debian.org
Sat Aug 17 00:18:33 BST 2024
Package: src:php-twig
Version: 2.14.3-1+deb11u2
Severity: serious
Control: close -1 3.5.1-1
Tags: ftbfs bullseye
Dear maintainer:
During a rebuild of all packages in *bullseye*, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules binary
dh binary --with phpcomposer,sphinxdoc
dh_update_autotools_config
dh_autoreconf
debian/rules execute_after_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# php-twig-doc
sphinx-build -C \
-b html \
-D source_suffix='.rst' \
-D master_doc='index' \
-D project='php-twig-doc' \
-D copyright='by the Twig Team' \
-D version='2.14' \
-D release='2.14.3' \
-D pygments_style='sphinx' \
-D html_theme='default' \
doc debian/build-tmp/php-twig-doc
Running Sphinx v3.4.3
making output directory... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 113 source files that are out of date
updating environment: [new config] 113 added, 0 changed, 0 removed
reading sources... [ 0%] advanced
reading sources... [ 1%] api
reading sources... [ 2%] coding_standards
reading sources... [ 3%] deprecated
reading sources... [ 4%] filters/abs
reading sources... [ 5%] filters/batch
reading sources... [ 6%] filters/capitalize
reading sources... [ 7%] filters/column
reading sources... [ 7%] filters/convert_encoding
reading sources... [ 8%] filters/country_name
reading sources... [ 9%] filters/currency_name
reading sources... [ 10%] filters/currency_symbol
reading sources... [ 11%] filters/data_uri
reading sources... [ 12%] filters/date
reading sources... [ 13%] filters/date_modify
reading sources... [ 14%] filters/default
reading sources... [ 15%] filters/escape
reading sources... [ 15%] filters/filter
reading sources... [ 16%] filters/first
reading sources... [ 17%] filters/format
reading sources... [ 18%] filters/format_currency
reading sources... [ 19%] filters/format_date
reading sources... [ 20%] filters/format_datetime
reading sources... [ 21%] filters/format_number
reading sources... [ 22%] filters/format_time
reading sources... [ 23%] filters/html_to_markdown
reading sources... [ 23%] filters/index
reading sources... [ 24%] filters/inky_to_html
reading sources... [ 25%] filters/inline_css
reading sources... [ 26%] filters/join
reading sources... [ 27%] filters/json_encode
reading sources... [ 28%] filters/keys
reading sources... [ 29%] filters/language_name
reading sources... [ 30%] filters/last
reading sources... [ 30%] filters/length
reading sources... [ 31%] filters/locale_name
reading sources... [ 32%] filters/lower
reading sources... [ 33%] filters/map
reading sources... [ 34%] filters/markdown_to_html
reading sources... [ 35%] filters/merge
reading sources... [ 36%] filters/nl2br
reading sources... [ 37%] filters/number_format
reading sources... [ 38%] filters/raw
reading sources... [ 38%] filters/reduce
reading sources... [ 39%] filters/replace
reading sources... [ 40%] filters/reverse
reading sources... [ 41%] filters/round
reading sources... [ 42%] filters/slice
reading sources... [ 43%] filters/sort
reading sources... [ 44%] filters/spaceless
reading sources... [ 45%] filters/split
reading sources... [ 46%] filters/striptags
reading sources... [ 46%] filters/timezone_name
reading sources... [ 47%] filters/title
reading sources... [ 48%] filters/trim
reading sources... [ 49%] filters/u
reading sources... [ 50%] filters/upper
reading sources... [ 51%] filters/url_encode
reading sources... [ 52%] functions/attribute
reading sources... [ 53%] functions/block
reading sources... [ 53%] functions/constant
reading sources... [ 54%] functions/country_timezones
reading sources... [ 55%] functions/cycle
reading sources... [ 56%] functions/date
reading sources... [ 57%] functions/dump
reading sources... [ 58%] functions/html_classes
reading sources... [ 59%] functions/include
reading sources... [ 60%] functions/index
reading sources... [ 61%] functions/max
reading sources... [ 61%] functions/min
reading sources... [ 62%] functions/parent
reading sources... [ 63%] functions/random
reading sources... [ 64%] functions/range
reading sources... [ 65%] functions/source
reading sources... [ 66%] functions/template_from_string
reading sources... [ 67%] index
reading sources... [ 68%] installation
reading sources... [ 69%] internals
reading sources... [ 69%] intro
reading sources... [ 70%] recipes
reading sources... [ 71%] tags/apply
reading sources... [ 72%] tags/autoescape
reading sources... [ 73%] tags/block
reading sources... [ 74%] tags/deprecated
reading sources... [ 75%] tags/do
reading sources... [ 76%] tags/embed
reading sources... [ 76%] tags/extends
reading sources... [ 77%] tags/filter
reading sources... [ 78%] tags/flush
reading sources... [ 79%] tags/for
reading sources... [ 80%] tags/from
reading sources... [ 81%] tags/if
reading sources... [ 82%] tags/import
reading sources... [ 83%] tags/include
reading sources... [ 84%] tags/index
reading sources... [ 84%] tags/macro
reading sources... [ 85%] tags/sandbox
reading sources... [ 86%] tags/set
reading sources... [ 87%] tags/spaceless
reading sources... [ 88%] tags/use
reading sources... [ 89%] tags/verbatim
reading sources... [ 90%] tags/with
reading sources... [ 91%] templates
reading sources... [ 92%] tests/constant
reading sources... [ 92%] tests/defined
reading sources... [ 93%] tests/divisibleby
reading sources... [ 94%] tests/empty
reading sources... [ 95%] tests/even
reading sources... [ 96%] tests/index
reading sources... [ 97%] tests/iterable
reading sources... [ 98%] tests/null
reading sources... [ 99%] tests/odd
reading sources... [100%] tests/sameas
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [ 0%] advanced
writing output... [ 1%] api
writing output... [ 2%] coding_standards
writing output... [ 3%] deprecated
writing output... [ 4%] filters/abs
writing output... [ 5%] filters/batch
writing output... [ 6%] filters/capitalize
writing output... [ 7%] filters/column
writing output... [ 7%] filters/convert_encoding
writing output... [ 8%] filters/country_name
writing output... [ 9%] filters/currency_name
writing output... [ 10%] filters/currency_symbol
writing output... [ 11%] filters/data_uri
writing output... [ 12%] filters/date
writing output... [ 13%] filters/date_modify
writing output... [ 14%] filters/default
writing output... [ 15%] filters/escape
writing output... [ 15%] filters/filter
writing output... [ 16%] filters/first
writing output... [ 17%] filters/format
writing output... [ 18%] filters/format_currency
writing output... [ 19%] filters/format_date
writing output... [ 20%] filters/format_datetime
writing output... [ 21%] filters/format_number
writing output... [ 22%] filters/format_time
writing output... [ 23%] filters/html_to_markdown
writing output... [ 23%] filters/index
writing output... [ 24%] filters/inky_to_html
writing output... [ 25%] filters/inline_css
writing output... [ 26%] filters/join
writing output... [ 27%] filters/json_encode
writing output... [ 28%] filters/keys
writing output... [ 29%] filters/language_name
writing output... [ 30%] filters/last
writing output... [ 30%] filters/length
writing output... [ 31%] filters/locale_name
writing output... [ 32%] filters/lower
writing output... [ 33%] filters/map
writing output... [ 34%] filters/markdown_to_html
writing output... [ 35%] filters/merge
writing output... [ 36%] filters/nl2br
writing output... [ 37%] filters/number_format
writing output... [ 38%] filters/raw
writing output... [ 38%] filters/reduce
writing output... [ 39%] filters/replace
writing output... [ 40%] filters/reverse
writing output... [ 41%] filters/round
writing output... [ 42%] filters/slice
writing output... [ 43%] filters/sort
writing output... [ 44%] filters/spaceless
writing output... [ 45%] filters/split
writing output... [ 46%] filters/striptags
writing output... [ 46%] filters/timezone_name
writing output... [ 47%] filters/title
writing output... [ 48%] filters/trim
writing output... [ 49%] filters/u
writing output... [ 50%] filters/upper
writing output... [ 51%] filters/url_encode
writing output... [ 52%] functions/attribute
writing output... [ 53%] functions/block
writing output... [ 53%] functions/constant
writing output... [ 54%] functions/country_timezones
writing output... [ 55%] functions/cycle
writing output... [ 56%] functions/date
writing output... [ 57%] functions/dump
writing output... [ 58%] functions/html_classes
writing output... [ 59%] functions/include
writing output... [ 60%] functions/index
writing output... [ 61%] functions/max
writing output... [ 61%] functions/min
writing output... [ 62%] functions/parent
writing output... [ 63%] functions/random
writing output... [ 64%] functions/range
writing output... [ 65%] functions/source
writing output... [ 66%] functions/template_from_string
writing output... [ 67%] index
writing output... [ 68%] installation
writing output... [ 69%] internals
writing output... [ 69%] intro
writing output... [ 70%] recipes
writing output... [ 71%] tags/apply
writing output... [ 72%] tags/autoescape
writing output... [ 73%] tags/block
writing output... [ 74%] tags/deprecated
writing output... [ 75%] tags/do
writing output... [ 76%] tags/embed
writing output... [ 76%] tags/extends
writing output... [ 77%] tags/filter
writing output... [ 78%] tags/flush
writing output... [ 79%] tags/for
writing output... [ 80%] tags/from
writing output... [ 81%] tags/if
writing output... [ 82%] tags/import
writing output... [ 83%] tags/include
writing output... [ 84%] tags/index
writing output... [ 84%] tags/macro
writing output... [ 85%] tags/sandbox
writing output... [ 86%] tags/set
writing output... [ 87%] tags/spaceless
writing output... [ 88%] tags/use
writing output... [ 89%] tags/verbatim
writing output... [ 90%] tags/with
writing output... [ 91%] templates
writing output... [ 92%] tests/constant
writing output... [ 92%] tests/defined
writing output... [ 93%] tests/divisibleby
writing output... [ 94%] tests/empty
writing output... [ 95%] tests/even
writing output... [ 96%] tests/index
writing output... [ 97%] tests/iterable
writing output... [ 98%] tests/null
writing output... [ 99%] tests/odd
writing output... [100%] tests/sameas
generating indices... genindex done
writing additional pages... search done
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.
The HTML pages are in debian/build-tmp/php-twig-doc.
cp -a lib/Twig src/psr-0
# php-twig
phpab --output src/autoload.php src
phpab %development% - Copyright (C) 2009 - 2022 by Arne Blankerts and Contributors
Scanning directory src
Autoload file src/autoload.php generated.
# php-twig testsuite
mkdir --parents vendor src/Extra
phpab --output vendor/autoload.php \
--template debian/autoload.tests.php.tpl \
tests extra/*/Tests
phpab %development% - Copyright (C) 2009 - 2022 by Arne Blankerts and Contributors
Scanning directory tests
Scanning directory extra/cssinliner-extra/Tests
Scanning directory extra/html-extra/Tests
Scanning directory extra/inky-extra/Tests
Scanning directory extra/intl-extra/Tests
Scanning directory extra/markdown-extra/Tests
Scanning directory extra/string-extra/Tests
Scanning directory extra/twig-extra-bundle/Tests
Autoload file vendor/autoload.php generated.
# Mimic install path
ln -s src Twig
ln -s ../../extra/cssinliner-extra Twig/Extra/CssInliner
ln -s ../../extra/html-extra Twig/Extra/Html
ln -s ../../extra/inky-extra Twig/Extra/Inky
ln -s ../../extra/intl-extra Twig/Extra/Intl
ln -s ../../extra/markdown-extra Twig/Extra/Markdown
# ln -s ../../extra/string-extra Twig/Extra/String
ln -s ../../extra/twig-extra-bundle Twig/Extra/TwigExtraBundle
# php-twig extra
# Parts from the symfony package’s debian/rules.
mkdir --parents debian/packages_to_build debian/autoloaders
# Walk through the parts of upstream's code that should be packaged into
# separate Debian binary packages and write down a package-to-build info
# file containing shell variables for each package.
# Those files will be traverse later on in different targets of this
# makefile (debian/rules). They solely exists to not repeat the extraction
# of those variables in each of those target over and over again.
# Then, build a class loader for the package, using the template in
# debian/eb_pkg_name.autoload.php.tpl if it exists (to load dependencies).
set -e;\
for src_path in $(find -L Twig/Extra/ -mindepth 1 -maxdepth 1 -type d); do \
if [ -e $src_path/composer.json ]; then \
deb_pkg_name=php-$(cat $src_path/composer.json | jq -r '.name | tostring' | sed -r 's|/|-|'); \
if [ $(grep -c -E -e "^Package: $deb_pkg_name\$" debian/control) -ne 1 ]; then \
echo "W: No Debian package '$deb_pkg_name' defined in debian/control," 1>&2; \
echo " therefor not considering Symfony $src_path," 1>&2; \
continue; \
fi; \
echo "# This file contains some variables sourced" > debian/packages_to_build/$deb_pkg_name; \
echo "# by various targets in debian/rules" >> debian/packages_to_build/$deb_pkg_name; \
echo "deb_pkg_name='$deb_pkg_name'" >> debian/packages_to_build/$deb_pkg_name; \
echo "src_path='$src_path'" >> debian/packages_to_build/$deb_pkg_name; \
echo "twig ${deb_pkg_name#php-twig-} $src_path/autoload.php" > debian/autoloaders/$deb_pkg_name; \
if [ -e debian/$deb_pkg_name.autoload.php.tpl ]; then \
phpab \
--blacklist '*\\tests\\*' \
--output $src_path/autoload.php \
--template debian/$deb_pkg_name.autoload.php.tpl \
$src_path; \
else \
phpab \
--blacklist '*\\tests\\*' \
--output $src_path/autoload.php \
$src_path; \
fi; \
fi; \
done
phpab %development% - Copyright (C) 2009 - 2022 by Arne Blankerts and Contributors
Scanning directory Twig/Extra/Intl
Autoload file Twig/Extra/Intl/autoload.php generated.
phpab %development% - Copyright (C) 2009 - 2022 by Arne Blankerts and Contributors
Scanning directory Twig/Extra/TwigExtraBundle
Autoload file Twig/Extra/TwigExtraBundle/autoload.php generated.
phpab %development% - Copyright (C) 2009 - 2022 by Arne Blankerts and Contributors
Scanning directory Twig/Extra/Markdown
Autoload file Twig/Extra/Markdown/autoload.php generated.
phpab %development% - Copyright (C) 2009 - 2022 by Arne Blankerts and Contributors
Scanning directory Twig/Extra/Html
Autoload file Twig/Extra/Html/autoload.php generated.
phpab %development% - Copyright (C) 2009 - 2022 by Arne Blankerts and Contributors
Scanning directory Twig/Extra/CssInliner
Autoload file Twig/Extra/CssInliner/autoload.php generated.
phpab %development% - Copyright (C) 2009 - 2022 by Arne Blankerts and Contributors
Scanning directory Twig/Extra/Inky
Autoload file Twig/Extra/Inky/autoload.php generated.
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
phpunit
PHP Warning: require_once(/usr/share/php/Symfony/Component/HttpKernel/../HttpClient/autoload.php): failed to open stream: No such file or directory in /usr/share/php/Symfony/Component/HttpKernel/autoload.php on line 6
PHP Fatal error: require_once(): Failed opening required '/usr/share/php/Symfony/Component/HttpKernel/../HttpClient/autoload.php' (include_path='.:/usr/share/php') in /usr/share/php/Symfony/Component/HttpKernel/autoload.php on line 6
make[1]: *** [debian/rules:80: override_dh_auto_test] Error 255
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/bullseye/
About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.
Thanks.
More information about the pkg-php-pear
mailing list