[gexiv2] Debian package does not install correctly



Issue:
Building and installing gexiv2 from the debian package does not install all files to the correct directories. The GExiv2-0.10.typelib does get placed in the correct location of /usr/lib/x86_64-linux-gnu/girepository-1.0 but at least two other files do not.



Steps to Replicate:
On a fresh install of Ubuntu 16.04 with git commit 325ec930a9964537da84bfdd86c1922e3d18029c

sudo apt-get update
sudo apt-get upgrade
git clone git://git.gnome.org/gexiv2
sudo apt-get install automake
sudo apt-get install exiv2
sudo apt-get install gtk-doc-tools
sudo apt-get install valac
sudo apt-get install libgirepository1.0-dev
sudo apt-get install libexiv2-dev
sudo apt-get install python-gi
sudo apt-get install build-essential
sudo apt-get install debhelper
sudo apt-get install devscripts
sudo apt-get install libexpat1-dev

cd gexiv2

sudo debuild -b -uc -us
sudo dpkg -i ../gir1.2-gexiv2-0.10_0.10.4-0~jensge1~xenial4_amd64.deb


 python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gi.repository import GExiv2
__main__:1: PyGIWarning: GExiv2 was imported without specifying a version first. Use gi.require_version('GExiv2', '0.10') before import to ensure that the right version gets loaded.
>>> metadata = GExiv2.Metadata('ePm8wxr.jpg')

** (process:12607): WARNING **: Failed to load shared library 'libgexiv2.so.2' referenced by the typelib: libgexiv2.so.2: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: GObject.__init__() takes exactly 0 arguments (1 given)

This happens in python2.7 and python3

running sudo find / -name GExiv2.py shows:
/home/ubuntu/gexiv2/GExiv2.py
/home/ubuntu/gexiv2/debian/tmp/usr/lib/python2.7/dist-packages/gi/overrides/GExiv2.py
/home/ubuntu/gexiv2/debian/tmp/usr/lib/python3/dist-packages/gi/overrides/GExiv2.py

If gexiv2 is installed with sudo make install the output of sudo find / -name GExiv2.py shows:
/usr/lib/python2.7/dist-packages/gi/overrides/GExiv2.py
/usr/lib/python3/dist-packages/gi/overrides/GExiv2.py
/home/ubuntu/gexiv2/GExiv2.py

It looks like other files are also not put in the correct location such as libgexiv2.so.2.

I found another person that is having a similar problem:
https://bugs.launchpad.net/ubuntu/+source/gexiv2/+bug/1312457/comments/9

Is there a step I am missing in building and installing from a debian package?

Thanks,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]