mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
community/py3-cffsubr: fix build with gcc 14
This commit is contained in:
parent
b598c9d473
commit
54a8e0fa14
@ -1,7 +1,7 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=py3-cffsubr
|
||||
pkgver=0.2.9
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="Standalone CFF subroutinizer based on AFDKO tx"
|
||||
url="https://github.com/adobe-type-tools/cffsubr"
|
||||
arch="all"
|
||||
@ -10,7 +10,9 @@ depends="py3-fonttools"
|
||||
makedepends="py3-setuptools py3-setuptools_scm"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/c/cffsubr/cffsubr-$pkgver.tar.gz
|
||||
drop-setuptools-git-ls-files.patch"
|
||||
drop-setuptools-git-ls-files.patch
|
||||
gcc14.patch
|
||||
"
|
||||
builddir="$srcdir/cffsubr-$pkgver"
|
||||
|
||||
build() {
|
||||
@ -28,4 +30,5 @@ package() {
|
||||
sha512sums="
|
||||
600b6b63ad70e5f00da0f64dd1410d49af622ac923aea3346c904e47e490410a6205fc5b2c2ddc6c684af04face3c217a2c722141f67d5f8ce5b87543eb363e4 cffsubr-0.2.9.tar.gz
|
||||
557a816d3ac4591396e448b0138219cbe976bd7119a3cfefb6b803720918902b768280f3bcd844c62ed5ed1e1b59835ef4505d9ad81b6781adfe7d0b556e3b7e drop-setuptools-git-ls-files.patch
|
||||
aa3e51c2cc8b6c437b9127f05448f7b15c9e4f47d97a84dba82581047613418d99a7c7a663408994472918d64d8d4da01a9f6a308519591964e5d5dffc440009 gcc14.patch
|
||||
"
|
||||
|
28
community/py3-cffsubr/gcc14.patch
Normal file
28
community/py3-cffsubr/gcc14.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From 21d8b26f6caa930c29c187c9f8b201d67cf4de0d Mon Sep 17 00:00:00 2001
|
||||
From: Sergei Trofimovich <slyich@gmail.com>
|
||||
Date: Thu, 11 Jan 2024 04:04:00 +0000
|
||||
Subject: [PATCH] Fix build failures discovered by an upcoming `gcc-14` release
|
||||
(#1730)
|
||||
|
||||
---
|
||||
c/shared/source/t1write/t1write.c | 3 ++-
|
||||
c/shared/source/tx_shared/tx_shared.c | 4 ++--
|
||||
c/shared/source/uforead/uforead.c | 6 +++---
|
||||
tests/tx_test.py | 2 +-
|
||||
4 files changed, 8 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/c/shared/source/t1write/t1write.c b/c/shared/source/t1write/t1write.c
|
||||
index 6405b6537..266a11953 100644
|
||||
--- a/c/shared/source/t1write/t1write.c
|
||||
+++ b/c/shared/source/t1write/t1write.c
|
||||
+++ b/external/afdko/c/public/lib/source/t1write/t1write.c
|
||||
@@ -345,7 +345,8 @@ static int saveCstr(t1wCtx h, abfGlyphInfo *info,
|
||||
if (info != NULL && info->flags & ABF_GLYPH_CID &&
|
||||
!(h->arg.flags & T1W_TYPE_HOST)) {
|
||||
/* CID-keyed incremental download; write fd index */
|
||||
- if (writeTmp(h, 1, &info->iFD))
|
||||
+ unsigned char c = info->iFD;
|
||||
+ if (writeTmp(h, 1, &c))
|
||||
return 1;
|
||||
cstr->length++;
|
||||
}
|
Loading…
Reference in New Issue
Block a user