Bug 1939399

Summary: cairo 1.17.4 produces invalid PDF files
Product: [Fedora] Fedora Reporter: Felix Schwarz <fschwarz>
Component: cairoAssignee: Benjamin Otte <otte>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: ajax, caillon+fedoraproject, gnome-sig, klember, mclasen, otte, rhughes, rstrode, sandmann
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cairo-1.17.4-3.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-20 00:16:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Felix Schwarz 2021-03-16 10:43:07 UTC
Adding cairo 1.17.4 to F34 is problem for WeasyPrint as 1.17 seems to be a development release which contains quite a few bugs.

Would you mind adding this upstream cairo patch to Fedora's RPM:
https://gitlab.freedesktop.org/cairo/cairo/-/issues/449

Comment 1 Felix Schwarz 2021-03-16 10:44:08 UTC
cc Kalev as he added cairo 1.17 to F34/rawhide.

Comment 2 Kalev Lember 2021-03-16 12:29:08 UTC
Sure, here you go: https://src.fedoraproject.org/rpms/cairo/c/a0683cb6188555523851c1a5c89d8e64a8f58767?branch=rawhide

Thanks for letting me know!

Comment 3 Felix Schwarz 2021-03-16 12:37:54 UTC
Thank you so much.

I'll try to get WeasyPrint/cairo fixed by debugging the remaining font rendering issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1914322
https://github.com/Kozea/WeasyPrint/issues/1291

Comment 4 Fedora Update System 2021-03-16 13:43:31 UTC
FEDORA-2021-a1e1bfa3a0 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-a1e1bfa3a0

Comment 5 Kalev Lember 2021-03-16 13:52:05 UTC
No problem!

Sorry that the cairo update is causing trouble for you. Cairo is in a fairly sad state upstream and it's hard to get them to do new stable releases. We managed to get a snapshot release out of upstream and in the end decided to go with it in rawhide as gtk4 wanted to start using new cairo features.

Looks like this push from distros has at least led to getting some regressions getting fixed in cairo git, which is good :)

Comment 6 Fedora Update System 2021-03-16 14:44:42 UTC
FEDORA-2021-a1e1bfa3a0 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-a1e1bfa3a0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a1e1bfa3a0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-03-20 00:16:41 UTC
FEDORA-2021-a1e1bfa3a0 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.