All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH v3 1/2] gflags: New recipe
@ 2016-08-11 13:07 Ricardo Ribalda Delgado
  2016-08-11 13:07 ` [meta-oe][PATCH v3 2/2] glog: Update to version 0.3.4 Ricardo Ribalda Delgado
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ricardo Ribalda Delgado @ 2016-08-11 13:07 UTC (permalink / raw)
  To: openembedded-devel

C++ library that implements commandline flags processing. It includes
built-in support for standard types such as string and the ability to
define flags in the source file in which they are used.

Used optionally by glog

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
 meta-oe/recipes-support/gflags/gflags_2.1.2.bb | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-support/gflags/gflags_2.1.2.bb

diff --git a/meta-oe/recipes-support/gflags/gflags_2.1.2.bb b/meta-oe/recipes-support/gflags/gflags_2.1.2.bb
new file mode 100644
index 000000000000..30fd5f85e253
--- /dev/null
+++ b/meta-oe/recipes-support/gflags/gflags_2.1.2.bb
@@ -0,0 +1,19 @@
+DESCRIPTION = "The gflags package contains a C++ library that implements commandline flags processing. It includes built-in support for standard types such as string and the ability to define flags in the source file in which they are used"
+HOMEPAGE = "https://github.com/gflags/gflags"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=c80d1a3b623f72bb85a4c75b556551df"
+
+SRCREV = "1a02f2851ee3d48d32d2c8f4d8f390a0bc25565c"
+SRC_URI = "git://github.com/gflags/gflags.git;branch=release"
+
+S = "${WORKDIR}/git/"
+
+inherit cmake
+
+EXTRA_OECMAKE="-DBUILD_SHARED_LIBS=ON"
+
+FILES_${PN}-dev += "${libdir}/cmake"
+
+PACKAGES =+ "${PN}-bash-completion"
+FILES_${PN}-bash-completion += "${bindir}/gflags_completions.sh"
+RDEPENDS_${PN}-bash-completion = "bash-completion"
-- 
2.8.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [meta-oe][PATCH v3 2/2] glog: Update to version 0.3.4
  2016-08-11 13:07 [meta-oe][PATCH v3 1/2] gflags: New recipe Ricardo Ribalda Delgado
@ 2016-08-11 13:07 ` Ricardo Ribalda Delgado
  2016-08-11 13:33 ` [meta-oe][PATCH v3 1/2] gflags: New recipe Jack Mitchell
  2016-08-12  5:36 ` Khem Raj
  2 siblings, 0 replies; 8+ messages in thread
From: Ricardo Ribalda Delgado @ 2016-08-11 13:07 UTC (permalink / raw)
  To: openembedded-devel

-The repository has been moved to github.
-There is a new release 0.3.4
-Add a user configurable dependency on gflag
-Merge .inc file on the recipe

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
 ...configure.ac-Allow-user-to-disable-gflags.patch | 35 ++++++++++++++++++++++
 meta-oe/recipes-support/glog/glog_0.3.3.bb         |  6 ----
 .../glog/{glog.inc => glog_0.3.4.bb}               | 15 ++++++++--
 3 files changed, 47 insertions(+), 9 deletions(-)
 create mode 100644 meta-oe/recipes-support/glog/glog/0001-configure.ac-Allow-user-to-disable-gflags.patch
 delete mode 100644 meta-oe/recipes-support/glog/glog_0.3.3.bb
 rename meta-oe/recipes-support/glog/{glog.inc => glog_0.3.4.bb} (49%)

diff --git a/meta-oe/recipes-support/glog/glog/0001-configure.ac-Allow-user-to-disable-gflags.patch b/meta-oe/recipes-support/glog/glog/0001-configure.ac-Allow-user-to-disable-gflags.patch
new file mode 100644
index 000000000000..596281ff6842
--- /dev/null
+++ b/meta-oe/recipes-support/glog/glog/0001-configure.ac-Allow-user-to-disable-gflags.patch
@@ -0,0 +1,35 @@
+From 0fabde0515e180c53961c27346dd7a79cffa4c1f Mon Sep 17 00:00:00 2001
+From: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
+Date: Thu, 11 Aug 2016 11:49:36 +0200
+Subject: [PATCH] configure.ac: Allow user to disable gflags
+
+Under some circumstances like cross-compilation, the user might not want
+to enable support for gflags.
+
+This patch allows support for --without-gflags
+
+Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
+---
+ configure.ac | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 7b4d21e7ae8a..eba5e5cda1ea 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -136,7 +136,11 @@ AC_ARG_WITH(gflags, AS_HELP_STRING[--with-gflags=GFLAGS_DIR],
+   CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
+   LIBS="$LIBS $GFLAGS_LIBS"
+ )
+-AC_CHECK_LIB(gflags, main, ac_cv_have_libgflags=1, ac_cv_have_libgflags=0)
++if test x"$with_gflags" = x"no"; then
++  ac_cv_have_libgflags=0
++else
++  AC_CHECK_LIB(gflags, main, ac_cv_have_libgflags=1, ac_cv_have_libgflags=0)
++fi
+ if test x"$ac_cv_have_libgflags" = x"1"; then
+   AC_DEFINE(HAVE_LIB_GFLAGS, 1, [define if you have google gflags library])
+   if test x"$GFLAGS_LIBS" = x""; then
+-- 
+2.8.1
+
diff --git a/meta-oe/recipes-support/glog/glog_0.3.3.bb b/meta-oe/recipes-support/glog/glog_0.3.3.bb
deleted file mode 100644
index de3f0765dec9..000000000000
--- a/meta-oe/recipes-support/glog/glog_0.3.3.bb
+++ /dev/null
@@ -1,6 +0,0 @@
-require glog.inc
-
-SRC_URI = "http://google-glog.googlecode.com/files/glog-${PV}.tar.gz"
-
-SRC_URI[md5sum] = "a6fd2c22f8996846e34c763422717c18"
-SRC_URI[sha256sum] = "fbf90c2285ba0561db7a40f8a4eefb9aa963e7d399bd450363e959929fe849d0"
diff --git a/meta-oe/recipes-support/glog/glog.inc b/meta-oe/recipes-support/glog/glog_0.3.4.bb
similarity index 49%
rename from meta-oe/recipes-support/glog/glog.inc
rename to meta-oe/recipes-support/glog/glog_0.3.4.bb
index 8a1fb4250bbb..27beef5f9a45 100644
--- a/meta-oe/recipes-support/glog/glog.inc
+++ b/meta-oe/recipes-support/glog/glog_0.3.4.bb
@@ -1,11 +1,20 @@
 DESCRIPTION = "The glog library implements application-level logging. This \
 library provides logging APIs based on C++-style streams and various helper \
 macros."
-HOMEPAGE = "https://code.google.com/p/google-glog/"
-
+HOMEPAGE = "https://github.com/google/glog"
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://COPYING;md5=dc9db360e0bbd4e46672f3fd91dd6c4b"
-
 DEPENDS = "libunwind"
 
+SRCREV = "d8cb47f77d1c31779f3ff890e1a5748483778d6a"
+SRC_URI = " \
+    git://github.com/google/glog.git \
+    file://0001-configure.ac-Allow-user-to-disable-gflags.patch \
+"
+
+S = "${WORKDIR}/git"
+
 inherit autotools pkgconfig
+
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[gflags] = ",--without-gflags,gflags,"
-- 
2.8.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [meta-oe][PATCH v3 1/2] gflags: New recipe
  2016-08-11 13:07 [meta-oe][PATCH v3 1/2] gflags: New recipe Ricardo Ribalda Delgado
  2016-08-11 13:07 ` [meta-oe][PATCH v3 2/2] glog: Update to version 0.3.4 Ricardo Ribalda Delgado
@ 2016-08-11 13:33 ` Jack Mitchell
  2016-08-12  5:36 ` Khem Raj
  2 siblings, 0 replies; 8+ messages in thread
From: Jack Mitchell @ 2016-08-11 13:33 UTC (permalink / raw)
  To: openembedded-devel

On 11/08/16 14:07, Ricardo Ribalda Delgado wrote:
> C++ library that implements commandline flags processing. It includes
> built-in support for standard types such as string and the ability to
> define flags in the source file in which they are used.
>
> Used optionally by glog
>
> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
> ---
>   meta-oe/recipes-support/gflags/gflags_2.1.2.bb | 19 +++++++++++++++++++
>   1 file changed, 19 insertions(+)
>   create mode 100644 meta-oe/recipes-support/gflags/gflags_2.1.2.bb
>
> diff --git a/meta-oe/recipes-support/gflags/gflags_2.1.2.bb b/meta-oe/recipes-support/gflags/gflags_2.1.2.bb
> new file mode 100644
> index 000000000000..30fd5f85e253
> --- /dev/null
> +++ b/meta-oe/recipes-support/gflags/gflags_2.1.2.bb
> @@ -0,0 +1,19 @@
> +DESCRIPTION = "The gflags package contains a C++ library that implements commandline flags processing. It includes built-in support for standard types such as string and the ability to define flags in the source file in which they are used"
> +HOMEPAGE = "https://github.com/gflags/gflags"
> +LICENSE = "BSD"
> +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=c80d1a3b623f72bb85a4c75b556551df"
> +
> +SRCREV = "1a02f2851ee3d48d32d2c8f4d8f390a0bc25565c"
> +SRC_URI = "git://github.com/gflags/gflags.git;branch=release"
> +
> +S = "${WORKDIR}/git/"
> +
> +inherit cmake
> +
> +EXTRA_OECMAKE="-DBUILD_SHARED_LIBS=ON"
> +
> +FILES_${PN}-dev += "${libdir}/cmake"
> +
> +PACKAGES =+ "${PN}-bash-completion"
> +FILES_${PN}-bash-completion += "${bindir}/gflags_completions.sh"
> +RDEPENDS_${PN}-bash-completion = "bash-completion"

Looks good to me.

Acked-by: Jack Mitchell <jack@embed.me.uk>




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [meta-oe][PATCH v3 1/2] gflags: New recipe
  2016-08-11 13:07 [meta-oe][PATCH v3 1/2] gflags: New recipe Ricardo Ribalda Delgado
  2016-08-11 13:07 ` [meta-oe][PATCH v3 2/2] glog: Update to version 0.3.4 Ricardo Ribalda Delgado
  2016-08-11 13:33 ` [meta-oe][PATCH v3 1/2] gflags: New recipe Jack Mitchell
@ 2016-08-12  5:36 ` Khem Raj
  2016-08-12  6:37   ` Ricardo Ribalda Delgado
  2 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2016-08-12  5:36 UTC (permalink / raw)
  To: OpenEmbedded Devel List

[-- Attachment #1: Type: text/plain, Size: 1952 bytes --]


> On Aug 11, 2016, at 6:07 AM, Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> wrote:
> 
> C++ library that implements commandline flags processing. It includes
> built-in support for standard types such as string and the ability to
> define flags in the source file in which they are used.
> 
> Used optionally by glog
> 
> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
> ---
> meta-oe/recipes-support/gflags/gflags_2.1.2.bb | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
> create mode 100644 meta-oe/recipes-support/gflags/gflags_2.1.2.bb
> 
> diff --git a/meta-oe/recipes-support/gflags/gflags_2.1.2.bb b/meta-oe/recipes-support/gflags/gflags_2.1.2.bb
> new file mode 100644
> index 000000000000..30fd5f85e253
> --- /dev/null
> +++ b/meta-oe/recipes-support/gflags/gflags_2.1.2.bb
> @@ -0,0 +1,19 @@
> +DESCRIPTION = "The gflags package contains a C++ library that implements commandline flags processing. It includes built-in support for standard types such as string and the ability to define flags in the source file in which they are used"
> +HOMEPAGE = "https://github.com/gflags/gflags"
> +LICENSE = “BSD"

which Clause ?

> +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=c80d1a3b623f72bb85a4c75b556551df"
> +
> +SRCREV = "1a02f2851ee3d48d32d2c8f4d8f390a0bc25565c"
> +SRC_URI = "git://github.com/gflags/gflags.git;branch=release"
> +
> +S = "${WORKDIR}/git/"
> +
> +inherit cmake
> +
> +EXTRA_OECMAKE="-DBUILD_SHARED_LIBS=ON"
> +
> +FILES_${PN}-dev += "${libdir}/cmake"
> +
> +PACKAGES =+ "${PN}-bash-completion"
> +FILES_${PN}-bash-completion += "${bindir}/gflags_completions.sh"
> +RDEPENDS_${PN}-bash-completion = "bash-completion"
> --
> 2.8.1
> 
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [meta-oe][PATCH v3 1/2] gflags: New recipe
  2016-08-12  5:36 ` Khem Raj
@ 2016-08-12  6:37   ` Ricardo Ribalda Delgado
  2016-08-12  7:26     ` Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: Ricardo Ribalda Delgado @ 2016-08-12  6:37 UTC (permalink / raw)
  To: openembeded-devel

Hi Khem

On Fri, Aug 12, 2016 at 7:36 AM, Khem Raj <raj.khem@gmail.com> wrote:

>> +DESCRIPTION = "The gflags package contains a C++ library that implements commandline flags processing. It includes built-in support for standard types such as string and the ability to define flags in the source file in which they are used"
>> +HOMEPAGE = "https://github.com/gflags/gflags"
>> +LICENSE = “BSD"
>
> which Clause ?

I have no idea,
I has the same License file as glog:

https://github.com/gflags/gflags/blob/master/COPYING.txt
https://github.com/google/glog/blob/master/COPYING

That is why I choose BSD.

Regards!


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [meta-oe][PATCH v3 1/2] gflags: New recipe
  2016-08-12  6:37   ` Ricardo Ribalda Delgado
@ 2016-08-12  7:26     ` Khem Raj
  2016-08-12  8:06       ` Ricardo Ribalda Delgado
  0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2016-08-12  7:26 UTC (permalink / raw)
  To: openembeded-devel

On Thu, Aug 11, 2016 at 11:37 PM, Ricardo Ribalda Delgado
<ricardo.ribalda@gmail.com> wrote:
> Hi Khem
>
> On Fri, Aug 12, 2016 at 7:36 AM, Khem Raj <raj.khem@gmail.com> wrote:
>
>>> +DESCRIPTION = "The gflags package contains a C++ library that implements commandline flags processing. It includes built-in support for standard types such as string and the ability to define flags in the source file in which they are used"
>>> +HOMEPAGE = "https://github.com/gflags/gflags"
>>> +LICENSE = “BSD"
>>
>> which Clause ?
>
> I have no idea,
> I has the same License file as glog:
>
> https://github.com/gflags/gflags/blob/master/COPYING.txt
> https://github.com/google/glog/blob/master/COPYING
>
> That is why I choose BSD.

So it seems its BSD-3-Clause

>
> Regards!
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [meta-oe][PATCH v3 1/2] gflags: New recipe
  2016-08-12  7:26     ` Khem Raj
@ 2016-08-12  8:06       ` Ricardo Ribalda Delgado
  2016-08-12  8:56         ` Martin Jansa
  0 siblings, 1 reply; 8+ messages in thread
From: Ricardo Ribalda Delgado @ 2016-08-12  8:06 UTC (permalink / raw)
  To: openembeded-devel

Hi Kehm

On Fri, Aug 12, 2016 at 9:26 AM, Khem Raj <raj.khem@gmail.com> wrote:

> So it seems its BSD-3-Clause
>

Shall I produce a patch for glog and gflags?


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [meta-oe][PATCH v3 1/2] gflags: New recipe
  2016-08-12  8:06       ` Ricardo Ribalda Delgado
@ 2016-08-12  8:56         ` Martin Jansa
  0 siblings, 0 replies; 8+ messages in thread
From: Martin Jansa @ 2016-08-12  8:56 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

On Fri, Aug 12, 2016 at 10:06:44AM +0200, Ricardo Ribalda Delgado wrote:
> Hi Kehm
> 
> On Fri, Aug 12, 2016 at 9:26 AM, Khem Raj <raj.khem@gmail.com> wrote:
> 
> > So it seems its BSD-3-Clause
> >
> 
> Shall I produce a patch for glog and gflags?

I'll update it in master-next, you don't need to resend.

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

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-08-12  8:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-11 13:07 [meta-oe][PATCH v3 1/2] gflags: New recipe Ricardo Ribalda Delgado
2016-08-11 13:07 ` [meta-oe][PATCH v3 2/2] glog: Update to version 0.3.4 Ricardo Ribalda Delgado
2016-08-11 13:33 ` [meta-oe][PATCH v3 1/2] gflags: New recipe Jack Mitchell
2016-08-12  5:36 ` Khem Raj
2016-08-12  6:37   ` Ricardo Ribalda Delgado
2016-08-12  7:26     ` Khem Raj
2016-08-12  8:06       ` Ricardo Ribalda Delgado
2016-08-12  8:56         ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.