ITP: Tangaza -- Mobile phone-based group messaging system

Ian Lawrence root at ianlawrence.info
Fri Jan 27 12:30:08 UTC 2012


Hi,

Some comments and observations. (I am on the debian voip list)

> Any reason you use source format 1.0 rather than '3.0 (quilt)'?

Fixed in repo

> Lintian warns of the following:

> W: tangaza source: maintainer-script-lacks-debhelper-token debian/postinst

Fixed in repo

> W: tangaza source: maintainer-script-lacks-debhelper-token debian/prerm

Fixed in repo

> E: tangaza: helper-templates-in-copyright

Fixed in repo. Added machine readable copyright based on this proposal
http://dep.debian.net/deps/dep5/


> Hmm... prerm script has the line
>
>  # Automatically added by dh_installinit
>
> You should have removed that part and replaced it with #DEBHELPER#'.

Fixed in repo


> I: tangaza source: debian-watch-file-is-missing

added watch file to repo

> I: tangaza: description-synopsis-might-not-be-phrased-properly

Fixed

> I: tangaza: extended-description-is-probably-too-short

Did not fix as it is a bit subjective

> I: tangaza: package-contains-empty-directory usr/lib/tangaza/agi-bin/Nokia/Common/

Not sure why its seeing an empty dir?

> I: tangaza: init.d-script-does-not-implement-optional-option etc/init.d/tangaza status

Didnt have time to work on the "status" option

> Other notes:

> * All of the stuff /usr/lib must move to /usr/share . /usr/lib is for
>  arch-dependent stuff. With all the multi-arch transition, this is
>  actually very meaningful.

 Done

> * If you want Python modules byte-compiled, see the standard python
>  helpers (dh_python2) and the python policy.

Do we want byte-compiled modules? Also, havent had time to look into
how to use dh_python2

>  - Should the package attempt to detect the asterisk user? If the

Postinst detects the asterisk user to determine the permissions (for
dirs and files) for the tangaza service (which also should run as the
asterisk user)

> #include extensions.d/*.conf

I think it would definitely help avoid modifying existing configs. For
now i've resorted to appending an include equivalent to the end of the
necessary config files i.e. nagios.cfg, extensions.conf and
kannel.conf to limit the modifications I am making on the configs such
that it can easily disabled in case of need.

> * Use dh_link (debian/tangaza.links) rather than manual 'ln -s'.

our tangaza.links file of

/etc/tangaza/tangaza-sms	/etc/apache2/sites-enabled
/usr/share/tangaza/media/js/jquery.js	/usr/share/tangaza/doc/_build/html/_static
/usr/share/pyshared/django/contrib/admin/media/css/*	/usr/share/tangaza/media/css
/usr/share/pyshared/django/contrib/admin/media/img	/usr/share/tangaza/media/img
/usr/share/pyshared/django/contrib/admin/media/js/*	/usr/share/tangaza/media/js
/etc/tangaza/nagios/tangaza-monitor /usr/lib/nagios/plugins

gives this error:

dh_link: link destination debian/tangaza/usr/share/tangaza/media/js is
a directory
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
debuild: fatal error at line 1335:
dpkg-buildpackage -rfakeroot -D -us -uc -i.git -I.git failed

Am at a loss to know what the problem is here. The only thing I found
was this bug report
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=438601 so perhaps we
are hitting that.?

On the subject of errors - on install we are getting this error:

Starting Asterisk PBX: asterisk.
Setting up tangaza (1.0-1) ...
Checking if the database already exists. Waiting for the database root password
We will now check if the database and user exists and create them if
not there. Waiting for the MySQL root password
Enter password:
Traceback (most recent call last):
 File "/usr/lib/tangaza/django/tangaza/manage.py", line 2, in <module>
   from django.core.management import execute_manager
ImportError: No module named core.management
dpkg: error processing tangaza (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for python-support ...
Errors were encountered while processing:
 tangaza
E: Sub-process
E: Sub-process /usr/bin/dpkg returned an error code (1)


which we thought might be due to conflicting python or django versions
but System info gives this

Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>>


So again any help welcome on this

https://github.com/tangaza/Tangaza

Regards

-- 
http://ianlawrence.info



More information about the Pkg-voip-maintainers mailing list