all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 2b2617170d9a95042654c618856f964ffda9ce65 1109 bytes (raw)
name: gnu/packages/patches/stellar-core-find-mk-files.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
31
32
33
 
Use "find" instead of "git ls-files" to fill in the src/src.mk file

(Guix removes the .git directory, so we have to do this!)

diff --git a/make-mks b/make-mks
index f3edf10..5972ebf 100755
--- a/make-mks
+++ b/make-mks
@@ -6,21 +6,17 @@ case "$0" in
 	;;
 esac
 
-# Bail if not under git
-git rev-parse
-
 trap 'rm -f src/src.mk lib/medida.mk lib/lib.mk' 0
 
 message="# This file was generated by make-mks; don't edit it by hand."
 
-# Use only files git knows about, to avoid picking up autogenrated
-# files or other random cruft.  When adding a new file foo.cpp, you
-# must run "git add -N foo.cpp" before running this script.
+# Since Guix is running not from git, we can just use find to fill
+# in this information instead of `git lsfiles`
 (cd src
  echo "$message"
- echo "SRC_H_FILES" = $(git ls-files '*.h' '*.[ih]pp')
- echo "SRC_CXX_FILES" = $(git ls-files '*.cpp')
- echo "SRC_X_FILES" = $(git ls-files '*.x')
+ echo "SRC_H_FILES" = $(find . -name '*.h') $(find . -name '*.[ih]pp')
+ echo "SRC_CXX_FILES" = $(find . -name '*.cpp')
+ echo "SRC_X_FILES" = $(find . -name '*.x')
 ) > src/src.mk

debug log:

solving 2b26171 ...
found 2b26171 in https://yhetil.org/guix/871t88pbqc.fsf@dustycloud.org/ ||
	https://yhetil.org/guix/874md4pdai.fsf@dustycloud.org/

applying [1/1] https://yhetil.org/guix/871t88pbqc.fsf@dustycloud.org/
diff --git a/gnu/packages/patches/stellar-core-find-mk-files.patch b/gnu/packages/patches/stellar-core-find-mk-files.patch
new file mode 100644
index 0000000..2b26171

1:16: space before tab in indent.
 	;;
1:18: trailing whitespace.
 
1:23: trailing whitespace.
 
1:25: trailing whitespace.
 
Checking patch gnu/packages/patches/stellar-core-find-mk-files.patch...
Applied patch gnu/packages/patches/stellar-core-find-mk-files.patch cleanly.
warning: 4 lines add whitespace errors.

skipping https://yhetil.org/guix/874md4pdai.fsf@dustycloud.org/ for 2b26171
index at:
100644 2b2617170d9a95042654c618856f964ffda9ce65	gnu/packages/patches/stellar-core-find-mk-files.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 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.