Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, app-crypt/bestcrypt/files/, app-crypt/bestcrypt/
Date: Tue, 28 May 2019 13:37:36
Message-Id: 1559050563.0116ee497edb65b8e37d759e3c23d4b6d1190a8b.mgorny@gentoo
1 commit: 0116ee497edb65b8e37d759e3c23d4b6d1190a8b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 28 13:36:03 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 28 13:36:03 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0116ee49
7
8 app-crypt/bestcrypt: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/684268
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 app-crypt/bestcrypt/Manifest | 1 -
14 app-crypt/bestcrypt/bestcrypt-2.0.14.ebuild | 80 ----
15 app-crypt/bestcrypt/files/bcrypt3 | 104 ----
16 .../bestcrypt/files/bestcrypt-2.0.14-build.patch | 522 ---------------------
17 app-crypt/bestcrypt/metadata.xml | 8 -
18 profiles/package.mask | 6 -
19 6 files changed, 721 deletions(-)
20
21 diff --git a/app-crypt/bestcrypt/Manifest b/app-crypt/bestcrypt/Manifest
22 deleted file mode 100644
23 index 87ebb416467..00000000000
24 --- a/app-crypt/bestcrypt/Manifest
25 +++ /dev/null
26 @@ -1 +0,0 @@
27 -DIST BestCrypt-2.0.14.tar.gz 2211286 BLAKE2B 1ff777a72528ec22ca168492c335ec54be924b653323670619049cc9dfbcd144c28702bf857517c5189c937f3712e749c47ef14006a8883c63419b866b8f48f9 SHA512 1e542f00886413f1519ca5667bb297cce25a46fb5ec90a7e1a61934df3cd34e0d680f32e0b111727865459ef7d89d2761b379b4a557ada6d7ee3e47e32bf762c
28
29 diff --git a/app-crypt/bestcrypt/bestcrypt-2.0.14.ebuild b/app-crypt/bestcrypt/bestcrypt-2.0.14.ebuild
30 deleted file mode 100644
31 index afaa12d6d91..00000000000
32 --- a/app-crypt/bestcrypt/bestcrypt-2.0.14.ebuild
33 +++ /dev/null
34 @@ -1,80 +0,0 @@
35 -# Copyright 1999-2019 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -
40 -inherit linux-mod toolchain-funcs
41 -
42 -MY_PN="BestCrypt"
43 -DESCRIPTION="commercially licensed transparent filesystem encryption"
44 -HOMEPAGE="https://www.jetico.com/"
45 -SRC_URI="https://www.jetico.com/linux/${MY_PN}-${PV}.tar.gz"
46 -
47 -LICENSE="bestcrypt"
48 -SLOT="0"
49 -KEYWORDS="~amd64 ~x86"
50 -RESTRICT="mirror bindist"
51 -
52 -DEPEND="virtual/linux-sources
53 - app-shells/bash"
54 -
55 -S="${WORKDIR}/${MY_PN}-${PV}"
56 -
57 -DOCS=(
58 - HIDDEN_PART README
59 -)
60 -
61 -PATCHES=(
62 - "${FILESDIR}/${P}-build.patch"
63 -)
64 -
65 -pkg_setup() {
66 - CONFIG_CHECK="MODULES"
67 - linux-mod_pkg_setup
68 -
69 - MODULE_NAMES="bestcrypt(block::kernel/kmod)
70 - bc_3des(crypto::kernel/kmod/crypto/algs/3des)
71 - bc_bf128(crypto::kernel/kmod/crypto/algs/bf128)
72 - bc_bf448(crypto::kernel/kmod/crypto/algs/bf448)
73 - bc_blowfish(crypto::kernel/kmod/crypto/algs/blowfish)
74 - bc_cast(crypto::kernel/kmod/crypto/algs/cast)
75 - bc_des(crypto::kernel/kmod/crypto/algs/des)
76 - bc_gost(crypto::kernel/kmod/crypto/algs/gost)
77 - bc_idea(crypto::kernel/kmod/crypto/algs/idea)
78 - bc_rijn(crypto::kernel/kmod/crypto/algs/rijn)"
79 - BUILD_TARGETS="module"
80 - BUILD_PARAMS=" \
81 - BC_KERNEL_DIR=\"${KERNEL_DIR}\""
82 -}
83 -
84 -src_compile() {
85 - MAKEOPTS="-j1" linux-mod_src_compile \
86 - CXX="$(tc-getCXX)"
87 - MAKEOPTS="-j1" emake \
88 - CC="$(tc-getCC)" \
89 - CXX="$(tc-getCXX)" \
90 - AR="$(tc-getAR)" \
91 - CFLAGS="${CXXFLAGS}" \
92 - LDFLAGS="${LDFLAGS}"
93 -}
94 -
95 -src_install() {
96 - linux-mod_src_install
97 -
98 - emake install PREFIX="${ED}" install
99 -
100 - newinitd "${FILESDIR}/bcrypt3" bcrypt
101 - sed -e '/\(bc_rc6\|bc_serpent\|bc_twofish\)/d' -i "${D}etc/init.d/bcrypt"
102 -}
103 -
104 -pkg_postinst() {
105 - linux-mod_pkg_postinst
106 -
107 - ewarn
108 - ewarn "The BestCrypt drivers are not free - Please purchace a license from "
109 - ewarn "http://www.jetico.com/"
110 - ewarn
111 - ewarn "Upstream do not support this package any more, it was patched to"
112 - ewarn "make it built. Use at your own risk!"
113 - ewarn
114 -}
115
116 diff --git a/app-crypt/bestcrypt/files/bcrypt3 b/app-crypt/bestcrypt/files/bcrypt3
117 deleted file mode 100644
118 index b1b6979e63e..00000000000
119 --- a/app-crypt/bestcrypt/files/bcrypt3
120 +++ /dev/null
121 @@ -1,104 +0,0 @@
122 -#!/sbin/openrc-run
123 -#
124 -# bestcrypt Encrypted File Systems.
125 -#
126 -# Version: 1.2
127 -#
128 -# Revision: $Id$
129 -#
130 -# Author: Jetico Inc. (support@××××××.com)
131 -#
132 -# Modified by Stefan Tittel (with thanks to steveb) to work around
133 -# the "xargs: environment too large for exec"-error occuring in
134 -# the gentoo 1.4 linux distribution.
135 -
136 -# chkconfig: 2345 85 98
137 -# description: BestCrypt init script
138 -
139 -
140 -# Source function library.
141 -#. /etc/rc.d/init.d/functions
142 -
143 -# See how we were called.
144 -
145 -KERNEL_VERSION=`uname -r|sed 's/\(.\..\).*/\1/'`
146 -
147 -start() {
148 - ebegin "Initializing BestCrypt"
149 - declare -i status=0
150 - rm -rf /dev/bcrypt?* 2>/dev/null
151 - if [ $KERNEL_VERSION = "2.2" ]; then
152 - mknod -m 666 /dev/bcrypt0 b 7 128
153 - mknod -m 666 /dev/bcrypt1 b 7 129
154 - mknod -m 666 /dev/bcrypt2 b 7 130
155 - mknod -m 666 /dev/bcrypt3 b 7 131
156 - mknod -m 666 /dev/bcrypt4 b 7 132
157 - mknod -m 666 /dev/bcrypt5 b 7 133
158 - mknod -m 666 /dev/bcrypt6 b 7 134
159 - mknod -m 666 /dev/bcrypt7 b 7 135
160 - mknod -m 666 /dev/bcrypt8 b 7 136
161 - mknod -m 666 /dev/bcrypt9 b 7 137
162 - mknod -m 666 /dev/bcrypt10 b 7 138
163 - mknod -m 666 /dev/bcrypt11 b 7 139
164 - mknod -m 666 /dev/bcrypt12 b 7 140
165 - mknod -m 666 /dev/bcrypt13 b 7 141
166 - mknod -m 666 /dev/bcrypt14 b 7 142
167 - mknod -m 666 /dev/bcrypt15 b 7 143
168 - else
169 - if [ ! -c /dev/.devfsd ] && [ ! -e /dev/.udev ];
170 - then
171 - mknod -m 666 /dev/bcrypt0 b 188 0
172 - mknod -m 666 /dev/bcrypt1 b 188 1
173 - mknod -m 666 /dev/bcrypt2 b 188 2
174 - mknod -m 666 /dev/bcrypt3 b 188 3
175 - mknod -m 666 /dev/bcrypt4 b 188 4
176 - mknod -m 666 /dev/bcrypt5 b 188 5
177 - mknod -m 666 /dev/bcrypt6 b 188 6
178 - mknod -m 666 /dev/bcrypt7 b 188 7
179 - mknod -m 666 /dev/bcrypt8 b 188 8
180 - mknod -m 666 /dev/bcrypt9 b 188 9
181 - mknod -m 666 /dev/bcrypt10 b 188 10
182 - mknod -m 666 /dev/bcrypt11 b 188 11
183 - mknod -m 666 /dev/bcrypt12 b 188 12
184 - mknod -m 666 /dev/bcrypt13 b 188 13
185 - mknod -m 666 /dev/bcrypt14 b 188 14
186 - mknod -m 666 /dev/bcrypt15 b 188 15
187 - fi
188 - fi
189 - modprobe bc || status=1
190 - modprobe bc_blowfish || status=1
191 - modprobe bc_des || status=1
192 - modprobe bc_gost || status=1
193 - modprobe bc_twofish || status=1
194 - modprobe bc_bf448 || status=1
195 - modprobe bc_bf128 || status=1
196 - modprobe bc_3des || status=1
197 - modprobe bc_idea || status=1
198 - modprobe bc_rijn || status=1
199 - modprobe bc_cast || status=1
200 - modprobe bc_rc6 || status=1
201 - modprobe bc_serpent || status=1
202 - eend ${status}
203 -}
204 -
205 -stop() {
206 - ebegin "Unmounting encrypted filesystems"
207 -
208 -# The original line causing the "xargs: environment too large for exec error".
209 - # grep BestCrypt /etc/mtab |awk '{print $2}'|xargs -r -n 1 bctool umount
210 -
211 -# The line for which it work's fine now.
212 - for i in $(grep BestCrypt /etc/mtab | awk '{print $2}') ; do bctool umount ${i} ; done
213 -
214 - eend $?
215 - ebegin "Shutting down BestCrypt modules"
216 - for i in `lsmod |egrep "^bc_.*" |awk '{print $1}' `; do
217 - rmmod $i
218 - done
219 - if [ ! -c /dev/.devfsd ] && [ ! -e /dev/.udev ];
220 - then
221 - rm -f /dev/bcrypt?* 2>/dev/null
222 - fi
223 - rmmod bc
224 - eend $?
225 -}
226
227 diff --git a/app-crypt/bestcrypt/files/bestcrypt-2.0.14-build.patch b/app-crypt/bestcrypt/files/bestcrypt-2.0.14-build.patch
228 deleted file mode 100644
229 index c4ce215e975..00000000000
230 --- a/app-crypt/bestcrypt/files/bestcrypt-2.0.14-build.patch
231 +++ /dev/null
232 @@ -1,522 +0,0 @@
233 -From 71bd6e496af5990836c34e4dd2d9d0107467349a Mon Sep 17 00:00:00 2001
234 -From: Alon Bar-Lev <alon.barlev@×××××.com>
235 -Date: Tue, 11 Sep 2018 18:49:17 +0300
236 -Subject: [PATCH 1/6] build: do not auto build/install module
237 -
238 -Signed-off-by: Alon Bar-Lev <alon.barlev@×××××.com>
239 ----
240 - Makefile | 4 ++--
241 - 1 file changed, 2 insertions(+), 2 deletions(-)
242 -
243 -diff --git a/Makefile b/Makefile
244 -index ec0fd7e..d52f509 100644
245 ---- a/Makefile
246 -+++ b/Makefile
247 -@@ -98,7 +98,7 @@ TESTS_TARGET = $(TARGET_DIR)/tests/bctool-tests
248 - #
249 -
250 - # default target builds console tool with modules
251 --all: Makefile helpers module console
252 -+all: Makefile helpers console
253 - true
254 -
255 - rebuild: clean all
256 -@@ -233,7 +233,7 @@ module-clean:
257 - #
258 -
259 - # install for default target
260 --install: module-install console-install helpers-install
261 -+install: console-install helpers-install
262 -
263 - # used by RPM creation script
264 - build-install: module-put-files console-install helpers-install
265 ---
266 -2.16.4
267 -
268 -From 42816e0a4e47e77f290b46460e35a1666748f8b0 Mon Sep 17 00:00:00 2001
269 -From: Alon Bar-Lev <alon.barlev@×××××.com>
270 -Date: Tue, 11 Sep 2018 19:35:26 +0300
271 -Subject: [PATCH 2/6] build: remove useless log
272 -
273 -Signed-off-by: Alon Bar-Lev <alon.barlev@×××××.com>
274 ----
275 - certificate/CertificateLib/symmetricAlgs/cAlgRIJN.cpp | 2 --
276 - 1 file changed, 2 deletions(-)
277 -
278 -diff --git a/certificate/CertificateLib/symmetricAlgs/cAlgRIJN.cpp b/certificate/CertificateLib/symmetricAlgs/cAlgRIJN.cpp
279 -index 3c6fad8..9821073 100644
280 ---- a/certificate/CertificateLib/symmetricAlgs/cAlgRIJN.cpp
281 -+++ b/certificate/CertificateLib/symmetricAlgs/cAlgRIJN.cpp
282 -@@ -78,14 +78,12 @@ cSymAlg * cAlgRIJN::createAlg( BYTE *key, int keySize ) // keySize in bytes
283 - return alg;
284 - }
285 -
286 --#include "../../../../fs-lib/log.h"
287 - int cAlgRIJN::encryptECB(
288 - const BYTE *inBf, // Input plaintext buffer.
289 - BYTE *outBf, // Output encrypted buffer
290 - int bfSize // In/out buffers' size.
291 - )
292 - {
293 -- LIBLOG_INFO("");
294 - int i;
295 -
296 - if ((bfSize % BC_BLOCK_SIZE) != 0) return sae_invalidBlockSize;
297 ---
298 -2.16.4
299 -
300 -From a0ffdc5a135b549b62e1421fcf75d627e0394529 Mon Sep 17 00:00:00 2001
301 -From: Alon Bar-Lev <alon.barlev@×××××.com>
302 -Date: Tue, 11 Sep 2018 19:41:17 +0300
303 -Subject: [PATCH 3/6] build: do not strip binaries
304 -
305 ----
306 - Makefile | 8 ++++----
307 - 1 file changed, 4 insertions(+), 4 deletions(-)
308 -
309 -diff --git a/Makefile b/Makefile
310 -index d52f509..a93b850 100644
311 ---- a/Makefile
312 -+++ b/Makefile
313 -@@ -243,9 +243,9 @@ uninstall: before-uninstall module-uninstall console-uninstall helpers-uninstall
314 -
315 - helpers-install:
316 - install -o root -m 0755 -d $(PREFIX)/sbin
317 -- install -o root -m 4755 -s $(TARGET_DIR)/bcmount_helper $(PREFIX)/sbin
318 -- install -o root -m 4755 -s $(TARGET_DIR)/bcumount_helper $(PREFIX)/sbin
319 -- install -o root -m 4755 -s $(TARGET_DIR)/bcrrpart_helper $(PREFIX)/sbin
320 -+ install -o root -m 4755 $(TARGET_DIR)/bcmount_helper $(PREFIX)/sbin
321 -+ install -o root -m 4755 $(TARGET_DIR)/bcumount_helper $(PREFIX)/sbin
322 -+ install -o root -m 4755 $(TARGET_DIR)/bcrrpart_helper $(PREFIX)/sbin
323 -
324 - helpers-uninstall:
325 - rm -f $(PREFIX)/sbin/bcmount_helper
326 -@@ -267,7 +267,7 @@ before-uninstall:
327 - .PHONY: console-install
328 - console-install:
329 - install -o root -m 0755 -d $(PREFIX)/usr/bin
330 -- install -o root -m 0755 -s build/bctool $(PREFIX)/usr/bin/
331 -+ install -o root -m 0755 build/bctool $(PREFIX)/usr/bin/
332 - install -o root -m 0755 -d $(PREFIX)/$(MAN_PATH)/man8
333 - install -m 644 bctool.8 $(PREFIX)/$(MAN_PATH)/man8/
334 -
335 ---
336 -2.16.4
337 -
338 -From 7947ac3e152da1ed590364b7c8948deb602a5b50 Mon Sep 17 00:00:00 2001
339 -From: Alon Bar-Lev <alon.barlev@×××××.com>
340 -Date: Tue, 11 Sep 2018 18:52:32 +0300
341 -Subject: [PATCH 4/6] build: allow override programs
342 -
343 -Signed-off-by: Alon Bar-Lev <alon.barlev@×××××.com>
344 ----
345 - Makefile | 11 +++++++----
346 - certificate/CertificateLib/Makefile | 4 +++-
347 - disk/Makefile | 6 ++++--
348 - fslib/Makefile | 16 +++++++++-------
349 - kernel/Makefile | 5 +++--
350 - keygens/kgghost/Makefile | 7 +++++--
351 - keygens/kgsha/Makefile | 7 +++++--
352 - mount/Makefile | 9 +++++----
353 - spacemap/Makefile | 6 ++++--
354 - tests/Makefile | 12 ++++++------
355 - 10 files changed, 51 insertions(+), 32 deletions(-)
356 -
357 -diff --git a/Makefile b/Makefile
358 -index a93b850..d57ee79 100644
359 ---- a/Makefile
360 -+++ b/Makefile
361 -@@ -56,6 +56,9 @@ KGSHA_LIB = $(KGSHA_BUILD_DIR)/lib$(KGSHA_LIB_NAME).a
362 - KGGHOST_LIB = $(KGGHOST_BUILD_DIR)/lib$(KGGHOST_LIB_NAME).a
363 - SPACEMAP_LIB = $(SPACEMAP_BUILD_DIR)/lib$(SPACEMAP_LIB_NAME).a
364 -
365 -+CC = gcc
366 -+CXX = g++
367 -+
368 - BC_EXTRA_CFLAGS= $(CFLAGS) -D_LARGE_FILES -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
369 - BC_EXTRA_LDFLAGS = $(LDFLAGS)
370 -
371 -@@ -125,7 +128,7 @@ helpers: create-dirs
372 - console: spacemap-lib certificate-lib fs-lib kernel-lib keygen-libs $(TARGET)
373 - true
374 - $(TARGET): $(BCTOOL_OBJS)
375 -- g++ $(BCTOOL_OBJS) $(BCTOOL_CFLAGS) $(BCTOOL_LDFLAGS) -o $(TARGET)
376 -+ $(CXX) $(BCTOOL_OBJS) $(BCTOOL_CFLAGS) $(BCTOOL_LDFLAGS) -o $(TARGET)
377 -
378 - # GUI executable only (w/o console and helpers)
379 - panel: certificate-lib kernel-lib keygen-libs fs-lib
380 -@@ -339,10 +342,10 @@ module-uninstall:
381 - bash ./scripts/remove_mods
382 -
383 - %.o:%.cpp
384 -- g++ -c $(BCTOOL_CFLAGS) $< -o $@
385 -+ $(CXX) -c $(BCTOOL_CFLAGS) $< -o $@
386 -
387 - %.o:%.cc
388 -- g++ -c $(BCTOOL_CFLAGS) $< -o $@
389 -+ $(CXX) -c $(BCTOOL_CFLAGS) $< -o $@
390 -
391 - %.o:%.c
392 -- gcc -c $(BCTOOL_CFLAGS) $< -o $@
393 -+ $(CC) -c $(BCTOOL_CFLAGS) $< -o $@
394 -diff --git a/certificate/CertificateLib/Makefile b/certificate/CertificateLib/Makefile
395 -index 06353bc..19b772c 100644
396 ---- a/certificate/CertificateLib/Makefile
397 -+++ b/certificate/CertificateLib/Makefile
398 -@@ -1,5 +1,7 @@
399 -
400 --CP = cp
401 -+CC = gcc
402 -+CXX = g++
403 -+AR = ar
404 - CFLAGS += -Wall -fPIC -fno-strict-aliasing
405 - CXXFLAGS = -Wall -fPIC
406 - #-Werror
407 -diff --git a/disk/Makefile b/disk/Makefile
408 -index e3915b0..1a9ff01 100644
409 ---- a/disk/Makefile
410 -+++ b/disk/Makefile
411 -@@ -1,14 +1,16 @@
412 - DISKMON_OBJS = disk.o diskmon.o
413 -+
414 -+CXX = g++
415 - CFLAGS += -Wall -I. -I../ -p -gdwarf-2 #-DBC_DEBUG
416 - LDFLAGS += -ludev
417 -
418 - all:diskmon Makefile
419 -
420 - diskmon:$(DISKMON_OBJS)
421 -- g++ $(DISKMON_OBJS) $(LDFLAGS) -o diskmon
422 -+ $(CXX) $(DISKMON_OBJS) $(LDFLAGS) -o diskmon
423 -
424 - %.o:%.cc
425 -- g++ $(CFLAGS) -c $< -o $@
426 -+ $(CXX) $(CFLAGS) -c $< -o $@
427 -
428 - clean:
429 - rm -rf diskmon *.o
430 -diff --git a/fslib/Makefile b/fslib/Makefile
431 -index 9b99e89..0075a9f 100644
432 ---- a/fslib/Makefile
433 -+++ b/fslib/Makefile
434 -@@ -1,3 +1,5 @@
435 -+CC = gcc
436 -+AR = ar
437 -
438 - FSLIB_CFLAGS = $(CFLAGS) -Wall -fPIC -O0 -DFSLIB_DEBUG -g # -O3
439 - FSLIB_CFLAGS += -I. -D_LARGE_FILES -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 #-fvisibility=hidden
440 -@@ -17,25 +19,25 @@ FSLIB_TOOLS = file_hfs test_hfs test_info test_free_space diskinfo
441 - all: Makefile $(FSLIB) $(FSLIB_TOOLS)
442 -
443 - $(FSLIB): $(OBJS)
444 -- ar rcs $(FSLIB) $(OBJS)
445 -+ $(AR) rcs $(FSLIB) $(OBJS)
446 -
447 - test_hfs: $(FSLIB) test/test_hfs.o
448 -- gcc test/test_hfs.o $(OBJS) $(FSLIB_LDFLAGS) -o test_hfs
449 -+ $(CC) test/test_hfs.o $(OBJS) $(FSLIB_LDFLAGS) -o test_hfs
450 -
451 - file_hfs: $(FSLIB) test/file_hfs.o
452 -- gcc test/file_hfs.o $(OBJS) $(FSLIB_LDFLAGS) -o file_hfs
453 -+ $(CC) test/file_hfs.o $(OBJS) $(FSLIB_LDFLAGS) -o file_hfs
454 -
455 - test_info: $(FSLIB) test/test_info.o
456 -- gcc test/test_info.o $(OBJS) $(FSLIB_LDFLAGS) -o test_info
457 -+ $(CC) test/test_info.o $(OBJS) $(FSLIB_LDFLAGS) -o test_info
458 -
459 - test_free_space: $(FSLIB) test/test_free_space.o
460 -- gcc test/test_free_space.o $(FSLIB_CFLAGS) $(OBJS) $(FSLIB_LDFLAGS) -o test_free_space
461 -+ $(CC) test/test_free_space.o $(FSLIB_CFLAGS) $(OBJS) $(FSLIB_LDFLAGS) -o test_free_space
462 -
463 - diskinfo: $(FSLIB) test/diskinfo.o
464 -- gcc test/diskinfo.o $(OBJS) $(FSLIB_LDFLAGS) -g -o diskinfo
465 -+ $(CC) test/diskinfo.o $(OBJS) $(FSLIB_LDFLAGS) -g -o diskinfo
466 -
467 - .c.o:
468 -- gcc $(FSLIB_CFLAGS) -c $< -o $@
469 -+ $(CC) $(FSLIB_CFLAGS) -c $< -o $@
470 -
471 - clean:
472 - rm -rf *~ *.o test/*.o $(OBJS) $(FSLIB) $(FSLIB_TOOLS)
473 -diff --git a/kernel/Makefile b/kernel/Makefile
474 -index 1a71617..4f9760d 100644
475 ---- a/kernel/Makefile
476 -+++ b/kernel/Makefile
477 -@@ -3,6 +3,7 @@ OBJECTS = $(SOURCES:.cc=.o)
478 - TARGET_DIR = ./build/
479 - TARGET = $(TARGET_DIR)/libbckernel.a
480 - BC_CFLAGS = $(BC_EXTRA_CFLAGS) -fPIC -c -Wall -ludev -L../build/ -lspacemap -I../ -fvisibility=hidden #-fvisibility-inlines-hidden
481 -+CXX = g++
482 -
483 -
484 - ### Build ###
485 -@@ -21,12 +22,12 @@ module: create-dirs force_look
486 -
487 - kernel-lib: create-dirs $(TARGET)
488 - $(TARGET): $(OBJECTS)
489 -- ar rcs $(TARGET) $(OBJECTS)
490 -+ $(AR) rcs $(TARGET) $(OBJECTS)
491 -
492 - $(OBJECTS): Makefile $(SOURCES) BCKernel.h
493 - set -e; \
494 - for i in $(SOURCES); do \
495 -- g++ -c $(BC_CFLAGS) $$i -o $${i%.cc}.o; \
496 -+ $(CXX) -c $(BC_CFLAGS) $$i -o $${i%.cc}.o; \
497 - done
498 -
499 - create-dirs: $(TARGET_DIR)
500 -diff --git a/keygens/kgghost/Makefile b/keygens/kgghost/Makefile
501 -index 65c4bf6..a7b0af8 100644
502 ---- a/keygens/kgghost/Makefile
503 -+++ b/keygens/kgghost/Makefile
504 -@@ -5,10 +5,13 @@ KGGHOST_OBJS = hash.o pbe.o keyblock.o datablock.o kgghost.o
505 - KGGHOST_CFLAGS = -Wall -fPIC -p -ggdb -I. -I../../ -I../../certificate -DBC_LINUX
506 - KGGHOST_CFLAGS += $(BC_EXTRA_CFLAGS)
507 -
508 -+CXX = g++
509 -+AR = ar
510 -+
511 - all: $(KGGHOST) Makefile
512 -
513 - $(KGGHOST):$(KGGHOST_OBJS) $(CERTIFICATE_LIB)
514 -- ar rcs $(KGGHOST) $(KGGHOST_OBJS)
515 -+ $(AR) rcs $(KGGHOST) $(KGGHOST_OBJS)
516 -
517 - $(CERTIFICATE_LIB):
518 - make -C ../../certificate/CertificateLib
519 -@@ -17,7 +20,7 @@ $(KERNEL_LIB):
520 - make -C ../../kernel/build
521 -
522 - %.o:%.cpp
523 -- g++ $(KGGHOST_CFLAGS) -c -o $@ $<
524 -+ $(CXX) $(KGGHOST_CFLAGS) -c -o $@ $<
525 -
526 - clean:
527 - rm -f *.o *.ver *~ $(KGGHOST)
528 -diff --git a/keygens/kgsha/Makefile b/keygens/kgsha/Makefile
529 -index d3a33d0..9c8c688 100644
530 ---- a/keygens/kgsha/Makefile
531 -+++ b/keygens/kgsha/Makefile
532 -@@ -10,10 +10,13 @@ KGSHA_OBJS = hash.o datablock.o kgsha.o
533 - KGSHA_CFLAGS = -Wall -fPIC -p -gdwarf-2 -I. -I../../ -I../../certificate -DBC_LINUX
534 - KGSHA_CFLAGS += $(EXTRA_CFLAGS)
535 -
536 -+CXX = g++
537 -+AR = ar
538 -+
539 - all: $(KGSHA) $(KGSHA_OBJS) Makefile hidden_sector.h defs.h datablock.h
540 -
541 - $(KGSHA): $(KGSHA_OBJS) $(CERTIFICATE_LIB) $(KERN_LIB)
542 -- ar rcs $(KGSHA) $(KGSHA_OBJS)
543 -+ $(AR) rcs $(KGSHA) $(KGSHA_OBJS)
544 -
545 - $(CERT_LIB):
546 - make -C ../../certificate/CertificateLib
547 -@@ -22,7 +25,7 @@ $(KERN_LIB):
548 - make -C ../../kernel/
549 -
550 - %.o:%.cpp
551 -- g++ $(KGSHA_CFLAGS) -c -o $@ $<
552 -+ $(CXX) $(KGSHA_CFLAGS) -c -o $@ $<
553 -
554 - clean:
555 - rm -f *.o *.ver *~ $(KGSHA)
556 -diff --git a/mount/Makefile b/mount/Makefile
557 -index 7a3d66b..0e60095 100644
558 ---- a/mount/Makefile
559 -+++ b/mount/Makefile
560 -@@ -1,22 +1,23 @@
561 -
562 - HELPERS = bcrrpart_helper bcmount_helper bcumount_helper
563 -
564 -+CC = gcc
565 - OBJS = common.o
566 - CFLAGS += -Wall -O3
567 -
568 - all: $(HELPERS) Makefile
569 -
570 - bcrrpart_helper: $(OBJS) rrpart.o
571 -- gcc $(OBJS) rrpart.o $(LDFLAGS) -o bcrrpart_helper
572 -+ $(CC) $(OBJS) rrpart.o $(LDFLAGS) -o bcrrpart_helper
573 -
574 - bcmount_helper: $(OBJS) mount.o
575 -- gcc $(OBJS) mount.o $(LDFLAGS) -o bcmount_helper
576 -+ $(CC) $(OBJS) mount.o $(LDFLAGS) -o bcmount_helper
577 -
578 - bcumount_helper: $(OBJS) umount.o
579 -- gcc $(OBJS) umount.o $(LDFLAGS) -o bcumount_helper
580 -+ $(CC) $(OBJS) umount.o $(LDFLAGS) -o bcumount_helper
581 -
582 - %.o:%.c
583 -- gcc $(CFLAGS) -c -o $@ $<
584 -+ $(CC) $(CFLAGS) -c -o $@ $<
585 -
586 - clean:
587 - rm -f *.o *.ver *~ $(HELPERS)
588 -diff --git a/spacemap/Makefile b/spacemap/Makefile
589 -index 6dff240..7dd2ad9 100644
590 ---- a/spacemap/Makefile
591 -+++ b/spacemap/Makefile
592 -@@ -5,17 +5,19 @@ LIB_NAME = spacemap
593 - STATIC_TARGET = lib$(LIB_NAME).a
594 - OBJECT_CFLAGS = -fPIC -g -c -Wall -ludev -fvisibility=hidden #-fvisibility-inlines-hidden
595 -
596 -+CXX = g++
597 -+AR = ar
598 -
599 - all: static
600 - true
601 -
602 - static: $(OBJECTS)
603 -- ar rcs $(STATIC_TARGET) $(OBJECTS)
604 -+ $(AR) rcs $(STATIC_TARGET) $(OBJECTS)
605 -
606 - $(OBJECTS): $(SOURCES)
607 - set -e; \
608 - for i in $(SOURCES); do \
609 -- g++ $(OBJECT_CFLAGS) $$i -o $${i%.c}.o; \
610 -+ $(CXX) $(OBJECT_CFLAGS) $$i -o $${i%.c}.o; \
611 - done
612 -
613 - clean:
614 -diff --git a/tests/Makefile b/tests/Makefile
615 -index c6d78f0..419020b 100644
616 ---- a/tests/Makefile
617 -+++ b/tests/Makefile
618 -@@ -2,8 +2,8 @@ TESTS_PWD = ../build/tests/
619 - TESTS_TARGET = $(TESTS_PWD)/bctool-tests
620 - TESTS_SOURCES = tests-main.c ../container/cipher.cc ../keygens/kgsha/datablock.cpp ../keygens/kgsha/hash.cpp ../container/linux/file.cpp
621 - TESTS_CFLAGS = -I../ -I../certificate/ -L../build/ -L../build/kernel/ -DBC_LINUX -ludev -g
622 --CP = gcc
623 --CPP = g++
624 -+CC = gcc
625 -+CXX = g++
626 - CERT_LIB_NAME = certificate
627 - KERN_LIB_NAME = bckernel
628 - SPACEMAP_LIB_NAME = spacemap
629 -@@ -15,11 +15,11 @@ all: $(TESTS_TARGET)
630 - cp insert-modules.sh remove-modules.sh bcmod-loaded.sh $(TESTS_PWD)
631 -
632 - $(TESTS_TARGET): $(TESTS_SOURCES) Makefile
633 -- $(CPP) -o $(TESTS_TARGET) $(TESTS_CFLAGS) $(TESTS_SOURCES) -l$(CERT_LIB_NAME) -l$(KERN_LIB_NAME) -l$(SPACEMAP_LIB_NAME) -lcunit -ludev
634 -+ $(CXX) -o $(TESTS_TARGET) $(TESTS_CFLAGS) $(TESTS_SOURCES) -l$(CERT_LIB_NAME) -l$(KERN_LIB_NAME) -l$(SPACEMAP_LIB_NAME) -lcunit -ludev
635 - cp kernel/print-struct-size.c $(TESTS_PWD)
636 -- $(CP) -o $(TESTS_PWD)test-data-generator kernel/test-data-generator.c $(TESTS_CFLAGS) -l$(KERN_LIB_NAME) -l$(SPACEMAP_LIB_NAME)
637 -- $(CPP) -o $(TESTS_PWD)kgsha-key-generator kgsha/kgsha-data-generator.cpp ../keygens/kgsha/datablock.cpp ../keygens/kgsha/hash.cpp ../container/cipher.cc $(TESTS_CFLAGS) -l$(KERN_LIB_NAME) -l$(CERT_LIB_NAME) -l$(SPACEMAP_LIB_NAME)
638 -- $(CP) -o $(TESTS_PWD)/bcdevchecker bcdevchecker.c
639 -+ $(CC) -o $(TESTS_PWD)test-data-generator kernel/test-data-generator.c $(TESTS_CFLAGS) -l$(KERN_LIB_NAME) -l$(SPACEMAP_LIB_NAME)
640 -+ $(CXX) -o $(TESTS_PWD)kgsha-key-generator kgsha/kgsha-data-generator.cpp ../keygens/kgsha/datablock.cpp ../keygens/kgsha/hash.cpp ../container/cipher.cc $(TESTS_CFLAGS) -l$(KERN_LIB_NAME) -l$(CERT_LIB_NAME) -l$(SPACEMAP_LIB_NAME)
641 -+ $(CC) -o $(TESTS_PWD)/bcdevchecker bcdevchecker.c
642 -
643 - clean:
644 - rm -rf $(TESTS_PWD)
645 ---
646 -2.16.4
647 -
648 -From a7e9a6048e443b0a592c56b1b48e66d20092cf76 Mon Sep 17 00:00:00 2001
649 -From: Alon Bar-Lev <alon.barlev@×××××.com>
650 -Date: Tue, 11 Sep 2018 19:34:59 +0300
651 -Subject: [PATCH 5/6] build: add missing sys/sysmacros.h
652 -
653 -Signed-off-by: Alon Bar-Lev <alon.barlev@×××××.com>
654 ----
655 - mount/common.c | 1 +
656 - mount/mount.c | 1 +
657 - mount/rrpart.c | 1 +
658 - 3 files changed, 3 insertions(+)
659 -
660 -diff --git a/mount/common.c b/mount/common.c
661 -index 0a14ea4..d88394e 100644
662 ---- a/mount/common.c
663 -+++ b/mount/common.c
664 -@@ -9,6 +9,7 @@
665 - #include <stdarg.h>
666 - #include <errno.h>
667 - #include <unistd.h>
668 -+#include <sys/sysmacros.h>
669 - #include <sys/types.h>
670 - #include <sys/wait.h>
671 - #include <sys/stat.h>
672 -diff --git a/mount/mount.c b/mount/mount.c
673 -index c57594f..7c802fe 100644
674 ---- a/mount/mount.c
675 -+++ b/mount/mount.c
676 -@@ -10,6 +10,7 @@
677 - #include <string.h>
678 - #include <unistd.h>
679 - #include <errno.h>
680 -+#include <sys/sysmacros.h>
681 - #include <sys/types.h>
682 - #include <sys/wait.h>
683 - #include <sys/stat.h>
684 -diff --git a/mount/rrpart.c b/mount/rrpart.c
685 -index f7ce125..7ba5692 100644
686 ---- a/mount/rrpart.c
687 -+++ b/mount/rrpart.c
688 -@@ -13,6 +13,7 @@
689 - #include <unistd.h>
690 - #include <sys/ioctl.h>
691 - #include <sys/stat.h>
692 -+#include <sys/sysmacros.h>
693 - #include <sys/types.h>
694 - #include <linux/fs.h>
695 -
696 ---
697 -2.16.4
698 -
699 -From 9cb62cc4cbe9cb929aa1fca34d3d807a4e83bcca Mon Sep 17 00:00:00 2001
700 -From: Alon Bar-Lev <alon.barlev@×××××.com>
701 -Date: Tue, 11 Sep 2018 19:12:13 +0300
702 -Subject: [PATCH 6/6] modules: build for kernel-4.14
703 -
704 -Signed-off-by: Alon Bar-Lev <alon.barlev@×××××.com>
705 ----
706 - kernel/kmod/bc_dev.c | 4 +++-
707 - kernel/kmod/bc_mem.c | 1 +
708 - spacemap/defs.h | 1 +
709 - 3 files changed, 5 insertions(+), 1 deletion(-)
710 -
711 -diff --git a/kernel/kmod/bc_dev.c b/kernel/kmod/bc_dev.c
712 -index cddbf49..8b5657b 100644
713 ---- a/kernel/kmod/bc_dev.c
714 -+++ b/kernel/kmod/bc_dev.c
715 -@@ -86,9 +86,11 @@ static void reject_bio(struct bio *bio)
716 - {
717 - #if (LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0))
718 - bio_endio(bio, -EIO);
719 --#else
720 -+#elif (LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0))
721 - bio->bi_error = -EIO;
722 - bio_endio(bio);
723 -+#else
724 -+ bio_io_error(bio);
725 - #endif
726 - }
727 -
728 -diff --git a/kernel/kmod/bc_mem.c b/kernel/kmod/bc_mem.c
729 -index 0b516c8..69ec832 100644
730 ---- a/kernel/kmod/bc_mem.c
731 -+++ b/kernel/kmod/bc_mem.c
732 -@@ -6,6 +6,7 @@
733 - #include <linux/init.h>
734 - #include <linux/slab.h>
735 - #include <linux/kernel.h>
736 -+#include <linux/sched.h>
737 - #include <asm/uaccess.h>
738 -
739 - #define BC_GET_CALLER_PTR __builtin_return_address(0)
740 -diff --git a/spacemap/defs.h b/spacemap/defs.h
741 -index f0c87ba..7de9052 100644
742 ---- a/spacemap/defs.h
743 -+++ b/spacemap/defs.h
744 -@@ -17,6 +17,7 @@
745 - #include <linux/kernel.h>
746 - #include <linux/module.h>
747 - #include <linux/slab.h>
748 -+#include <linux/sched.h>
749 - #include <asm/uaccess.h>
750 -
751 - typedef int8_t bc_8;
752 ---
753 -2.16.4
754 -
755
756 diff --git a/app-crypt/bestcrypt/metadata.xml b/app-crypt/bestcrypt/metadata.xml
757 deleted file mode 100644
758 index f1c3d59fb21..00000000000
759 --- a/app-crypt/bestcrypt/metadata.xml
760 +++ /dev/null
761 @@ -1,8 +0,0 @@
762 -<?xml version="1.0" encoding="UTF-8"?>
763 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
764 -<pkgmetadata>
765 -<maintainer type="project">
766 - <email>crypto@g.o</email>
767 - <name>Crypto</name>
768 -</maintainer>
769 -</pkgmetadata>
770
771 diff --git a/profiles/package.mask b/profiles/package.mask
772 index 0ac92b51d99..5199df0baf0 100644
773 --- a/profiles/package.mask
774 +++ b/profiles/package.mask
775 @@ -355,12 +355,6 @@ sec-policy/selinux-perdition
776 # Removal in 30 days. Bug #684340.
777 app-admin/lsat
778
779 -# Alon Bar-Lev <alonbl@g.o> (24 Apr 2019)
780 -# Commercial. Upstream does not provide sources any more.
781 -# Tend to break per kernel upgrades.
782 -# Removal in 30 days. Bug#684268.
783 -app-crypt/bestcrypt
784 -
785 # Michał Górny <mgorny@g.o> (24 Apr 2019)
786 # Unmaintained. Vulnerable init.d script. Missing dependencies causing
787 # build failures (#514412, #544942). Insecure format strings (#520574).