Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893948 - dev-python/python-zstandard-0.19.0 fails to compile with app-arch/zstd-1.5.4 -- cffi.CDefError: parse error
Summary: dev-python/python-zstandard-0.19.0 fails to compile with app-arch/zstd-1.5.4 ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-11 14:47 UTC by Michelangelo Scopelliti
Modified: 2023-02-22 14:03 UTC (History)
4 users (show)

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


Attachments
build log (python-zstandard-0.19.0:20230211-144435.log.gz,2.83 KB, application/gzip)
2023-02-11 14:48 UTC, Michelangelo Scopelliti
Details
emerge --info (emerge-info.gz,3.53 KB, application/gzip)
2023-02-11 14:49 UTC, Michelangelo Scopelliti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michelangelo Scopelliti 2023-02-11 14:47:16 UTC
dev-python/python-zstandard-0.19.0 fails to build in compile phase, with an exception inside an exception. Build log will be attached.

Reproducible: Always
Comment 1 Michelangelo Scopelliti 2023-02-11 14:48:31 UTC
Created attachment 850382 [details]
build log
Comment 2 Michelangelo Scopelliti 2023-02-11 14:49:41 UTC
Created attachment 850384 [details]
emerge --info
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-11 19:56:07 UTC
Could you upload the bad header?

```
/var/tmp/portage/dev-python/python-zstandard-0.19.0/temp/tmpdk2k2yac.h:1784:16: before: (
```
Comment 4 Perfect Gentleman 2023-02-12 03:05:32 UTC
Confirm. I have the same error on all 3 machines with Python-3.11.2.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-12 03:09:44 UTC
(In reply to Perfect Gentleman from comment #4)
> Confirm. I have the same error on all 3 machines with Python-3.11.2.

Could you provide the header then?
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-12 03:20:32 UTC
Reproduced. I assume it's app-arch/zstd-1.5.4 related but I haven't verified that yet.
Comment 7 Perfect Gentleman 2023-02-12 03:22:53 UTC
```
pycparser.plyparser.ParseError: /tmp/portage/dev-python/python-zstandard-0.19.0/temp/tmpxrc2r4yg.h:1784:16: before: (
```

```
sudo cat /tmp/portage/dev-python/python-zstandard-0.19.0/temp/tmpxrc2r4yg.h

cat: /tmp/portage/dev-python/python-zstandard-0.19.0/temp/tmpxrc2r4yg.h: No such file or directory
```

How can I do it ?
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-12 03:25:49 UTC
(In reply to Perfect Gentleman from comment #7)
> ```
> pycparser.plyparser.ParseError:
> /tmp/portage/dev-python/python-zstandard-0.19.0/temp/tmpxrc2r4yg.h:1784:16:
> before: (
> ```

No worries, it looks like it deletes the header on error (only just found out). Looking into it now.
Comment 9 Larry the Git Cow gentoo-dev 2023-02-14 04:10:59 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=266c564f4074251f35471a300b4986115466b7f1

commit 266c564f4074251f35471a300b4986115466b7f1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-14 04:10:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-14 04:10:35 +0000

    dev-python/python-zstandard: depend on <zstd-1.5.4
    
    Fails to build with newer.
    
    Bug: https://bugs.gentoo.org/893948
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/python-zstandard/python-zstandard-0.19.0.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 10 ZetaCorvi 2023-02-22 13:03:58 UTC
dev-python/zstandard was updated to 0.20 and successfully builds with app-arch/zstd-1.5.4-r2. Maybe some tests should be run and bug is up to be closed?
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-22 14:03:09 UTC
(In reply to ZetaCorvi from comment #10)
> dev-python/zstandard was updated to 0.20 and successfully builds with
> app-arch/zstd-1.5.4-r2. Maybe some tests should be run and bug is up to be
> closed?

Yep, thanks!