Re: childsplay 2.x - basic queries
addition at bottom :-
On 5/1/14, shirish शिरीष <shirishag75@gmail.com> wrote:
> Hi all,
> First of all please CC me while replying as I'm not subscribed to the list.
>
> @Markus Koschany,
> thank you for your reply. I caught it at
> https://lists.debian.org/debian-devel-games/2014/05/msg00002.html
>
> I asked upstream about the language pack version thing and this is
> what one of the devs. reply was :-
>
> "I'm very sorry, I've told you that I was moving stuff from
> sourceforge to savanah, well it seems I used the old stuff from
> sourceforge iso the latest.
> I will make new ones, but for now you can just use the ones from
> Debian as there is no difference between what I have in SVN and the
> ones in the Debian repo.
> I will update the language packs tomorrow." - Stas Zytkiewicz
> <stas.zytkiewicz at the rate gmail.com>
>
> I downloaded the previous source of the game :-
>
> $ sudo apt-get source childsplay
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Need to get 12.3 MB of source archives.
> Get:1 http://debian.ec.as6453.net/debian/ unstable/main childsplay
> 1.6-1 (dsc) [1,143 B]
> Get:2 http://debian.ec.as6453.net/debian/ unstable/main childsplay
> 1.6-1 (tar) [12.3 MB]
> Get:3 http://debian.ec.as6453.net/debian/ unstable/main childsplay
> 1.6-1 (diff) [7,033 B]
> Fetched 12.3 MB in 2min 1s (101 kB/s)
> dpkg-source: info: extracting childsplay in childsplay-1.6
> dpkg-source: info: unpacking childsplay_1.6.orig.tar.gz
> dpkg-source: info: unpacking childsplay_1.6-1.debian.tar.gz
> dpkg-source: info: applying fix-sqlalchemy-exceptions-import.diff
>
> and this is how it looked :-
>
> $ ll -h
> total 12M
> drwxr-xr-x 12 root root 4.0K May 1 18:08 childsplay-1.6
> -rw-r--r-- 1 root root 6.9K Sep 27 2011 childsplay_1.6-1.debian.tar.gz
> -rw-r--r-- 1 root root 1.2K Sep 27 2011 childsplay_1.6-1.dsc
> -rw-r--r-- 1 root root 12M Sep 27 2011 childsplay_1.6.orig.tar.gz
>
> At an apparent glance, it seems that both childsplay_1.6.orig.tar.gz
> and the directory childsplay-1.6 are the same thing. The orig.tar.gz
> is the upstream .tar.gz file while childsplay-1.6 directory is the
> extraction of the orig.tar.gz archive itself.
>
> The main things I guess I would have to look at would be the .dsc file
> and .debian.tar.gz file.
>
> I attempted to read
> https://www.debian.org/doc/packaging-manuals/python-policy/ch-python.html
> but it went over me.
>
> I tried to do from scratch packaging to understand what actually
> happens (and am guessing some of it would have to be done anyways).
>
> I changed the uptream file from :-
>
> $ mv childsplay-2.6.tgz childsplay_2.6.orig.tar.gz
>
> then extracted the new archive :-
>
> $ tar -xvvzf childsplay_2.6.orig.tar.gz
>
> So it now lists :-
>
> $ ls
> childsplay-2.6 childsplay_2.6.orig.tar.gz
>
> Then according to Lucas packaging tutorial page 15 of 81 :-
>
> "Rename the directory to <source_package >-<upstream_version >
> (example: simgrid-3.6)
>
> cd <source_package >-<upstream_version > && dh_make
> (from the dh-make package)
>
> There are some alternatives to dh_make for specific sets of packages:
> dh-make-perl, dh-make-php, . . .
> debian/ directory created, with a lot of files in it "
>
> childsplay-2.6$ dh_python2
> W: dh_python2:568: cannot open debian/rules file
> Traceback (most recent call last):
> File "/usr/share/python/dh_python2", line 715, in <module>
> main()
> File "/usr/share/python/dh_python2", line 592, in main
> dh = DebHelper(options)
> File "/usr/share/python/debpython/debhelper.py", line 45, in __init__
> raise Exception('cannot find debian/control file')
> Exception: cannot find debian/control file
>
> Then decided to search a bit and came across
> https://wiki.debian.org/Python/Packaging where it talks of py2dsc
> which makes a debian/ directory but only if there is a setup.py in the
> app. which there isn't in this one.
>
> So had to try the dh_make as that was the only one I hadn't tried :-
>
> childsplay-2.6$ dh_make
>
> Type of package: single binary, indep binary, multiple binary,
> library, kernel module, kernel patch?
> [s/i/m/l/k/n] s
>
> Maintainer name : shirish
> Email-Address : shirish@debian
> Date : Thu, 01 May 2014 19:46:23 +0530
> Package Name : childsplay
> Version : 2.6
> License : blank
> Type of Package : Single
> Hit <enter> to confirm:
> Skipping creating ../childsplay_2.6.orig.tar.gz because it already exists
> Currently there is no top level Makefile. This may require additional
> tuning.
> Done. Please edit the files in the debian/ subdirectory now. You should
> also
> check that the childsplay Makefiles install into $DESTDIR and not in / .
>
> and for sure there is a new directory called debian/ which is a
> sub-directory.
>
> childsplay-2.6/debian$ ls
> changelog childsplay.doc-base.EX copyright manpage.1.ex menu.ex
> preinst.ex README.source watch.ex childsplay.cron.d.ex compat
> docs manpage.sgml.ex postinst.ex prerm.ex rules
> childsplay.default.ex control init.d.ex manpage.xml.ex postrm.ex
> README.Debian source
>
> If now I try to run dh_python2 it works on the parent directory :-
>
> childsplay-2.6$ dh_python2
> childsplay-2.6$
>
> As can be seen no issues anymore.
>
I did see that in the old packaging in childsplay_1.6-1.debian.tar.gz
extracting it gives the debian/ sub-directory as well.
$ tar -xvvzf childsplay_1.6-1.debian.tar.gz
drwxr-xr-x 0/0 0 2011-09-27 20:04 debian/
-rw-r--r-- 0/0 349 2009-01-28 15:03 debian/watch
-rw-r--r-- 0/0 20 2009-01-28 15:03 debian/manpages
-rw-r--r-- 0/0 5724 2011-09-27 20:04 debian/changelog
-rw-r--r-- 0/0 2 2009-01-28 15:03 debian/compat
-rw-r--r-- 0/0 392 2009-01-28 15:03 debian/childsplay.desktop
-rw-r--r-- 0/0 304 2010-11-06 04:44 debian/SPBasePaths.py
-rw-r--r-- 0/0 1294 2009-01-28 15:03 debian/childsplay.6
-rw-r--r-- 0/0 1582 2011-09-27 19:57 debian/install
drwxr-xr-x 0/0 0 2011-09-27 20:04 debian/patches/
-rw-r--r-- 0/0 38 2011-09-27 19:22 debian/patches/series
-rw-r--r-- 0/0 1132 2011-09-27 19:22
debian/patches/fix-sqlalchemy-exceptions-import.diff
drwxr-xr-x 0/0 0 2011-09-27 20:04 debian/source/
-rw-r--r-- 0/0 12 2010-11-06 12:21 debian/source/format
-rw-r--r-- 0/0 167 2009-01-28 15:03 debian/menu
-rwxr-xr-x 0/0 866 2011-09-27 19:50 debian/rules
-rw-r--r-- 0/0 1304 2011-09-27 19:50 debian/control
-rw-r--r-- 0/0 127 2009-01-28 15:03 debian/links
-rw-r--r-- 0/0 816 2011-09-27 19:57 debian/dirs
-rw-r--r-- 0/0 4345 2009-01-28 15:03 debian/copyright
I guess I have to copy and paste this in the new directory and then
change the contents of each manually using a text-editor (or till as
much as I can change).
Comments on my understanding, welcome and sorry for the longish mail.
--
Regards,
Shirish Agarwal शिरीष अग्रवाल
My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8
Reply to: