Bug 2317740 - ftgl: FTBFS in Fedora Rawhide and Fedora 41
Summary: ftgl: FTBFS in Fedora Rawhide and Fedora 41
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ftgl
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nicolas Chauvet (kwizart)
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F41FTBFS F42FTBFS
TreeView+ depends on / blocked
 
Reported: 2024-10-10 03:56 UTC by Mattias Ellert
Modified: 2024-10-22 10:37 UTC (History)
2 users (show)

Fixed In Version: ftgl-2.1.3-46.fc42
Clone Of:
Environment:
Last Closed: 2024-10-22 09:06:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mattias Ellert 2024-10-10 03:56:16 UTC
Description of problem:
Package ftgl fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
2.1.3-0.33.rc5.fc41

Steps to Reproduce:
koji build --scratch f42 ftgl-2.1.3-0.33.rc5.fc41.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/ftgl

Reproducible: Always

Steps to Reproduce:
1. Rebuild package in rawhide

Actual Results:  
FTVectoriser.cpp: In member function ‘void FTVectoriser::ProcessContours()’:
FTVectoriser.cpp:169:25: error: invalid conversion from ‘unsigned char*’ to ‘char*’ [-fpermissive]
  169 |         char* tagList = &outline.tags[startIndex];
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                         |
      |                         unsigned char*


Expected Results:  
Successful build.

Comment 1 Mattias Ellert 2024-10-11 18:52:48 UTC
Also fails in Fedora 41 now.

Failure is due to a change in the freetype2/freetype/ftimage.h header in freetype 2.13.3.

https://gitlab.freedesktop.org/freetype/freetype/-/commit/044d142be7b6a93b6940367a1bc5847451ff4775

Comment 2 Mattias Ellert 2024-10-17 12:04:23 UTC
Possible fix: https://github.com/frankheckenbach/ftgl/pull/20

Comment 3 Mattias Ellert 2024-10-18 10:59:36 UTC
Pull request in Dist GIT:

https://src.fedoraproject.org/rpms/ftgl/pull-request/2

Comment 4 Nicolas Chauvet (kwizart) 2024-10-22 09:06:00 UTC
Fixed for f41: https://koji.fedoraproject.org/koji/buildinfo?buildID=2570734

Applied the patch conditionally for epel10

Thanks for the report.

Comment 5 Fedora Update System 2024-10-22 09:10:15 UTC
FEDORA-2024-50a49393ce (ftgl-2.1.3-46.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-50a49393ce

Comment 6 Fedora Update System 2024-10-22 10:37:10 UTC
FEDORA-2024-50a49393ce (ftgl-2.1.3-46.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.