[Sugar-devel] Problem packaging toolkit

James Cameron quozl at laptop.org
Tue Jun 11 01:51:10 EDT 2019


Look for python-foo and python3-foo packages that have been built from
the same source package.

Once you have it working, this lintian warning in
sugar-toolkit-gtk3_0.114-1_amd64.build will vanish;

W: sugar-toolkit-gtk3 source: python-foo-but-no-python3-foo python-sugar3

Reviewed your packages; you have successfully reproduced what Ubuntu
and Debian have done, plus you've adopted 0.114.  Well done.

Things to do;

* [ ] add new python3-sugar3 package into which the build for python3
  will be constructed, as per above,

* [ ] ensure /usr/bin/sugar-activity3 is not in the python-sugar3
  package,

* [ ] ensure /usr/bin/sugar-activity is not in the python3-sugar3
  package,

* [ ] use a developer local version number, perhaps with a git hash,

* [ ] fix your mail address in debian/changelog

On Tue, Jun 11, 2019 at 10:58:22AM +0530, ANIKET MATHUR wrote:
> Thanks, made a separate github repo. [1]Link.
>  Regarding packaging for both Python 2 and Python 3, sorry I never came along
> with same Ubuntu packages installing for both the versions of Python. Though I
> have seen separate packages for Python 2 and Python 3 line pip and pip3. I will
> do my research regarding this and will give updates if I found anything useful.
> 
> On Tue, Jun 11, 2019 at 10:23 AM James Cameron <[2]quozl at laptop.org> wrote:
> 
>     Put them somewhere for me to download; either a separate GitHub
>     repository, or a web server.  We can make an account for you on
>     sunjammer, see the Wiki Service/Shell page.
> 
>     You may be interested in dcmd as a quick way to simplify copying
>     these files.
> 
>     Also look at how to use reprepro, which can make a package archive
>     that you can then serve with a web server and use in sources.list
> 
>     Once you've made the packages available to me, I'll check them.
> 
>     Next step is to package for both Python 2 and Python 3.  I don't know
>     how to do that yet.  There are other Debian and Ubuntu packages with
>     dual-version source that may be used as a template.
> 
>     On Tue, Jun 11, 2019 at 10:01:08AM +0530, ANIKET MATHUR wrote:
>     > Thanks.
>     > I have build the packages.Now what should I do next, which files I have
>     to
>     > share?
>     >
>     > On Mon, Jun 10, 2019 at 2:28 PM James Cameron <[1][3]quozl at laptop.org>
>     wrote:
>     >
>     >     I've checked, and po/LINGUAS does contain ach.  The problem is caused
>     >     by bzr builddeb running the check-po target of the Makefile, which
>     >     currently fails like this;
>     >
>     >     host:sugar-toolkit-gtk3$ make check-po
>     >     *** ach missing from po/LINGUAS ***
>     >     Makefile:859: recipe for target 'check-po' failed
>     >     make: *** [check-po] Error 1
>     >
>     >     You're welcome to fix this target.  See Makefile.am.  The failure is
>     >     unrelated to packaging and can be reproduced easily.  I don't plan to
>     >     fix it before the next release.
>     >
>     >     The guide you refer to is for packaging new software for
>     >     Ubuntu, whereas the Toolkit is existing software from Debian that
>     >     Ubuntu has adopted without change.
>     >
>     >     Use the Debian source package instead.  You can get it from Ubuntu as
>     >     a source package using `apt source`, or `dget` the dsc from
>     >     [2][4]packages.ubuntu.com.  Change the version in debian/changelog
>     and
>     >     substitute the new source tar.xz file.
>     >
>     >     See also sugar/docs/debian-packaging-example.md
>     >
>     >     On Mon, Jun 10, 2019 at 01:06:00PM +0530, ANIKET MATHUR wrote:
>     >     > Hello everyone.
>     >     > I was trying to package sugar-toolkit-gtk3 v 0.114 following the
>     [1]
>     >     > documentation.
>     >     > I successfully followed till 4.2, but on running the first command
>     in 4.3
>     >     >
>     >     > bzr builddeb -- -us -uc
>     >     >
>     >     > The build failed with
>     >     >
>     >     > `
>     >     > make[1]: Entering directory '/home/aniket21/toolkit/build-area/
>     >     sugar-toolkit-gtk3-0.114'
>     >     > *** ach missing from po/LINGUAS ***
>     >     > Makefile:859: recipe for target 'check-po' failed
>     >     > make[1]: *** [check-po] Error 1
>     >     > make[1]: Leaving directory '/home/aniket21/toolkit/build-area/
>     >     sugar-toolkit-gtk3-0.114'
>     >     > dh_auto_test: make -j1 test VERBOSE=1 returned exit code 2
>     >     > debian/rules:18: recipe for target 'build' failed
>     >     > make: *** [build] Error 2
>     >     > dpkg-buildpackage: error: debian/rules build subprocess returned
>     exit
>     >     status 2
>     >     > debuild: fatal error at line 1152:
>     >     > dpkg-buildpackage -rfakeroot -us -uc -ui failed
>     >     > bzr: ERROR: The build failed.
>     >     >
>     >     > `
>     >     >
>     >     > in the terminal. Need help.
>     >     >
>     >     > Thanks!
>     >     >
>     >     >  
>     >     >
>     >     > References:
>     >     >
>     >     > [1] [3][5]http://packaging.ubuntu.com/html/
>     packaging-new-software.html
>     >
>     >     > _______________________________________________
>     >     > Sugar-devel mailing list
>     >     > [4][6]Sugar-devel at lists.sugarlabs.org
>     >     > [5][7]http://lists.sugarlabs.org/listinfo/sugar-devel
>     >
>     >     --
>     >     James Cameron
>     >     [6][8]http://quozl.netrek.org/
>     >
>     > References:
>     >
>     > [1] mailto:[9]quozl at laptop.org
>     > [2] [10]http://packages.ubuntu.com/
>     > [3] [11]http://packaging.ubuntu.com/html/packaging-new-software.html
>     > [4] mailto:[12]Sugar-devel at lists.sugarlabs.org
>     > [5] [13]http://lists.sugarlabs.org/listinfo/sugar-devel
>     > [6] [14]http://quozl.netrek.org/
> 
>     --
>     James Cameron
>     [15]http://quozl.netrek.org/
> 
> References:
> 
> [1] https://github.com/Aniket21mathur/sugar-toolkit-gtk3-packages
> [2] mailto:quozl at laptop.org
> [3] mailto:quozl at laptop.org
> [4] http://packages.ubuntu.com/
> [5] http://packaging.ubuntu.com/html/packaging-new-software.html
> [6] mailto:Sugar-devel at lists.sugarlabs.org
> [7] http://lists.sugarlabs.org/listinfo/sugar-devel
> [8] http://quozl.netrek.org/
> [9] mailto:quozl at laptop.org
> [10] http://packages.ubuntu.com/
> [11] http://packaging.ubuntu.com/html/packaging-new-software.html
> [12] mailto:Sugar-devel at lists.sugarlabs.org
> [13] http://lists.sugarlabs.org/listinfo/sugar-devel
> [14] http://quozl.netrek.org/
> [15] http://quozl.netrek.org/

-- 
James Cameron
http://quozl.netrek.org/


More information about the Sugar-devel mailing list