Skip to contentSkip to conversation

xenomai: bump to 2.6.1

PATCH New Thomas Petazzoni 2 participants 2 messages Oct 12, 2012 – Oct 14, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xenomai: bump to 2.6.1

The largefile patch is no longer necessary, it has been merged upstream. However, in order to make the build work properly with Thumb2 toolchains (such as Linaro toolchains), an additional fix is needed. This fix is already upstream and will be part of upcoming Xenomai releases.

---
 package/xenomai/xenomai-fix-lfs-issue.patch |   72 ------------
 package/xenomai/xenomai-thumb-fix.patch     |  157 +++++++++++++++++++++++++++
 package/xenomai/xenomai.mk                  |    2 +-
 3 files changed, 158 insertions(+), 73 deletions(-)
 delete mode 100644 package/xenomai/xenomai-fix-lfs-issue.patch
 create mode 100644 package/xenomai/xenomai-thumb-fix.patch
package/xenomai/xenomai-fix-lfs-issue.patch deleted +0 -72
deleted file mode 100644
index 157c8e2..0000000
@@ -1,72 +0,0 @@
-From: Gilles Chanteperdrix <[email protected]>
-Date: Sat, 5 Nov 2011 20:59:01 +0000 (+0100)
-Subject: posix: fix compilation for LFS
-X-Git-Url: http://git.xenomai.org/?p=xenomai-2.6.git;a=commitdiff_plain;h=06ae5c5e47fbfd9d8dbbe6fcf1a1db0c14bad9de;hp=8f6feff876029244dabc1257cdf13209fbd64fb5
-
-posix: fix compilation for LFS
----
-
-diff --git a/include/posix/sys/mman.h b/include/posix/sys/mman.h
-index 455e565..a304755 100644
---- a/include/posix/sys/mman.h
-+++ b/include/posix/sys/mman.h
-@@ -63,17 +63,16 @@ int __real_shm_open(const char *name, int oflag, mode_t mode);
- 
- int __real_shm_unlink(const char *name);
- 
--#if !defined(_FILE_OFFSET_BITS) || _FILE_OFFSET_BITS != 64
- void *__real_mmap(void *addr,
- 		  size_t len,
- 		  int prot,
- 		  int flags,
- 		  int fildes,
- 		  long off);
--#else
--#define __real_mmap __real_mmap64
--#endif
--#ifdef _LARGEFILE64_SOURCE
-+
-+#if __WORDSIZE == 32
-+#if defined(_LARGEFILE64_SOURCE) \
-+	|| defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
- void *__real_mmap64(void *addr,
- 		    size_t len,
- 		    int prot,
-@@ -82,6 +81,11 @@ void *__real_mmap64(void *addr,
- 		    long long off);
- #endif
- 
-+#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
-+#define __real_mmap __real_mmap64
-+#endif
-+#endif
-+
- int __real_munmap(void *addr, size_t len);
- 
- #ifdef __cplusplus
-diff --git a/include/posix/unistd.h b/include/posix/unistd.h
-index 49463a0..90cce86 100644
---- a/include/posix/unistd.h
-+++ b/include/posix/unistd.h
-@@ -54,13 +54,17 @@ int ftruncate(int fildes, off_t length);
- extern "C" {
- #endif
- 
--#if !defined(_FILE_OFFSET_BITS) || _FILE_OFFSET_BITS != 64
- int __real_ftruncate(int fildes, long length);
--#else
-+
-+#if __WORDSIZE == 32
-+#if defined(_LARGEFILE64_SOURCE) \
-+	|| defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
-+int __real_ftruncate64(int fildes, long long length);
-+#endif
-+
-+#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
- #define __real_ftruncate __real_ftruncate64
- #endif
--#ifdef _LARGEFILE64_SOURCE
--int __real_ftruncate64(int fildes, long long length);
- #endif
- 
- ssize_t __real_read(int fd, void *buf, size_t nbyte);
package/xenomai/xenomai-thumb-fix.patch new file +157 -0

157 lines not on this page · raw message

package/xenomai/xenomai.mk +1 -1
index 6dbdcea..e425b75 100644
@@ -7,7 +7,7 @@
 
 XENOMAI_VERSION = $(call qstrip,$(BR2_PACKAGE_XENOMAI_VERSION))
 ifeq ($(XENOMAI_VERSION),)
-XENOMAI_VERSION = 2.6.0
+XENOMAI_VERSION = 2.6.1
 endif
 
 XENOMAI_SITE = http://download.gna.org/xenomai/stable/
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 xenomai: bump to 2.6.1

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Thomas> The largefile patch is no longer necessary, it has been merged Thomas> upstream. However, in order to make the build work properly with Thomas> Thumb2 toolchains (such as Linaro toolchains), an additional fix is Thomas> needed. This fix is already upstream and will be part of upcoming Thomas> Xenomai releases.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard