1 |
commit: 8958d53d0c638d287b5d1033e1a402b014044374 |
2 |
Author: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jan 7 01:10:31 2018 +0000 |
4 |
Commit: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Jan 7 01:10:31 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=8958d53d |
7 |
|
8 |
megasync update |
9 |
|
10 |
net-misc/megasync/Manifest | 5 +- |
11 |
.../megasync/files/MEGAsync-3.5.3.0_Linux.patch | 27 +++++ |
12 |
net-misc/megasync/files/megasync-glibc2.26.patch | 123 +++++++++++++++++++++ |
13 |
net-misc/megasync/megasync-3.1.4.ebuild | 2 + |
14 |
...megasync-3.1.4.ebuild => megasync-3.5.3.ebuild} | 9 +- |
15 |
5 files changed, 163 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/net-misc/megasync/Manifest b/net-misc/megasync/Manifest |
18 |
index 493eacc..65f302c 100644 |
19 |
--- a/net-misc/megasync/Manifest |
20 |
+++ b/net-misc/megasync/Manifest |
21 |
@@ -1,7 +1,10 @@ |
22 |
AUX MEGAsync-3.1.4.0_Linux.patch 1035 SHA256 803d59b314fbb91f3bd9c2c59b30cb8b18d52ea606c96af3298b3044cf8baf7d SHA512 afd9b11a8dcdc3240d3c3850dfccafce64078c95ae4fa44ef0f3fbd71aabb4fa129f46bbde470d916719174a19674ba3f14cf9cde1166f7c5e09e56feb9f943e WHIRLPOOL 10c3c73da7bd81453c47bc17fa179ec8c28d3c6f8c4dc3d9aeb7260752d62d7e6e57827cd967bcbc636db4365bf01a5b41b18d9de97be4f9fe4db48aa3801639 |
23 |
+AUX MEGAsync-3.5.3.0_Linux.patch 1035 SHA256 803d59b314fbb91f3bd9c2c59b30cb8b18d52ea606c96af3298b3044cf8baf7d SHA512 afd9b11a8dcdc3240d3c3850dfccafce64078c95ae4fa44ef0f3fbd71aabb4fa129f46bbde470d916719174a19674ba3f14cf9cde1166f7c5e09e56feb9f943e WHIRLPOOL 10c3c73da7bd81453c47bc17fa179ec8c28d3c6f8c4dc3d9aeb7260752d62d7e6e57827cd967bcbc636db4365bf01a5b41b18d9de97be4f9fe4db48aa3801639 |
24 |
+AUX megasync-glibc2.26.patch 5958 SHA256 8d19891f1a7f5d84edbff300cd3bcebd5db93c9524483c13f19cdcffc0f3ec8a SHA512 f8348b61028f34714dabe83fe88e5820686a35e1fa52206451152a97a286557168666142121936304d60aa18dae16d4474c3c3278274b62cc06d42587fc7016e WHIRLPOOL 69a26860bfc622e976ff87ce68cdb16daaea48f1e0a722c84b101fca4f78706e47f29dc31aa0f78a62a7c3a73297f62b384cc7c680a289443e0e70734ffb8847 |
25 |
DIST megasync-3.0.1.tar.gz 10859538 SHA256 97c11019841c48dc1b88b9c4a15c2a2d69dda06e6544d30ff066f9b960af3d4d SHA512 0e3e0315f9a8f4694a59f7b50d6dd93c5e840d013d8c658288d7c0cafca9fbdc1faa2bbaec5c2d08e5f4c4d1790864a8595153808ea7b8c0a1c3550ae8398dbe WHIRLPOOL 6f67983cc76d1ec18ccc6ccd9145c9d57ac46ecd8de9e0433c964d7af728699b2250228dc40d736ad88552c71ed4b5575f2c710476ffeaca1ab85d119710342c |
26 |
DIST megasync-sdk-20170215.tar.gz 3475613 SHA256 085ad3db78f7b30d613f4ad1d62e811bdf4be070c8c48cdb5243e4e9963468e2 SHA512 738e30e3b66edb129247dcce87bf9033efe698303f0e6c81362a51d81464b2323fb41b41f4659fa7d8db4bc9992ff7718a5f975d782e558e51ab50efadd740ea WHIRLPOOL 7daea0d450e900af78f7d144883aebaf283725f0850b23e4ea5c4f86822e9804f9876b53a18426fc36ad375bce2c19ad80a4ed45a659b022805b54551ce23265 |
27 |
EBUILD megasync-3.0.1.ebuild 3631 SHA256 6afcf5ee6a4d7c6a78f7599ac76c9c83523387769d647d6aec557f7a32e61181 SHA512 cef1286d280689516eb6fd754c70524c2acd48976637275a46493211151cd89e1ea45c6f0494de606a71c84876b7d186a3af55311279aca41267cbda9219bd9e WHIRLPOOL e0759fe60bbeb8dc1d0b5820e43afd3e98b35de7321749fe323a07f95b022ee60557f41dd1c929a844827f91ed6a04744667e4dc4048f28717c0347c7e8df8f0 |
28 |
-EBUILD megasync-3.1.4.ebuild 3113 SHA256 425463b42acd1c83853375c81582341431cb74e2cdebc7b9ee91b12cdb5a67d1 SHA512 58a937f8e2a13b7ccf5b26fd4ec8029b02a8e2a637c41cff9e309d147b88a1b6b0478cf2da33c2310dbd4e040d5d428b68d083c89864d171af92c9417e5a1549 WHIRLPOOL 18fb2afac19b85d9185cb6d0c509f521c2991771bab69467fc4f6aefff0cae7c25262a32d183b1005a88f80990bfd7ecea7598095012a8d2fd57f10f018988e1 |
29 |
+EBUILD megasync-3.1.4.ebuild 3165 SHA256 4f0c01436a4a28bc99b030d624872f68595412b360708cefe6b6c87270f0008f SHA512 964fbd703748194c5c2b109d89e03bdb7d99c2b793fb187875e7d7304e69ea0f7efce9a19d607ce1b87de5e229fbf9d2fbda86df02aa6c42ffeab908c8152dc1 WHIRLPOOL 4a78d7122e822b71f6337c59c424f0e2447ddfe699b6e29bea459b2a3281a8c6e5e2693ee0ea5823213e884182aedb8d740f6bf18e3716bc13b8623dc6d2e10b |
30 |
+EBUILD megasync-3.5.3.ebuild 3277 SHA256 a2764c22465571bf24b3727f200032f59f182b4814701daf23c61d22f738fbb4 SHA512 3d063386c052ec6c673d31c37ac2d7a8e78ee47d627bc5961d0e8ea9f1b7fde76f58078de0cc7cd5e1aa968b1941e7f51d22e9632ffe6c0b8dda05d919b40f13 WHIRLPOOL f71103b368acab72571ad4e64dfb0603f3ab13a77a2ed75e13ef8523700bc6c5cdd2282c39419fa90ebe8a66ee8ea0a4f21a8a7ca3c36ec8f3eb553e6b155614 |
31 |
EBUILD megasync-9999.ebuild 3637 SHA256 99e34fd9fe0ca8724804b2b3bdccd96b8606e5702476e4784ea7068faa8d275a SHA512 020ca96d8972f66cc79673bc31083af2fffacbb02dfeb12677d5d62f08605e1a4f9b29d55d5509231a416c39e7b1cd2e6b20d16c4af00a415cbaf4c133fa6c6d WHIRLPOOL 4e8540c01b07f60881ace62cf8015e92f830b8d0f8c2b00d3813cfaee4766e16d5025630e3456efe5ed3b9a871a8bce85bb1c462ae9d1c15b25309fc54948cdb |
32 |
MISC metadata.xml 318 SHA256 705510d197fc14d45313ea036c3ce472a72da8fe1be62743a7d00f38422b43ef SHA512 e4930a21d6f75f5395e2e96436b42c792771fd7167abceeff0db7a9036616c6feeb6beee890afa6ff5e4584f5bb6938084316e60df57997aa1c20ba0a025514c WHIRLPOOL 99eadcf32497e8a117b297242fa0ed8de588a2fa4a7f3a85c67ebc479faa66c83cdd155cd974b5b80aeab2c9e431f837d4453397568a5105957d5082a7541d65 |
33 |
|
34 |
diff --git a/net-misc/megasync/files/MEGAsync-3.5.3.0_Linux.patch b/net-misc/megasync/files/MEGAsync-3.5.3.0_Linux.patch |
35 |
new file mode 100644 |
36 |
index 0000000..527892c |
37 |
--- /dev/null |
38 |
+++ b/net-misc/megasync/files/MEGAsync-3.5.3.0_Linux.patch |
39 |
@@ -0,0 +1,27 @@ |
40 |
+--- src/MEGAShellExtDolphin/megasync-plugin.h 2017-07-24 03:22:14.894701134 +0100 |
41 |
++++ src/MEGAShellExtDolphin/megasync-plugin.h 2017-07-24 03:29:22.518056652 +0100 |
42 |
+@@ -5,7 +5,7 @@ |
43 |
+ #ifndef WITH_KF5 |
44 |
+ #include <kabstractfileitemactionplugin.h> |
45 |
+ #else |
46 |
+-#include <KIOWidgets/kabstractfileitemactionplugin.h> |
47 |
++#include <KF5/KIOWidgets/kabstractfileitemactionplugin.h> |
48 |
+ #endif |
49 |
+ #include <QLocalSocket> |
50 |
+ |
51 |
+--- src/MEGAShellExtDolphin/megasync-plugin.cpp 2017-07-24 03:22:28.616295121 +0100 |
52 |
++++ src/MEGAShellExtDolphin/megasync-plugin.cpp 2017-07-24 03:31:02.382106210 +0100 |
53 |
+@@ -13,10 +13,10 @@ |
54 |
+ #else |
55 |
+ #include <KPluginFactory> |
56 |
+ #include <KPluginLoader> |
57 |
+-#include <KIOWidgets/kabstractfileitemactionplugin.h> |
58 |
++#include <KF5/KIOWidgets/kabstractfileitemactionplugin.h> |
59 |
+ #include <QtNetwork/QLocalSocket> |
60 |
+-#include <KIOCore/kfileitem.h> |
61 |
+-#include <KIOCore/KFileItemListProperties> |
62 |
++#include <KF5/KIOCore/kfileitem.h> |
63 |
++#include <KF5/KIOCore/KFileItemListProperties> |
64 |
+ #include <QtWidgets/QAction> |
65 |
+ #include <QtCore/QDir> |
66 |
+ #include <QtCore/QTimer> |
67 |
|
68 |
diff --git a/net-misc/megasync/files/megasync-glibc2.26.patch b/net-misc/megasync/files/megasync-glibc2.26.patch |
69 |
new file mode 100644 |
70 |
index 0000000..c739ae9 |
71 |
--- /dev/null |
72 |
+++ b/net-misc/megasync/files/megasync-glibc2.26.patch |
73 |
@@ -0,0 +1,123 @@ |
74 |
+diff -Naur a/src/MEGASync/google_breakpad/client/linux/handler/exception_handler.cc b/src/MEGASync/google_breakpad/client/linux/handler/exception_handler.cc |
75 |
+--- a/src/MEGASync/google_breakpad/client/linux/handler/exception_handler.cc 2017-11-19 14:46:02.366790151 +0000 |
76 |
++++ b/src/MEGASync/google_breakpad/client/linux/handler/exception_handler.cc 2017-11-19 14:52:43.760546710 +0000 |
77 |
+@@ -397,12 +397,12 @@ |
78 |
+ } |
79 |
+ CrashContext context; |
80 |
+ memcpy(&context.siginfo, info, sizeof(siginfo_t)); |
81 |
+- memcpy(&context.context, uc, sizeof(struct ucontext)); |
82 |
++ memcpy(&context.context, uc, sizeof(ucontext_t)); |
83 |
+ #if !defined(__ARM_EABI__) && !defined(__mips__) |
84 |
+ // FP state is not part of user ABI on ARM Linux. |
85 |
+- // In case of MIPS Linux FP state is already part of struct ucontext |
86 |
++ // In case of MIPS Linux FP state is already part of ucontext_t |
87 |
+ // and 'float_state' is not a member of CrashContext. |
88 |
+- struct ucontext *uc_ptr = (struct ucontext*)uc; |
89 |
++ ucontext_t *uc_ptr = (ucontext_t*)uc; |
90 |
+ if (uc_ptr->uc_mcontext.fpregs) { |
91 |
+ memcpy(&context.float_state, |
92 |
+ uc_ptr->uc_mcontext.fpregs, |
93 |
+@@ -421,12 +421,13 @@ |
94 |
+ // This is a public interface to HandleSignal that allows the client to |
95 |
+ // generate a crash dump. This function may run in a compromised context. |
96 |
+ bool ExceptionHandler::SimulateSignalDelivery(int sig) { |
97 |
+- siginfo_t siginfo = {0, 0, 0, {0}}; |
98 |
++ siginfo_t siginfo; |
99 |
++ memset(&siginfo, 0, sizeof(siginfo_t)); |
100 |
+ // Mimic a trusted signal to allow tracing the process (see |
101 |
+ // ExceptionHandler::HandleSignal(). |
102 |
+ siginfo.si_code = SI_USER; |
103 |
+ siginfo.si_pid = getpid(); |
104 |
+- struct ucontext context; |
105 |
++ ucontext_t context; |
106 |
+ getcontext(&context); |
107 |
+ return HandleSignal(sig, &siginfo, &context); |
108 |
+ } |
109 |
+diff -Naur a/src/MEGASync/google_breakpad/client/linux/handler/exception_handler.h b/src/MEGASync/google_breakpad/client/linux/handler/exception_handler.h |
110 |
+--- a/src/MEGASync/google_breakpad/client/linux/handler/exception_handler.h 2017-11-19 14:46:02.366790151 +0000 |
111 |
++++ b/src/MEGASync/google_breakpad/client/linux/handler/exception_handler.h 2017-11-19 14:51:28.364846717 +0000 |
112 |
+@@ -189,10 +189,10 @@ |
113 |
+ struct CrashContext { |
114 |
+ siginfo_t siginfo; |
115 |
+ pid_t tid; // the crashing thread. |
116 |
+- struct ucontext context; |
117 |
++ ucontext_t context; |
118 |
+ #if !defined(__ARM_EABI__) && !defined(__mips__) |
119 |
+ // #ifdef this out because FP state is not part of user ABI for Linux ARM. |
120 |
+- // In case of MIPS Linux FP state is already part of struct ucontext |
121 |
++ // In case of MIPS Linux FP state is already part of ucontext_t |
122 |
+ // so 'float_state' is not required. |
123 |
+ struct _libc_fpstate float_state; |
124 |
+ #endif |
125 |
+diff -Naur a/src/MEGASync/google_breakpad/client/linux/minidump_writer/minidump_writer.cc b/src/MEGASync/google_breakpad/client/linux/minidump_writer/minidump_writer.cc |
126 |
+--- a/src/MEGASync/google_breakpad/client/linux/minidump_writer/minidump_writer.cc 2017-11-19 14:46:02.369790060 +0000 |
127 |
++++ b/src/MEGASync/google_breakpad/client/linux/minidump_writer/minidump_writer.cc 2017-11-19 14:51:28.353847052 +0000 |
128 |
+@@ -1725,7 +1725,7 @@ |
129 |
+ const int fd_; // File descriptor where the minidum should be written. |
130 |
+ const char* path_; // Path to the file where the minidum should be written. |
131 |
+ |
132 |
+- const struct ucontext* const ucontext_; // also from the signal handler |
133 |
++ const ucontext_t* const ucontext_; // also from the signal handler |
134 |
+ const struct _libc_fpstate* const float_state_; // ditto |
135 |
+ LinuxDumper* dumper_; |
136 |
+ MinidumpFileWriter minidump_writer_; |
137 |
+diff -Naur a/src/MEGASync/google_breakpad/common/android/include/sys/ucontext.h b/src/MEGASync/google_breakpad/common/android/include/sys/ucontext.h |
138 |
+--- a/src/MEGASync/google_breakpad/common/android/include/sys/ucontext.h 2017-11-19 14:46:02.394789297 +0000 |
139 |
++++ b/src/MEGASync/google_breakpad/common/android/include/sys/ucontext.h 2017-11-19 14:51:28.333847662 +0000 |
140 |
+@@ -53,9 +53,9 @@ |
141 |
+ // The ARM kernel uses a 64-bit signal mask. |
142 |
+ typedef uint32_t kernel_sigmask_t[2]; |
143 |
+ |
144 |
+-typedef struct ucontext { |
145 |
++typedef ucontext_t { |
146 |
+ uint32_t uc_flags; |
147 |
+- struct ucontext* uc_link; |
148 |
++ ucontext_t* uc_link; |
149 |
+ stack_t uc_stack; |
150 |
+ mcontext_t uc_mcontext; |
151 |
+ kernel_sigmask_t uc_sigmask; |
152 |
+@@ -117,9 +117,9 @@ |
153 |
+ // The i386 kernel uses a 64-bit signal mask. |
154 |
+ typedef uint32_t kernel_sigmask_t[2]; |
155 |
+ |
156 |
+-typedef struct ucontext { |
157 |
++typedef ucontext_t { |
158 |
+ uint32_t uc_flags; |
159 |
+- struct ucontext* uc_link; |
160 |
++ ucontext_t* uc_link; |
161 |
+ stack_t uc_stack; |
162 |
+ mcontext_t uc_mcontext; |
163 |
+ kernel_sigmask_t uc_sigmask; |
164 |
+@@ -152,9 +152,9 @@ |
165 |
+ // The MIPS kernel uses a 128-bit signal mask. |
166 |
+ typedef uint32_t kernel_sigmask_t[4]; |
167 |
+ |
168 |
+-typedef struct ucontext { |
169 |
++typedef ucontext_t { |
170 |
+ uint32_t uc_flags; |
171 |
+- struct ucontext* uc_link; |
172 |
++ ucontext_t* uc_link; |
173 |
+ stack_t uc_stack; |
174 |
+ mcontext_t uc_mcontext; |
175 |
+ kernel_sigmask_t uc_sigmask; |
176 |
+diff -Naur a/src/MEGASync/google_breakpad/client/linux/minidump_writer/minidump_writer.cc b/src/MEGASync/google_breakpad/client/linux/minidump_writer/minidump_writer.cc |
177 |
+--- a/src/MEGASync/google_breakpad/client/linux/minidump_writer/minidump_writer.cc 2017-11-19 15:03:10.536413558 +0000 |
178 |
++++ b/src/MEGASync/google_breakpad/client/linux/minidump_writer/minidump_writer.cc 2017-11-19 15:16:27.828131605 +0000 |
179 |
+@@ -177,7 +177,7 @@ |
180 |
+ // Juggle an x86 ucontext into minidump format |
181 |
+ // out: the minidump structure |
182 |
+ // info: the collection of register structures. |
183 |
+-void CPUFillFromUContext(MDRawContextX86 *out, const ucontext *uc, |
184 |
++void CPUFillFromUContext(MDRawContextX86 *out, const ucontext_t *uc, |
185 |
+ const struct _libc_fpstate* fp) { |
186 |
+ const greg_t* regs = uc->uc_mcontext.gregs; |
187 |
+ |
188 |
+@@ -277,7 +277,7 @@ |
189 |
+ my_memcpy(&out->flt_save.xmm_registers, &info.fpregs.xmm_space, 16 * 16); |
190 |
+ } |
191 |
+ |
192 |
+-void CPUFillFromUContext(MDRawContextAMD64 *out, const ucontext *uc, |
193 |
++void CPUFillFromUContext(MDRawContextAMD64 *out, const ucontext_t *uc, |
194 |
+ const struct _libc_fpstate* fpregs) { |
195 |
+ const greg_t* regs = uc->uc_mcontext.gregs; |
196 |
+ |
197 |
|
198 |
diff --git a/net-misc/megasync/megasync-3.1.4.ebuild b/net-misc/megasync/megasync-3.1.4.ebuild |
199 |
index 8e48f5a..d9f4493 100644 |
200 |
--- a/net-misc/megasync/megasync-3.1.4.ebuild |
201 |
+++ b/net-misc/megasync/megasync-3.1.4.ebuild |
202 |
@@ -64,6 +64,8 @@ RDEPEND="${DEPEND} |
203 |
readline? ( sys-libs/readline:0 ) |
204 |
" |
205 |
|
206 |
+PATCHES=( "${FILESDIR}/megasync-glibc2.26.patch" ) |
207 |
+ |
208 |
if [[ ${PV} != *9999* ]];then |
209 |
src_prepare(){ |
210 |
cp -r ../sdk-${SDK_COMMIT}/* src/MEGASync/mega |
211 |
|
212 |
diff --git a/net-misc/megasync/megasync-3.1.4.ebuild b/net-misc/megasync/megasync-3.5.3.ebuild |
213 |
similarity index 91% |
214 |
copy from net-misc/megasync/megasync-3.1.4.ebuild |
215 |
copy to net-misc/megasync/megasync-3.5.3.ebuild |
216 |
index 8e48f5a..131d683 100644 |
217 |
--- a/net-misc/megasync/megasync-3.1.4.ebuild |
218 |
+++ b/net-misc/megasync/megasync-3.5.3.ebuild |
219 |
@@ -64,10 +64,15 @@ RDEPEND="${DEPEND} |
220 |
readline? ( sys-libs/readline:0 ) |
221 |
" |
222 |
|
223 |
+#PATCHES=( "${FILESDIR}/megasync-glibc2.26.patch" ) |
224 |
+ |
225 |
if [[ ${PV} != *9999* ]];then |
226 |
src_prepare(){ |
227 |
- cp -r ../sdk-${SDK_COMMIT}/* src/MEGASync/mega |
228 |
- EPATCH_OPTS="-p0" epatch "${FILESDIR}/MEGAsync-3.1.4.0_Linux.patch" |
229 |
+ # Not needed, since using git submodules |
230 |
+ #cp -r ../sdk-${SDK_COMMIT}/* src/MEGASync/mega |
231 |
+ if [ -e "${FILESDIR}/MEGAsync-${PV}.0_Linux.patch" ]; then |
232 |
+ EPATCH_OPTS="-p0" epatch "${FILESDIR}/MEGAsync-${PV}.0_Linux.patch" |
233 |
+ fi |
234 |
eapply_user |
235 |
cd src/MEGASync/mega |
236 |
eautoreconf |