1 |
commit: 57e5f28a918bb8c926d294a2eb2acb406382f186 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 8 07:59:41 2016 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 8 08:10:12 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57e5f28a |
7 |
|
8 |
dev-libs/crypto++: fix symlink/directory collision for update |
9 |
|
10 |
Bug: 596500 |
11 |
|
12 |
Package-Manager: portage-2.3.0 |
13 |
|
14 |
.../{crypto++-5.6.4-r1.ebuild => crypto++-5.6.4-r2.ebuild} | 10 +++++++++- |
15 |
1 file changed, 9 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-libs/crypto++/crypto++-5.6.4-r1.ebuild b/dev-libs/crypto++/crypto++-5.6.4-r2.ebuild |
18 |
similarity index 89% |
19 |
rename from dev-libs/crypto++/crypto++-5.6.4-r1.ebuild |
20 |
rename to dev-libs/crypto++/crypto++-5.6.4-r2.ebuild |
21 |
index ef46487..b21a004 100644 |
22 |
--- a/dev-libs/crypto++/crypto++-5.6.4-r1.ebuild |
23 |
+++ b/dev-libs/crypto++/crypto++-5.6.4-r2.ebuild |
24 |
@@ -30,6 +30,7 @@ pkg_setup() { |
25 |
} |
26 |
|
27 |
src_configure() { |
28 |
+ default |
29 |
cp config.recommend config.h || die |
30 |
} |
31 |
|
32 |
@@ -57,7 +58,7 @@ src_test() { |
33 |
} |
34 |
|
35 |
src_install() { |
36 |
- emake DESTDIR="${ED}" install |
37 |
+ default |
38 |
|
39 |
# remove leftovers as build system sucks |
40 |
rm -fr "${ED}"/usr/bin "${ED}"/usr/share/cryptopp |
41 |
@@ -69,3 +70,10 @@ src_install() { |
42 |
ln -s "$(basename "${f}")" "$(echo "${f}" | sed 's/cryptopp/crypto++/')" || die |
43 |
done |
44 |
} |
45 |
+ |
46 |
+pkg_preinst() { |
47 |
+ # we switched directory to symlink |
48 |
+ # make sure portage digests that |
49 |
+ rm -fr "${EROOT}/usr/include/crypto++" |
50 |
+ rm -fr "${EROOT}/usr/include/cryptopp" |
51 |
+} |