* added graalvm (22.0.0.1) - A high-performance JDK distribution
[t2.git] / package / archiver / mine / x-no-cksums.patch
blob90c15b4bfbff2f9f22b551f9cf37a9f862794e40
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../mine/x-no-cksums.patch
5 # Copyright (C) 2006 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 To reduce redundancy our reduncancy detector found that this goold
18 old Un*x chksums are not worth much and unused despite the size field.
19 We now only use the md5sums files where we added the otherwise missing
20 size tag.
22 - Rene Rebe <rene@exactcode.de>
24 diff -urN mine-0.23-orig/create.c mine-0.23/create.c
25 --- mine-0.23-orig/create.c 2005-03-23 09:51:06.000000000 +0100
26 +++ mine-0.23/create.c 2006-10-29 20:19:46.000000000 +0100
27 @@ -1,6 +1,7 @@
29 * GEM MINE - The ROCK Linux Package Manager
30 * Copyright (C) 2002-2005 Clifford Wolf
31 + * Copyright (C) 2006 Rene Rebe
33 * This program is free software; you can redistribute it and/or modify
34 * it under the terms of the GNU General Public License as published by
35 @@ -99,7 +100,6 @@
36 "packages",
37 "flists",
38 "md5sums",
39 - "cksums",
40 "dependencies",
41 "descs",
42 NULL
43 diff -urN mine-0.23-orig/md5sum.c mine-0.23/md5sum.c
44 --- mine-0.23-orig/md5sum.c 2006-10-29 20:16:56.000000000 +0100
45 +++ mine-0.23/md5sum.c 2006-10-29 20:19:20.000000000 +0100
46 @@ -70,8 +70,8 @@
47 struct dirent *md5_dent;
48 char buffer[1024], buffer2[1024];
49 char *md5sum, *filename;
50 - const char const *admdirs[6] =
51 - {"cksums", "dependencies", "descs", "flists", "md5sums", "packages"};
52 + const char const *admdirs[5] =
53 + {"dependencies", "descs", "flists", "md5sums", "packages"};
54 FILE *f;
55 DIR *d;
57 @@ -90,7 +90,7 @@
58 /* Add the /var/adm files of each package to the
59 md5sum memdb so md5sum_check() recognizes them. */
60 int n;
61 - for (n = 0; n < 6; n++) {
62 + for (n = 0; n < 5; n++) {
63 snprintf(buffer2, 1024, "var/adm/%s/%s",
64 admdirs[n], md5_dent->d_name);
65 memdb_put(&md5_memdb, buffer2,
66 diff -urN mine-0.23-orig/mine.c mine-0.23/mine.c
67 --- mine-0.23-orig/mine.c 2005-09-30 12:34:36.000000000 +0200
68 +++ mine-0.23/mine.c 2006-10-29 20:19:51.000000000 +0100
69 @@ -1,6 +1,7 @@
71 * GEM MINE - The ROCK Linux Package Manager
72 * Copyright (C) 2002-2005 Clifford Wolf
73 + * Copyright (C) 2006 Rene Rebe
75 * This program is free software; you can redistribute it and/or modify
76 * it under the terms of the GNU General Public License as published by
77 @@ -98,7 +99,7 @@
78 " Where {query-mode} might be one of:\n"
79 "\n"
80 " -q name and version -p long description -l file list\n"
81 -" -m md5sums -c cksums -d dependencies\n"
82 +" -m md5sums -d dependencies\n"
83 "\n"
84 " -k key (for *.gem files only, use 'LIST' as key to list all keys)\n"
85 " -P create 'packages.db' records (for *.gem files only)\n"
86 @@ -145,7 +146,6 @@
87 " packages The /var/adm/packages/<pkg> file\n"
88 " flists The /var/adm/flists/<pkg> file\n"
89 " md5sums The /var/adm/md5sums/<pkg> file\n"
90 -" cksums The /var/adm/cksums/<pkg> file\n"
91 " dependencies The /var/adm/dependencies/<pkg> file\n"
92 " descs The /var/adm/descs/<pkg> file\n"
93 "\n"
94 @@ -247,10 +247,6 @@
95 set_mode(MINE_MODE_SHOWFILE);
96 mine_file_key_name = "md5sums";
97 break;
98 - case 'c':
99 - set_mode(MINE_MODE_SHOWFILE);
100 - mine_file_key_name = "cksums";
101 - break;
102 case 'd':
103 set_mode(MINE_MODE_SHOWFILE);
104 mine_file_key_name = "dependencies";
105 diff -urN mine-0.23-orig/mkpdb.c mine-0.23/mkpdb.c
106 --- mine-0.23-orig/mkpdb.c 2005-03-23 09:51:06.000000000 +0100
107 +++ mine-0.23/mkpdb.c 2006-10-29 20:19:56.000000000 +0100
108 @@ -1,6 +1,7 @@
110 * GEM MINE - The ROCK Linux Package Manager
111 * Copyright (C) 2002-2005 Clifford Wolf
112 + * Copyright (C) 2006 Rene Rebe
114 * This program is free software; you can redistribute it and/or modify
115 * it under the terms of the GNU General Public License as published by
116 @@ -71,7 +72,6 @@
117 if ( dump_field(&c, "pkg_name") == -1 ) goto error;
118 if ( dump_field(&c, "descs") == -1 ) goto error;
119 if ( dump_field(&c, "dependencies") == -1 ) goto error;
120 - if ( dump_field(&c, "cksums") == -1 ) goto error;
122 putchar('\004');
123 putchar('\n');
124 diff -urN mine-0.23-orig/readdb.c mine-0.23/readdb.c
125 --- mine-0.23-orig/readdb.c 2006-10-29 20:16:56.000000000 +0100
126 +++ mine-0.23/readdb.c 2006-10-29 20:17:15.000000000 +0100
127 @@ -256,7 +256,7 @@
130 if ( !dbf ) {
131 - snprintf(filename, PATH_MAX, "%s/%s/info/cksums/%s",
132 + snprintf(filename, PATH_MAX, "%s/%s/info/md5sums/%s",
133 sourcedir, config, packagename);
134 f = fopen(filename, "r");
135 } else {