All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Saavedra <psaavedra@igalia.com>
To: "Andreas Müller" <schnitzeltony@gmail.com>
Cc: openembeded-devel <openembedded-devel@lists.openembedded.org>
Subject: Re: [meta-oe][PATCH] networkmanager upgrade to 1.10.6
Date: Mon, 19 Mar 2018 14:44:12 +0100	[thread overview]
Message-ID: <9c3a5a1f-9b3a-4eb2-c19e-08518b32edc5@igalia.com> (raw)
In-Reply-To: <CALbNGRRU1BZis6nTNj_q+gGX1nzvKCxjYpM_Sk7vdcK3km79Gw@mail.gmail.com>

Hi Andreas,

On 15/03/18 15:33, Andreas Müller wrote:
>> @@ -49,6 +44,7 @@ EXTRA_OECONF = " \
>>      --disable-ifcfg-rh \
>>      --disable-ifnet \
>>      --disable-ifcfg-suse \
>> +    --disable-introspection \
> ^ Why disable introspection?
>>      --disable-more-warnings \
>>      --with-iptables=${sbindir}/iptables \
>>      --with-tests \

NM fails in configuration time if `--enable-introspection` ins enabled.
Configure fails in L1290:

        if ! "$PYTHON" -c 'from gi.repository import GObject' >&
/dev/null; then
                AC_MSG_ERROR(["--enable-introspection aims to build the
settings documentation. This requires GObject introspection for python
(pygobject)])
        fi

The execution of GObject check in the native environment causes this
exception:

    $PYTHON -c 'from gi.repository import GObject'
    Traceback (most recent call last):
     File "<frozen importlib._bootstrap>", line 890, in _find_spec
    AttributeError: 'DynamicImporter' object has no attribute 'find_spec'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File
"/home/igalia/psaavedra/yocto/build/tmp/work/i586-poky-linux/networkmanager/1.10.6-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/gi/importer.py",
line 127, in find_module
        'introspection typelib not found' % namespace)
    ImportError: cannot import name GObject, introspection typelib not found


I tried to add these depends:

    python3-pygobject \
    python3-pygobject-native \

with no success.


I didn't find any examples of similar solution for this issues. Only I
found a unreplied email with this very similar issue, so any suggestion
is welcome to make a good fix.

Alternatively, since the introspection is interesting as a run depends
for D-Bus discovery, WDYT about patch the `configure.ac` in order to
skip this failing assertion but adding an explicit RDEPEND with
python3-pygobject in the recipe?


[1] https://lists.yoctoproject.org/pipermail/poky/2017-December/011190.html


  reply	other threads:[~2018-03-19 13:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-13 22:20 [meta-oe][PATCH] networkmanager upgrade to 1.10.6 Pablo Saavedra
2018-03-15 14:30 ` Andreas Müller
2018-03-19 13:47   ` Pablo Saavedra
2018-03-15 14:33 ` Andreas Müller
2018-03-19 13:44   ` Pablo Saavedra [this message]
2018-03-20 21:57   ` Andreas Müller
2018-03-20 22:02     ` Khem Raj
2018-03-15 20:11 ` Khem Raj
2018-03-19 19:16   ` Pablo Saavedra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9c3a5a1f-9b3a-4eb2-c19e-08518b32edc5@igalia.com \
    --to=psaavedra@igalia.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=schnitzeltony@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.