Issue building on Rocky Linux 8

Aperta
#85 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, r
Ambito
build-system

Direzione di ricerca

The failure is in math_layout.cpp around line 2518, where HB_OT_MATH_GLYPH_PART_FLAG_EXTENDER is used unguarded; the older HarfBuzz 1.7.5 shipped with Rocky Linux 8 only has HB_MATH_GLYPH_PART_FLAG_EXTENDER, so a version guard is likely needed. Start by reading the configure/configure.ac logic in the package and the header includes in math_layout.cpp to see whether a minimum HarfBuzz version is already checked. Done means the package builds against 1.7.5 and still builds on Rocky 9's 2.7.4, with the version handled in one place rather than a bare rename.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I'm getting this error when building 1.1.0 on Rocky Linux 8 which we still use on our servers:

math_layout.cpp: In member function ‘math::MathBox math::MathLayout::assemble_glyph(uint32_t, double, bool)’:
math_layout.cpp:2518:42: error: ‘HB_OT_MATH_GLYPH_PART_FLAG_EXTENDER’ was not declared in this scope; did you mean ‘HB_MATH_GLYPH_PART_FLAG_EXTENDER’?
2518 | bool is_extender = (parts[i].flags & HB_OT_MATH_GLYPH_PART_FLAG_EXTENDER) != 0;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| HB_MATH_GLYPH_PART_FLAG_EXTENDER

Seems to be harfbuzz that's the problem as Rocky Linux 8 has 1.7.5 versus 2.7.4 on our Rocky 9 machines where textshaping builds fine.

Lingua principale
C++
Stelle
20
Fork
11
Merge medio
2g 21h
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di r-lib/textshaping

Tutte le issue di r-lib/textshaping

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.