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
,LD
andF
)FLAGS
variables and their_APPEND
counterparts and the locale variablesLANG
andLC_*
.TERM
is set todumb
if it is unset, andPATH
is 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-path
option. This is useful when one wishes to use tools such asccache
ordistcc
for building.
Portanto, o problema é que os binários opam estão em PATH
e, portanto, não foram encontrados aqui.