Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/fdupes/, app-misc/fdupes/files/
Date: Sat, 27 Feb 2021 16:18:29
Message-Id: 1614442680.c6faf970259f070f04f188639ae2354ec3f99a91.sam@gentoo
1 commit: c6faf970259f070f04f188639ae2354ec3f99a91
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 27 16:18:00 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 16:18:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6faf970
7
8 app-misc/fdupes: cleanup old
9
10 Bug: https://bugs.gentoo.org/770316
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 app-misc/fdupes/Manifest | 2 -
14 app-misc/fdupes/fdupes-1.5.1.ebuild | 40 ---------------
15 app-misc/fdupes/fdupes-1.6.1-r1.ebuild | 31 ------------
16 .../files/fdupes-1.50_pre2-compare-file.patch | 58 ----------------------
17 app-misc/fdupes/files/fdupes-1.50_pre2-typo.patch | 12 -----
18 .../files/fdupes-1.51-fix-stdin-lvalue.patch | 20 --------
19 app-misc/fdupes/files/fdupes-1.51-makefile.patch | 23 ---------
20 7 files changed, 186 deletions(-)
21
22 diff --git a/app-misc/fdupes/Manifest b/app-misc/fdupes/Manifest
23 index ad561a85095..0288ee4dd11 100644
24 --- a/app-misc/fdupes/Manifest
25 +++ b/app-misc/fdupes/Manifest
26 @@ -1,3 +1 @@
27 -DIST fdupes-1.51.tar.gz 48942 BLAKE2B b2673a5601d0bc1d7bb0d312c3d4fbf67494916e9445fba6c46bccbeaa471ebc776b9deb18b323c6eebea4f231bdf1503af9010cbe83b6aae2a3efe479c3a49c SHA512 7cbc414f25427793317667b8d5494f7247a08ba402855929de77d1db01eb3dce41ea608f8dcca047c4a7856e02b10261982cf2acd7f6a79ab726b3009c710a8d
28 -DIST fdupes-1.6.1.tar.gz 20869 BLAKE2B 683b75b44ea4662e555a81405d6c9c291c7980b579c866ad953e18ad8c92beb37c2b6f7ca29ea4e40269ef751851dd8afbb77b0bffb5139bbfbcc0d41ab23a5a SHA512 6c6662b70068c2f48f4be64a6830c81a66852d650391d0756f20b9ac0df7d70c1a32918bd7cbd50e19de524d9ebc09ea338c19636e1807b071eb96b325e641db
29 DIST fdupes-2.1.2.tar.gz 142266 BLAKE2B caf949b87baf0fecc87fef58f512d0a99e1219b57bc167992b0e40841ce67e5ddcf5307de7fc9c70f173e75aab4a12eb86abef0084084b5119f95326509ea665 SHA512 9c3761e7ce34f2d9d1b5ee49ebc3bf665e3d45e4146231bc77d7416801fbfa70415e80c81c64962897766ee068d1a103609895d783f20a765c351d4cd433323d
30
31 diff --git a/app-misc/fdupes/fdupes-1.5.1.ebuild b/app-misc/fdupes/fdupes-1.5.1.ebuild
32 deleted file mode 100644
33 index 8202ea8e478..00000000000
34 --- a/app-misc/fdupes/fdupes-1.5.1.ebuild
35 +++ /dev/null
36 @@ -1,40 +0,0 @@
37 -# Copyright 1999-2020 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=5
41 -
42 -inherit eutils flag-o-matic toolchain-funcs
43 -
44 -MY_P="${PN}-${PV/_pre/-PR}"
45 -MY_P="${MY_P/5\.1/51}"
46 -
47 -DESCRIPTION="Identify/delete duplicate files residing within specified directories"
48 -HOMEPAGE="https://github.com/adrianlopezroche/fdupes"
49 -SRC_URI="https://github.com/adrianlopezroche/${PN}/archive/${P/5\.1/51}.tar.gz"
50 -
51 -LICENSE="MIT"
52 -SLOT="0"
53 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
54 -IUSE=""
55 -
56 -S="${WORKDIR}/${MY_P}"
57 -
58 -src_prepare() {
59 - epatch \
60 - "${FILESDIR}"/${PN}-1.51-makefile.patch \
61 - "${FILESDIR}"/${PN}-1.50_pre2-compare-file.patch \
62 - "${FILESDIR}"/${PN}-1.50_pre2-typo.patch \
63 - "${FILESDIR}"/${PN}-1.51-fix-stdin-lvalue.patch
64 -
65 - append-lfs-flags
66 -}
67 -
68 -src_compile() {
69 - emake CC=$(tc-getCC)
70 -}
71 -
72 -src_install() {
73 - dobin fdupes
74 - doman fdupes.1
75 - dodoc CHANGES CONTRIBUTORS README TODO
76 -}
77
78 diff --git a/app-misc/fdupes/fdupes-1.6.1-r1.ebuild b/app-misc/fdupes/fdupes-1.6.1-r1.ebuild
79 deleted file mode 100644
80 index a1e3cc6080c..00000000000
81 --- a/app-misc/fdupes/fdupes-1.6.1-r1.ebuild
82 +++ /dev/null
83 @@ -1,31 +0,0 @@
84 -# Copyright 1999-2020 Gentoo Authors
85 -# Distributed under the terms of the GNU General Public License v2
86 -
87 -EAPI=6
88 -
89 -inherit eutils flag-o-matic toolchain-funcs
90 -
91 -DESCRIPTION="Identify/delete duplicate files residing within specified directories"
92 -HOMEPAGE="https://github.com/adrianlopezroche/fdupes"
93 -SRC_URI="https://github.com/adrianlopezroche/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
94 -
95 -LICENSE="MIT"
96 -SLOT="0"
97 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
98 -
99 -src_prepare() {
100 - default
101 - append-lfs-flags
102 - sed -e "s#^CFLAGS= \(.*\)#CFLAGS= \1 ${CFLAGS}#g;" \
103 - -i "Makefile" || die "can't patch Makefile"
104 -}
105 -
106 -src_compile() {
107 - emake CC=$(tc-getCC)
108 -}
109 -
110 -src_install() {
111 - dobin "${PN}"
112 - doman "${PN}.1"
113 - einstalldocs
114 -}
115
116 diff --git a/app-misc/fdupes/files/fdupes-1.50_pre2-compare-file.patch b/app-misc/fdupes/files/fdupes-1.50_pre2-compare-file.patch
117 deleted file mode 100644
118 index fa9e2a34a89..00000000000
119 --- a/app-misc/fdupes/files/fdupes-1.50_pre2-compare-file.patch
120 +++ /dev/null
121 @@ -1,58 +0,0 @@
122 -diff -urNp fdupes-1.50-PR2.orig/fdupes.c fdupes-1.50-PR2/fdupes.c
123 ---- fdupes-1.50-PR2.orig/fdupes.c 2009-01-31 20:11:49.577968848 +0530
124 -+++ fdupes-1.50-PR2/fdupes.c 2009-01-31 22:01:11.872219443 +0530
125 -@@ -492,7 +492,10 @@ file_t **checkmatch(filetree_t **root, f
126 - else {
127 - if (checktree->file->crcpartial == NULL) {
128 - crcsignature = getcrcpartialsignature(checktree->file->d_name);
129 -- if (crcsignature == NULL) return NULL;
130 -+ if (crcsignature == NULL) {
131 -+ errormsg ("cannot read file %s\n", checktree->file->d_name);
132 -+ return NULL;
133 -+ }
134 -
135 - checktree->file->crcpartial = (char*) malloc(strlen(crcsignature)+1);
136 - if (checktree->file->crcpartial == NULL) {
137 -@@ -504,7 +507,10 @@ file_t **checkmatch(filetree_t **root, f
138 -
139 - if (file->crcpartial == NULL) {
140 - crcsignature = getcrcpartialsignature(file->d_name);
141 -- if (crcsignature == NULL) return NULL;
142 -+ if (crcsignature == NULL) {
143 -+ errormsg ("cannot read file %s\n", file->d_name);
144 -+ return NULL;
145 -+ }
146 -
147 - file->crcpartial = (char*) malloc(strlen(crcsignature)+1);
148 - if (file->crcpartial == NULL) {
149 -@@ -577,8 +583,8 @@ file_t **checkmatch(filetree_t **root, f
150 -
151 - int confirmmatch(FILE *file1, FILE *file2)
152 - {
153 -- unsigned char c1 = 0;
154 -- unsigned char c2 = 0;
155 -+ unsigned char c1[CHUNK_SIZE];
156 -+ unsigned char c2[CHUNK_SIZE];
157 - size_t r1;
158 - size_t r2;
159 -
160 -@@ -586,14 +592,13 @@ int confirmmatch(FILE *file1, FILE *file
161 - fseek(file2, 0, SEEK_SET);
162 -
163 - do {
164 -- r1 = fread(&c1, sizeof(c1), 1, file1);
165 -- r2 = fread(&c2, sizeof(c2), 1, file2);
166 -+ r1 = fread(c1, 1, sizeof(c1), file1);
167 -+ r2 = fread(c2, 1, sizeof(c2), file2);
168 -
169 -- if (c1 != c2) return 0; /* file contents are different */
170 -- } while (r1 && r2);
171 -+ if (r1 != r2) return 0; /* file lengths are different */
172 -+ if (memcmp (c1, c2, r1)) return 0; /* file contents are different */
173 -+ } while (r2);
174 -
175 -- if (r1 != r2) return 0; /* file lengths are different */
176 --
177 - return 1;
178 - }
179 -
180
181 diff --git a/app-misc/fdupes/files/fdupes-1.50_pre2-typo.patch b/app-misc/fdupes/files/fdupes-1.50_pre2-typo.patch
182 deleted file mode 100644
183 index 1615a15f49b..00000000000
184 --- a/app-misc/fdupes/files/fdupes-1.50_pre2-typo.patch
185 +++ /dev/null
186 @@ -1,12 +0,0 @@
187 -diff -urNp fdupes-1.50-PR2.orig/fdupes.1 fdupes-1.50-PR2/fdupes.1
188 ---- fdupes-1.50-PR2.orig/fdupes.1 2009-01-31 20:11:49.581967819 +0530
189 -+++ fdupes-1.50-PR2/fdupes.1 2009-01-31 20:32:46.383969471 +0530
190 -@@ -84,7 +84,7 @@ If fdupes returns with an error message
191 - .B fdupes: error invoking md5sum
192 - it means the program has been compiled to use an external
193 - program to calculate MD5 signatures (otherwise, fdupes uses
194 --interal routines for this purpose), and an error has occurred
195 -+internal routines for this purpose), and an error has occurred
196 - while attempting to execute it. If this is the case, the
197 - specified program should be properly installed prior
198 - to running fdupes.
199
200 diff --git a/app-misc/fdupes/files/fdupes-1.51-fix-stdin-lvalue.patch b/app-misc/fdupes/files/fdupes-1.51-fix-stdin-lvalue.patch
201 deleted file mode 100644
202 index 65c06e3f1dd..00000000000
203 --- a/app-misc/fdupes/files/fdupes-1.51-fix-stdin-lvalue.patch
204 +++ /dev/null
205 @@ -1,20 +0,0 @@
206 -This is a combination of upstream's fe2d8334 and 03abad. See
207 -https://bugs.gentoo.org/show_bug.cgi?id=574610.
208 -
209 -diff -Naur fdupes-1.51.orig/fdupes.c fdupes-1.51/fdupes.c
210 ---- fdupes-1.51.orig/fdupes.c 2013-04-20 14:02:18.000000000 -0400
211 -+++ fdupes-1.51/fdupes.c 2016-02-29 02:45:36.360804360 -0500
212 -@@ -1164,7 +1164,12 @@
213 - }
214 - else
215 - {
216 -- stdin = freopen("/dev/tty", "r", stdin);
217 -+ if (freopen("/dev/tty", "r", stdin) == 0)
218 -+ {
219 -+ errormsg("could not open terminal for input\n");
220 -+ exit(1);
221 -+ }
222 -+
223 - deletefiles(files, 1, stdin);
224 - }
225 - }
226
227 diff --git a/app-misc/fdupes/files/fdupes-1.51-makefile.patch b/app-misc/fdupes/files/fdupes-1.51-makefile.patch
228 deleted file mode 100644
229 index 138914239a9..00000000000
230 --- a/app-misc/fdupes/files/fdupes-1.51-makefile.patch
231 +++ /dev/null
232 @@ -1,23 +0,0 @@
233 ---- fdupes-1.50-PR2/Makefile.orig 2010-11-19 19:05:18.152330536 -0800
234 -+++ fdupes-1.50-PR2/Makefile 2010-11-19 19:06:00.998659992 -0800
235 -@@ -72,9 +72,9 @@
236 - # Make Configuration
237 - #
238 - CC = gcc
239 --COMPILER_OPTIONS = -Wall -O -g
240 -+COMPILER_OPTIONS = -Wall
241 -
242 --CFLAGS= $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT)
243 -+CFLAGS += $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT)
244 -
245 - INSTALL_PROGRAM = $(INSTALL) -c -m 0755
246 - INSTALL_DATA = $(INSTALL) -c -m 0644
247 -@@ -94,7 +94,7 @@
248 - all: fdupes
249 -
250 - fdupes: $(OBJECT_FILES)
251 -- $(CC) $(CFLAGS) -o fdupes $(OBJECT_FILES)
252 -+ $(CC) $(CFLAGS) $(LDFLAGS) -o fdupes $(OBJECT_FILES)
253 -
254 - installdirs:
255 - test -d $(BIN_DIR) || $(MKDIR) $(BIN_DIR)