All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-networking][PATCH 0/1]netcf: fix offline rebuilding failed
@ 2014-03-14  8:36 Hongxu Jia
  2014-03-14  8:36 ` [PATCH 1/1] netcf: " Hongxu Jia
  0 siblings, 1 reply; 3+ messages in thread
From: Hongxu Jia @ 2014-03-14  8:36 UTC (permalink / raw)
  To: openembedded-devel

Test Step:
1. bitbake netcf
2. disconnect network
3. bitbake netcf -ccleansstate && bitbake netcf

//Hongxu

The following changes since commit 3cb58d800c5131bd0519a676a45c26f47b69745f:

  fbgrab: fix installed but not shipped warnings (2014-03-11 14:58:51 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib hongxu/fix-netcf
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-netcf

Hongxu Jia (1):
  netcf: fix offline rebuilding failed

 .../recipes-support/netcf/gnulib_git.bb            | 35 ++++++++++++++++++++++
 meta-networking/recipes-support/netcf/netcf_git.bb |  5 ++--
 2 files changed, 38 insertions(+), 2 deletions(-)
 create mode 100644 meta-networking/recipes-support/netcf/gnulib_git.bb

-- 
1.8.1.2



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

* [PATCH 1/1] netcf: fix offline rebuilding failed
  2014-03-14  8:36 [meta-networking][PATCH 0/1]netcf: fix offline rebuilding failed Hongxu Jia
@ 2014-03-14  8:36 ` Hongxu Jia
  2014-03-14 14:30   ` Joe MacDonald
  0 siblings, 1 reply; 3+ messages in thread
From: Hongxu Jia @ 2014-03-14  8:36 UTC (permalink / raw)
  To: openembedded-devel

The netcf downloaded gnulib source to ${S} at the configure time,
while the network disconnected, if sstate cache was cleaned, the
netcf rebuilding failed.

Added a new recipe named 'gnulib' to download gnulib source to
${GITDIR} and populate it to the staging data dir.

So netcf could specify this local directory where gnulib sources
reside to save the bandwidth downloading.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 .../recipes-support/netcf/gnulib_git.bb            | 35 ++++++++++++++++++++++
 meta-networking/recipes-support/netcf/netcf_git.bb |  5 ++--
 2 files changed, 38 insertions(+), 2 deletions(-)
 create mode 100644 meta-networking/recipes-support/netcf/gnulib_git.bb

diff --git a/meta-networking/recipes-support/netcf/gnulib_git.bb b/meta-networking/recipes-support/netcf/gnulib_git.bb
new file mode 100644
index 0000000..730f5cd
--- /dev/null
+++ b/meta-networking/recipes-support/netcf/gnulib_git.bb
@@ -0,0 +1,35 @@
+SUMMARY = "The GNU portability library"
+DESCRIPTION = "A collection of software subroutines which are designed to \
+be usable on many operating systems. The goal of the project \
+is to make it easy for free software authors to make their \
+software run on many operating systems. Since source is designed \
+to be copied from gnulib, it is not a library per-se, as much \
+as a collection of portable idioms to be used in other projects."
+
+HOMEPAGE = "http://www.gnu.org/software/gnulib/"
+SECTION = "libs"
+LICENSE = "LGPLv2+"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=e4cf3810f33a067ea7ccd2cd889fed21"
+SRCREV = "24379a9217fa4bd62685795aaaa010fd90ced9e3"
+SRC_URI = "git://git.sv.gnu.org/gnulib;protocol=git \
+"
+S = "${WORKDIR}/git"
+
+# Git clone a copy of gnulib source to the staging data dir
+sysroot_stage_all () {
+    [ -d ${STAGING_DATADIR}/gnulib/ ] && rm -rf ${STAGING_DATADIR}/gnulib/
+    cd ${S}
+    git checkout master
+    git clone ${S} ${STAGING_DATADIR}/gnulib
+}
+
+do_patch[noexec] = "1"
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+do_install[noexec] = "1"
+do_package[noexec] = "1"
+do_packagedata[noexec] = "1"
+do_package_write_ipk[noexec] = "1"
+do_package_write_deb[noexec] = "1"
+do_package_write_rpm[noexec] = "1"
diff --git a/meta-networking/recipes-support/netcf/netcf_git.bb b/meta-networking/recipes-support/netcf/netcf_git.bb
index 93f8c70..6c36ce8 100644
--- a/meta-networking/recipes-support/netcf/netcf_git.bb
+++ b/meta-networking/recipes-support/netcf/netcf_git.bb
@@ -12,7 +12,7 @@ PV = "0.2.3+git${SRCPV}"
 SRC_URI = "git://git.fedorahosted.org/netcf.git;protocol=git \
 "
 
-DEPENDS += "augeas libnl libxslt libxml2"
+DEPENDS += "augeas libnl libxslt libxml2 gnulib"
 
 S = "${WORKDIR}/git"
 
@@ -21,6 +21,7 @@ inherit gettext autotools
 EXTRA_OECONF_append_class-target = " --with-driver=redhat"
 do_configure_prepend() {
 	cd ${S}
-	./bootstrap
+	rm -f .gitmodules
+	./bootstrap --gnulib-srcdir=${STAGING_DATADIR}/gnulib
 }
 
-- 
1.8.1.2



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

* Re: [PATCH 1/1] netcf: fix offline rebuilding failed
  2014-03-14  8:36 ` [PATCH 1/1] netcf: " Hongxu Jia
@ 2014-03-14 14:30   ` Joe MacDonald
  0 siblings, 0 replies; 3+ messages in thread
From: Joe MacDonald @ 2014-03-14 14:30 UTC (permalink / raw)
  To: openembedded-devel

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

Merged, thanks.
-J.

[[oe] [PATCH 1/1] netcf: fix offline rebuilding failed] On 14.03.14 (Fri 16:36) Hongxu Jia wrote:

> The netcf downloaded gnulib source to ${S} at the configure time,
> while the network disconnected, if sstate cache was cleaned, the
> netcf rebuilding failed.
> 
> Added a new recipe named 'gnulib' to download gnulib source to
> ${GITDIR} and populate it to the staging data dir.
> 
> So netcf could specify this local directory where gnulib sources
> reside to save the bandwidth downloading.
> 
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> ---
>  .../recipes-support/netcf/gnulib_git.bb            | 35 ++++++++++++++++++++++
>  meta-networking/recipes-support/netcf/netcf_git.bb |  5 ++--
>  2 files changed, 38 insertions(+), 2 deletions(-)
>  create mode 100644 meta-networking/recipes-support/netcf/gnulib_git.bb
> 
> diff --git a/meta-networking/recipes-support/netcf/gnulib_git.bb b/meta-networking/recipes-support/netcf/gnulib_git.bb
> new file mode 100644
> index 0000000..730f5cd
> --- /dev/null
> +++ b/meta-networking/recipes-support/netcf/gnulib_git.bb
> @@ -0,0 +1,35 @@
> +SUMMARY = "The GNU portability library"
> +DESCRIPTION = "A collection of software subroutines which are designed to \
> +be usable on many operating systems. The goal of the project \
> +is to make it easy for free software authors to make their \
> +software run on many operating systems. Since source is designed \
> +to be copied from gnulib, it is not a library per-se, as much \
> +as a collection of portable idioms to be used in other projects."
> +
> +HOMEPAGE = "http://www.gnu.org/software/gnulib/"
> +SECTION = "libs"
> +LICENSE = "LGPLv2+"
> +
> +LIC_FILES_CHKSUM = "file://COPYING;md5=e4cf3810f33a067ea7ccd2cd889fed21"
> +SRCREV = "24379a9217fa4bd62685795aaaa010fd90ced9e3"
> +SRC_URI = "git://git.sv.gnu.org/gnulib;protocol=git \
> +"
> +S = "${WORKDIR}/git"
> +
> +# Git clone a copy of gnulib source to the staging data dir
> +sysroot_stage_all () {
> +    [ -d ${STAGING_DATADIR}/gnulib/ ] && rm -rf ${STAGING_DATADIR}/gnulib/
> +    cd ${S}
> +    git checkout master
> +    git clone ${S} ${STAGING_DATADIR}/gnulib
> +}
> +
> +do_patch[noexec] = "1"
> +do_configure[noexec] = "1"
> +do_compile[noexec] = "1"
> +do_install[noexec] = "1"
> +do_package[noexec] = "1"
> +do_packagedata[noexec] = "1"
> +do_package_write_ipk[noexec] = "1"
> +do_package_write_deb[noexec] = "1"
> +do_package_write_rpm[noexec] = "1"
> diff --git a/meta-networking/recipes-support/netcf/netcf_git.bb b/meta-networking/recipes-support/netcf/netcf_git.bb
> index 93f8c70..6c36ce8 100644
> --- a/meta-networking/recipes-support/netcf/netcf_git.bb
> +++ b/meta-networking/recipes-support/netcf/netcf_git.bb
> @@ -12,7 +12,7 @@ PV = "0.2.3+git${SRCPV}"
>  SRC_URI = "git://git.fedorahosted.org/netcf.git;protocol=git \
>  "
>  
> -DEPENDS += "augeas libnl libxslt libxml2"
> +DEPENDS += "augeas libnl libxslt libxml2 gnulib"
>  
>  S = "${WORKDIR}/git"
>  
> @@ -21,6 +21,7 @@ inherit gettext autotools
>  EXTRA_OECONF_append_class-target = " --with-driver=redhat"
>  do_configure_prepend() {
>  	cd ${S}
> -	./bootstrap
> +	rm -f .gitmodules
> +	./bootstrap --gnulib-srcdir=${STAGING_DATADIR}/gnulib
>  }
>  
> -- 
> 1.8.1.2
> 
-- 
-Joe MacDonald.
:wq

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

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

end of thread, other threads:[~2014-03-14 14:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-14  8:36 [meta-networking][PATCH 0/1]netcf: fix offline rebuilding failed Hongxu Jia
2014-03-14  8:36 ` [PATCH 1/1] netcf: " Hongxu Jia
2014-03-14 14:30   ` Joe MacDonald

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.