[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: childsplay 2.x - basic queries



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
-- 
          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: