[oe-commits] org.oe.dev uicmoc-native 2.3.10: an attempt to fix build against recent kernel, bug #2564

polyonymous commit openembedded-commits at lists.openembedded.org
Tue Jul 3 23:29:28 UTC 2007


uicmoc-native 2.3.10: an attempt to fix build against recent kernel, bug #2564

Author: polyonymous at openembedded.org
Branch: org.openembedded.dev
Revision: 48173d5e9ba6b9c01006caf0faeedb090a20d0d1
ViewMTN: http://monotone.openembedded.org/revision.psp?id=48173d5e9ba6b9c01006caf0faeedb090a20d0d1
Files:
1
packages/uicmoc/uicmoc-native-2.3.10/kernel-asm-page.patch
packages/uicmoc/uicmoc-native_2.3.10.bb
Diffs:

#
# mt diff -r36a42fda325828e47281e94baf46aa4bf299198b -r48173d5e9ba6b9c01006caf0faeedb090a20d0d1
#
# 
# 
# add_file "packages/uicmoc/uicmoc-native-2.3.10/kernel-asm-page.patch"
#  content [80a6d114216133cf5b84be77d9090ced7721b591]
# 
# patch "packages/uicmoc/uicmoc-native_2.3.10.bb"
#  from [3eb23cf0c505c798552d20494b420631903c6ab1]
#    to [5f5ef578c72a6f1a4350fd30b2b73d049ce313c6]
# 
============================================================
--- packages/uicmoc/uicmoc-native-2.3.10/kernel-asm-page.patch	80a6d114216133cf5b84be77d9090ced7721b591
+++ packages/uicmoc/uicmoc-native-2.3.10/kernel-asm-page.patch	80a6d114216133cf5b84be77d9090ced7721b591
@@ -0,0 +1,20 @@
+diff --git a/src/kernel/qpixmapcache.cpp b/src/kernel/qpixmapcache.cpp
+index c2e7d9b..8d39585 100644
+--- a/src/kernel/qpixmapcache.cpp
++++ b/src/kernel/qpixmapcache.cpp
+@@ -123,9 +123,13 @@ void cleanup_pixmap_cache();
+ #ifdef THROW_AWAY_UNUSED_PAGES
+ # include <sys/mman.h> // madvise
+ # include <asm/page.h> // PAGE_SIZE,PAGE_MASK,PAGE_ALIGN
++# include <unistd.h>	// getpagesize()
++# if (!defined(PAGE_ALIGN)) && defined(PAGE_SIZE) && defined(PAGE_MASK)
++#  define PAGE_ALIGN(addr)	(((addr)+PAGE_SIZE-1)&PAGE_MASK)
++# endif
+ # ifndef PAGE_ALIGN
+-# define PAGE_ALIGN(addr)	(((addr)+PAGE_SIZE-1)&PAGE_MASK)
+-# endif // PAGE_ALIGN
++#  define PAGE_ALIGN(addr)      (((addr)+getpagesize()-1)&~(getpagesize()-1))
++# endif
+ #endif // THROW_AWAY_UNUSED_PAGES 
+ 
+ 
============================================================
--- packages/uicmoc/uicmoc-native_2.3.10.bb	3eb23cf0c505c798552d20494b420631903c6ab1
+++ packages/uicmoc/uicmoc-native_2.3.10.bb	5f5ef578c72a6f1a4350fd30b2b73d049ce313c6
@@ -1,16 +1,17 @@ LICENSE = "GPL QPL"
 DESCRIPTION = "User Interface Generator and Meta Object Compiler (moc) for Qt(E) 2.x"
 HOMEPAGE = "http://www.trolltech.com"
 SECTION = "devel"
 PRIORITY = "optional"
 LICENSE = "GPL QPL"
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "ftp://ftp.trolltech.com/pub/qt/source/qt-embedded-${PV}-free.tar.gz \
            file://fix-makefile.patch;patch=1 \
            file://gcc3_4.patch;patch=1" \
            file://gcc4.patch;patch=1 \
            file://gcc4_1.patch;patch=1 \
-           file://64bit-cleanup.patch;patch=1"
+           file://64bit-cleanup.patch;patch=1 \
+	   file://kernel-asm-page.patch;patch=1"
 S = "${WORKDIR}/qt-${PV}"
 
 inherit native qmake-base






More information about the Openembedded-commits mailing list