unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob bdb682b0c2675104e873b37a117456dd556ef73d 2191 bytes (raw)
name: gnu/packages/patches/ncrack-unbundle-opensshlib.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
 
From 04cfc2f21c280d02b701148d93c5632c2ea80ed8 Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Tue, 7 Jun 2022 12:33:01 +0200
Subject: [PATCH] Unbundle opensshlib.


diff --git a/Makefile.in b/Makefile.in
index 876159c..2098298 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -14,7 +14,6 @@ ncrackdatadir = @datadir@/ncrack
 
 export NBASEDIR = @NBASEDIR@
 export NSOCKDIR = @NSOCKDIR@
-export OPENSSHLIB_DIR = @OPENSSHLIB_DIR@
 
 DEFS = @DEFS@ -DNCRACK_NAME=\"$(NCRACK_NAME)\" -DNCRACK_URL=\"$(NCRACK_URL)\" \
 -DNCRACK_PLATFORM=\"$(NCRACK_PLATFORM)\" -DNCRACKDATADIR=\"$(ncrackdatadir)\"
@@ -60,7 +59,7 @@ ncrack_input.o ncrack_resume.o crypto.o http.o http_digest.o xml.o ntlmssp.o
 .cc.o :
 	$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
 
-all: @NBASE_BUILD@ @NSOCK_BUILD@ @OPENSSHLIB_BUILD@ @MODULES_BUILD@
+all: @NBASE_BUILD@ @NSOCK_BUILD@ @MODULES_BUILD@
 	$(MAKE) $(TARGET)
 
 $(TARGET): $(NSOCKDIR)/src/libnsock.a $(NBASEDIR)/libnbase.a $(OBJS) $(MOD_OBJS)
@@ -82,12 +81,6 @@ nsock_build: $(NSOCKDIR)/src/Makefile nbase_build
 	@echo Compiling libnsock;
 	cd $(NSOCKDIR)/src && $(MAKE)
 
-opensshlib_build: $(OPENSSHLIB_DIR)/Makefile
-	@echo Compiling openssh lib;
-	cd $(OPENSSHLIB_DIR) && $(MAKE)
-
-
-
 install: install-ncrack
 	@echo "NCRACK SUCCESSFULLY INSTALLED"
 
@@ -112,7 +105,7 @@ uninstall-ncrack:
 
 # cleaning stuff
 
-clean: nsock_clean nbase_clean opensshlib_clean modules_clean my_clean 
+clean: nsock_clean nbase_clean clean modules_clean my_clean
 
 my_clean:
 	rm -f dependencies.mk makefile.dep
@@ -121,8 +114,6 @@ nbase_clean:
 	-cd $(NBASEDIR) && $(MAKE) clean
 nsock_clean:
 	-cd $(NSOCKDIR)/src && $(MAKE) clean
-opensshlib_clean:
-	-cd $(OPENSSHLIB_DIR) && $(MAKE) clean
 modules_clean:
 	-cd modules && $(MAKE) clean
 
diff --git a/modules/ncrack_ssh.cc b/modules/ncrack_ssh.cc
index 88f02f5..7c08462 100644
--- a/modules/ncrack_ssh.cc
+++ b/modules/ncrack_ssh.cc
@@ -136,9 +136,8 @@
 #include <list>
 
 /* OpenSSH include-files */
-#include "opensshlib.h"
+#include <libssh2.h>
 
-#include "ssh2.h"
 #include "openssl/dh.h"
 #include "buffer.h"
 #include "sshbuf.h"

base-commit: 7fab46addcb99326cbf60f41dbde22a1e87aebad
-- 
2.35.1


debug log:

solving bdb682b0c2 ...
found bdb682b0c2 in https://yhetil.org/guix-patches/WSgbTIT-0EVw00x79M1C4IoJnu497WH90q_x9HrwP736-BdOVcs0KaKNx9tcSaZu3u7jA6G8tnr7tsS9eUcIwrh3_DziU2imKAVbzDkx0Xo=@protonmail.com/

applying [1/1] https://yhetil.org/guix-patches/WSgbTIT-0EVw00x79M1C4IoJnu497WH90q_x9HrwP736-BdOVcs0KaKNx9tcSaZu3u7jA6G8tnr7tsS9eUcIwrh3_DziU2imKAVbzDkx0Xo=@protonmail.com/
diff --git a/gnu/packages/patches/ncrack-unbundle-opensshlib.patch b/gnu/packages/patches/ncrack-unbundle-opensshlib.patch
new file mode 100644
index 0000000000..bdb682b0c2

1:18: trailing whitespace.
 
1:22: trailing whitespace.
 
1:27: space before tab in indent.
 	$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
1:28: trailing whitespace.
 
1:31: space before tab in indent.
 	$(MAKE) $(TARGET)
Checking patch gnu/packages/patches/ncrack-unbundle-opensshlib.patch...
Applied patch gnu/packages/patches/ncrack-unbundle-opensshlib.patch cleanly.
warning: squelched 19 whitespace errors
warning: 24 lines add whitespace errors.

index at:
100644 bdb682b0c2675104e873b37a117456dd556ef73d	gnu/packages/patches/ncrack-unbundle-opensshlib.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).