Subject: apt-build: make wrapper modifies PATH, so make call's real gcc, not the wrapper Package: apt-build Version: 0.12.28 Severity: grave Justification: renders package unusable Tags: patch -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (100, 'unstable'), (100, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.23 Locale: LANG=he_IL.UTF-8, LC_CTYPE=he_IL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages apt-build depends on: ii apt 0.7.6 Advanced front-end for dpkg ii apt-utils 0.7.6 APT utility programs ii debconf [debconf-2.0] 1.5.14 Debian configuration management sy ii devscripts 2.10.9 Scripts to make the life of a Debi ii dpkg-dev 1.14.7 package building tools for Debian ii g++ 4:4.2.1-6 The GNU C++ compiler ii gcc 4:4.2.1-6 The GNU C compiler ii libappconfig-perl 1.56-2 Perl module for configuration file ii libapt-pkg-perl 0.1.21+b1 Perl interface to libapt-pkg ii perl 5.8.8-11.1 Larry Wall's Practical Extraction Versions of packages apt-build recommends: ii build-essential 11.3 informational list of build-essent pn fakeroot <none> (no description available) -- debconf information: apt-build/arch_amd: k6 apt-build/arch_alpha: ev4 * apt-build/options: -march=pentium3 * apt-build/arch_intel: pentium3 apt-build/arch_arm: armv2 * apt-build/make_options: -j2 * apt-build/olevel: Strong * apt-build/build_dir: /var/cache/apt-build/build * apt-build/repository_dir: /var/cache/apt-build/repository apt-build/arch_sparc: sparc apt-build/arch_amd64: x86-64 * apt-build/add_to_sourceslist: true
--- config.c 2007-11-13 18:13:45.000000000 +0200 +++ /root/apt-build/config.c 2007-11-13 18:03:48.000000000 +0200 @@ -139,7 +139,13 @@ if (args.mtune) cmd_line_args[nb_apt_build_options++] = args.mtune; - } + } else { + /* Add current path as argument to make */ + char* path = getenv("PATH") ; + char* path_option = (char *) malloc (strlen(path) + 5) ; + sprintf (path_option,"PATH=%s",path) ; + cmd_line_args[nb_apt_build_options++] = path_option ; + } cmd_line_args[nb_apt_build_options++] = NULL;