Depois de ler a manpage, descobri a seção sobre variáveis de ambiente , que diz:
As environment variables can affect the building of a package, often unintentionally, debuild sanitises the environment by removing all environment variables except for
TERM,HOME,LOGNAME,GNUPGHOME,PGPPATH,GPG_AGENT_INFO,FAKEROOTKEY,DEB_*, the (C,CPP,CXX,LDandF)FLAGSvariables and their_APPENDcounterparts and the locale variablesLANGandLC_*.TERMis set todumbif it is unset, andPATHis set to"/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11".[...]
Note that one may add directories to the beginning of the sanitised PATH, using the
--prepend-pathoption. This is useful when one wishes to use tools such asccacheordistccfor building.
Portanto, o problema é que os binários opam estão em PATH e, portanto, não foram encontrados aqui.