🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #82

GDB 4.5 configure shouldn't assume that source files are writeable

#82
From: Paul Eggert
Date: Wed, 15 Apr 1992 04:01
68 lines
2444 bytes
One of the first things I do with imported sources is make them readonly so
that people who want to change them are reminded to check in their changes
under RCS.  Unfortunately, the GDB 4.5 master configure script assumes that
source files are read-write.  Here is a patch.

===================================================================
RCS file: RCS/configure,v
retrieving revision 4.5
diff -c -r4.5 configure
*** configure	1992/04/06 21:35:19	4.5
--- configure	1992/04/15 03:57:31
***************
*** 515,520 ****
--- 515,521 ----
  	# so do these separately because I don't trust the order of sed -e expressions.
  
  	# Conditionalize for this site from "Makefile.in" (or whatever it's called) into Makefile.tem
+ 	rm -f Makefile.tem
  	case "${site}" in
  	"") cp ${srcdir}/${Makefile_in} Makefile.tem ;;
  	*)
***************
*** 532,537 ****
--- 533,539 ----
  	# working copy now in Makefile.tem
  
  	# Conditionalize the makefile for this host.
+ 	rm -f ${Makefile}
  	case "${host_makefile_frag}" in
  	"") mv Makefile.tem ${Makefile} ;;
  	*)
***************
*** 547,552 ****
--- 549,555 ----
  	# working copy now in ${Makefile}
  
  	# Conditionalize the makefile for this target.
+ 	rm -f Makefile.tem
  	case "${target_makefile_frag}" in
  	"") mv ${Makefile} Makefile.tem ;;
  	*)
***************
*** 562,567 ****
--- 565,571 ----
  	# real copy now in Makefile.tem
  
  	# prepend warning about editting, and a bunch of variables.
+ 	rm -f ${Makefile}
  	cat > ${Makefile} <<EOF
  # ${NO_EDIT}
  host_alias = ${host_alias}
***************
*** 611,617 ****
  		Makefile.tem >> ${Makefile}
  	# final copy now in ${Makefile}
  
! 	rm Makefile.tem
  
  	if [ -n "${verbose}" -o -z "${silent}" ] ; then
  		case "${host_makefile_frag}" in
--- 615,621 ----
  		Makefile.tem >> ${Makefile}
  	# final copy now in ${Makefile}
  
! 	rm -f Makefile.tem
  
  	if [ -n "${verbose}" -o -z "${silent}" ] ; then
  		case "${host_makefile_frag}" in
Technical Details
Message-ID: <9204150401.AA11236@farside.twinsun.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!twinsun.COM!eggert

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!twinsun.COM!eggert
From: eggert@twinsun.COM (Paul Eggert)
Subject: GDB 4.5 configure shouldn't assume that source files are writeable
Message-ID: <9204150401.AA11236@farside.twinsun.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 15 Apr 1992 04:01:02 GMT
Approved: bug-gdb@prep.ai.mit.edu
Lines: 69