Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2004:
[Freeciv-Dev] (PR#8407) Re: configure issue with "civ" and "ser" scripts
Home

[Freeciv-Dev] (PR#8407) Re: configure issue with "civ" and "ser" scripts

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8407) Re: configure issue with "civ" and "ser" scripts
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 27 Mar 2004 22:10:25 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8407 >

Mike Kaufman wrote:
> missed something...
> 
> config.status: creating doc/it/Makefile
> config.status: creating doc/ja/Makefile
> config.status: creating doc/nl/Makefile
> config.status: creating doc/sv/Makefile
> config.status: creating undep.sh
> config.status: creating civ
> chmod: failed to get attributes of `ser': No such file or directory
> config.status: creating ser
> config.status: creating config.h
> config.status: executing depfiles commands

Hey, I can reproduce this!  If I try really hard...

I'm a bit confused.  I have the following line in configure.ac:

   AC_CONFIG_FILES([civ ser], [chmod +x civ ser])

which seemingly says to create the civ and ser scripts, then run the 
given command.  See

http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_chapter/autoconf_4.html#SEC20

However the command seems to be run after _each_ file is created.  So 
it's run after civ is created (setting civ to executable, and giving an 
error for ser) and again after ser is created (setting ser to 
executable).  In config.status we have

   # Run the commands associated with the file.
   case $ac_file in
     civ ) chmod +x civ ser ;;
     ser ) chmod +x civ ser ;;
   esac

So this is harmless but annoying.  The attached patch should fix it 
(Mike, please test).  But I still don't know why the commands are being 
run multiple times.

(The documentation doesn't explain this well.  The documentation says 
the commands are "associated with a tag that the user can use to tell 
`config.status' which the commands to run".  But this seems like a 
nonsensical sentence and doesn't explain _how_ each command is 
associated with a tag.)

jason

? Womoks
? client/gui-gtk-2.0/diplodlg.o.owxOPd
Index: configure.ac
===================================================================
RCS file: /home/freeciv/CVS/freeciv/configure.ac,v
retrieving revision 1.57
diff -u -r1.57 configure.ac
--- configure.ac        27 Mar 2004 18:44:16 -0000      1.57
+++ configure.ac        28 Mar 2004 05:57:31 -0000
@@ -703,6 +703,7 @@
          doc/nl/Makefile
          doc/sv/Makefile
          undep.sh])
-AC_CONFIG_FILES([civ ser], [chmod +x civ ser])
+AC_CONFIG_FILES([civ], [chmod +x civ])
+AC_CONFIG_FILES([ser], [chmod +x ser])
 AC_CONFIG_COMMANDS([default],[[ chmod +x undep.sh ; ./undep.sh ]],[[]])
 AC_OUTPUT

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#8407) Re: configure issue with "civ" and "ser" scripts, Jason Short <=