[oe] [meta-oe][PATCH v2 ] libhugetlbfs: add recipe

2013-09-22 Thread b40290
From: Chunrong Guo 

Signed-off-by: Chunrong Guo 
---
 ...fs-Remove-segment-based-alignment-restric.patch |  131 
 ...-run_tests.py-fix-typo-in-test-invocation.patch |   30 +
 .../files/Fix-cross-compiling-on-PPC.patch |   28 
 .../libhugetlbfs/files/aarch64-support.patch   |   88 +
 .../files/aarch64-unit-test-fixes.patch|   62 +
 .../files/add-PROT-NONE-to-the-mprotest-test.patch |   38 ++
 .../files/checks-if-mtab-is-a-symlink.patch|   30 +
 .../libhugetlbfs/files/cross-compile.patch |   83 
 ...x-lib64-can-not-be-shiped-in-64bit-target.patch |   64 ++
 .../libhugetlbfs/files/install64-fix.patch |   20 +++
 ...s-Fix-perl-lib-can-not-be-shiped-to-sub-p.patch |   31 +
 ...s-avoid-search-host-library-path-for-cros.patch |   99 +++
 ...ng-LIB32-and-LIB64-if-they-point-to-the-s.patch |   48 +++
 .../libhugetlbfs/libhugetlbfs_git.bb   |   58 +
 14 files changed, 810 insertions(+), 0 deletions(-)
 create mode 100644 
meta-oe/recipes-benchmark/libhugetlbfs/files/0003-libhugetlbfs-Remove-segment-based-alignment-restric.patch
 create mode 100644 
meta-oe/recipes-benchmark/libhugetlbfs/files/0004-tests-run_tests.py-fix-typo-in-test-invocation.patch
 create mode 100644 
meta-oe/recipes-benchmark/libhugetlbfs/files/Fix-cross-compiling-on-PPC.patch
 create mode 100644 
meta-oe/recipes-benchmark/libhugetlbfs/files/aarch64-support.patch
 create mode 100644 
meta-oe/recipes-benchmark/libhugetlbfs/files/aarch64-unit-test-fixes.patch
 create mode 100644 
meta-oe/recipes-benchmark/libhugetlbfs/files/add-PROT-NONE-to-the-mprotest-test.patch
 create mode 100644 
meta-oe/recipes-benchmark/libhugetlbfs/files/checks-if-mtab-is-a-symlink.patch
 create mode 100644 
meta-oe/recipes-benchmark/libhugetlbfs/files/cross-compile.patch
 create mode 100644 
meta-oe/recipes-benchmark/libhugetlbfs/files/fix-lib64-can-not-be-shiped-in-64bit-target.patch
 create mode 100644 
meta-oe/recipes-benchmark/libhugetlbfs/files/install64-fix.patch
 create mode 100644 
meta-oe/recipes-benchmark/libhugetlbfs/files/libhugetlbfs-Fix-perl-lib-can-not-be-shiped-to-sub-p.patch
 create mode 100644 
meta-oe/recipes-benchmark/libhugetlbfs/files/libhugetlbfs-avoid-search-host-library-path-for-cros.patch
 create mode 100644 
meta-oe/recipes-benchmark/libhugetlbfs/files/skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch
 create mode 100644 meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb

diff --git 
a/meta-oe/recipes-benchmark/libhugetlbfs/files/0003-libhugetlbfs-Remove-segment-based-alignment-restric.patch
 
b/meta-oe/recipes-benchmark/libhugetlbfs/files/0003-libhugetlbfs-Remove-segment-based-alignment-restric.patch
new file mode 100644
index 000..31f0516
--- /dev/null
+++ 
b/meta-oe/recipes-benchmark/libhugetlbfs/files/0003-libhugetlbfs-Remove-segment-based-alignment-restric.patch
@@ -0,0 +1,131 @@
+Upstream-Status: Accepted
+
+From eee53989d5b7393352d77451b66066768113072a Mon Sep 17 00:00:00 2001
+From: Becky Bruce 
+Date: Tue, 19 Apr 2011 14:13:18 -0500
+Subject: [PATCH 1/2] libhugetlbfs: Remove segment-based alignment restrictions
+
+The existing library code enforces classic PPC segment restrictons on the
+alignment and allocation of hugepages.  BookE Freescale processors
+don't have this restriction and allowing it to remain in place
+is overly restrictive on 32-bit processors.  Define PPC_NO_SEGMENTS to
+turn this off.
+
+Signed-off-by: Becky Bruce 
+---
+ Makefile   |2 +-
+ elflink.c  |7 ---
+ libhugetlbfs_internal.h|3 ++-
+ morecore.c |2 +-
+ tests/brk_near_huge.c  |2 +-
+ tests/truncate_above_4GB.c |6 --
+ 6 files changed, 13 insertions(+), 9 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index d781871..3160f83 100644
+--- a/Makefile
 b/Makefile
+@@ -29,7 +29,7 @@ INSTALL = install
+ LDFLAGS += -Wl,-z,noexecstack -ldl
+ CFLAGS ?= -O2 -g
+ CFLAGS += -Wall -fPIC
+-CPPFLAGS += -D__LIBHUGETLBFS__
++CPPFLAGS += -D__LIBHUGETLBFS__ -DPPC_NO_SEGMENTS
+ 
+ ARCH = $(shell uname -m | sed -e s/i.86/i386/)
+ 
+diff --git a/elflink.c b/elflink.c
+index c24bedc..432f3d7 100644
+--- a/elflink.c
 b/elflink.c
+@@ -552,7 +552,8 @@ bail2:
+   seg->extrasz = end_orig - start;
+ }
+ 
+-#if defined(__powerpc64__) || defined (__powerpc__)
++#if defined(__powerpc64__) || \
++  (defined(__powerpc__) && !defined(PPC_NO_SEGMENTS))
+ #define SLICE_LOW_TOP (0x1UL)
+ #define SLICE_LOW_SIZE(1UL << SLICE_LOW_SHIFT)
+ #define SLICE_HIGH_SIZE   (1UL << SLICE_HIGH_SHIFT)
+@@ -574,7 +575,7 @@ static unsigned long hugetlb_slice_start(unsigned long 
addr)
+   return SLICE_LOW_TOP;
+   else
+   return ALIGN_DOWN(addr, SLICE_HIGH_SIZE);
+-#elif defined(__powerpc__)
++#elif defined(__powerpc__) && !defined(PPC_NO_SEGMENTS)
+   ret

Re: [oe] [meta-oe][PATCH v2 ] libhugetlbfs: add recipe

2013-09-22 Thread Otavio Salvador
On Sun, Sep 22, 2013 at 6:22 AM,   wrote:
> From: Chunrong Guo 
>
> Signed-off-by: Chunrong Guo 

It seems some of patches has been applied upstream so it makes more
sense to use a newer snapshot and drop these patches.

Another thing which needs fix is to avoid dependency of -tests against
the -dev package. Did you look at it?

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9981-7854Mobile: +1 (347) 903-9750
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-qt5][dylan][PATCH] qtwebkit 5.0.2: fix QA issue (bad RPATH)

2013-09-22 Thread Trevor Woerner
Building qtwebkit would cause a QA issue (which, in my distro, would cause a
build error) such that QtWebPluginProcess and QtWebProcess would contain bad
RPATHs which pointed into the build location. This fix adds a patch to not
include the rpath.prf which leads to this problem.

Signed-off-by: Trevor Woerner 
---
 recipes-qt/qt5/qtwebkit-5.0.2/rpath.patch | 12 
 recipes-qt/qt5/qtwebkit_5.0.2.bb  |  3 +++
 2 files changed, 15 insertions(+)
 create mode 100644 recipes-qt/qt5/qtwebkit-5.0.2/rpath.patch

diff --git a/recipes-qt/qt5/qtwebkit-5.0.2/rpath.patch 
b/recipes-qt/qt5/qtwebkit-5.0.2/rpath.patch
new file mode 100644
index 000..f74a5cf
--- /dev/null
+++ b/recipes-qt/qt5/qtwebkit-5.0.2/rpath.patch
@@ -0,0 +1,12 @@
+diff -urN 
qtwebkit-opensource-src-5.0.2/Tools/qmake/mkspecs/features/unix/default_post.prf
 
qtwebkit-opensource-src-5.0.2__new/Tools/qmake/mkspecs/features/unix/default_post.prf
+--- 
qtwebkit-opensource-src-5.0.2/Tools/qmake/mkspecs/features/unix/default_post.prf
   2013-04-08 20:11:53.0 -0400
 
qtwebkit-opensource-src-5.0.2__new/Tools/qmake/mkspecs/features/unix/default_post.prf
  2013-09-22 22:37:51.096270035 -0400
+@@ -32,8 +32,6 @@
+ QMAKE_OBJECTIVE_CFLAGS += -Wno-c++11-extensions -Wno-c++0x-extensions
+ }
+ 
+-contains(TEMPLATE, app): CONFIG += rpath
+-
+ isEqual(QT_ARCH,i386):CONFIG(debug, debug|release) {
+   # Make ld not cache the symbol tables of input files in memory to avoid 
memory exhaustion during the linking phase.
+   config_gnuld: QMAKE_LFLAGS += -Wl,--no-keep-memory
diff --git a/recipes-qt/qt5/qtwebkit_5.0.2.bb b/recipes-qt/qt5/qtwebkit_5.0.2.bb
index 4d2f34d..1cad62b 100644
--- a/recipes-qt/qt5/qtwebkit_5.0.2.bb
+++ b/recipes-qt/qt5/qtwebkit_5.0.2.bb
@@ -2,6 +2,9 @@ require qt5-${PV}.inc
 require ${PN}.inc
 
 PR = "${INC_PR}.0"
+SRC_URI += "\
+   file://rpath.patch\
+   "
 
 SRC_URI[md5sum] = "85aad9f287910c21c8464d7d1ea010a9"
 SRC_URI[sha256sum] = 
"6ff4038f8db68be51661d1a6646f510b26f6ebbecbdeefb76cd8361f808768f6"
-- 
1.8.4.rc3.1.gc1ebd90

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel