You are not logged in.
Hi guys,
I have problem for build libdbusmenu-gtk2, this tread is similar but not the same.
the error build is:
......
/usr/bin/vapigen --library=Dbusmenu-0.4 Dbusmenu-0.4.gir
GICOMP Dbusmenu-0.4.gir
error: Package `GObject-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
....
Generation failed: 1 error(s), 5 warning(s)
Makefile:1098: recipe for target 'Dbusmenu-0.4.vapi' failed
make[3]: *** [Dbusmenu-0.4.vapi] Error 1
make[3]: Leaving directory '/tmp/yaourt-tmp-xavier/aur-libdbusmenu-gtk2/src/libdbusmenu-12.10.2/libdbusmenu-glib'
Makefile:507: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/tmp/yaourt-tmp-xavier/aur-libdbusmenu-gtk2/src/libdbusmenu-12.10.2/libdbusmenu-glib'
Makefile:418: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp-xavier/aur-libdbusmenu-gtk2/src/libdbusmenu-12.10.2'
Makefile:348: recipe for target 'all' failed
make: *** [all] Error 2
Complete build error is here http://pastebin.com/64cWy06R
Apparently this happen only to me
This is the only package that I have a problem, I can build any other packages from aur.
My system fully updated, and I reinstalled all dependencies of this package, and nothing.
Thanks
XavierCLL
Last edited by epsilom (2015-10-06 15:42:23)
Offline
As I asked in the other thread, have you tried to using makepkg instead of yaourt? And have you checked if there are corrupted packages using pacman -Qkk? In particular can you post the output of the following commands?
$ ls -l /usr/share/vala-0.28/vapi/gobject-2.0.vapi
$ file /usr/share/vala-0.28/vapi/gobject-2.0.vapi
$ pacman -Qikk vala
$ which vala
$ which vapigen
Offline
Thanks for your answer mauritiusdadd
Yes I run pacman -Qkk and I saw nothing strange.
$ ls -l /usr/share/vala-0.28/vapi/gobject-2.0.vapi
-rw-r--r-- 1 root root 25928 ago 11 14:36 /usr/share/vala-0.28/vapi/gobject-2.0.vapi
$ file /usr/share/vala-0.28/vapi/gobject-2.0.vapi
/usr/share/vala-0.28/vapi/gobject-2.0.vapi: UTF-8 Unicode text, with very long lines
$ pacman -Qikk vala
Name : vala
Version : 0.28.1-1
Description : Compiler for the GObject type system
Architecture : x86_64
URL : http://live.gnome.org/Vala
Licenses : LGPL
Groups : None
Provides : None
Depends On : glib2
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 9.90 MiB
Packager : Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Build Date : mar 11 ago 2015 14:36:03 COT
Install Date : dom 13 sep 2015 22:14:11 COT
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
vala: 364 total files, 0 altered files
$ which vala
/usr/bin/vala
$ which vapigen
/usr/bin/vapigen
Offline
Ok, that seems fine... what happens if you run the vapigen manually with the following command (where ${startdir} is the directory where the PKGBUILD is located)?
$ cd ${startdir}/src/libdbusmenu-12.10.2/libdbusmenu-glib
$ vapigen --library=Dbusmenu-0.4 Dbusmenu-0.4.gir
Also, can you please post the output of
$ pacman -Qi gobject-introspection gobject-introspection-runtime python-gobject python2-gobject
?
Offline
Ok, the first command:
$ vapigen --library=Dbusmenu-0.4 Dbusmenu-0.4.gir
error: Package `GObject-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
Dbusmenu-0.4.gir:891.7-891.29: warning: Signal `Dbusmenu.Menuitem.child_added' conflicts with method of the same name
<virtual-method name="child_added">
^^^^^^^^^^^^^^^^^^^^^^^
Dbusmenu-0.4.gir:904.7-904.29: warning: Signal `Dbusmenu.Menuitem.child_moved' conflicts with method of the same name
<virtual-method name="child_moved">
^^^^^^^^^^^^^^^^^^^^^^^
Dbusmenu-0.4.gir:920.7-920.33: warning: Signal `Dbusmenu.Menuitem.child_removed' conflicts with method of the same name
<virtual-method name="child_removed">
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dbusmenu-0.4.gir:987.7-987.31: warning: Virtual method `Dbusmenu.Menuitem.show_to_user' conflicts with method of the same name
<virtual-method name="show_to_user">
^^^^^^^^^^^^^^^^^^^^^^^^^
Dbusmenu-0.4.gir:987.7-987.31: warning: Signal `Dbusmenu.Menuitem.show_to_user' conflicts with method of the same name
<virtual-method name="show_to_user">
^^^^^^^^^^^^^^^^^^^^^^^^^
Generation failed: 1 error(s), 5 warning(s)
the second command:
$ pacman -Qi gobject-introspection gobject-introspection-runtime python-gobject python2-gobject
Name : gobject-introspection
Version : 1.44.0-1
Description : Introspection system for GObject-based libraries
Architecture : x86_64
URL : https://live.gnome.org/GObjectIntrospection
Licenses : LGPL GPL
Groups : None
Provides : None
Depends On : gobject-introspection-runtime=1.44.0 python2-mako python2
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 8.83 MiB
Packager : Jan de Groot <jgc@archlinux.org>
Build Date : mié 25 mar 2015 06:15:58 COT
Install Date : dom 13 sep 2015 22:13:13 COT
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
Name : gobject-introspection-runtime
Version : 1.44.0-1
Description : Introspection system for GObject-based libraries - runtime files
Architecture : x86_64
URL : https://live.gnome.org/GObjectIntrospection
Licenses : LGPL GPL
Groups : None
Provides : None
Depends On : glib2
Optional Deps : None
Required By : gobject-introspection python-gobject python2-gobject
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 791.00 KiB
Packager : Jan de Groot <jgc@archlinux.org>
Build Date : mié 25 mar 2015 06:16:00 COT
Install Date : dom 13 sep 2015 22:13:13 COT
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
Name : python-gobject
Version : 3.16.2-2
Description : Python 3 bindings for GObject
Architecture : x86_64
URL : https://live.gnome.org/PyGObject
Licenses : LGPL
Groups : None
Provides : None
Depends On : gobject-introspection-runtime pygobject-devel=3.16.2 python cairo
Optional Deps : None
Required By : system76-driver usb-creator
Optional For : python-matplotlib
Conflicts With : None
Replaces : None
Installed Size : 1060.00 KiB
Packager : Felix Yan <felixonmars@archlinux.org>
Build Date : sáb 19 sep 2015 08:44:45 COT
Install Date : vie 02 oct 2015 13:48:49 COT
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
Name : python2-gobject
Version : 3.16.2-2
Description : Python 2 bindings for GObject
Architecture : x86_64
URL : https://live.gnome.org/PyGObject
Licenses : LGPL
Groups : None
Provides : None
Depends On : gobject-introspection-runtime pygobject-devel=3.16.2 python2 cairo
Optional Deps : None
Required By : None
Optional For : python2-matplotlib
Conflicts With : None
Replaces : None
Installed Size : 1122.00 KiB
Packager : Felix Yan <felixonmars@archlinux.org>
Build Date : sáb 19 sep 2015 08:44:46 COT
Install Date : vie 02 oct 2015 13:49:22 COT
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
Offline
And do you have also the file GObject-2.0.gir?
$ ls -l /usr/share/gir-1.0/GObject-2.0.gir
$ file /usr/share/gir-1.0/GObject-2.0.gir
And if it is there, what happens if you run vapigen using the --girdir option?
vapigen --library=Dbusmenu-0.4 Dbusmenu-0.4.gir --girdir=/usr/share/gir-1.0/
Offline
yes, compiled succeeded with warnings:
$ ls -l /usr/share/gir-1.0/GObject-2.0.gir
-rw-r--r-- 1 root root 732694 mar 25 2015 /usr/share/gir-1.0/GObject-2.0.gir
$ file /usr/share/gir-1.0/GObject-2.0.gir
/usr/share/gir-1.0/GObject-2.0.gir: XML 1.0 document, ASCII text
$ vapigen --library=Dbusmenu-0.4 Dbusmenu-0.4.gir --girdir=/usr/share/gir-1.0/
Dbusmenu-0.4.gir:891.7-891.29: warning: Signal `Dbusmenu.Menuitem.child_added' conflicts with method of the same name
<virtual-method name="child_added">
^^^^^^^^^^^^^^^^^^^^^^^
Dbusmenu-0.4.gir:904.7-904.29: warning: Signal `Dbusmenu.Menuitem.child_moved' conflicts with method of the same name
<virtual-method name="child_moved">
^^^^^^^^^^^^^^^^^^^^^^^
Dbusmenu-0.4.gir:920.7-920.33: warning: Signal `Dbusmenu.Menuitem.child_removed' conflicts with method of the same name
<virtual-method name="child_removed">
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dbusmenu-0.4.gir:987.7-987.31: warning: Virtual method `Dbusmenu.Menuitem.show_to_user' conflicts with method of the same name
<virtual-method name="show_to_user">
^^^^^^^^^^^^^^^^^^^^^^^^^
Dbusmenu-0.4.gir:987.7-987.31: warning: Signal `Dbusmenu.Menuitem.show_to_user' conflicts with method of the same name
<virtual-method name="show_to_user">
^^^^^^^^^^^^^^^^^^^^^^^^^
Generation succeeded - 5 warning(s)
then, how I set the girdir variable? in my system or in the pkgbuild?, using export girdir=/usr/share/gir-1.0/ not work, maybe in a library configuration?
Last edited by epsilom (2015-10-06 22:07:33)
Offline
That's weird: vala and vapigen should look in /usr/share/gir-1.0 by default because it is hardcoded during the compilation using pkg-config. Moreover, I wasn't able to reproduce the issue even messing up most of the system files and environment variables... sigh. However vapigen should use the environment variables GIRDIR and maybe VAPIGEN_GIRDIRS (note that they are uppercase), try to set one of them or both and see what happens.
I really don't understand where is the problem. You said that pacman reports that no package has been altered, but can you please show us the full output of pacman -Qkk? Also, do you have anything in the /usr/local/{bin,lib,share} directories? Please, post also the output of the following commands:
pkg-config --variable=girdir gobject-introspection-1.0
pkg-config --variable=datadir gobject-introspection-1.0
pkg-config --variable=datadir vapigen
pkg-config --variable=datadir vapigen-0.28
ls /usr/local/{bin,lib,share}
--edit: typo
Last edited by mauritiusdadd (2015-10-07 08:07:32)
Offline
I have tried using the environment variables GIRDIR and VAPIGEN_GIRDIRS (combinations) and not work.
$ pkg-config --variable=girdir gobject-introspection-1.0
/usr/share/gir-1.0
$ pkg-config --variable=datadir gobject-introspection-1.0
/usr/share
$ pkg-config --variable=datadir vapigen
/usr/share
$ pkg-config --variable=datadir vapigen-0.28
/usr/share
$ ls /usr/local/{bin,lib,share}
/usr/local/bin:
/usr/local/lib:
/usr/local/share:
applications desktop-directories icons man mime
I have checked the content of the directories inside /usr/local/share and only used for one app (crossover).
the complete content of pacman -Qkk http://pastebin.com/eLihG6Xf
Thanks for your interest of help me.
Offline
You're welcome
Well, there are a few files which have been altered, but most of them are backup/configuration files and none of them seems to be relevant for this issue. If you want to investigate further this issue, in order to exclude a possible problem with the user's settings, you could try to create a new user and see if vapigen works fine. There is also a new version of vala in [testing] now, so you could also enable the testing repositories and see if the new version fixes this issue.
However, since the environment variables do not work, a quick and dirty workaround is to extract the sources using
makepkg -C --nobuild
then edit the file src/libdbusmenu-12.10.2/libdbusmenu-glib/Makefile by replacing the following line
$(VALA_API_GEN) --library=Dbusmenu-0.4 $<
with
$(VALA_API_GEN) --library=Dbusmenu-0.4 --girdir=/usr/share/gir-1.0 $<
and finally resume the building process using the command
$ makepkg --noextract --noprepare
Offline
I have tried using new and empty user and nothing, the same problem.
if someone have the same problem and following your instructions,
I created a patch: https://copy.com/CRpeOETRx6BKZHUv
and fixed PKGBUILD: https://copy.com/pMOzdsVZSxEkFlFK
Thanks for all your help
Offline
@epsilom:
Just wanted to say thanks. I had the same issue and your patch solved it for me.
And also, of course thanks to @mauritiusdadd !
I owe you both a beer if we ever meet. =-)
Last edited by Stunts (2015-11-12 22:56:14)
Offline