Ubuntu packages
Moderators: XnTriq, helmut, xnview
-
- Posts: 60
- Joined: Wed Jan 08, 2014 3:37 pm
Ubuntu packages
I have written a script (Makefile) that downloads XnViewMP and creates a proper Debian package without unavoidable Lintian warnings and with a correct dependency line.
Download: https://github.com/darealshinji/debian/ ... ter.tar.gz
Browse: https://github.com/darealshinji/debian/ ... r/xnviewmp
Usage:
To build a package switch to the xnviewmp directory and run make
Download: https://github.com/darealshinji/debian/ ... ter.tar.gz
Browse: https://github.com/darealshinji/debian/ ... r/xnviewmp
Usage:
To build a package switch to the xnviewmp directory and run make
Last edited by djcj on Wed Nov 26, 2014 4:55 pm, edited 12 times in total.
-
- Author of XnView
- Posts: 44761
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Shell script to create Deb package using system libs
I use special version of Qt libraries...
Pierre.
-
- Posts: 60
- Joined: Wed Jan 08, 2014 3:37 pm
Re: Shell script to create Deb package using system libs
Interresting, I didn't know that. What exactly is the difference between XnView's Qt libs and the regular ones?
-
- Author of XnView
- Posts: 44761
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Shell script to create Deb package using system libs
Some bugs with Qt, but the major changes are for MacOSX & Windowsdjcj wrote:Interresting, I didn't know that. What exactly is the difference between XnView's Qt libs and the regular ones?
Pierre.
-
- Posts: 60
- Joined: Wed Jan 08, 2014 3:37 pm
Re: Ubuntu packages using system libs
I have updated the first post. Instead of a script I now offer you a tiny dummy package for Ubuntu which downloads and installs the program.
@xnview: For future releases I could help you to create Debian packages which are more acurate to the Debian guidelines. Just send me an email.
@xnview: For future releases I could help you to create Debian packages which are more acurate to the Debian guidelines. Just send me an email.
-
- Posts: 60
- Joined: Wed Jan 08, 2014 3:37 pm
Re: Ubuntu packages using system libs
I took some time and re-packaged the Debian package. I tried to get rid of all Lintian error messages and warnings and added every file that should be available in a package (manpage, hicolor icons, proper Debian copyright file, etc.). Then I removed everything that is available through the package manager (Qt and exiftools). And I added md5sum files to the debian control files.
The final DEB packages now have a size of only 8 MB! And the only remaining Lintian warnings are those that need to be fixed at compile time.
edit:
I have written a new script that downloads XnViewMP and creates a Debian package, using the debhelper tools.
This means automatic dependency tracking. And it uses xz compression, so now my amd64 build has only 5.6 MB.
It also uses a small tool which removes some unused libraries from the ELF header of some files (less dependencies).
https://github.com/darealshinji/xnviewmp-debian
The debian files are made for the 64 bit version. To use this on the 32 bit program, you have to modify build.sh, xnviewmp.install.in, rules (probably) and likely some other files too.
The final DEB packages now have a size of only 8 MB! And the only remaining Lintian warnings are those that need to be fixed at compile time.
edit:
I have written a new script that downloads XnViewMP and creates a Debian package, using the debhelper tools.
This means automatic dependency tracking. And it uses xz compression, so now my amd64 build has only 5.6 MB.
It also uses a small tool which removes some unused libraries from the ELF header of some files (less dependencies).
https://github.com/darealshinji/xnviewmp-debian
The debian files are made for the 64 bit version. To use this on the 32 bit program, you have to modify build.sh, xnviewmp.install.in, rules (probably) and likely some other files too.
-
- Posts: 60
- Joined: Wed Jan 08, 2014 3:37 pm
Re: Ubuntu packages
I've updated the scripts to build packages of version 0.69. I've also updated the description in the first post.
-
- Author of XnView
- Posts: 44761
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Ubuntu packages
Where is the script?djcj wrote:I've updated the scripts to build packages of version 0.69. I've also updated the description in the first post.
Pierre.
-
- Posts: 60
- Joined: Wed Jan 08, 2014 3:37 pm
Re: Ubuntu packages
I had re-uploaded my packaging repository. Download link in first post was updated.
Here are the build scripts:
https://github.com/darealshinji/debian/ ... r/xnviewmp
https://github.com/darealshinji/debian/ ... p-all-libs
xnviewmp-all-libs will install the missing libqt4-opengl library too, so the resulting package doesn't need any system Qt libraries at all.
Here are the build scripts:
https://github.com/darealshinji/debian/ ... r/xnviewmp
https://github.com/darealshinji/debian/ ... p-all-libs
xnviewmp-all-libs will install the missing libqt4-opengl library too, so the resulting package doesn't need any system Qt libraries at all.
-
- Author of XnView
- Posts: 44761
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Ubuntu packages
But in the package you have already the qt library??djcj wrote: xnviewmp-all-libs will install the missing libqt4-opengl library too, so the resulting package doesn't need any system Qt libraries at all.
Pierre.
-
- Posts: 60
- Joined: Wed Jan 08, 2014 3:37 pm
Re: Ubuntu packages
libQtOpenGL.so.4 is required by some of the libraries or binaries inside the package, but it's missing from your release tarball.xnview wrote:But in the package you have already the qt library??
-
- Author of XnView
- Posts: 44761
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Ubuntu packages
Which one?djcj wrote:libQtOpenGL.so.4 is required by some of the libraries or binaries inside the package, but it's missing from your release tarball.xnview wrote:But in the package you have already the qt library??
Pierre.
-
- Posts: 60
- Joined: Wed Jan 08, 2014 3:37 pm
Re: Ubuntu packages
It's libphonon_gstreamer.so:
Code: Select all
djcj ~ $ LANG=C readelf -d /usr/lib/xnviewmp/lib/phonon_backend/libphonon_gstreamer.so | grep libQtOpenGL
0x0000000000000001 (NEEDED) Shared library: [libQtOpenGL.so.4]
-
- Author of XnView
- Posts: 44761
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Ubuntu packages
Video doen't work if libQtOpenGL is not here??djcj wrote:It's libphonon_gstreamer.so:
Code: Select all
djcj ~ $ LANG=C readelf -d /usr/lib/xnviewmp/lib/phonon_backend/libphonon_gstreamer.so | grep libQtOpenGL 0x0000000000000001 (NEEDED) Shared library: [libQtOpenGL.so.4]
Pierre.
-
- Posts: 60
- Joined: Wed Jan 08, 2014 3:37 pm
Re: Ubuntu packages
It does, but that wasn't my point. If I add libQtOpenGL it doesn't depend on any more system Qt libs. Though it's probably better to use more system libs, because of security updates.xnview wrote:Video doen't work if libQtOpenGL is not here??
Anyway, I did a check and video preview does work for me on Ubuntu 14.04 if the following libraries are included:
libphonon_gstreamer.so, libphonon.so, libQtCore.so.4, libQtDBus.so.4, libQtGui.so.4, libQtNetwork.so.4, libQtWebKit.so.4.
The rest can be removed so that system libraries are used instead.