It seemed to be what the wrap file expected but in the end it is just a bug in meson which is now fixed.
This reverts commit cc5d74d0.
cc @xclaesse