python-pyscss: FTBFS: scss/src/scanner.h:20:10: fatal error: pcre.h: No such file or directory

Bug #2062145 reported by Benjamin Drung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-pyscss (Debian)
New
Unknown
python-pyscss (Ubuntu)
New
Undecided
Unassigned

Bug Description

Imported from Debian bug http://bugs.debian.org/1042220:

Source: python-pyscss
Version: 1.4.0-3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: <email address hidden>
Usertags: ftbfs-20230726 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.11 -c scss/src/_speedups.c -o build/temp.linux-x86_64-cpython-311/scss/src/_speedups.o
> In file included from scss/src/_speedups.c:15:
> scss/src/scanner.h:20:10: fatal error: pcre.h: No such file or directory
> 20 | #include <pcre.h>
> | ^~~~~~~~
> compilation terminated.
> ==========================================================================
> WARNING: The C extension could not be compiled, speedups are not enabled.
> Failure information, if any, is above.
> Retrying the build without the C extension now.
>
> running build
> running build_py
> ==========================================================================
> WARNING: The C extension could not be compiled, speedups are not enabled.
> pyScss will still work fine, but may be slower.
> The most likely cause is missing PCRE headers; you may need to install libpcre or libpcre-dev, depending on your platform.
> Plain-Python installation succeeded.
> ==========================================================================
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyscss/build; python3.11 -m pytest /<<PKGBUILDDIR>>/scss/tests
> ============================= test session starts ==============================
> platform linux -- Python 3.11.4, pytest-7.4.0, pluggy-1.2.0
> rootdir: /<<PKGBUILDDIR>>/scss
> collected 220 items
>
> ../../../scss/tests/test_cli.py . [ 0%]
> ../../../scss/tests/test_expression.py ..... [ 2%]
> ../../../scss/tests/test_interactive.py .. [ 3%]
> ../../../scss/tests/test_misc.py ...... [ 6%]
> ../../../scss/tests/test_types.py ....... [ 9%]
> ../../../scss/tests/extension/test_core.py ............................. [ 22%]
> ................................. [ 37%]
> ../../../scss/tests/extension/test_extra.py .... [ 39%]
> ../../../scss/tests/extension/compass/test_gradients.py .x [ 40%]
> ../../../scss/tests/extension/compass/test_helpers.py ................ [ 47%]
> ../../../scss/tests/extension/compass/test_images.py ... [ 49%]
> ../../../scss/tests/from_ruby/test_extend.py EEEEEEEEEEEEEEEEEEEEEEEEEEE [ 61%]
> EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 94%]
> EEEEEEEEEEEEE [100%]
>
> ==================================== ERRORS ====================================
> _________________________ ERROR at setup of test_basic _________________________
> 'Namespace' object has no attribute 'include_ruby'
>
> The above exception was the direct cause of the following exception:
> no option named 'include_ruby'
>
> During handling of the above exception, another exception occurred:
> Error evaluating 'skipif' condition
> not config.getoption('include_ruby')
> ValueError: no option named 'include_ruby'
> ___________________ ERROR at setup of test_multiple_targets ____________________
[...]

Revision history for this message
Benjamin Drung (bdrung) wrote :

Fixing this build failure needs porting the code to pcre2 which seems to be non-trivial.

description: updated
tags: added: update-excuse
Revision history for this message
Benjamin Drung (bdrung) wrote :

Upstream bug requesting the port to pcre2: https://github.com/Kronuz/pyScss/issues/429

Changed in python-pyscss (Debian):
importance: Undecided → Unknown
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Would using pcre3 (the confusingly named older library) fix the build?

Unfortunately, we just succeeded in demoting pcre3 to universe so it's not clear whether we would want to let it back into main.

Revision history for this message
Benjamin Drung (bdrung) wrote :

I fixed the unrelated failing tests in 1.4.0-4. This version builds, but does not build the C extension.

Using libpcre3-dev fixes the failing C extension building.

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.