[Python-bugs-list] [Bug #115515] build with read-only source files fails

noreply@sourceforge.net noreply@sourceforge.net
Wed, 27 Sep 2000 20:05:35 -0700


Bug #115515, was updated on 2000-Sep-27 16:45
Here is a current snapshot of the bug.

Project: Python
Category: Build
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Summary: build with read-only source files fails

Details: I found this when compiling 2.0b2; I am new to Python and
have not tried earlier versions.
The problem is that 'cp' fails when its target exists and
is readonly.  (I typically build with readonly sources as
that uncovers where the tree mysteriously modifies the
distributed files.)

One solution might be not to distribute Include/graminit.h
and Python/graminit.c, and to rely on the build to create
them.  Another solution would be to remove the files before
copying them in.  I am not sure how well I will be able to
paste a patchfile in here, but I'll give it a shot.

*** Grammar/Makefile.in0        Thu Aug 17 07:38:18 2000
--- Grammar/Makefile.in Wed Sep 27 18:57:10 2000
***************
*** 35,43 ****
--- 35,45 ----
  depend:
  
  $(DESTH):     graminit.h
+               -rm -f $(DESTH)
                cp graminit.h $(DESTH)
  
  $(DESTC):     graminit.c
+               -rm -f $(DESTC)
                cp graminit.c $(DESTC)
  
  graminit.c graminit.h: $(PGEN) Grammar


Follow-Ups:

Date: 2000-Sep-27 20:05
By: fdrake

Comment:
I think the suggested change would be fine for Unix, but I have no idea how the Windows "project" files would handle this, or if it's already supported there.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=115515&group_id=5470