#624383 apt-build: Ignores --remove-builddep option

Package:
apt-build
Source:
apt-build
Description:
frontend to apt to build, optimize and install packages
Submitter:
Torquil Macdonald Sørensen
Date:
2024-11-21 08:57:02 UTC
Severity:
normal
#624383#5
Date:
2011-04-27 23:06:19 UTC
From:
To:
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

#624383#10
Date:
2024-11-21 08:54:29 UTC
From:
To:
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