unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 7e51e792597c5db101896cc60ee9c334d3b7dfeb 1317 bytes (raw)
name: gnu/packages/patches/maradns-deadwood-do-not-embed-random-number.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
34
35
36
37
38
 
Adapted from https://sources.debian.org/src/maradns/2.0.13-1.4/debian/patches/deadwood_makefile.patch/

diff --git a/deadwood-3.5.0020/src/Makefile.ubuntu2004 b/deadwood-3.5.0020/src/Makefile.ubuntu2004
index 62868aa..2c8c094 100644
--- a/deadwood-3.5.0020/src/Makefile.ubuntu2004
+++ b/deadwood-3.5.0020/src/Makefile.ubuntu2004
@@ -29,13 +29,10 @@ all:	Deadwood version.h
 #
 
 clean:
-	rm -f Test DwMain DwTcp *.exe *.o a.out RandomPrime writehash_test* \
-		Deadwood foo* dw_cache DwHash DwCompress *stackdump \
-		core ; \
-		./make.version.h ; if [ -e /dev/urandom ] ; \
-			then rm DwRandPrime.h  ; \
-			cc RandomPrime.c ; ./a.out > DwRandPrime.h ; rm a.out \
-		; fi 
+	rm -f Test DwMain DwTcp *.exe *.o a.out writehash_test* \
+		Deadwood foo* dw_cache DwHash DwCompress *stackdump core
+
+
 
 version.h:	
 	./make.version.h
@@ -67,11 +64,8 @@ DwSocket.o:	DwSocket.c DwStr.h DwSocket.h
 DwSys.o:	DwSys.c DwStr.h version.h
 	$(CC) $(FLAGS) -Wall -c -o DwSys.o DwSys.c
 
-RandomPrime:	RandomPrime.c
-	$(CC) -O3 -o RandomPrime RandomPrime.c
-
-DwRandPrime.h: RandomPrime
-	if [ -e /dev/urandom ] ; then ./RandomPrime > DwRandPrime.h ; fi
+DwRandPrime.h:
+	echo '#define MUL_CONSTANT 1238145941' > DwRandPrime.h
 
 DwHash.o:	DwHash.c DwStr.h DwRandPrime.h DwHash.h
 	$(CC) $(FLAGS) -Wall -c -o DwHash.o DwHash.c

debug log:

solving 7e51e79259 ...
found 7e51e79259 in https://yhetil.org/guix-devel/87pmjlfdjl.fsf@contorta/

applying [1/1] https://yhetil.org/guix-devel/87pmjlfdjl.fsf@contorta/
diff --git a/gnu/packages/patches/maradns-deadwood-do-not-embed-random-number.patch b/gnu/packages/patches/maradns-deadwood-do-not-embed-random-number.patch
new file mode 100644
index 0000000000..7e51e79259

1:15: trailing whitespace.
 
1:23: trailing whitespace.
-		; fi 
1:28: trailing whitespace.
 
1:29: trailing whitespace.
 version.h:	
1:30: space before tab in indent.
 	./make.version.h
Checking patch gnu/packages/patches/maradns-deadwood-do-not-embed-random-number.patch...
Applied patch gnu/packages/patches/maradns-deadwood-do-not-embed-random-number.patch cleanly.
warning: squelched 4 whitespace errors
warning: 9 lines add whitespace errors.

index at:
100644 7e51e792597c5db101896cc60ee9c334d3b7dfeb	gnu/packages/patches/maradns-deadwood-do-not-embed-random-number.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).