* [PATCH] autotools-bootstrap: don't fake submodule to avoid gnulib download
@ 2016-03-31 19:38 Paul Gortmaker
2016-04-03 15:45 ` Martin Jansa
0 siblings, 1 reply; 2+ messages in thread
From: Paul Gortmaker @ 2016-03-31 19:38 UTC (permalink / raw)
To: openembedded-devel
We were creating a .gitmodules on the fly to avoid downloading the
gnulib via git. However this is problematic if the pkg had its own
.gitmodules already -- we'd clobber it and this breaks netcf build:
./bootstrap: getting gnulib files...
error: pathspec 'gnulib' did not match any file(s) known to git.
There is a more proper way to do this: bootstrap supports this:
--no-git do not use git to update gnulib. Requires that
--gnulib-srcdir point to a correct gnulib snapshot
and if we use that, we can use our sysroot copy of gnulib without
having to fake a .gitmodules submodule file. This keeps the build
of netcf happy.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
diff --git a/meta-oe/classes/autotools-bootstrap.bbclass b/meta-oe/classes/autotools-bootstrap.bbclass
index 8d7af1b47222..cae037559aa4 100644
--- a/meta-oe/classes/autotools-bootstrap.bbclass
+++ b/meta-oe/classes/autotools-bootstrap.bbclass
@@ -7,18 +7,13 @@ do_configure_prepend() {
currdir=`pwd`
cd ${S}
- # avoid bootstrap cloning gnulib on every configure
- cat >.gitmodules <<EOF
-[submodule "gnulib"]
- path = gnulib
- url = git://git.sv.gnu.org/gnulib
-EOF
+ # avoid bootstrap cloning gnulib on every configure, hence "--no-git".
cp -rf ${STAGING_DATADIR}/gnulib ${S}
# --force to avoid errors on reconfigure e.g if recipes changed we depend on
# | bootstrap: running: libtoolize --quiet
# | libtoolize: error: 'libltdl/COPYING.LIB' exists: use '--force' to overwrite
# | ...
- ./bootstrap --force
+ ./bootstrap --force --no-git --gnulib-srcdir=gnulib
cd $currdir
}
--
2.7.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] autotools-bootstrap: don't fake submodule to avoid gnulib download
2016-03-31 19:38 [PATCH] autotools-bootstrap: don't fake submodule to avoid gnulib download Paul Gortmaker
@ 2016-04-03 15:45 ` Martin Jansa
0 siblings, 0 replies; 2+ messages in thread
From: Martin Jansa @ 2016-04-03 15:45 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 2240 bytes --]
On Thu, Mar 31, 2016 at 03:38:02PM -0400, Paul Gortmaker wrote:
> We were creating a .gitmodules on the fly to avoid downloading the
> gnulib via git. However this is problematic if the pkg had its own
> .gitmodules already -- we'd clobber it and this breaks netcf build:
>
> ./bootstrap: getting gnulib files...
> error: pathspec 'gnulib' did not match any file(s) known to git.
>
> There is a more proper way to do this: bootstrap supports this:
>
> --no-git do not use git to update gnulib. Requires that
> --gnulib-srcdir point to a correct gnulib snapshot
This breaks fontforge build:
http://errors.yoctoproject.org/Errors/Details/59785/
>
> and if we use that, we can use our sysroot copy of gnulib without
> having to fake a .gitmodules submodule file. This keeps the build
> of netcf happy.
>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
>
> diff --git a/meta-oe/classes/autotools-bootstrap.bbclass b/meta-oe/classes/autotools-bootstrap.bbclass
> index 8d7af1b47222..cae037559aa4 100644
> --- a/meta-oe/classes/autotools-bootstrap.bbclass
> +++ b/meta-oe/classes/autotools-bootstrap.bbclass
> @@ -7,18 +7,13 @@ do_configure_prepend() {
> currdir=`pwd`
> cd ${S}
>
> - # avoid bootstrap cloning gnulib on every configure
> - cat >.gitmodules <<EOF
> -[submodule "gnulib"]
> - path = gnulib
> - url = git://git.sv.gnu.org/gnulib
> -EOF
> + # avoid bootstrap cloning gnulib on every configure, hence "--no-git".
> cp -rf ${STAGING_DATADIR}/gnulib ${S}
>
> # --force to avoid errors on reconfigure e.g if recipes changed we depend on
> # | bootstrap: running: libtoolize --quiet
> # | libtoolize: error: 'libltdl/COPYING.LIB' exists: use '--force' to overwrite
> # | ...
> - ./bootstrap --force
> + ./bootstrap --force --no-git --gnulib-srcdir=gnulib
> cd $currdir
> }
> --
> 2.7.2
>
> --
> _______________________________________________
> 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] 2+ messages in thread
end of thread, other threads:[~2016-04-03 15:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-31 19:38 [PATCH] autotools-bootstrap: don't fake submodule to avoid gnulib download Paul Gortmaker
2016-04-03 15:45 ` 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.