Failure on getcwd when make invoked with -C option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
make-dfsg (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: make
If make is invoked as follows
$ make -C broken
The following error messages are printed:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
if instead make is executed inside the directory, no error is printed:
$ cd broken
$ make
<correct result printed>
The directory broken contains the following Makefile:
> SHELL := /bin/bash
> -include ../afilethatdoe
> all:
> pwd
The bug is not triggered if the SHELL line is removed or if the "include" line is removed. If the included file does exist, the bug is still triggered.
Ubuntu release:
Description: Ubuntu 9.10
Release: 9.10
We also updated the installation (as of today) and the bug still triggers.
affects: | make (Ubuntu) → make-dfsg (Ubuntu) |
I should add that the expected behaviour of the "-C" invocation of make should be the same as with the explicit "cd" invocation, i.e. no "getcwd" errors should occur.