unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob c6a2db98721ae67d6dadfaa1c77933eb8988f7d1 805 bytes (raw)
name: gnu/packages/patches/nvi-db4.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
 
This patch originates from the Debian project, see https://www.debian.org/

03db4.dpatch  by  <hesso@pool.math.tu-berlin.de>


libdb4 compatibility adjustments.

--- nvi-1.81.6.orig/common/msg.c	2009-02-26 14:26:58.350336128 +0100
+++ nvi-1.81.6/common/msg.c	2009-02-26 14:29:05.235335829 +0100
@@ -724,9 +724,18 @@
 		p = buf;
 	} else
 		p = file;
+	if (access(p, F_OK) != 0) {
+		if (first) {
+			first = 0;
+			return (1);
+		}
+		sp->db_error = ENOENT;
+		msgq_str(sp, M_DBERR, p, "%s");
+		return (1);
+	}
 	if ((sp->db_error = db_create(&db, 0, 0)) != 0 ||
 	    (sp->db_error = db->set_re_source(db, p)) != 0 ||
-	    (sp->db_error = db_open(db, NULL, DB_RECNO, 0, 0)) != 0) {
+	    (sp->db_error = db_open(db, NULL, DB_RECNO, DB_CREATE, 0)) != 0) {
 		if (first) {
 			first = 0;
 			return (1);

debug log:

solving c6a2db9 ...
found c6a2db9 in https://yhetil.org/guix-devel/54BFC4FF.5030006@gmail.com/ ||
	https://yhetil.org/guix-devel/54BE9C68.9070103@gmail.com/

applying [1/1] https://yhetil.org/guix-devel/54BFC4FF.5030006@gmail.com/
diff --git a/gnu/packages/patches/nvi-db4.patch b/gnu/packages/patches/nvi-db4.patch
new file mode 100644
index 0000000..c6a2db9

1:17: space before tab in indent.
 		p = buf;
1:18: space before tab in indent.
 	} else
1:19: space before tab in indent.
 		p = file;
1:29: space before tab in indent.
 	if ((sp->db_error = db_create(&db, 0, 0)) != 0 ||
1:30: space before tab in indent.
 	    (sp->db_error = db->set_re_source(db, p)) != 0 ||
Checking patch gnu/packages/patches/nvi-db4.patch...
Applied patch gnu/packages/patches/nvi-db4.patch cleanly.
warning: squelched 3 whitespace errors
warning: 8 lines add whitespace errors.

skipping https://yhetil.org/guix-devel/54BE9C68.9070103@gmail.com/ for c6a2db9
index at:
100644 c6a2db98721ae67d6dadfaa1c77933eb8988f7d1	gnu/packages/patches/nvi-db4.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).