It seems that apt-build does not clean up after itself as it should when\ specifying the --remove-builddep option. I ran the following: apt-build --remove-builddep --rebuild --reinstall install wget It then installed the build dependencies autotools-dev debhelper html2text info2man libssl-dev However, they remained installed after apt-build had finished building and installing wget. I had to purge them manually using "dpkg --purge ...". Best regards Torquil Sørensen
The problem is caused by the not assigned @builddep variable. This variable is used for removing the (newly) installed packages needed for building but was never assinged in the first place. Changing the line read_apt_list($conf->apt_get . "... in the function sub builddep to @builddep = read_apt_list($conf->apt_get . "... fixes the problem Haruna