unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dani Moncayo <dmoncayo@gmail.com>
To: 10261@debbugs.gnu.org
Cc: cschol2112@googlemail.com
Subject: bug#10261: 24.0.92; The "dist" makefile target & the "--distfiles" configure option
Date: Fri, 23 Mar 2012 19:59:38 +0100	[thread overview]
Message-ID: <CAH8Pv0ikQfVciRRT0P0CTd0+gRsgn-AheeJRK3w68AvSsywetg@mail.gmail.com> (raw)
In-Reply-To: <CAH8Pv0gERVJtdyab9=mwLu1jtHeZJ+3E_Ag90YCDG5N1HB-Q2g@mail.gmail.com>

Hi,

In this bug report, the "dist" target of the nt/makefile was fixed
because it failed when no --distfiles argument was given to configure
(it always tried to run the "cp" command, and in this case failed).

Well, now I've tried to build Emacs in my system, but this time giving
a --distfiles argument to configure (for including the libXpm.dll in
the binary distribution).

I've found that the zip file has been generated without errors, but
the dll file has not been included in the "bin" subdirectory.

After doing a few experiments, I've found that the problem is in the
"maybe-copy-distfiles-SH" target.  Currently the target is defined
like this:
-------------------------
maybe-copy-distfiles-SH: doit

	@if [ ! $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" ] ; then \

	  $(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin ; \

	fi
-------------------------

and I've seen that the "if" condition never evaluates to true, so that
my distfiles are never copied to the bin subdirectory (regardless of
the value of DIST_FILES).

I think I've found a solution (I've tested it): write the "if"
condition like this:
   if [ -n $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE) ] ; then \

This is the corresponding patch:

=== modified file 'nt/makefile.w32-in'
--- nt/makefile.w32-in  2012-02-27 03:20:00 +0000
+++ nt/makefile.w32-in  2012-03-23 18:57:00 +0000
@@ -263,7 +263,7 @@
        @if not $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" $(CP_DIR)
$(DIST_FILES) $(TMP_DIST_DIR)/bin

 maybe-copy-distfiles-SH: doit
-       @if [ ! $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" ] ; then \
+       @if [ -n $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE) ] ; then \
          $(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin ; \
        fi



Do you find it correct?  If so, please install it.

Thanks.

-- 
Dani Moncayo





  reply	other threads:[~2012-03-23 18:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-10 11:10 bug#10261: 24.0.92; The "dist" makefile target & the "--distfiles" configure option Dani Moncayo
     [not found] ` <CAH8Pv0gPEq9gVF+zs=rf26gu8mFtwW6rHbs25mZHxae4Z2g_NQ@mail.gmail.com>
2011-12-10 11:25   ` Dani Moncayo
2011-12-10 14:32     ` Christoph Scholtes
2011-12-10 15:06       ` Dani Moncayo
2012-01-02 22:08     ` Christoph Scholtes
2012-02-04 22:46       ` Christoph Scholtes
2012-02-05 16:47         ` Eli Zaretskii
2012-02-05 18:19           ` Christoph Scholtes
2012-02-05 20:22           ` Christoph Scholtes
     [not found]             ` <CAH8Pv0jsXLTywqE+aT8aH-o_JSP60z84W6_5wmR_KmQNXiBiLg@mail.gmail.com>
     [not found]               ` <CAH8Pv0hzisvR1TuAL45RS64RAX7CB9W8cFNoS_E6Qt87Bb9ipg@mail.gmail.com>
     [not found]                 ` <837gzpxkga.fsf@gnu.org>
     [not found]                   ` <CAH8Pv0iw2HquHJ5v1r6phLqFqMgW7_kK44AbO9PBC5Zu3U-aLA@mail.gmail.com>
     [not found]                     ` <834nutxgw8.fsf@gnu.org>
     [not found]                       ` <CAH8Pv0iZYdBDEL-1rReRYXb4z6Oi5b4y6tmVaJFBKoDiVk_seA@mail.gmail.com>
     [not found]                         ` <83wr7ovxh5.fsf@gnu.org>
     [not found]                           ` <CAH8Pv0iH0aPf+ON0yL7SMVsNhxv0Ww3j0knpD2_qJo1MgHAPmg@mail.gmail.com>
2012-02-23  7:22                             ` Dani Moncayo
2012-02-23  7:52                               ` Stefan Monnier
2012-02-23  7:59                                 ` Dani Moncayo
2012-02-23  8:00                                   ` Dani Moncayo
2012-02-23  8:37                                     ` Glenn Morris
2012-02-27 19:43                       ` Dani Moncayo
2012-03-23 18:59                         ` Dani Moncayo [this message]
2012-03-23 19:24                           ` Dani Moncayo
2012-04-11  6:33                             ` Chong Yidong
2012-04-11 13:11                               ` Dani Moncayo

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CAH8Pv0ikQfVciRRT0P0CTd0+gRsgn-AheeJRK3w68AvSsywetg@mail.gmail.com \
    --to=dmoncayo@gmail.com \
    --cc=10261@debbugs.gnu.org \
    --cc=cschol2112@googlemail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).