diff options
author | 2018-04-01 14:10:31 +0200 | |
---|---|---|
committer | 2018-04-01 14:10:31 +0200 | |
commit | d7f2bc7625e51091ec6f5f0a22c1ac5e53d3cf54 (patch) | |
tree | 525acb5b497683680539171032f5d26d368220c7 | |
parent | media-libs/mesa: trim mesa 18.0.0 RC5 ebuild (diff) | |
download | ennui-d7f2bc7625e51091ec6f5f0a22c1ac5e53d3cf54.tar.gz ennui-d7f2bc7625e51091ec6f5f0a22c1ac5e53d3cf54.tar.bz2 ennui-d7f2bc7625e51091ec6f5f0a22c1ac5e53d3cf54.zip |
media-libs/mesa: add patch to increase created pthread stack size to 1MB to workaround issue with amdgpu driver caching to disk
-rw-r--r-- | media-libs/mesa/Manifest | 5 | ||||
-rw-r--r-- | media-libs/mesa/files/mesa-18-musl-increase-pthread-stack-size.patch | 29 | ||||
-rw-r--r-- | media-libs/mesa/mesa-9999.ebuild | 1 |
3 files changed, 32 insertions, 3 deletions
diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest index 51dab7d..8b10c68 100644 --- a/media-libs/mesa/Manifest +++ b/media-libs/mesa/Manifest @@ -2,7 +2,6 @@ AUX eselect-mesa.conf.9.2 1630 BLAKE2B 6c67ef9b5dc94f2f26378c004a459680b05084900 AUX mesa-17-musl-invocation_name.patch 2200 BLAKE2B a3caf41314e2526d2b7f299ed93f19e8b6c57e68a59b8af0c2ea48086dc642ddde8c1eba9f33476f4b9b790f19ea0ca341599c27ff94818a4edc596bf4c151a9 SHA512 3a22dca8e6bf29a2db81ffa17ce95ad86f5d7425006d25606e465a829691cee3d723bc9dcd20c958a035fe0c9460498b975f66aa2ddbedfa196a4ae67e764c09 AUX mesa-17-musl_endian.patch 463 BLAKE2B cc768590fc4e63680c05ab3b08ad88c31d58459ae51b301f347138222e4a66f3488189441870daf2bc9874cfbe31063905ce8da7b693051cb7a3cc73c3c3da34 SHA512 7305c4c49e8268727f2505d1879edb8e214c68eebbfd5889e7c743b60eb9ba82e9b24b267c380ddcd993dcc2339d5d4551b0768801bdcc416f74730970a1d9ba AUX mesa-18-execinfo.patch 2583 BLAKE2B 1c4d091cca06c8d282458c154d25d1f69f831b6d6bee06df8b220520a68188fcdd72603ea121e833e509f24aa175f00c5e229bd65ee769ab9d7418baa3d4cb8d SHA512 7c4e5488d0596968384aff1e44ac651d1fd87605cbdaceddcf7caaf287fee102deccec32c50846689d9dbdd3a807cb9f38bc2b5a6dfae6991abb1c082659d95b +AUX mesa-18-musl-increase-pthread-stack-size.patch 929 BLAKE2B b4bb448cdaaddcb8d91cfbcacf6c27792aa6c5beba732933d7324f9a060b3f8b2a6800bc5c0ae1c7422ddbfe6389f89174aca81c4a5dd1f219ebdedcde25800c SHA512 c1dcdb7be316114aa2114b8923ad88f17050fbaee906d7e5976e3b8cd5c2b333a48dfc851e4342e9587b14cb62d9c6088dbab1e094b4ba77cc72dd3ad71a90e7 AUX mesa-18-musl-pthread.patch 1920 BLAKE2B 6900ecf2ada8ff339c01cddb97a235f8c6d251fe213325b1b05bf5a2a746b06581d6d5491fb23982e12a3459434e5ab6a13a4a587157b9270b4b050b9690b0c9 SHA512 8696af0b7591b0a2cb05cfed5aeb216b97e599e618036a8451755632fdf0e3548c2bcbe944f97f7891f954b5fe834572af348f79dd1e51453aa140c733e5e121 -DIST mesa-18.0.0-rc5.tar.xz 10970572 BLAKE2B 5415bf4a2b33d813c3987be2aa3648ffa0ec345a109f80c3f6d5af51d06104e3af1a8d8a0763af2c419a8e30ed46c316347449ce016293281c87484a678205bd SHA512 90c68c0bf9e689992626b593ad53d4f7fb402e556ac70672b618abd3a224e637fc6a26fb197bb3b692a8363117de09e01fd524f9de181359eba0879226e3e5a6 -EBUILD mesa-18.0.0_rc5.ebuild 15214 BLAKE2B d2e80e42e7d6fa3189136e6ec032f0fb37588160c8ab2d6a9fd765c7627ca3b914a1f3d0c702b030524e77d9147596f69eaec367229799d5f8419dbc90845de8 SHA512 98e1b0b69ce6f52171495e1925e84212593003d60d97c55f73fe3085f23c37cc320c372d2535ecbcc7780d533303ba4cd78505dbfed04e55f67e0782f1241e26 -EBUILD mesa-9999.ebuild 15367 BLAKE2B a5d56f5dd94ff99ed72c9cce53df6d1ba2b2ace5b89e2624a4873173c636ad02bb523c8dfe31b50b0ec25d8845fe7703e5738b0fe6bb721e2247163a338aaa2e SHA512 4a31e45b910be40b6e3eeb68956e55a1b726eccf4dfa06674a4f56d1a1f742ee09708a68f15f22fa39602c51d1afcb680ce20dd1ebf8d81af4c61c23fb6fa07c +EBUILD mesa-9999.ebuild 15437 BLAKE2B dd990b4e3d894221c7495777f997294958f6dc3c708cd31e64fb67ac800c700c0d6e9965de1c92170f9a59713c125674855d6cbc23682858377aadc3f49d766c SHA512 6e882a3841df9ad8330c0026c2e95ab0ca54778dd4887a8aa4b30a6fab96e43edadcf8cdd47260cad9b1ef7c4a407802462a73a50e5238f8f9c9ec0a26b7ef35 diff --git a/media-libs/mesa/files/mesa-18-musl-increase-pthread-stack-size.patch b/media-libs/mesa/files/mesa-18-musl-increase-pthread-stack-size.patch new file mode 100644 index 0000000..0579c17 --- /dev/null +++ b/media-libs/mesa/files/mesa-18-musl-increase-pthread-stack-size.patch @@ -0,0 +1,29 @@ +diff --git a/include/c11/threads_posix.h b/include/c11/threads_posix.h +index 45cb6075e6..53ca26506c 100644 +--- a/include/c11/threads_posix.h ++++ b/include/c11/threads_posix.h +@@ -281,12 +281,23 @@ static inline int + thrd_create(thrd_t *thr, thrd_start_t func, void *arg) + { + struct impl_thrd_param *pack; ++ size_t stack_size; ++ pthread_attr_t* attr; ++ pthread_attr_t attr_storage; ++ ++ attr = NULL; ++ stack_size = 2 << 20; ++ attr = &attr_storage; ++ ++ pthread_attr_init(attr); ++ pthread_attr_setstacksize(attr, stack_size); ++ + assert(thr != NULL); + pack = (struct impl_thrd_param *)malloc(sizeof(struct impl_thrd_param)); + if (!pack) return thrd_nomem; + pack->func = func; + pack->arg = arg; +- if (pthread_create(thr, NULL, impl_thrd_routine, pack) != 0) { ++ if (pthread_create(thr, attr, impl_thrd_routine, pack) != 0) { + free(pack); + return thrd_error; + } diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild index 2e8788d..860e217 100644 --- a/media-libs/mesa/mesa-9999.ebuild +++ b/media-libs/mesa/mesa-9999.ebuild @@ -289,6 +289,7 @@ src_prepare() { eapply "${FILESDIR}"/${PN}-18-execinfo.patch eapply "${FILESDIR}"/${PN}-17-musl-invocation_name.patch eapply "${FILESDIR}"/${PN}-18-musl-pthread.patch + eapply "${FILESDIR}"/${PN}-18-musl-increase-pthread-stack-size.patch eautoreconf |