all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dani Moncayo <dmoncayo@gmail.com>
To: 12955@debbugs.gnu.org
Subject: bug#12955: 24.3.50; Build process on MS-Windows: sometimes needs "human intervention"
Date: Wed, 21 Nov 2012 23:43:45 +0100	[thread overview]
Message-ID: <CAH8Pv0gdCK94N8bV-QGuooHKcpYFjknSHWt3y_NGoiwg3XU8ng@mail.gmail.com> (raw)
In-Reply-To: <CAH8Pv0hHPzT44tdrr2VRAtt9WsaU=140BX+URVAF00sb30z_mQ@mail.gmail.com>

> $(SOME_MACHINE_OBJECTS) $(obj) > gl-tmp
> -       cmd /c "fc /b gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h"
> +       cmd /c"fc /b gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h"
>         - $(DEL) gl-tmp
>         echo timestamp > $@

I've grepped the sources and there is another instance of this
problem, in that same file (src/makefile.w32-in):
   @cmd /c rem true

This sentence must not be executed in my current builds because I've
not had to touch it for my build to succeeded.  But if the sentence is
executed under some circumstances, the same problem will crop up.

So here is a new version of the patch which fixed that case too and
includes an informative commentary:

=== modified file 'src/makefile.w32-in'
--- src/makefile.w32-in 2012-11-17 23:16:24 +0000
+++ src/makefile.w32-in 2012-11-21 22:42:06 +0000
@@ -228,13 +228,17 @@
        xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o dbusbind.o
 obj = $(GLOBAL_SOURCES:.c=.o)

+# WARNING: Every `cmd /c' command must have the form:
+#     cmd /c"some-command"
+# without any space between the /c and the first double quote.
+# This is needed to avoid problems when sh.exe is used as shell.
 globals.h: gl-stamp
-       @cmd /c rem true
+       @cmd /c"rem true"

 gl-stamp: ../lib-src/$(BLD)/make-docfile.exe $(GLOBAL_SOURCES)
        - $(DEL) gl-tmp
        "$(THISDIR)/../lib-src/$(BLD)/make-docfile" -d . -g
$(SOME_MACHINE_OBJECTS) $(obj) > gl-tmp
-       cmd /c "fc /b gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h"
+       cmd /c"fc /b gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h"
        - $(DEL) gl-tmp
        echo timestamp > $@


-- 
Dani Moncayo





  reply	other threads:[~2012-11-21 22:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-21 20:49 bug#12955: 24.3.50; Build process on MS-Windows: sometimes needs "human intervention" Dani Moncayo
2012-11-21 22:43 ` Dani Moncayo [this message]
2012-11-22  3:41 ` Eli Zaretskii
2012-11-22  7:19   ` Dani Moncayo
2012-11-22 17:05     ` Eli Zaretskii
2012-11-22 19:16       ` Dani Moncayo
2012-11-23  8:53         ` Eli Zaretskii
2012-11-23 19:55           ` Dani Moncayo
2012-11-23 21:43             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH8Pv0gdCK94N8bV-QGuooHKcpYFjknSHWt3y_NGoiwg3XU8ng@mail.gmail.com \
    --to=dmoncayo@gmail.com \
    --cc=12955@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.