pyscss2 has no binary wheel and fails w/o pcre dev package

Bug #1867888 reported by Radosław Piliszek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Critical
Radosław Piliszek
Ussuri
Fix Released
Critical
Radosław Piliszek

Bug Description

Recently Horizon forked pyscss (thanks, e0one!) and switched to the fork - pyscss2 [1] after pyscss stopped working with new setuptools [2].

--- This applies to *source* builds only. ---

Yet now we get failures due to lack of pcre dev files:

INFO:kolla.common.utils.horizon: In file included from scss/src/_speedups.c:14:
INFO:kolla.common.utils.horizon: scss/src/scanner.h:17:10: fatal error: pcre.h: No such file or directory
INFO:kolla.common.utils.horizon: #include <pcre.h>
INFO:kolla.common.utils.horizon: ^~~~~~~~
INFO:kolla.common.utils.horizon: compilation terminated.
INFO:kolla.common.utils.horizon: ==========================================================================
INFO:kolla.common.utils.horizon: WARNING: The C extension could not be compiled, speedups are not enabled.
INFO:kolla.common.utils.horizon: Failure information, if any, is above.
INFO:kolla.common.utils.horizon: Retrying the build without the C extension now.
INFO:kolla.common.utils.horizon:
INFO:kolla.common.utils.horizon: running bdist_wheel
INFO:kolla.common.utils.horizon: running build
INFO:kolla.common.utils.horizon: running build_py
INFO:kolla.common.utils.horizon: running build_ext
INFO:kolla.common.utils.horizon: building 'scss.grammar._scanner' extension
INFO:kolla.common.utils.horizon: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/var/lib/kolla/venv/include -I/usr/include/python3.6m -c scss/src/_speedups.c -o build/temp.linux-x86_64-3.6/scss/src/_speedups.o
INFO:kolla.common.utils.horizon: In file included from scss/src/_speedups.c:14:
INFO:kolla.common.utils.horizon: scss/src/scanner.h:17:10: fatal error: pcre.h: No such file or directory
INFO:kolla.common.utils.horizon: #include <pcre.h>
INFO:kolla.common.utils.horizon: ^~~~~~~~
INFO:kolla.common.utils.horizon: compilation terminated.

Most notably it tries to build even in non-optimized mode.
Ubuntu is not affected as pcre3-dev is included as some transitive dependency of what we install in openstack-base.
OTOH, at least C8 and Debian are affected and break.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-March/013322.html
[2] https://bugs.launchpad.net/kolla/+bug/1866961

Changed in kolla:
assignee: nobody → Radosław Piliszek (yoctozepto)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.opendev.org/713589

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/713644

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.opendev.org/713589
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=3e4f3b18dd34543c9bc00a3e07a02a565c8ea536
Submitter: Zuul
Branch: master

commit 3e4f3b18dd34543c9bc00a3e07a02a565c8ea536
Author: Radosław Piliszek <email address hidden>
Date: Wed Mar 18 09:09:58 2020 +0100

    Fix Horizon build after switch to pyscss2 which lacks binary wheel

    It now requires pcre-dev package to finish building.

    Change-Id: I4e003c9aa32579d467c489a53741e20ced2f4b52
    Closes-bug: #1867888

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/train)

Reviewed: https://review.opendev.org/713644
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=f7857f26af25543ee8d2e154d45dc159ee8d382e
Submitter: Zuul
Branch: stable/train

commit f7857f26af25543ee8d2e154d45dc159ee8d382e
Author: Radosław Piliszek <email address hidden>
Date: Wed Mar 18 09:09:58 2020 +0100

    Fix Horizon build after switch to pyscss2 which lacks binary wheel

    It now requires pcre-dev package to finish building.

    Change-Id: I4e003c9aa32579d467c489a53741e20ced2f4b52
    Closes-bug: #1867888

tags: added: in-stable-train
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.