Discussion:
[sword-devel] Packaging ....
Barry Drake
2014-03-28 08:52:05 UTC
Permalink
Hi there .... I am still interested in re-packaging BibleTime and
Xiphos - especially having found that the existing BibleTime deb package
is so old that it won't support canon-LXX.h which I am currently using.

I had contact from the last packager saying that it is easy to use the
existing template to rebuild the package, but no information as to where
to begin. I've read the page at:
http://packaging.ubuntu.com/html/packaging-new-software.html and I am
ready to have a go but I wonder if someone can talk me through using the
existing templates in the old packages, updating and re-packaging? It
shows a command '$bzr builddeb -- -nc -us -uc' which appears to be what
is needed, but instructions like that are very cryptic. I don't suppose
there's a 'packaging for dummies' page anywhere?

Help please.

God bless, Barry.
Matej Cepl
2014-03-28 10:37:13 UTC
Permalink
Post by Barry Drake
I had contact from the last packager saying that it is easy to
use the existing template to rebuild the package, but no
http://packaging.ubuntu.com/html/packaging-new-software.html
and I am ready to have a go but I wonder if someone can talk me
through using the existing templates in the old packages,
updating and re-packaging? It shows a command '$bzr builddeb
-- -nc -us -uc' which appears to be what is needed, but
instructions like that are very cryptic. I don't suppose
there's a 'packaging for dummies' page anywhere?
First of all I would work with Debian package, so that you won?t
have multiple packages between Debian, Ubuntu, Mint, etc.

Also, I would just pick existing source package from
https://packages.debian.org/sid/bibletime and fix it.

Also, prior to your work, it would be probably good idea just to
file a bug for whatever issues you see with the current package
(http://www.debian.org/Bugs/Reporting). By that the work on the
Debian package won?t be split into multiple half-done efforts.

And yes, there is 'Packaging for Dummies' on
https://www.debian.org/doc/manuals/maint-guide/

Also, I think for the Debian packaging issues you could find
more help in a Debian mailing list (see
https://www.debian.org/doc/manuals/maint-guide/start.en.html#helpme
for more).

Best,

Mat?j
P.S.: Note, that I haven?t been a maintainer of any Debian
package for the last nine years (cowardly defected to the
distros of my employer), so please don?t ask me any specific
Debian related questions.
--
http://www.ceplovi.cz/matej/, Jabber: mcepl<at>ceplovi.cz
GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC

He loves nature in spite of what it did to him.
-- Forrest Tucker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20140328/9972cfb5/attachment.sig>
Barry Drake
2014-03-28 12:02:14 UTC
Permalink
First of all I would work with Debian package, so that you won?t have
multiple packages between Debian, Ubuntu, Mint, etc.
Also, I would just pick existing source package from
https://packages.debian.org/sid/bibletime and fix it.
Also, prior to your work, it would be probably good idea just to file
a bug for whatever issues you see with the current package
(http://www.debian.org/Bugs/Reporting). By that the work on the Debian
package won?t be split into multiple half-done efforts.
And yes, there is 'Packaging for Dummies' on
https://www.debian.org/doc/manuals/maint-guide/
Thanks Mat?j.... The Debian guide you gave me is something I can
understand. I've installed the pbuilder tools, and begun to test using
the old BibleTime Debian packages that you suggested. There are still a
lot of dependencies I need to meet, but at least I can see the
possibilities. It's going to be a long learning curve, but I'm going to
have a go.

God bless, Barry.
Jaak Ristioja
2014-03-28 14:37:38 UTC
Permalink
Hi Barry!
I don't suppose there's a 'packaging for dummies' page anywhere?
I've found the following guide helpful for Debian:


https://www.debian.org/doc/manuals/maint-guide/update.en.html#newupstream

Blessings,
Jaak
Barry Drake
2014-03-28 20:31:06 UTC
Permalink
Post by Jaak Ristioja
https://www.debian.org/doc/manuals/maint-guide/update.en.html#newupstream
Thanks. Matej sent me that link earlier and I've installed all the
recommended packages and their dependencies. I've done the suggested
'sudo pbuilder --update' followed by 'pdbuild' in the sword directory
after extracting the debian directory from the sword deb package. It
nearly works, but dies with this error message:
dh_testdir
debian/rules override_dh_auto_build
make[1]: Entering directory `/tmp/buildd/sword-1.7.2+dfsg'
dh_auto_build -Scmake --parallel
dh_auto_build: No compatibility level specified in debian/compat
dh_auto_build: This package will soon FTBFS; time to fix it!
dh_auto_build: Compatibility levels before 5 are deprecated (level 1 in use)
dh_auto_build: error: unable to chdir to obj-i686-linux-gnu
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory `/tmp/buildd/sword-1.7.2+dfsg'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

At this point, I'm feeling beaten, incompetent and lost. Any thoughts?

God bless, Barry.
Israel
2014-03-28 21:00:07 UTC
Permalink
It says compat levels before 5 are deprecated, you are using 1.
So check your compat file and change it from 1 to 9 (the current version)
The entire file is simply one number.
You might as well change the control file standards to the current one
(or you will get lintian errors) 3.9.5 (if I remember)
hopefully that helps
Post by Barry Drake
Post by Jaak Ristioja
https://www.debian.org/doc/manuals/maint-guide/update.en.html#newupstream
Thanks. Matej sent me that link earlier and I've installed all the
recommended packages and their dependencies. I've done the suggested
'sudo pbuilder --update' followed by 'pdbuild' in the sword directory
after extracting the debian directory from the sword deb package. It
dh_testdir
debian/rules override_dh_auto_build
make[1]: Entering directory `/tmp/buildd/sword-1.7.2+dfsg'
dh_auto_build -Scmake --parallel
dh_auto_build: No compatibility level specified in debian/compat
dh_auto_build: This package will soon FTBFS; time to fix it!
dh_auto_build: Compatibility levels before 5 are deprecated (level 1 in use)
dh_auto_build: error: unable to chdir to obj-i686-linux-gnu
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory `/tmp/buildd/sword-1.7.2+dfsg'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
At this point, I'm feeling beaten, incompetent and lost. Any thoughts?
God bless, Barry.
_______________________________________________
sword-devel mailing list: sword-devel at crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page
--
Regards
Barry Drake
2014-03-28 21:26:12 UTC
Permalink
Post by Israel
It says compat levels before 5 are deprecated, you are using 1.
So check your compat file and change it from 1 to 9 (the current version)
The entire file is simply one number. You might as well change the
control file standards to the current one (or you will get lintian
errors) 3.9.5 (if I remember) hopefully that helps
Thanks. I've done that, and the compat warning has gone, but I still get:
dpkg-source: info: building sword in sword_1.7.2+dfsg.dsc
debian/rules build
dh build
dh_testdir
debian/rules override_dh_auto_build
make[1]: Entering directory `/tmp/buildd/sword-1.7.2+dfsg'
dh_auto_build -Scmake --parallel
dh_auto_build: error: unable to chdir to obj-i686-linux-gnu
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory `/tmp/buildd/sword-1.7.2+dfsg'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package

I'm sure there must be a file somwhere that makes pdbuild use a
different directory, but I can't find it so far.

God bless, Barry
Israel
2014-03-28 22:34:33 UTC
Permalink
Post by Barry Drake
Post by Israel
It says compat levels before 5 are deprecated, you are using 1.
So check your compat file and change it from 1 to 9 (the current version)
The entire file is simply one number. You might as well change the
control file standards to the current one (or you will get lintian
errors) 3.9.5 (if I remember) hopefully that helps
dpkg-source: info: building sword in sword_1.7.2+dfsg.dsc
debian/rules build
dh build
dh_testdir
debian/rules override_dh_auto_build
make[1]: Entering directory `/tmp/buildd/sword-1.7.2+dfsg'
dh_auto_build -Scmake --parallel
dh_auto_build: error: unable to chdir to obj-i686-linux-gnu
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory `/tmp/buildd/sword-1.7.2+dfsg'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
I'm sure there must be a file somwhere that makes pdbuild use a
different directory, but I can't find it so far.
God bless, Barry
_______________________________________________
sword-devel mailing list: sword-devel at crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page
Your rules file has some problems with it.
You will need to look more into packaging, believe me it is not a simple
thing to untangle old rules files without understanding what all the
debhelper things do.

a simple rules file like this might work.. though I am not making your
package, so there are many things you will have to take into account and
learn about before trying to fix everything.


#!/usr/bin/make -f

DH_CMAKE_BUILD_DIR=obj -${DEB_BUILD_GNU_TYPE}
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
dh $@ --buildsystem cmake

override_dh_auto_configure:
dh_auto_configure -- -DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH)


You will need to amend your depends to use dh9. Without looking at your
debian folder I cannot really tell you much more than that.
Do you have a branch on launchpad. It would be helpful to post a link
to your source code in order for anyone else to be able to help you....
Of course I do not know what the cmake script is either, so my rules
file may be useless to you.
I*highly* suggest reading more about packaging, as it is very
complicated unless you understand what is going on.
Debian has a mentoring program as well. It may be a good idea to try to
package something simple first as a test.
--
Regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20140328/c29e1f55/attachment.html>
Peter von Kaehne
2014-03-29 06:54:12 UTC
Permalink
Without wishing to dampen the enthusiasm...

There is a list for this kind of discussion which has fallen slightly
inactive, but quite likely has still a lot of silent followers and might
be the better place to discuss this:

CrossWire Packages <pkg-crosswire-devel at lists.alioth.debian.org>

Peter
Barry Drake
2014-03-29 10:10:31 UTC
Permalink
Post by Peter von Kaehne
There is a list for this kind of discussion which has fallen slightly
inactive, but quite likely has still a lot of silent followers and might
Thanks Peter. I've subscribed and posted there.

God bless, Barry.

Loading...