URL: <http://savannah.gnu.org/bugs/?31360>
Summary: cannot handle path expansion correctly Project: make Submitted by: wilsontien Submitted on: Mon 18 Oct 2010 09:11:47 AM GMT Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 3.81 Operating System: POSIX-Based Fixed Release: None Triage Status: None _______________________________________________________ Details: in Xen 4.0.1 build, there is a line in the Makefile -include ../../../../.config which follows BSD make convention, should not generate error message even if the included file does not exist. However, it continues to bug the build process. The reason is simple. include file will be concat with include_directories[], and try to see whether we can find it somewhere in the loop. However, /usr/include/../../../../.config will resolve to /.config even the original intent is not that since 'cd ..' at '/' will still be '/'. If there is a '/.config' at '/', then -include will simply fail. '../' in Makefile should really be just 'parent dir' and if there is no parent dir, it should simply FAIL. IMHO. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Mon 18 Oct 2010 09:11:47 AM GMT Name: read.c.patch Size: 2kB By: wilsontien <http://savannah.gnu.org/bugs/download.php?file_id=21703> ------------------------------------------------------- Date: Mon 18 Oct 2010 09:11:47 AM GMT Name: testopen.out Size: 275B By: wilsontien <http://savannah.gnu.org/bugs/download.php?file_id=21704> ------------------------------------------------------- Date: Mon 18 Oct 2010 09:11:47 AM GMT Name: testopen.c Size: 768B By: wilsontien <http://savannah.gnu.org/bugs/download.php?file_id=21705> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?31360> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make