I think the following should deserve attention: + prevAdaSLOT=$(gnatmake -v 2>&1 | sed -n '2 p' | sed 's:^[^0-9]*\([0-9]\+\).*:\1:' | sed 's:2021:10:' )
maybe there is a way to not use sed at all, or at least to not call it three times + die 'Ada cannot be built with a newer compiler' Is this good in a pkg_pretend ? All the time I tested gcc[ada] did not build with a new compiler