Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 943997

Summary: dev-python/tpm2-pytss-2.3.0 fails to compile: pycparser.plyparser.ParseError: stddef.h:450:31: before: nullptr_t
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Christopher Byrne <salah.coronya>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/39550
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-11-19 12:29:53 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/tpm2-pytss-2.3.0 fails to compile.
Discovered on: amd64 (internal ref: gcc15_tinderbox)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0003
Comment 1 Agostino Sarubbo gentoo-dev 2024-11-19 12:29:54 UTC
Created attachment 910189 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-12-02 14:50:43 UTC
The bug has been closed via the following commit(s):

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

commit bd60fb07f2716ed71b22201b32e7ba730e1a99da
Author:     Christopher Byrne <salah.coronya@gmail.com>
AuthorDate: 2024-12-02 03:26:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-02 14:48:24 +0000

    dev-python/tpm2-pytss: Fix compile under gcc-15
    
    Added a patch to force "-std=c99" when preprocessing. As pcyparser only
    supports completely C99, this shouldn't be an issue
    
    Closes: https://bugs.gentoo.org/943997
    Closes: https://bugs.gentoo.org/945056
    Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/tpm2-pytss-2.3.0-preprocess-as-C99.patch  | 21 +++++++++++++++++++++
 dev-python/tpm2-pytss/tpm2-pytss-2.3.0.ebuild       |  4 ++++
 2 files changed, 25 insertions(+)