Commit 7ebe70be authored by Allison Karlitskaya's avatar Allison Karlitskaya

3.16: upgrade mir version to 0.8.0

parent 70596193
......@@ -264,13 +264,14 @@
</dependencies>
</autotools>
<cmake id="mir" cmakeargs="-DMIR_ENABLE_TESTS=0">
<cmake id="mir" cmakeargs="-DMIR_ENABLE_TESTS=0 -DMIR_PLATFORM=mesa">
<branch repo="mir"
module="0.4/${version}/+download/mir-${version}.tar.bz2"
version="0.4.0"
hash="sha256:5d859d353da88d81bf383e37d0744796d74d24a858fcc7d978a91575ebccd524"
size="949452">
module="0.8/${version}/+download/mir-${version}.tar.bz2"
version="0.8.0"
hash="sha256:a907bb7e6cf4d5975bc02db8a7b0d6e2f668527e6d38ae402ec8b87a8ca0c5f1"
size="1047629">
<patch file="mir-gflags-noshutdown.patch" strip="1"/>
<patch file="mir-progressbar-example.patch" strip="1"/>
</branch>
<dependencies>
<dep package="boost"/>
......
stop using internal glibc defines
__USE_BSD is a private define of glibc and it no longer does the same
thing with newer glibc releases.
Switch to using the correct _BSD_SOURCE instead.
_BSD_SOURCE is unfortunately disabled in newer releases of glibc, so we
should also define _DEFAULT_SOURCE.
https://bugs.launchpad.net/mir/+bug/1384390
--- a/examples/progressbar.c 2014-09-11 05:51:44 +0000
+++ b/examples/progressbar.c 2014-10-22 18:50:33 +0000
@@ -16,12 +16,14 @@
* Author: Daniel van Vugt <daniel.van.vugt@canonical.com>
*/
+#define _DEFAULT_SOURCE
+#define _BSD_SOURCE /* for usleep() */
+
#include "mir_toolkit/mir_client_library.h"
#include <stdio.h>
#include <signal.h>
#include <stdint.h>
#include <stdlib.h>
-#define __USE_BSD 1 /* for usleep() */
#include <unistd.h> /* sleep() */
#include <string.h>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment