unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: 31891@debbugs.gnu.org, 33196@debbugs.gnu.org
Subject: bug#33196: [PATCH] Re: bug#33196: emacs-realgud build failure
Date: Wed, 31 Oct 2018 00:58:48 -0400	[thread overview]
Message-ID: <877ehy7lvb.fsf_-_@apteryx.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <87muquu6a8.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 30 Oct 2018 23:46:55 -0400")

[-- Attachment #1: Type: text/plain, Size: 845 bytes --]

Hello!

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

[...]

> The bug is triggered by this check in configure.ac:
>
> if test "$NO_CHECK_EMACS_PACKAGES" = "" ; then
> AC_MSG_NOTICE("Checking prerequiste packages")
> $EMACS -batch -q --no-site-file -eval \
>   '(dolist (package
>          (quote (cl-lib loc-changes load-relative test-simple)))
>         (require package))
>    )'
> fi
> if test $? -ne 0 ; then
>     AC_MSG_ERROR([Can't continue until above error is corrected.])
> fi
>
>
> More specifically, running this with emacs:
>
> emacs -batch -q --no-site-file -eval '(dolist (package
>>          (quote (cl-lib loc-changes load-relative test-simple)))
>>         (require package))
>>    )'
> Trailing garbage following expression: 
>    )
>
> Reproduces it.

I believe the attached patch fixes it. Feedback welcome!

Maxim


[-- Attachment #2: 0001-gnu-emacs-realgud-Patch-configure.ac-to-repair-the-b.patch --]
[-- Type: text/x-patch, Size: 3651 bytes --]

From 4a50c2e81c41ada7ff2e43d70bc973de133da8fd Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Date: Wed, 31 Oct 2018 00:24:04 -0400
Subject: [PATCH] gnu: emacs-realgud: Patch configure.ac to repair the build.

This fixes https://bugs.gnu.org/33196, a build problem caused by a defective
Elisp snippet in a check in configure.ac.

* gnu/packages/patches/emacs-realgud-fix-configure-ac.patch: Add patch.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/emacs.scm (emacs-realgud)[source]: Use it.
---
 gnu/local.mk                                  |  2 ++
 gnu/packages/emacs.scm                        |  6 ++++-
 .../emacs-realgud-fix-configure-ac.patch      | 27 +++++++++++++++++++
 3 files changed, 34 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/emacs-realgud-fix-configure-ac.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 6075e4795..61c4a9a39 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -19,6 +19,7 @@
 # Copyright © 2018 Amirouche Boubekki <amirouche@hypermove.net>
 # Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
 # Copyright © 2018 Stefan Stefanović <stefanx2ovic@gmail.com>
+# Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 #
 # This file is part of GNU Guix.
 #
@@ -663,6 +664,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/emacs-highlight-stages-add-gexp.patch	\
   %D%/packages/patches/emacs-scheme-complete-scheme-r5rs-info.patch	\
   %D%/packages/patches/emacs-source-date-epoch.patch		\
+  %D%/packages/patches/emacs-realgud-fix-configure-ac.patch	\
   %D%/packages/patches/enlightenment-fix-setuid-path.patch	\
   %D%/packages/patches/erlang-man-path.patch			\
   %D%/packages/patches/eudev-rules-directory.patch		\
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 45e92ee47..75b0a71ed 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -3658,7 +3658,11 @@ after buffer changes.")
                            version ".tar"))
        (sha256
         (base32
-         "108wgxg7fb4byaiasgvbxv2hq7b00biq9f0mh9hy6vw4160y5w24"))))
+         "108wgxg7fb4byaiasgvbxv2hq7b00biq9f0mh9hy6vw4160y5w24"))
+       (patches
+        ;; Patch awaiting inclusion upstream (see:
+        ;; https://github.com/realgud/realgud/pull/226).
+        (search-patches "emacs-realgud-fix-configure-ac.patch"))))
     (build-system emacs-build-system)
     (arguments
      `(#:tests? #t
diff --git a/gnu/packages/patches/emacs-realgud-fix-configure-ac.patch b/gnu/packages/patches/emacs-realgud-fix-configure-ac.patch
new file mode 100644
index 000000000..8165857c8
--- /dev/null
+++ b/gnu/packages/patches/emacs-realgud-fix-configure-ac.patch
@@ -0,0 +1,27 @@
+From a293690f29407ac54a218d6d20c2142e1a0319d1 Mon Sep 17 00:00:00 2001
+From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
+Date: Wed, 31 Oct 2018 00:08:34 -0400
+Subject: [PATCH] configure.ac: Fix NO_CHECK_EMACS_PACKAGES elisp.
+
+Remove the extraneous trailing parenthesis.
+---
+ configure.ac | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index de0d932..69bcea7 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -25,8 +25,7 @@ AC_MSG_NOTICE("Checking prerequiste packages")
+ $EMACS -batch -q --no-site-file -eval \
+   '(dolist (package
+          (quote (cl-lib loc-changes load-relative test-simple)))
+-        (require package))
+-   )'
++        (require package))'
+ fi
+ if test $? -ne 0 ; then
+     AC_MSG_ERROR([Can't continue until above error is corrected.])
+-- 
+2.19.0
+
-- 
2.19.0


  reply	other threads:[~2018-10-31  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-29 19:35 bug#33196: emacs-realgud build failure Brett Gilio
2018-10-30 12:37 ` Maxim Cournoyer
2018-10-31  3:46   ` Maxim Cournoyer
2018-10-31  4:58     ` Maxim Cournoyer [this message]
2018-11-16  4:20       ` bug#31891: [PATCH] " Maxim Cournoyer

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://guix.gnu.org/

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

  git send-email \
    --in-reply-to=877ehy7lvb.fsf_-_@apteryx.i-did-not-set--mail-host-address--so-tickle-me \
    --to=maxim.cournoyer@gmail.com \
    --cc=31891@debbugs.gnu.org \
    --cc=33196@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 public inbox

	https://git.savannah.gnu.org/cgit/guix.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).