unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 986cde6a2a501455d9731045d2d96ec50378b15d 1105 bytes (raw)
name: gnu/packages/patches/guile-install-versioned.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
From b8ba5b84e9df796bd0ed62e105425419531d779e Mon Sep 17 00:00:00 2001
From: Jan Nieuwenhuizen <janneke@gnu.org>
Date: Mon, 14 Mar 2016 07:40:49 +0100
Subject: [PATCH] Install guile-EFFECTIVE_VERSION and guile-MAJOR_VERSION too.

* libguile/Makefile.am (install-exec-hook): Add versioned symlinks for
  guile executable.
---
 libguile/Makefile.am | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libguile/Makefile.am b/libguile/Makefile.am
index 3bc9952..32a4850 100644
--- a/libguile/Makefile.am
+++ b/libguile/Makefile.am
@@ -464,6 +464,11 @@ EXTRA_libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES = _scm.h		\
 ## wiped out.
 install-exec-hook:
 	rm -f $(DESTDIR)$(bindir)/guile-snarf.awk
+	cd $(DESTDIR)$(bindir) && \
+	  rm -f guile-$(GUILE_MAJOR_VERSION)$(EXEEXT) && \
+	  mv -f guile$(EXEEXT) guile-$(GUILE_EFFECTIVE_VERSION)$(EXEEXT) && \
+	  $(LN_S) guile-$(GUILE_EFFECTIVE_VERSION)$(EXEEXT) guile$(EXEEXT) && \
+	  $(LN_S) guile-$(GUILE_EFFECTIVE_VERSION)$(EXEEXT) guile-$(GUILE_MAJOR_VERSION)$(EXEEXT)
 
 install-data-hook: libguile-2.2-gdb.scm
 	@$(MKDIR_P) $(DESTDIR)$(libdir)
-- 
2.6.3


debug log:

solving 986cde6 ...
found 986cde6 in https://yhetil.org/guix-devel/87egb0khu5.fsf@drakenvlieg.flower/

applying [1/1] https://yhetil.org/guix-devel/87egb0khu5.fsf@drakenvlieg.flower/
diff --git a/gnu/packages/patches/guile-install-versioned.patch b/gnu/packages/patches/guile-install-versioned.patch
new file mode 100644
index 0000000..986cde6

1:25: space before tab in indent.
 	rm -f $(DESTDIR)$(bindir)/guile-snarf.awk
1:31: trailing whitespace.
 
1:33: space before tab in indent.
 	@$(MKDIR_P) $(DESTDIR)$(libdir)
1:34: trailing whitespace.
-- 
Checking patch gnu/packages/patches/guile-install-versioned.patch...
1:36: new blank line at EOF.
+
Applied patch gnu/packages/patches/guile-install-versioned.patch cleanly.
warning: 5 lines add whitespace errors.

index at:
100644 986cde6a2a501455d9731045d2d96ec50378b15d	gnu/packages/patches/guile-install-versioned.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

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).