all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#48483] [PATCH 0/1] Fix broken emacs-libyaml
@ 2021-05-17 17:29 Fredrik Salomonsson
  2021-05-17 17:36 ` [bug#48483] [PATCH 1/1] gnu: emacs-libyaml: fix broken phase Fredrik Salomonsson
  0 siblings, 1 reply; 4+ messages in thread
From: Fredrik Salomonsson @ 2021-05-17 17:29 UTC (permalink / raw)
  To: 48483; +Cc: Fredrik Salomonsson

Hi,

Getting:

File is missing: Cannot open load file, No such file or directory, libyaml-core

After a guix pull and launching emacs.

I tracked it down to the phase that fixes the load path of emacs-libyaml
(substitute-libyaml-core-path) was not being run during the build. Seems that
the phase it was using in the add-before procedure has been removed/renamed
and therefore substitute-libyaml-core-path phase didn't run.

I changed it to add the phase substitute-libyaml-core-path after the unpack
phase and that fixes the issue.


Fredrik Salomonsson (1):
  gnu: emacs-libyaml: fix broken phase.

 gnu/packages/emacs-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


base-commit: 0d85c83602c58cf83117643571e56205cfaeadc9
-- 
2.31.1





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#48483] [PATCH 1/1] gnu: emacs-libyaml: fix broken phase.
  2021-05-17 17:29 [bug#48483] [PATCH 0/1] Fix broken emacs-libyaml Fredrik Salomonsson
@ 2021-05-17 17:36 ` Fredrik Salomonsson
  2021-05-17 18:02   ` bug#48483: " Leo Prikler
  0 siblings, 1 reply; 4+ messages in thread
From: Fredrik Salomonsson @ 2021-05-17 17:36 UTC (permalink / raw)
  To: 48483; +Cc: Fredrik Salomonsson

* gnu/packages/emacs-xyz.scm (emacs-libyaml): Change
substitute-libyaml-core-path phase to be added after the unpack phase. As the
add-source-to-load-path phase which it was added to before seems to been
removed, which resulted in the phase not being run.
---
 gnu/packages/emacs-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 7a62b6b7ef..6f67083d01 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -22533,7 +22533,7 @@ utilities.")
 (define-public emacs-libyaml
   ;; Upstream made no release so far.
   (let ((version "0")
-        (revision "1")
+        (revision "2")
         (commit "703e0d448c7ee24e25b513a3c65980c80e166805"))
     (package
       (name "emacs-libyaml")
@@ -22557,7 +22557,7 @@ utilities.")
                              (guix build gnu-build-system))
          #:phases
          (modify-phases %standard-phases
-           (add-before 'add-source-to-load-path 'substitute-libyaml-core-path
+           (add-after 'unpack 'substitute-libyaml-core-path
              (lambda* (#:key outputs #:allow-other-keys)
                (chmod "libyaml.el" #o644)
                (substitute* "libyaml.el"
-- 
2.31.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#48483: [PATCH 1/1] gnu: emacs-libyaml: fix broken phase.
  2021-05-17 17:36 ` [bug#48483] [PATCH 1/1] gnu: emacs-libyaml: fix broken phase Fredrik Salomonsson
@ 2021-05-17 18:02   ` Leo Prikler
  2021-05-17 18:43     ` [bug#48483] " Fredrik Salomonsson
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Prikler @ 2021-05-17 18:02 UTC (permalink / raw)
  To: Fredrik Salomonsson, 48483-done

Pushed with the adjustments listed below:

Am Montag, den 17.05.2021, 17:36 +0000 schrieb Fredrik Salomonsson:
> * gnu/packages/emacs-xyz.scm (emacs-libyaml): Change
> substitute-libyaml-core-path phase to be added after the unpack
> phase. As the
> add-source-to-load-path phase which it was added to before seems to
> been
> removed, which resulted in the phase not being run.
I've rewritten the header so as to not contain "fix" (there has been
recent discussion to avoid said word unless necessary), and simplified
this line as well.
> ---
>  gnu/packages/emacs-xyz.scm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index 7a62b6b7ef..6f67083d01 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -22533,7 +22533,7 @@ utilities.")
>  (define-public emacs-libyaml
>    ;; Upstream made no release so far.
>    (let ((version "0")
> -        (revision "1")
> +        (revision "2")
>          (commit "703e0d448c7ee24e25b513a3c65980c80e166805"))
>      (package
>        (name "emacs-libyaml")
You don't need to change the revision if the source has not changed.

Regards,
Leo





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#48483] [PATCH 1/1] gnu: emacs-libyaml: fix broken phase.
  2021-05-17 18:02   ` bug#48483: " Leo Prikler
@ 2021-05-17 18:43     ` Fredrik Salomonsson
  0 siblings, 0 replies; 4+ messages in thread
From: Fredrik Salomonsson @ 2021-05-17 18:43 UTC (permalink / raw)
  To: Leo Prikler, 48483-done

Leo Prikler <leo.prikler@student.tugraz.at> writes:

> I've rewritten the header so as to not contain "fix" (there has been
> recent discussion to avoid said word unless necessary), and simplified
> this line as well.

Thanks for cleaning up my commit message and merging it!

> You don't need to change the revision if the source has not changed.

Noted.

-- 
s/Fred[re]+i[ck]+/Fredrik/g




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-17 19:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-17 17:29 [bug#48483] [PATCH 0/1] Fix broken emacs-libyaml Fredrik Salomonsson
2021-05-17 17:36 ` [bug#48483] [PATCH 1/1] gnu: emacs-libyaml: fix broken phase Fredrik Salomonsson
2021-05-17 18:02   ` bug#48483: " Leo Prikler
2021-05-17 18:43     ` [bug#48483] " Fredrik Salomonsson

Code repositories for project(s) associated with this external index

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