Ubuntu packages

Plug-ins, add-ons, skins, icons, templates and other downloads. Contributions are welcome.

Moderators: XnTriq, xnview

djcj
Posts: 38
Joined: Wed Jan 08, 2014 3:37 pm

Ubuntu packages

Postby djcj » Wed Jan 08, 2014 4:17 pm

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
Last edited by djcj on Wed Nov 26, 2014 4:55 pm, edited 12 times in total.

User avatar
xnview
Author of XnView
Posts: 27913
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Shell script to create Deb package using system libs

Postby xnview » Thu Jan 09, 2014 8:35 am

I use special version of Qt libraries...
Pierre.

djcj
Posts: 38
Joined: Wed Jan 08, 2014 3:37 pm

Re: Shell script to create Deb package using system libs

Postby djcj » Thu Jan 09, 2014 3:56 pm

Interresting, I didn't know that. What exactly is the difference between XnView's Qt libs and the regular ones?

User avatar
xnview
Author of XnView
Posts: 27913
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Shell script to create Deb package using system libs

Postby xnview » Thu Jan 09, 2014 7:51 pm

djcj wrote:Interresting, I didn't know that. What exactly is the difference between XnView's Qt libs and the regular ones?

Some bugs with Qt, but the major changes are for MacOSX & Windows
Pierre.

djcj
Posts: 38
Joined: Wed Jan 08, 2014 3:37 pm

Re: Ubuntu packages using system libs

Postby djcj » Sun Mar 16, 2014 8:41 pm

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. :wink:

djcj
Posts: 38
Joined: Wed Jan 08, 2014 3:37 pm

Re: Ubuntu packages using system libs

Postby djcj » Thu May 01, 2014 8:29 pm

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.

djcj
Posts: 38
Joined: Wed Jan 08, 2014 3:37 pm

Re: Ubuntu packages

Postby djcj » Mon Oct 13, 2014 3:18 pm

I've updated the scripts to build packages of version 0.69. I've also updated the description in the first post.

User avatar
xnview
Author of XnView
Posts: 27913
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Ubuntu packages

Postby xnview » Tue Oct 14, 2014 7:51 am

djcj wrote:I've updated the scripts to build packages of version 0.69. I've also updated the description in the first post.

Where is the script? :)
Pierre.

djcj
Posts: 38
Joined: Wed Jan 08, 2014 3:37 pm

Re: Ubuntu packages

Postby djcj » Sun Nov 16, 2014 9:36 am

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.

User avatar
xnview
Author of XnView
Posts: 27913
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Ubuntu packages

Postby xnview » Mon Nov 17, 2014 9:13 am

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.

But in the package you have already the qt library??
Pierre.

djcj
Posts: 38
Joined: Wed Jan 08, 2014 3:37 pm

Re: Ubuntu packages

Postby djcj » Wed Nov 19, 2014 3:00 pm

xnview wrote:But in the package you have already the qt library??

libQtOpenGL.so.4 is required by some of the libraries or binaries inside the package, but it's missing from your release tarball.

User avatar
xnview
Author of XnView
Posts: 27913
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Ubuntu packages

Postby xnview » Wed Nov 19, 2014 4:15 pm

djcj wrote:
xnview wrote:But in the package you have already the qt library??

libQtOpenGL.so.4 is required by some of the libraries or binaries inside the package, but it's missing from your release tarball.

Which one?
Pierre.

djcj
Posts: 38
Joined: Wed Jan 08, 2014 3:37 pm

Re: Ubuntu packages

Postby djcj » Wed Nov 19, 2014 8:01 pm

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]

User avatar
xnview
Author of XnView
Posts: 27913
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Ubuntu packages

Postby xnview » Thu Nov 20, 2014 9:06 am

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]

Video doen't work if libQtOpenGL is not here??
Pierre.

djcj
Posts: 38
Joined: Wed Jan 08, 2014 3:37 pm

Re: Ubuntu packages

Postby djcj » Fri Nov 21, 2014 6:56 pm

xnview wrote:Video doen't work if libQtOpenGL is not here??

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.

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.


Return to “Customization”

Who is online

Users browsing this forum: No registered users and 1 guest