[Debian-med-packaging] Packaging GNU Health

Andreas Tille andreas at an3as.eu
Fri Nov 30 09:02:25 UTC 2012


Hi Emilien,

On Thu, Nov 29, 2012 at 10:59:43PM +0100, Emilien Klein wrote:
> Hey Debian Med team,
> 
> After numerous fresh reinstalls to make sure the
> installation/configuration instructions in debian/README.Debian are
> correct, I've gotten to the point where the GNU Health package is
> ready for review.

Thanks for working on this.  I had a *very* *quick* look (more close
look might need some time).  What I can say is that my vision of a
proper Debian package is more like *implementing* what is written inside
debian/README.Debian rather than requiring the user to create some
system user, create database etc.  For this purpose the postinst and
prerm scripts can be used.  There is quite good support for initialising
databases by the package dbconfig-common even if this is a bit hard
start for a packaging beginner.

> I've used Andreas' files as a starting point, and committed my changes
> to the svn [0]. I've also created the ITP bug [1].

Fine.
 
> A few points key points (but please do check all my modifications):
> - I've removed the health_qrcodes module from the installation, as I
> wasn't able to get the proper Python package installed, and leaving
> the health_qrcodes module resulted in exceptions when running Tryton.

What exactly do you mean by "the proper Python package" and what was the
actual problem?  A quick search revealed

> Not sure it's packaged for Debian, there are a few Python QR Codes
> modules, but none seemed to provide the qrcode module... Will try to
> investigate more in the coming weeks.

$ axi-cache search python qr code
5 results found.
Results 1-5:
100% python-qrencode - Python bindings for the Qrencode QR Code generator library
91% python-qrtools - high level library for reading and generating QR codes
90% python-zbar - bar code scanner and decoder (Python bindings)
87% zbar-dbg - bar code scanner and decoder (debug)
82% python-zbarpygtk - bar code scanner and decoder (PyGTK bindings)

Which of these did you tried?

> - I've explicitly turned of testing (it wasn't running anyway, but
> making it explicit seems better). Reason is that to be able to test,
> you need to have a proper database set up. Not sure how this should be
> handled though.

Well, setting up a database is complex but as I said above
dbconfig-common does help here to some extend.  We should at least give
it a try - may be this would also enable testing which would be great.

> - In light of the recent changes [2] I've removed the
> DM-Upload-Allowed tag in debian/control.

Fine.

> - I've changed the values of files debian/compat and Standards-Version
> in debian/control to what is currently being given when you start a
> new package with dh_make. Not sure why Andreas' values were higher?

For new packages I prefer to use the latest debhelper compatibility
level (currently 9) and latest Debian Policy version 3.9.4.

> As stated in debian/TODO.Debian, the current version of GNU Health
> depends on Tryton 2.4.X. The current version of GNU Health requires
> Tryton 2.4 (exactly) while at the moment Tryton 2.2 is in testing and
> 2.6 in experimental. So this package can not be uploaded directly to
> sid, but as soon as GNU Health 1.8 comes out (planned end of the month
> [3]) updating the package should be relatively straight forward.
> Note: due to this unmet dependency in sid, building the package in a
> chroot (pdebuild) will fail.

Good hint.  I might add experimental to my pbuilder sources.list.

> FYI this is how I was able to test the package, using the Tryton 2.4
> version that was in experimental last month (might be useful if you
> want to test building the package, and the setup instructions)
> 
> Add snapshot for old experimental in /etc/apt/sources.list:
> deb http://snapshot.debian.org/archive/debian/20121022T125613Z/
> experimental main

I'll try this - thanks for the hint.
 
> Update the repos
> $ sudo aptitude -o Acquire::Check-Valid-Until=false update
> 
> Install Tryton
> $ sudo aptitude -t experimental install tryton-modules-account-invoice
> tryton-modules-calendar
> $ sudo aptitude -t experimental --without-recommends install tryton-client

Thanks for your work on this.  I hope I will manage to have a look next
week.

Kind regards

       Andreas.
 
>    +Emilien
> [0] http://anonscm.debian.org/viewvc/debian-med?view=revision&revision=12576
> [1] http://bugs.debian.org/694749
> [2] http://lists.debian.org/debian-devel-announce/2012/11/msg00006.html
> [3] http://lists.gnu.org/archive/html/health-dev/2012-11/msg00028.html

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list