[needs-packaging] zint

Bug #569249 reported by pixolex
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Debian
Fix Released
Unknown
Ubuntu
Fix Released
Wishlist
Unassigned

Bug Description

This program generates lots of barcodes 1D and 2D, like the famous QR CODE (ISO 18004) and DATA MATRIX (ISO 16022)

Link for the home page of the project:
http://zint.github.com/

The program already package by a good soul:
http://www.hungryfishconsulting.com/zint/

The good soul home page:
http://www.guerilla-ciso.com/archives/1541

tags: added: needs-packaging
Revision history for this message
Brian Murray (brian-murray) wrote :

*** This is an automated message ***

This bug is tagged needs-packaging which identifies it as a request for a new package in Ubuntu. As a part of the managing needs-packaging bug reports specification, https://wiki.ubuntu.com/QATeam/Specs/NeedsPackagingBugs, all needs-packaging bug reports have Wishlist importance. Subsequently, I'm setting this bug's status to Wishlist.

Changed in ubuntu:
importance: Undecided → Wishlist
Revision history for this message
Michael Smith (rybolov) wrote :

I'm the "kind soul" mentioned above.

The upstream distribution includes Debian build rules, it's a relatively simple matter to actually make the packages.

I can be the intermediary if need be. I will forward the bug report to the zint developers.

Revision history for this message
pixolex (pixolex) wrote : Re: [Bug 569249] Re: [needs-packaging] zint

A big thanks to the Kind Soul!

Qua, 2010-06-09 às 11:44 +0000, Michael Smith escreveu:
> I'm the "kind soul" mentioned above.
>
> The upstream distribution includes Debian build rules, it's a relatively
> simple matter to actually make the packages.
>
> I can be the intermediary if need be. I will forward the bug report to
> the zint developers.
>

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
Changed in debian:
status: Unknown → Fix Released
Logan Rosen (logan)
description: updated
Revision history for this message
Pascal Mons (anton+) wrote :
Download full text (4.0 KiB)

So what ? I already made 4 packages with sources from my Precise 12.04

http://sourceforge.net/projects/zint/

The sources will need libpng12 however for those have installed libpn 1.5 and up

'libpng15/png.h' no longer includes 'zlib.h'. You must do it yourself.

In 'convert.c':

#include <png.h>
#include <zlib.h>

Then it's straight forward

Compile the sources
___________________

$ tar -zxf zint-2.4.3.tar.gz
$ cd zint-2.4.3
$ mkdir build
$ cd build/
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
FIX:PATH=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test CXX_COMPILER_FLAG_WALL
-- Performing Test CXX_COMPILER_FLAG_WALL - Success
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.3.4")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.2")
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake (found version "4.8.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu-precise/user/Downloads/Barcode Software/Zint Barcode Generator/zint-2.4.3/build
$ make -j4

To make a simple debian packaging you can use first checkinstall as

$ sudo checkinstall --install=no

Then when asked about the information

This package will be built according to these values:

0 - Maintainer: [ root@User-PC ]
1 - Summary: [ a barcode encoding library supporting over 50 symbologies ]
2 - Name: [ zint ]
3 - Version: [ 2.4.3 ]
4 - Release: [ 0ubuntu0~precise ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ build ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ build ]
12 - Conflicts: [ ]
13 - Replaces: [ ]

In the end

$ sudo chown user:user zint_2.4.3-0ubuntu0~precise_amd64.deb
$ sudo chmod 664 zint_2.4.3-0ubuntu0~precise_amd64.deb

You can then install it as one package

$ sudo dpkg -i zint_2.4.3-0ubuntu0~precise_amd64.deb

Or as I did split it up in 4 separates packages

zint
zint-dev
zintqt
zintqt-dev

using dpkg -b package-name-folder

For this rename the package to orig.deb

$ mv zint_2.4.3-0ubuntu0~precise_amd64.deb zint_2.4.3-0ubuntu0~precise_amd64.orig.deb

Extract its data content (it will be extracted in a new usr folder)
[seen in http://en.chys.info/2010/02/extract-deb-files/]

$ mkdir zint_2.4.3-0ubuntu0~precise_amd64.orig
$ mkdir zint_2.4.3-0ubuntu0~precise_amd64.orig/DEBIAN
$ cd zint_2.4.3-0ubuntu0~precise_amd64.orig
$ ar -p ../zint_2.4.3-0ubuntu0~precise_amd64.orig.deb ../data.tar.gz | tar -zxf -...

Read more...

Revision history for this message
Pascal Mons (anton+) wrote :

I forgot in the split-up a libzint package as well ...

I didn't made a dbg package. This would require to compile the source with the debug option and package the /usr/bin and /usr/lib in it (in /usr/lib/debug).

Revision history for this message
Pascal Mons (anton+) wrote :

For 64 bit Ubuntu the directories are :

/usr/lib/debug/usr/bin
/usr/lib/debug/usr/lib/x86_64-linux-gnu

Revision history for this message
Pascal Mons (anton+) wrote :

well in addition there will be the package libqzint. That would make up to 6 packages without the debug.

zint
zint-dev
zintqt
zintqt-dev
libzint
libqzint

Logan Rosen (logan)
Changed in debian:
status: Fix Released → Unknown
Changed in ubuntu:
status: Confirmed → Triaged
Changed in debian:
status: Unknown → New
Revision history for this message
negora (negora) wrote :

Is there any news about this? Will Zint be packaged some day? I'm using Kubuntu 14.04 LTS (Trusty) but there isn't such package in its repositories. I've also checked the Lucid's and Debian's too, but nothing :/ . I consider Zint one of the best applications/libraries to generate bar-codes.

Revision history for this message
Alexis de Lattre (alexis-via) wrote :

It would be really cool to have a package for zint in ubuntu. I don't see any barcode software with a GUI in Ubuntu... packaging zint would be a solution to this absence.

Changed in debian:
status: New → Fix Committed
Changed in debian:
status: Fix Committed → Fix Released
Logan Rosen (logan)
Changed in ubuntu:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.