[oe] [meta-oe][PATCH] leveldb: Upgrade 1.20 -> 1.22

2019-11-23 Thread Alex Kiernan
Upstream has moved to cmake, so drop the build patches which are no
longer relevant. Add run-ptest and PACKAGECONFIG support.

Signed-off-by: Alex Kiernan 
---

 .../0001-Makefile-Fix-parallel-build.patch| 34 ---
 ...detect_platform-Check-for-__SSE4_2__.patch | 37 
 ...0002-makefile-build-SHARED_MEMENVLIB.patch | 43 ---
 meta-oe/recipes-dbs/leveldb/leveldb/run-ptest | 10 +
 meta-oe/recipes-dbs/leveldb/leveldb_1.22.bb   | 33 ++
 meta-oe/recipes-dbs/leveldb/leveldb_git.bb| 41 --
 6 files changed, 43 insertions(+), 155 deletions(-)
 delete mode 100644 
meta-oe/recipes-dbs/leveldb/leveldb/0001-Makefile-Fix-parallel-build.patch
 delete mode 100644 
meta-oe/recipes-dbs/leveldb/leveldb/0001-build_detect_platform-Check-for-__SSE4_2__.patch
 delete mode 100644 
meta-oe/recipes-dbs/leveldb/leveldb/0002-makefile-build-SHARED_MEMENVLIB.patch
 create mode 100644 meta-oe/recipes-dbs/leveldb/leveldb/run-ptest
 create mode 100644 meta-oe/recipes-dbs/leveldb/leveldb_1.22.bb
 delete mode 100644 meta-oe/recipes-dbs/leveldb/leveldb_git.bb

diff --git 
a/meta-oe/recipes-dbs/leveldb/leveldb/0001-Makefile-Fix-parallel-build.patch 
b/meta-oe/recipes-dbs/leveldb/leveldb/0001-Makefile-Fix-parallel-build.patch
deleted file mode 100644
index 3135d4d5acbe..
--- a/meta-oe/recipes-dbs/leveldb/leveldb/0001-Makefile-Fix-parallel-build.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From c85978e77725ef233543370d24e23f853f449170 Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Thu, 21 Sep 2017 17:47:02 -0700
-Subject: [PATCH] Makefile: Fix parallel build
-
-Sometimes mkdir $(SHARED_OUTDIR)/db races with compiler which is
-creating .o file in the same directory $(SHARED_OUTDIR)/db/db_bench.o
-
-Fixes error like
-
-| mkdir out-static
-| mkdir out-shared/db
-| Assembler messages:
-| Fatal error: can't create out-shared/db/db_bench.o: No such file or directory
-
-Signed-off-by: Khem Raj 

-Upstream-Status: Submitted
-
- Makefile | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index f7cc7d7..51a0bcd 100644
 a/Makefile
-+++ b/Makefile
-@@ -386,6 +386,7 @@ $(STATIC_OUTDIR)/write_batch_test:db/write_batch_test.cc 
$(STATIC_LIBOBJECTS) $(
- $(STATIC_OUTDIR)/memenv_test:$(STATIC_OUTDIR)/helpers/memenv/memenv_test.o 
$(STATIC_OUTDIR)/libmemenv.a $(STATIC_OUTDIR)/libleveldb.a $(TESTHARNESS)
-   $(XCRUN) $(CXX) $(LDFLAGS) 
$(STATIC_OUTDIR)/helpers/memenv/memenv_test.o $(STATIC_OUTDIR)/libmemenv.a 
$(STATIC_OUTDIR)/libleveldb.a $(TESTHARNESS) -o $@ $(LIBS)
- 
-+$(SHARED_OUTDIR)/db/db_bench.o: | $(SHARED_OUTDIR)/db
- $(SHARED_OUTDIR)/db_bench:$(SHARED_OUTDIR)/db/db_bench.o $(SHARED_LIBS) 
$(TESTUTIL)
-   $(XCRUN) $(CXX) $(LDFLAGS) $(CXXFLAGS) $(PLATFORM_SHARED_CFLAGS) 
$(SHARED_OUTDIR)/db/db_bench.o $(TESTUTIL) $(SHARED_OUTDIR)/$(SHARED_LIB3) -o 
$@ $(LIBS)
- 
diff --git 
a/meta-oe/recipes-dbs/leveldb/leveldb/0001-build_detect_platform-Check-for-__SSE4_2__.patch
 
b/meta-oe/recipes-dbs/leveldb/leveldb/0001-build_detect_platform-Check-for-__SSE4_2__.patch
deleted file mode 100644
index 8f93cb325b6b..
--- 
a/meta-oe/recipes-dbs/leveldb/leveldb/0001-build_detect_platform-Check-for-__SSE4_2__.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 5fd0918df2bb30e8f3edb2ee895d178edbf26f40 Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Mon, 4 Sep 2017 22:38:03 -0700
-Subject: [PATCH 1/2] build_detect_platform: Check for __SSE4_2__
-
-just using -msse4.2 is not enough, especially with clang
-where it may accept -msse4.2 even during cross compiling
-for say arm, however the difference is that builtin defines
-wont be defined.
-
-Signed-off-by: Khem Raj 

-Upstream-Status: Pending
-
- build_detect_platform | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-Index: git/build_detect_platform
-===
 git.orig/build_detect_platform
-+++ git/build_detect_platform
-@@ -224,13 +224,13 @@ EOF
- rm -f $CXXOUTPUT 2>/dev/null
- 
- # Test if gcc SSE 4.2 is supported
--$CXX $CXXFLAGS -x c++ - -o $CXXOUTPUT -msse4.2 2>/dev/null  &1
- if [ "$?" = 0 ]; then
- PLATFORM_SSEFLAGS="-msse4.2"
- fi
--
- rm -f $CXXOUTPUT 2>/dev/null
- fi
- 
diff --git 
a/meta-oe/recipes-dbs/leveldb/leveldb/0002-makefile-build-SHARED_MEMENVLIB.patch
 
b/meta-oe/recipes-dbs/leveldb/leveldb/0002-makefile-build-SHARED_MEMENVLIB.patch
deleted file mode 100644
index fc708b23ad00..
--- 
a/meta-oe/recipes-dbs/leveldb/leveldb/0002-makefile-build-SHARED_MEMENVLIB.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 1ed8cec1fcf666904bb3ebd29fc85e235b72d122 Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Mon, 4 Sep 2017 22:40:49 -0700
-Subject: [PATCH 2/2] makefile: build SHARED_MEMENVLIB
-
-Signed-off-by: Khem Raj 

-Upstream-Status: Pending
-
- Makefile | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff 

[oe] [meta-oe][thud][PATCH 1/2] gitpkgv.bbclass: Use --git-dir option

2019-11-23 Thread Niko Mauno
From: "niko.ma...@vaisala.com" 

Avoid redundant shell working directory change by resorting to
'--git-dir' option for git command instead.

Signed-off-by: Niko Mauno 
Signed-off-by: Khem Raj 
---
 meta-oe/classes/gitpkgv.bbclass | 11 ---
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/meta-oe/classes/gitpkgv.bbclass b/meta-oe/classes/gitpkgv.bbclass
index 2d9680a35..22609f584 100644
--- a/meta-oe/classes/gitpkgv.bbclass
+++ b/meta-oe/classes/gitpkgv.bbclass
@@ -87,10 +87,8 @@ def get_git_pkgv(d, use_tags):
 
 if not os.path.exists(rev_file) or 
os.path.getsize(rev_file)==0:
 commits = bb.fetch2.runfetchcmd(
-"cd %(repodir)s && "
-"git rev-list %(rev)s -- 2> /dev/null "
-"| wc -l" % vars,
-d, quiet=True).strip().lstrip('0')
+"git --git-dir=%(repodir)s rev-list %(rev)s -- 
2>/dev/null | wc -l"
+% vars, d, quiet=True).strip().lstrip('0')
 
 if commits != "":
 oe.path.remove(rev_file, recurse=False)
@@ -105,9 +103,8 @@ def get_git_pkgv(d, use_tags):
 if use_tags:
 try:
 output = bb.fetch2.runfetchcmd(
-"cd %(repodir)s && "
-"git describe %(rev)s 2>/dev/null" % vars,
-d, quiet=True).strip()
+"git --git-dir=%(repodir)s describe %(rev)s 
2>/dev/null"
+% vars, d, quiet=True).strip()
 ver = gitpkgv_drop_tag_prefix(output)
 except Exception:
 ver = "0.0-%s-g%s" % (commits, vars['rev'][:7])
-- 
2.20.1

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


[oe] [meta-oe][warrior][PATCH 2/2] gitpkgv.bbclass: Support also lightweight tags

2019-11-23 Thread Niko Mauno
From: "niko.ma...@vaisala.com" 

When checking for commit specific tags during GITPKGVTAG resolution, use
additional '--tags' and '--exact-match' options for 'git describe'
command.

This changes the behaviour so that in case an annotated tag does not
exist for the particular commit, then the latest lightweight
(non-annotated) tag is used instead, in case that commit has at least
one such tag.

Signed-off-by: Niko Mauno 
Signed-off-by: Khem Raj 
---
 meta-oe/classes/gitpkgv.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta-oe/classes/gitpkgv.bbclass b/meta-oe/classes/gitpkgv.bbclass
index 22609f584..ab591bd45 100644
--- a/meta-oe/classes/gitpkgv.bbclass
+++ b/meta-oe/classes/gitpkgv.bbclass
@@ -7,8 +7,8 @@
 #   NN equals the total number of revs up to SRCREV
 #   GITHASH is SRCREV's (full) hash
 #
-# - GITPKGVTAG which is the output of 'git describe' allowing for
-#   automatic versioning
+# - GITPKGVTAG which is the output of 'git describe --tags --exact-match'
+#   allowing for automatic versioning
 #
 # gitpkgv.bbclass assumes the git repository has been cloned, and
 # contains SRCREV. So ${GITPKGV} and ${GITPKGVTAG} should never be
@@ -103,7 +103,7 @@ def get_git_pkgv(d, use_tags):
 if use_tags:
 try:
 output = bb.fetch2.runfetchcmd(
-"git --git-dir=%(repodir)s describe %(rev)s 
2>/dev/null"
+"git --git-dir=%(repodir)s describe %(rev)s --tags 
--exact-match 2>/dev/null"
 % vars, d, quiet=True).strip()
 ver = gitpkgv_drop_tag_prefix(output)
 except Exception:
-- 
2.20.1

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


[oe] [meta-oe][thud][PATCH 2/2] gitpkgv.bbclass: Support also lightweight tags

2019-11-23 Thread Niko Mauno
From: "niko.ma...@vaisala.com" 

When checking for commit specific tags during GITPKGVTAG resolution, use
additional '--tags' and '--exact-match' options for 'git describe'
command.

This changes the behaviour so that in case an annotated tag does not
exist for the particular commit, then the latest lightweight
(non-annotated) tag is used instead, in case that commit has at least
one such tag.

Signed-off-by: Niko Mauno 
Signed-off-by: Khem Raj 
---
 meta-oe/classes/gitpkgv.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta-oe/classes/gitpkgv.bbclass b/meta-oe/classes/gitpkgv.bbclass
index 22609f584..ab591bd45 100644
--- a/meta-oe/classes/gitpkgv.bbclass
+++ b/meta-oe/classes/gitpkgv.bbclass
@@ -7,8 +7,8 @@
 #   NN equals the total number of revs up to SRCREV
 #   GITHASH is SRCREV's (full) hash
 #
-# - GITPKGVTAG which is the output of 'git describe' allowing for
-#   automatic versioning
+# - GITPKGVTAG which is the output of 'git describe --tags --exact-match'
+#   allowing for automatic versioning
 #
 # gitpkgv.bbclass assumes the git repository has been cloned, and
 # contains SRCREV. So ${GITPKGV} and ${GITPKGVTAG} should never be
@@ -103,7 +103,7 @@ def get_git_pkgv(d, use_tags):
 if use_tags:
 try:
 output = bb.fetch2.runfetchcmd(
-"git --git-dir=%(repodir)s describe %(rev)s 
2>/dev/null"
+"git --git-dir=%(repodir)s describe %(rev)s --tags 
--exact-match 2>/dev/null"
 % vars, d, quiet=True).strip()
 ver = gitpkgv_drop_tag_prefix(output)
 except Exception:
-- 
2.20.1

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


[oe] [meta-oe][warrior][PATCH 1/2] gitpkgv.bbclass: Use --git-dir option

2019-11-23 Thread Niko Mauno
From: "niko.ma...@vaisala.com" 

Avoid redundant shell working directory change by resorting to
'--git-dir' option for git command instead.

Signed-off-by: Niko Mauno 
Signed-off-by: Khem Raj 
---
 meta-oe/classes/gitpkgv.bbclass | 11 ---
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/meta-oe/classes/gitpkgv.bbclass b/meta-oe/classes/gitpkgv.bbclass
index 2d9680a35..22609f584 100644
--- a/meta-oe/classes/gitpkgv.bbclass
+++ b/meta-oe/classes/gitpkgv.bbclass
@@ -87,10 +87,8 @@ def get_git_pkgv(d, use_tags):
 
 if not os.path.exists(rev_file) or 
os.path.getsize(rev_file)==0:
 commits = bb.fetch2.runfetchcmd(
-"cd %(repodir)s && "
-"git rev-list %(rev)s -- 2> /dev/null "
-"| wc -l" % vars,
-d, quiet=True).strip().lstrip('0')
+"git --git-dir=%(repodir)s rev-list %(rev)s -- 
2>/dev/null | wc -l"
+% vars, d, quiet=True).strip().lstrip('0')
 
 if commits != "":
 oe.path.remove(rev_file, recurse=False)
@@ -105,9 +103,8 @@ def get_git_pkgv(d, use_tags):
 if use_tags:
 try:
 output = bb.fetch2.runfetchcmd(
-"cd %(repodir)s && "
-"git describe %(rev)s 2>/dev/null" % vars,
-d, quiet=True).strip()
+"git --git-dir=%(repodir)s describe %(rev)s 
2>/dev/null"
+% vars, d, quiet=True).strip()
 ver = gitpkgv_drop_tag_prefix(output)
 except Exception:
 ver = "0.0-%s-g%s" % (commits, vars['rev'][:7])
-- 
2.20.1

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


[oe] [meta-oe][zeus][PATCH 2/2] gitpkgv.bbclass: Support also lightweight tags

2019-11-23 Thread Niko Mauno
From: "niko.ma...@vaisala.com" 

When checking for commit specific tags during GITPKGVTAG resolution, use
additional '--tags' and '--exact-match' options for 'git describe'
command.

This changes the behaviour so that in case an annotated tag does not
exist for the particular commit, then the latest lightweight
(non-annotated) tag is used instead, in case that commit has at least
one such tag.

Signed-off-by: Niko Mauno 
Signed-off-by: Khem Raj 
---
 meta-oe/classes/gitpkgv.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta-oe/classes/gitpkgv.bbclass b/meta-oe/classes/gitpkgv.bbclass
index 22609f584..ab591bd45 100644
--- a/meta-oe/classes/gitpkgv.bbclass
+++ b/meta-oe/classes/gitpkgv.bbclass
@@ -7,8 +7,8 @@
 #   NN equals the total number of revs up to SRCREV
 #   GITHASH is SRCREV's (full) hash
 #
-# - GITPKGVTAG which is the output of 'git describe' allowing for
-#   automatic versioning
+# - GITPKGVTAG which is the output of 'git describe --tags --exact-match'
+#   allowing for automatic versioning
 #
 # gitpkgv.bbclass assumes the git repository has been cloned, and
 # contains SRCREV. So ${GITPKGV} and ${GITPKGVTAG} should never be
@@ -103,7 +103,7 @@ def get_git_pkgv(d, use_tags):
 if use_tags:
 try:
 output = bb.fetch2.runfetchcmd(
-"git --git-dir=%(repodir)s describe %(rev)s 
2>/dev/null"
+"git --git-dir=%(repodir)s describe %(rev)s --tags 
--exact-match 2>/dev/null"
 % vars, d, quiet=True).strip()
 ver = gitpkgv_drop_tag_prefix(output)
 except Exception:
-- 
2.20.1

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


[oe] [meta-oe][zeus][PATCH 1/2] gitpkgv.bbclass: Use --git-dir option

2019-11-23 Thread Niko Mauno
From: "niko.ma...@vaisala.com" 

Avoid redundant shell working directory change by resorting to
'--git-dir' option for git command instead.

Signed-off-by: Niko Mauno 
Signed-off-by: Khem Raj 
---
 meta-oe/classes/gitpkgv.bbclass | 11 ---
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/meta-oe/classes/gitpkgv.bbclass b/meta-oe/classes/gitpkgv.bbclass
index 2d9680a35..22609f584 100644
--- a/meta-oe/classes/gitpkgv.bbclass
+++ b/meta-oe/classes/gitpkgv.bbclass
@@ -87,10 +87,8 @@ def get_git_pkgv(d, use_tags):
 
 if not os.path.exists(rev_file) or 
os.path.getsize(rev_file)==0:
 commits = bb.fetch2.runfetchcmd(
-"cd %(repodir)s && "
-"git rev-list %(rev)s -- 2> /dev/null "
-"| wc -l" % vars,
-d, quiet=True).strip().lstrip('0')
+"git --git-dir=%(repodir)s rev-list %(rev)s -- 
2>/dev/null | wc -l"
+% vars, d, quiet=True).strip().lstrip('0')
 
 if commits != "":
 oe.path.remove(rev_file, recurse=False)
@@ -105,9 +103,8 @@ def get_git_pkgv(d, use_tags):
 if use_tags:
 try:
 output = bb.fetch2.runfetchcmd(
-"cd %(repodir)s && "
-"git describe %(rev)s 2>/dev/null" % vars,
-d, quiet=True).strip()
+"git --git-dir=%(repodir)s describe %(rev)s 
2>/dev/null"
+% vars, d, quiet=True).strip()
 ver = gitpkgv_drop_tag_prefix(output)
 except Exception:
 ver = "0.0-%s-g%s" % (commits, vars['rev'][:7])
-- 
2.20.1

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


[oe] [meta-oe][PATCH] stalonetray: Add a simple stand-alone system tray

2019-11-23 Thread Leon Anavi
Stalonetray is a simple and convenient stand-alone freedesktop.org
and KDE system tray for X11 with minimal dependencies.

Signed-off-by: Leon Anavi 
---
 meta-oe/recipes-graphics/stalonetray/stalonetray_0.8.3.bb | 14 ++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/stalonetray/stalonetray_0.8.3.bb

diff --git a/meta-oe/recipes-graphics/stalonetray/stalonetray_0.8.3.bb 
b/meta-oe/recipes-graphics/stalonetray/stalonetray_0.8.3.bb
new file mode 100644
index 000..8851729
--- /dev/null
+++ b/meta-oe/recipes-graphics/stalonetray/stalonetray_0.8.3.bb
@@ -0,0 +1,14 @@
+SUMMARY = "Stand-alone system tray"
+DESCRIPTION = "Stalonetray is a stand-alone freedesktop.org and KDE system 
tray"
+SECTION = "x11/graphics"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+
+DEPENDS = "virtual/libx11"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2"
+
+SRC_URI[md5sum] = "ae95dbbacc2620e032acea8abab8c9ef"
+SRC_URI[sha256sum] = 
"36548a588b2d466913423245dda6ffb6313132cd0cec635a117d37b3dab5fd4c"
+
+inherit autotools
-- 
2.7.4

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