Univention Bugzilla – Bug 54245
FTBFS univention-portal in GitLab-CI
Last modified: 2022-01-20 18:14:48 CET
dpkg-buildpackage -uc -us -b --jobs-try=auto[0;m dpkg-buildpackage: info: source package univention-portal dpkg-buildpackage: info: source version 4.0.5-70 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Johannes Keiser <keiser@univention.de> dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 debian/rules clean dh clean --with python3,univention-l10n,ucr,univention-join --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild pybuild --clean -i python{version} -p 3.7 I: pybuild base:217: python3.7 setup.py clean running clean removing '/builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build' (and everything under it) 'build/bdist.linux-amd64' does not exist -- can't clean it 'build/scripts-3.7' does not exist -- can't clean it rm -rf .pybuild/ find . -name \*.pyc -exec rm {} \; dh_clean -O--buildsystem=pybuild rm -f debian/debhelper-build-stamp rm -rf debian/.debhelper/ rm -f -- debian/univention-portal.substvars debian/python3-univention-portal.substvars debian/files rm -fr -- debian/univention-portal/ debian/tmp/ debian/python3-univention-portal/ find . \( \( \ \( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \ \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \ -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \ -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \ -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \ \) -exec rm -f {} + \) -o \ \( -type d -a -name autom4te.cache -prune -exec rm -rf {} + \) \) debian/rules build dh build --with python3,univention-l10n,ucr,univention-join --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild pybuild --configure -i python{version} -p 3.7 I: pybuild base:217: python3.7 setup.py config running config univention-l10n-build -O--buildsystem=pybuild ....... done. ............................. done. xgettext --force-po --add-comments=i18n --from-code=UTF-8 --sort-output --package-name=univention-portal --msgid-bugs-address=packages@univention.de --copyright-holder=Univention GmbH --language C -o ./frontend/src/assets/de.pot /dev/null xgettext --force-po --add-comments=i18n --from-code=UTF-8 --sort-output --package-name=univention-portal --msgid-bugs-address=packages@univention.de --copyright-holder=Univention GmbH --language JavaScript --output ./frontend/src/assets/messages.pot /builds/univention/ucs/management/univention-portal/frontend/src/main.ts /builds/univention/ucs/management/univention-portal/frontend/src/utils/polyfill.js /builds/univention/ucs/management/univention-portal/frontend/src/utils/helpers.js /builds/univention/ucs/management/univention-portal/frontend/src/jsHelper/createCategories.ts /builds/univention/ucs/management/univention-portal/frontend/src/jsHelper/createUserMenu.ts /builds/univention/ucs/management/univention-portal/frontend/src/jsHelper/activity.ts /builds/univention/ucs/management/univention-portal/frontend/src/jsHelper/createMenuStructure.js /builds/univention/ucs/management/univention-portal/frontend/src/jsHelper/addCustomStyles.ts /builds/univention/ucs/management/univention-portal/frontend/src/jsHelper/admin.ts /builds/univention/ucs/management/univention-portal/frontend/src/jsHelper/bestLink.js /builds/univention/ucs/management/univention-portal/frontend/src/jsHelper/translate.ts /builds/univention/ucs/management/univention-portal/frontend/src/jsHelper/umc.ts /builds/univention/ucs/management/univention-portal/frontend/src/jsHelper/addLanguageTile.js /builds/univention/ucs/management/univention-portal/frontend/src/jsHelper/login.ts /builds/univention/ucs/management/univention-portal/frontend/src/jsHelper/tools.ts /builds/univention/ucs/management/univention-portal/frontend/src/@types/shims-svg.d.ts /builds/univention/ucs/management/univention-portal/frontend/src/@types/shims-png.d.ts /builds/univention/ucs/management/univention-portal/frontend/src/@types/shims-vuex.d.ts /builds/univention/ucs/management/univention-portal/frontend/src/@types/shims-vue.d.ts /builds/univention/ucs/management/univention-portal/frontend/src/@types/shims-tsx.d.ts /builds/univention/ucs/management/univention-portal/frontend/src/i18n/translations.ts /builds/univention/ucs/management/univention-portal/frontend/src/components/postcss.config.js /builds/univention/ucs/management/univention-portal/frontend/src/store/root.models.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/index.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/tabs/tabs.models.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/tabs/tabs.helper.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/tabs/index.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/dragndrop/dragndrop.helper.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/dragndrop/dragndrop.models.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/dragndrop/index.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/activity/index.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/user/user.models.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/user/user.helper.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/user/index.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/menu/menu.models.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/menu/menu.helper.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/menu/index.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/search/search.models.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/search/search.helper.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/search/index.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/modal/modal.models.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/modal/modal.helper.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/modal/index.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/metaData/metaData.helper.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/metaData/metaData.models.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/metaData/index.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/locale/locale.models.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/locale/locale.helper.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/locale/index.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/notifications/notifications.models.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/notifications/index.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/portalData/portalData.helper.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/portalData/portalData.models.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/portalData/index.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/navigation/navigation.helper.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/navigation/navigation.models.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/navigation/index.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/tooltip/tooltip.helper.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/tooltip/tooltip.models.ts /builds/univention/ucs/management/univention-portal/frontend/src/store/modules/tooltip/index.ts /builds/univention/ucs/management/univention-portal/frontend/src/plugins/localize.ts /builds/univention/ucs/management/univention-portal/frontend/src/plugins/formCheck.js cp ./frontend/src/assets/messages.pot ./frontend/src/assets/de.pot.partial msgcat --unique --output ./frontend/src/assets/de.pot ./frontend/src/assets/de.pot.partial ./frontend/src/assets/de.pot msgmerge --update --sort-output --backup=off frontend/src/assets/de.po ./frontend/src/assets/de.pot xgettext --force-po --add-comments=i18n --from-code=UTF-8 --sort-output --package-name=univention-portal --msgid-bugs-address=packages@univention.de --copyright-holder=Univention GmbH --language C -o ./udm/handlers/de.pot /dev/null xgettext --force-po --add-comments=i18n --from-code=UTF-8 --sort-output --package-name=univention-portal --msgid-bugs-address=packages@univention.de --copyright-holder=Univention GmbH --language Python --output ./udm/handlers/messages.pot /builds/univention/ucs/management/univention-portal/udm/api/portal.py /builds/univention/ucs/management/univention-portal/udm/handlers/entry.py /builds/univention/ucs/management/univention-portal/udm/handlers/folder.py /builds/univention/ucs/management/univention-portal/udm/handlers/all.py /builds/univention/ucs/management/univention-portal/udm/handlers/portal.py /builds/univention/ucs/management/univention-portal/udm/handlers/category.py /builds/univention/ucs/management/univention-portal/udm/syntax/univention-portal.py cp ./udm/handlers/messages.pot ./udm/handlers/de.pot.partial msgcat --unique --output ./udm/handlers/de.pot ./udm/handlers/de.pot.partial ./udm/handlers/de.pot msgmerge --update --sort-output --backup=off udm/handlers/de.po ./udm/handlers/de.pot looking in /builds/univention/ucs/management/univention-portal debian/rules override_dh_auto_build make[1]: Entering directory '/builds/univention/ucs/management/univention-portal' dh_auto_build pybuild --build -i python{version} -p 3.7 I: pybuild base:217: /usr/bin/python3 setup.py build running build running build_py creating /builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build/univention creating /builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build/univention/portal copying python/univention/portal/log.py -> /builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build/univention/portal copying python/univention/portal/factory.py -> /builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build/univention/portal copying python/univention/portal/user.py -> /builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build/univention/portal copying python/univention/portal/__init__.py -> /builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build/univention/portal copying python/univention/portal/config.py -> /builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build/univention/portal creating /builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build/univention/portal/extensions copying python/univention/portal/extensions/scorer.py -> /builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build/univention/portal/extensions copying python/univention/portal/extensions/authenticator.py -> /builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build/univention/portal/extensions copying python/univention/portal/extensions/cache.py -> /builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build/univention/portal/extensions copying python/univention/portal/extensions/__init__.py -> /builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build/univention/portal/extensions copying python/univention/portal/extensions/portal.py -> /builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build/univention/portal/extensions copying python/univention/portal/extensions/reloader.py -> /builds/univention/ucs/management/univention-portal/.pybuild/cpython3_3.7_univention-portal/build/univention/portal/extensions make make[2]: Entering directory '/builds/univention/ucs/management/univention-portal' ./frontend/process_vue_files.sh looking in ./frontend/src for .vue files rm: cannot remove './frontend/src/tmp/': No such file or directory npm set prefix=$HOME/.node npm WARN npm npm does not support Node.js v10.24.0 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9. npm WARN npm You can find the latest version at https://nodejs.org/ npm install -g npm@latest npm WARN npm npm does not support Node.js v10.24.0 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9. npm WARN npm You can find the latest version at https://nodejs.org/ npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. /root/.node/bin/npm -> /root/.node/lib/node_modules/npm/bin/npm-cli.js /root/.node/bin/npx -> /root/.node/lib/node_modules/npm/bin/npx-cli.js npm WARN npm@8.3.0 had bundled packages that do not match the required version(s). They have been replaced with non-bundled versions. + npm@8.3.0 added 277 packages from 146 contributors in 25.01s $HOME/.node/bin/npm install -g yarn npm does not support Node.js v10.24.0 You should probably upgrade to a newer version of node as we can't make any promises that npm will work with this version. You can find the latest version at https://nodejs.org/ /root/.node/lib/node_modules/npm/lib/npm.js:32 #unloaded = false ^ SyntaxError: Invalid or unexpected token at Module._compile (internal/modules/cjs/loader.js:723:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at module.exports (/root/.node/lib/node_modules/npm/lib/cli.js:22:15) at Object.<anonymous> (/root/.node/lib/node_modules/npm/bin/npm-cli.js:2:25) at Module._compile (internal/modules/cjs/loader.js:778:30) make[2]: *** [Makefile:36: build] Error 1 make[2]: Leaving directory '/builds/univention/ucs/management/univention-portal' make[1]: *** [debian/rules:40: override_dh_auto_build] Error 2 make[1]: Leaving directory '/builds/univention/ucs/management/univention-portal' make: *** [debian/rules:36: build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
This is probably not a Gitlab CI issue but a general issue. Workaround is to cherry-pick: git:c8437410c3db78874ed19b46cd1e39526dd00905 diff --git management/univention-portal/Makefile management/univention-portal/Makefile index aab9823e25..18cfabf6cd 100644 --- management/univention-portal/Makefile +++ management/univention-portal/Makefile @@ -32,7 +32,7 @@ build: ./frontend/process_vue_files.sh npm set prefix=$$HOME/.node - npm install -g npm@latest + npm install -g npm@8.1.3 $$HOME/.node/bin/npm install -g yarn cd frontend && $$HOME/.node/bin/yarn install cd frontend && $$HOME/.node/bin/yarn build
Fixed through Bug #53296 comment 17: > 50883c2236 Bug #53296 npm version fixed to 8.1.3 due to error when trying to build with latest version. *** This bug has been marked as a duplicate of bug 53296 ***
OK