Go to file
Paul Gortmaker 9199968550 netcf: fix mishandling of gnulib submodule causing build fail
netcf fails to build on certain hosts with newer versions
of git installed as follows:

| ./bootstrap: Bootstrapping from checked-out netcf sources...
| ./bootstrap: consider installing git-merge-changelog from gnulib
| ./bootstrap: getting gnulib files...
| error: pathspec 'gnulib' did not match any file(s) known to git.

If we do a devshell we will see that our configure prepend that
intended to _create_ the .gitmodules has instead _modified_ it
and left us with this change present:

  sh-4.3# git diff
  diff --git a/.gitmodules b/.gitmodules
  index 7acb1ea19ca7..2d10b0e0e0fe 100644
  --- a/.gitmodules
  +++ b/.gitmodules
  @@ -1,3 +1,3 @@
   [submodule "gnulib"]
  -       path = .gnulib
  -       url = git://git.sv.gnu.org/gnulib.git
  +       path = gnulib
  +       url = git://git.sv.gnu.org/gnulib
  sh-4.3#

What happens is that the newer git does not respect uncommitted
changes to the .gitmodules file, and hence the path ".gnulib" is
still considered valid vs. the in tree updated path "gnulib".  It
doesn't help any that the package has its own tracked files in
gnulib/ that we stomp over, but the real fail is just uncommitted
changes to the .gitmodule as this insertion of a random path shows:

  sh-4.3# git diff
  diff --git a/.gitmodules b/.gitmodules
  index 7acb1ea19ca7..91bd45f8e4d4 100644
  --- a/.gitmodules
  +++ b/.gitmodules
  @@ -1,3 +1,3 @@
   [submodule "gnulib"]
  -       path = .gnulib
  +       path = gnulibaaa
          url = git://git.sv.gnu.org/gnulib.git
  sh-4.3# git --version
  git version 2.7.4
  sh-4.3# git submodule init
  fatal: no submodule mapping found in .gitmodules for path '.gnulib'
  sh-4.3#

Since the original bbclass simply assumed there was no .gitmodules
file to begin with, we can easily solve this by not clobbering it
and respect the path choice used by the package itself.

As the version of ./bootstrap shipped with netcf supports this:

     --no-git       do not use git to update gnulib.  Requires that
                    --gnulib-srcdir point to a correct gnulib snapshot

we can use it in conjunction with the pathspec since we know the
gnulib was just copied in from the sysroot, and does not need
to try and pull any further updates.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-05-13 23:06:47 -07:00
contrib contrib: print oldline within single quotes 2016-01-04 14:56:24 +01:00
meta-efl meta-efl: use bb.utils.contains() instead of base_contains() 2016-05-02 14:03:03 -07:00
meta-filesystems Add simple-mtpfs recipe 2016-05-02 14:03:03 -07:00
meta-gnome libwnck: fix WARNING 2016-05-13 23:03:12 -07:00
meta-gpe README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-initramfs meta-initramfs: use bb.utils.contains() instead of base_contains() 2016-05-02 14:03:04 -07:00
meta-multimedia fluidsynth: set correct portaudio packageconfig dependency 2016-05-09 19:05:03 -07:00
meta-networking netcf: fix mishandling of gnulib submodule causing build fail 2016-05-13 23:06:47 -07:00
meta-oe autotools-bootstrap: make bootstrap package specific. 2016-05-13 23:05:54 -07:00
meta-perl libhtml-parser-perl: update to 3.72 2016-05-02 14:03:01 -07:00
meta-python python-pyparsing: modify build to correctly use setuptools rather than distutils 2016-05-09 19:05:04 -07:00
meta-ruby README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-systemd README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-webserver meta-webserver: use bb.utils.contains() instead of base_contains() 2016-05-02 14:03:03 -07:00
meta-xfce xfce-polkit: fix warning not able to copy license 2016-05-09 19:05:03 -07:00
.gitignore gitignore: Ignore Edit backup files, patches, .rej, .orig, .swp 2013-11-24 15:19:27 +01:00
COPYING.MIT add README and license for this layer 2011-02-13 16:47:32 +01:00
README README: add top level readme, update meta-oe one 2011-10-17 09:27:01 +02:00

Collection of layers for the OE-core universe

Please see the respective READMEs in the layer subdirectories