Re: [gexiv2] Debian package does not install correctly



The reason I ran debuild with sudo was because I did not run ./autogen.sh first. Running autogen.sh first resolved that issue.

I started from a fresh install again, here are the list of commands this time:

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
./autogen.sh
debuild -b -uc -us
sudo dpkg -i ../gir1.2-gexiv2-0.10_0.10.4-0~jensge1~xenial4_amd64.deb
sudo dpkg -i ../libgexiv2-2_0.10.4-0~jensge1~xenial4_amd64.deb
sudo dpkg -i ../libgexiv2-dbg_0.10.4-0~jensge1~xenial4_amd64.deb
sudo dpkg -i ../libgexiv2-dev_0.10.4-0~jensge1~xenial4_amd64.deb
sudo dpkg -i ../libgexiv2-doc_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')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: GObject.__init__() takes exactly 0 arguments (1 given)


So now the libgexiv2.so.2 file is in the correct directory, as it got rid of that missing error. Running 'sudo find / -name libgexiv2.so.2' shows:
/usr/lib/x86_64-linux-gnu/libgexiv2.so.2
/home/ubuntu/gexiv2/.libs/libgexiv2.so.2
/home/ubuntu/gexiv2/debian/tmp/usr/lib/x86_64-linux-gnu/libgexiv2.so.2
/home/ubuntu/gexiv2/debian/libgexiv2-2/usr/lib/x86_64-linux-gnu/libgexiv2.so.2

So now it seems the only issue is with the GExiv2.py overrides file not being in the right directory. 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

I tried running debuild again and piping it to a file so I could attach the output, but running it a second time gave me a fatal error.

debuild -b -uc -us > debuild.log
tee: ../gexiv2_0.10.4-0~jensge1~xenial4_amd64.build: Permission denied
debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed

Here is a link to the debuild output:
http://pastebin.com/Rq6dFNfb

On Tue, Mar 7, 2017 at 2:45 PM, Justin Easter <justineaster gmail com> wrote:
The reason I ran debuild with sudo was because I did not run ./autogen.sh first. Running autogen.sh first resolved that issue.

I started from a fresh install again, here are the list of commands this time:

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
./autogen.sh
debuild -b -uc -us
sudo dpkg -i ../gir1.2-gexiv2-0.10_0.10.4-0~jensge1~xenial4_amd64.deb
sudo dpkg -i ../libgexiv2-2_0.10.4-0~jensge1~xenial4_amd64.deb
sudo dpkg -i ../libgexiv2-dbg_0.10.4-0~jensge1~xenial4_amd64.deb
sudo dpkg -i ../libgexiv2-dev_0.10.4-0~jensge1~xenial4_amd64.deb
sudo dpkg -i ../libgexiv2-doc_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')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: GObject.__init__() takes exactly 0 arguments (1 given)


So now the libgexiv2.so.2 file is in the correct directory, as it got rid of that missing error. Running 'sudo find / -name libgexiv2.so.2' shows:
/usr/lib/x86_64-linux-gnu/libgexiv2.so.2
/home/ubuntu/gexiv2/.libs/libgexiv2.so.2
/home/ubuntu/gexiv2/debian/tmp/usr/lib/x86_64-linux-gnu/libgexiv2.so.2
/home/ubuntu/gexiv2/debian/libgexiv2-2/usr/lib/x86_64-linux-gnu/libgexiv2.so.2

So now it seems the only issue is with the GExiv2.py overrides file not being in the right directory. 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

I tried running debuild again and piping it to a file so I could attach the output, but running it a second time gave me a fatal error.

debuild -b -uc -us > debuild.log
tee: ../gexiv2_0.10.4-0~jensge1~xenial4_amd64.build: Permission denied
debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed

Here is a link to the debuild output:

On Tue, Mar 7, 2017 at 4:12 AM, Jens Georg <mail jensge org> wrote:

sudo debuild -b -uc -us

debuild should suffice if you have fakeroot installed. I wouldn't build random software off the internets as root.

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

You did notice the other *.deb files that came out of the debuild, right?

Apparently there's a dependency missing to the main libgexiv2 deb.





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