gd: import from rawhide
gd: first work on 2.1.0