Skip to content

Hadrian: refactor libffi and rts rules.

The rts package depends on libffi. The hadrian rules around this are a bit hacky. The rts needs some specific header files, then the corresponding libffi rule takes on some unsolicited responsibilities, copying some important files into the rts directory. Also see mpickering's comment on this:

This whole copying the header files into the rts dir seemed very dodgy to me. Why do we not depend on libffi when building the rts and then copy the files we need in the rules for building the rts?

This is a hack implemented partly to get around the issue of not knowing the names of some libffi files until after building libffi. There surely is an idiomatic solution to this.

Trac metadata
Trac field Value
Version 8.6.3
Type Task
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System (Hadrian)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC alpmestan, mpickering
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information