Libelektra: GObject Introspection not getting picked up by cmake

Created on 4 Apr 2018  路  6Comments  路  Source: ElektraInitiative/libelektra

-- Exclude Binding gi_python because g-ir-scanner/g-ir-compiler not found. Please install GObject Introspection
-- Exclude Binding gi_lua because g-ir-scanner/g-ir-compiler not found. Please install GObject Introspection
-- Include Binding intercept_fs
-- Include Binding intercept_env
-- Include Binding io_uv
-- Include Binding io_glib
-- Include Tool kdb
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/workspace/build
root@e252f8f4ddc4:/tmp/workspace/build# g-ir-scanner 
ERROR: Need at least one filename
root@e252f8f4ddc4:/tmp/workspace/build# g-ir-compiler
no input files
root@e252f8f4ddc4:/tmp/workspace/build# whereis g-ir-scanner
g-ir-scanner: /usr/bin/g-ir-scanner /usr/share/man/man1/g-ir-scanner.1.gz
root@e252f8f4ddc4:/tmp/workspace/build# whereis g-ir-compiler
g-ir-compiler: /usr/bin/g-ir-compiler /usr/share/man/man1/g-ir-compiler.1.gz
root@e252f8f4ddc4:/tmp/workspace/build# apt-cache policy gobjectintrospection
N: Unable to locate package gobjectintrospection
root@e252f8f4ddc4:/tmp/workspace/build# apt-cache serach gobjectintrospection
E: Invalid operation serach
root@e252f8f4ddc4:/tmp/workspace/build# apt-cache policy gobject-introspection
gobject-introspection:
  Installed: 1.50.0-1+b1
  Candidate: 1.50.0-1+b1
  Version table:
 *** 1.50.0-1+b1 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status

build

Most helpful comment

fixed by installing libgirepository1.0-dev

//EDIT: I see the deprecated warning now that I have it installed t.t

All 6 comments

Thank you for reporting this problem. Unfortunately the maintainer of the current two GObject Introspection bindings (@manuelm) is inactive for quite a while, so we had to deprecate them.

So unless this changes, I am afraid we need to exclude these bindings from tests.

fixed by installing libgirepository1.0-dev

//EDIT: I see the deprecated warning now that I have it installed t.t

We should fix:

  • that it says "Please install GObject Introspection development libraries" (or even the name libgirepository1.0-dev see #1016)
  • and that it tells about the depreciation right away

https://build.libelektra.org/jenkins/job/elektra-jenkinsfile/53/execution/node/71/log/?consoleFull

does not look like the tests are disabled just because gi is not build

What do you mean? The gi bindings in this build are included:

-- Include Binding gi_python
CMake Deprecation Warning at src/bindings/gi/python/CMakeLists.txt:32 (message):
  GI bindings have been deprecated


-- Include Binding gi_lua
...

But their test cases fail (so it seems like deprecation was a good idea).

Solution: -DBINDINGS=ALL -> -DBINDINGS="ALL;-DEPRECATED"

Or try to install this lgi module and gi.repository'. (Seems like only some deps are missing for these test cases.)

thanks that was exactly what I needed. I wrongly assumed (without checking) that deprecated warnings mean it would not get build in the current config.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

markus2330 picture markus2330  路  4Comments

sanssecours picture sanssecours  路  3Comments

markus2330 picture markus2330  路  3Comments

dmoisej picture dmoisej  路  3Comments

mpranj picture mpranj  路  4Comments