[14:01] <dipankar> lfaraone, please ping
[14:02] <lfaraone> dipankar: yessir?
[14:02] <dipankar> Sir.. :P
[14:03] <dfarning> thanks guys, this channel is logged so if any one else has the same questions we can refer them back to the logs.
[14:03] <dipankar> Well dfarning and lfaraone , like I was saying , should we revert back to s-p-s 0.88.0 on ppa
[14:04] <lfaraone> I said you could do it, tell other people on the mailing list the workaround, and if other users have problems implement to more difficult solution.
[14:05] <dipankar> ok lfaraone I am on it. I will delete the existing package once I am ready with the new one. But I don't have the last unedited 's-p-s' package from ppa
[14:06] <dipankar> i.e. the oldest that I have is the one in which neeraj made the new upstream release
[14:06] <lfaraone> dipankar: no worries, just use jonas's. or don't put one at all in there if the one in the Ubuntu archive works.
[14:07] <dipankar> lfaraone, what about the copyrights and the debian folder?
[14:08] <lfaraone> dipankar: run 'debcheckout sugar-presence-service-0.88' and you should have the copy of the package as it is in Debian.
[14:08] <lfaraone> dipankar: which includes debian/* etc.
[14:09] <dipankar> lfaraone, thanks a lot. I will start working on it. Just in case I get the same error of '.orig' file..
[14:10] <lfaraone> well, then you need to download t he upstream tarball with "debian/rules get-orig-source" or "uscan --force-download --rename"
[14:11] <dipankar> ok..
[14:13] <dipankar> btw lfaraone , I guess you are here for sometime. I will try to work things out as quickly as possible
[14:13] <lfaraone> dipankar: okay
[14:25] <dipankar> okay lfaraone , I have copied the debian folder into the source tree of the directory
[14:25] <dipankar> Now I have to make changes in the changelog and control files
[14:27] <lfaraone> dipankar: what changes need to be made? you already have 0.88.0-1 from debcheckout.
[14:28] <dipankar> lfaraone, It was in my documentation to change those files. It not required then I will leave it blank
[14:29] <dipankar> * it -> If
[14:29] <lfaraone> dipankar: well, you usually only change them if you are making other... changes.
[14:29] <dipankar> Got it like patching, lfaraone ?
[14:30] <lfaraone> dipankar: exactly.
[14:30] <dipankar> lfaraone, I also think I don't have to use the command "debian/rules get-orig-source" or "uscan --force-download --rename" to get the rules file
[14:31] <dipankar> 'cause that is already there in the debian folder.
[14:31] <lfaraone> dipankar: those commands get the upstream tarball, not the rules fule.
[14:32] <lfaraone> *file
[14:32] <dipankar> oops..
[14:32] <dipankar> sorry
[14:32] <lfaraone> dipankar: although if you're using the git repository, it already should have information on how to recreate the tarball internally.
[14:32] <lfaraone> dipankar: when using git, you use "git-buildpackage" rather than "debuild" so it handles that for you.
[14:33] <lfaraone> dipankar: not a problem.
[14:34] <dipankar> lfaraone, that means if I use 'git-buildpackage' then I don't have to bother about the .orig file being present or not..
[14:34] <dipankar> unlike debuild
[14:35] <lfaraone> dipankar: in this case, yes.
[14:35] <dipankar> Ok
[14:35] <lfaraone> (if I recall correctly)
[14:36] <lfaraone> dipankar: but that only works for packages that are maintained in git, and only if the tarball was imported before at some point. which is probably the case here. if it weren't, and you got the same message warning about a missing orig.tar.bz2, you'd still have to download it as indicated previously.
[14:38] <dipankar> hmm... ok lfaraone
[14:38] <lfaraone> dipankar: confusing enough for you? :D
[14:39] <dipankar> lfaraone, you got that buddy..
[14:39] <dipankar> I was gonna compress the package that I downloaded from the debian using 'debcheckout' to a .orig file
[14:40] <dipankar> 'cause I got it in a directory/uncompressed form
[14:41] <dipankar> lfaraone, shall proceed like I said above?
[14:43] <lfaraone> dipankar: you mean to an .orig.tar.bz2 file? no.
[14:43] <dipankar> nope.. to a .orig.tar.gz..
[14:44] <lfaraone> dipankar: you usually don't create the original upstream tarball (the .orig.tar.{bz2, gz, lzma} file), you use the one provided *upstream*.
[14:44] <dipankar> because I am having only a source tar ball named 'sugar-presence-service-0.88.0.tar.bz2'
[14:44] <lfaraone> dipankar: the orig is supposed to be te unmodified source from the people who release the software.
[14:44] <lfaraone> dipankar: okay, you downloaded that from the sugarlabs site, right?
[14:45] <dipankar> Ohk.. That means it should not have the debian folder
[14:45] <dipankar> @ your question: yes
[14:45] <lfaraone> dipankar: it means you shouldn't create it yourself. :)
[14:45] <dipankar> :P
[14:45] <lfaraone> dipankar: just rename sugar-presence-service-0.88.0.tar.bz2 to sugar-presence-service-0.88_0.88.0.orig.tar.bz2 or whatever it is supposed to be called.
[14:46] <lfaraone> dipankar: the Debian build process will accept an orig.tar.* in bz2, gz, and lzma formats. Since Sugar Labs uses bz2 upstream, we're keeping it with a terminal ".bz2" at the end.
[14:46] <dipankar> ok.. Also should that be kept in the directory where I am making the package?
[14:47] <lfaraone> the orig.tar.* should be in the directiory above the directory that contains the debian/ folder and the unpacked sources.
[14:48] <dipankar> just to cross check I have the following lines in the rule file now:
[14:48] <dipankar> include /usr/share/cdbs/1/rules/upstream-tarball.mk
[14:48] <dipankar> include /usr/share/cdbs/1/rules/utils.mk
[14:48] <dipankar> include /usr/share/cdbs/1/class/python-autotools.mk
[14:48] <dipankar> include /usr/share/cdbs/1/rules/debhelper.mk
[14:49] <lfaraone> dipankar: yes.
[14:51] <lfaraone> dipankar: here's an example of what my directory tree looks like: http://sprunge.us/SbRK
[14:51] <lfaraone> dipankar: this is for another package, but the idea is the same.
[14:51] <lfaraone> dipankar: (ignore the "-> ..." and the last line, that's just to save space on my disk)
[14:56] <dipankar> ok lfaraone, that was helpful. But I guess the '.debian.tar.gz' and '.tar.gz' will be generated after building the package.
[14:57] <lfaraone> dipankar: that is correct.
[15:00] <dipankar> lfaraone, building package using command git-buildpackage
[15:01] <dipankar> oops.. have to install it first. :)
[15:02] <dipankar> lfaraone, I am getting this error msg : /home/dipankar/work9/sugar-presence-service-0.88.0 is not a git repository
[15:03] <lfaraone> dipankar: are yoi in the directory that contains the debian/ directory?
[15:03] <dipankar> yes
[15:04] <lfaraone> dipankar: what does "ls .git" tell you?
[15:04] <dipankar> lfaraone, here is the o/p: ls: cannot access .git: No such file or directory
[15:05] <lfaraone> dipankar: okay. so this isn't the directory that was created with debcheckout, right?
[15:05] <dipankar> no.. that I downloaded somewhere else
[15:06] <lfaraone> dipankar: okay. git-buildpackage only works in the directories that contain git repositories. I thought you were working in that directory...
[15:06] <lfaraone> cd into that one and run "git-buildpackage"
[15:08] <dipankar> ok lfaraone, now I can run the command.. but i get the following o/p:
[15:09] <dipankar> test -x debian/rules
[15:09] <dipankar> dh_testroot
[15:09] <dipankar> rmdir build
[15:09] <dipankar> rmdir: failed to remove `build': No such file or directory
[15:09] <dipankar> make: [cleanbuilddir] Error 1 (ignored)
[15:09] <dipankar> rm -f debian/stamp-makefile-build debian/stamp-makefile-install
[15:09] <dipankar> /usr/bin/make  -C build  -k distclean
[15:09] <dipankar> make: *** build: No such file or directory.  Stop.
[15:09] <dipankar> make: [makefile-clean] Error 2 (ignored)
[15:09] <dipankar> rm -f debian/stamp-makefile-check
[15:09] <dipankar> rm -f debian/stamp-autotools
[15:09] <dipankar> rmdir --ignore-fail-on-non-empty build
[15:09] <dipankar> rmdir: failed to remove `build': No such file or directory
[15:09] <dipankar> make: [makefile-clean] Error 1 (ignored)
[15:09] <dipankar> rm -f debian/cdbs-install-list debian/cdbs-package-list debian/stamp-copyright-check debian/stamp-buildinfo
[15:09] <dipankar> rm -f debian/stamp-autotools-files
[15:09] <dipankar> dh_clean
[15:09] <lfaraone> dipankar: please don't paste into the channel. use something like http://paste.ubuntu.com so it's readable :)
[15:09] <dipankar> Pristine-tar branch "pristine-tar" not found
[15:09] <dipankar> pristine-tar: successfully generated /home/dipankar/sugar-presence-service-0.88_0.88.0.orig.tar.bz2
[15:09] <dipankar>  dpkg-buildpackage -rfakeroot -D -us -uc -i -I
[15:09] <dipankar> dpkg-buildpackage: set CFLAGS to default value: -g -O2
[15:09] <dipankar> dpkg-buildpackage: set CPPFLAGS to default value:
[15:09] <dipankar> dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
[15:10] <dipankar> dpkg-buildpackage: set FFLAGS to default value: -g -O2
[15:10] <dipankar> dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
[15:10] <dipankar> dpkg-buildpackage: source package sugar-presence-service-0.88
[15:10] <dipankar> dpkg-buildpackage: source version 0.88.0-1
[15:10] <dipankar> dpkg-buildpackage: source changed by Jonas Smedegaard <dr@jones.dk>
[15:10] <dipankar> dpkg-buildpackage: host architecture i386
[15:10] <dipankar> dpkg-checkbuilddeps: Unmet build dependencies: dh-buildinfo
[15:10] <dipankar> dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
[15:10] <dipankar> dpkg-buildpackage: warning: (Use -d flag to override.)
[15:10] <dipankar> debuild: fatal error at line 1340:
[15:10] <dipankar> dpkg-buildpackage -rfakeroot -D -us -uc -i -I failed
[15:10] <dipankar> debuild -i -I returned 29
[15:10] <dipankar> Couldn't run 'debuild -i -I'
[15:10] <dipankar> oops..
[15:10] <dipankar> won't happen again
[15:10] <lfaraone> dipankar: no worries, it's just messy.
[15:11] <lfaraone> dipankar: the "Unmet build dependencies" line means that there are some packages needed to build the s-p-s package that you are missing.
[15:11] <dipankar> http://paste.ubuntu.com/454471/
[15:11] <dfarning> dipankar, are you familar with git?
[15:11] <lfaraone> dipankar: to fix that, run "sudo apt-get install PACKAGE_NAME". In this case, "sudo apt-get install  dh-buildinfo"
[15:12] <dipankar> sorry lfaraone, i have never used git
[15:12] <dfarning> it is very useful.... but really confusing (at first) source code management system.
[15:13] <dipankar> I have always built packages using 'debuild'
[15:14] <dfarning> dipankar, http://en.wikipedia.org/wiki/Git_(software) is a good introductory link.
[15:14] <dipankar> lfaraone, done : sudo .. dh-buildinfo
[15:18] <dipankar> lfaraone, dfarning, now git-buildpackage in running but it is not completing. Error: gpg: /tmp/debsign.L9VUNP6g/sugar-presence-service-0.88_0.88.0-1.dsc: clearsign failed: secret key not available
[15:19] <lfaraone> dipankar: that is just because you're building a package without modifying it.
[15:19] <dipankar> I guess the maintainer name has to do something with this error..
[15:19] <dipankar> in the control file
[15:20] <lfaraone> dipankar: you can ignore that for now, and sign the file manually with "debsign -k<Your GPG Key ID Here> <Path To File To Sign>"
[15:20] <dipankar> lfaraone, not that thing..
[15:25] <dipankar> lfaraone, its not working
[15:25] <dipankar> debsign: Only a .changes, .dsc or .commands file is allowed as argument!
[15:26] <dipankar> oops.. lfaraone I was leaving a flag
[15:27] <dipankar> -k
[15:27] <dipankar> which all files are to be signed??
[15:27] <dipankar> .changes, .dsc and .commands??
[15:28] <dipankar> dfarning, are you there?
[15:28] <lfaraone> dipankar: well, if you sign the .changes file it'll also sign the .dsc file.
[15:28] <lfaraone> dipankar: .commands is not relevant for our purposes.
[15:28] <dfarning> dipankar, yes
[15:28] <dipankar> ok.. got it
[15:29] <lfaraone> dipankar: you don't need to sign the .changes file until we're getting ready to upload.
[15:29] <lfaraone> dipankar:  I usually like to test the .deb first on my local system to confirm that it is functional.
[15:29] <dipankar> dfarning, i thought I got disconnected.. thats why pinged you.. :)
[15:29] <lfaraone> dipankar: then you do a source build with "git-buildpackage -S" (like when you did "debuild -S"), sign the resulting sugar-presence-service-0.88_0.88.0-1_source.changes and dsc, and dput the changes.
[15:30] <dipankar> ok.. lfaraone.. Test before you upload..
[15:30] <dipankar> I will remember that
[15:31] <dfarning> dipankar, I think lfaraone is also helping jussi with some channel admin stuff that I did not understand:)
[15:31] <dipankar> ok dfarning. Got it..
[15:31] <jussi> yeah, Im just waiting on one command
[15:31] <dipankar> hi jussi
[15:32] <jussi> hi dipankar
[15:32] <lfaraone> dfarning: I'm not a founder for #ubuntu-sugarteam, but you, dogi, jelkner, and morgs are.
[15:32] <lfaraone> dfarning: so you'd have to run that.
[15:35] <dipankar> hey lfaraone, dfarning. I removed the existing sugar-presence-service from my computer and installed it again from the .deb I just created. The problem is still occuring
[15:36] <lfaraone> dipankar: use "file-roller sugar-presence-service-0.88_0.88.0-1_all.deb" , look in "data", and tell me what's inside the "usr" folder.
[15:37] <lfaraone> dipankar: when I attempted the above, I have "usr/share/[...]" and a "usr/bin/sugar-presence-service" file
[15:38] <dipankar> The file is EMPTY!!
[15:39] <lfaraone> dipankar: hm?
[15:39] <dipankar> Let me try installing again lfaraone
[15:41] <dipankar> still the same lfaraone
[15:42] <lfaraone> dipankar: so when you do the following sequenece of commands you encounter the same problem? "cd `mktemp -d`; debcheckout sugar-presence-service-0.88; cd sugar-presence-service-0.88; git-buildpackage; cd ../; sudo dpkg -i sugar-presence-service-0.88_0.88.0-1_all.deb"
[15:42] <lfaraone> dipankar: copy and paste that into your terminal.
[15:48] <dipankar> lfaraone, done.. but I am now at different working dir : dipankar@dipankar-laptop:/tmp/tmp.OlNS6Lu9GU$
[15:50] <dipankar> hey lfaraone, I have to go somewhere.. how about I meet you in 20-25 minutes?
[15:50] <lfaraone> dipankar: no worries. I might be AFK by that point, though.
[15:51] <dipankar> Oh yeah.. So what to do after this
[15:51] <dipankar> ?
[15:51] <dipankar> You just send in the steps..
[15:51] <dipankar> when I will return I will carry them out
[15:52] <lfaraone> dipankar: sure. it also might be worthwhile to work through http://wiki.debian.org/Sugar/GettingStartedGuide and let me know where you find it confusing or have trouble.
[15:55] <dipankar> brb in 20 minutes
[16:33] <dipankar> dfarning, lfaraone : I am back
[16:33] <lfaraone> dipankar:  yep?
[16:34] <dipankar> last step I have done is: dipankar@dipankar-laptop:/tmp/tmp.OlNS6Lu9GU$
[16:34] <dipankar> I am here
[16:34] <dipankar> lfaraone,  ^^
[16:36] <dipankar> dfarning, lfaraone : why using git this time?
[16:37] <lfaraone> dipankar: we were using git before, no?
[16:37] <lfaraone> dipankar: please copy and paste what's in your terminal into a pastebin such as paste.ubuntu.com
[16:37] <dipankar> lfaraone, as far as I remember, we used debuild to make packages
[16:38] <lfaraone> dipankar: git-buildpackage invokes debuild
[16:38] <lfaraone> dipankar: we're going to be moving to using git for all our packages, it has the benefit of providing a version control system for our changes (via having all of the functionality of a git repo)
[16:39] <dfarning> dipankar, debuild is a 'standard way' of building packages.  git and git-buildpackage add a _very_ helpful layer of source code management to the process.
[16:40] <dipankar> hmm.. lfaraone, here is the terminal status : http://paste.ubuntu.com/454510/
[16:41] <lfaraone> dipankar: okay, so the first command took you into a temporary directory.
[16:41] <dfarning> dipankar, git is what the debian-olpc team (mainly jonas) uses.  There are long term advantages to using the same tools as upstream.
[16:41] <dipankar> got it
[16:41] <lfaraone> dipankar: the second checked out the upstream sources and the third entered the directory
[16:41] <lfaraone> dipankar: then we invoked git-bp to build the package, and installed it using dpkg
[16:41] <lfaraone> dipankar: so now you should have installed the version of s-p-s that is in debian-olpc's git.
[16:42] <lfaraone> dipankar: do you have a sugar-presence-service binary now?
[16:43] <dipankar> lfaraone, I am confused with which file you are referring binary to.. does binary refer to .dsc, .changes files?
[16:45] <lfaraone> dipankar: sorry, I mean you should now have a sugar-presence-service program installed in your computer.
[16:45] <lfaraone> dipankar: "which sugar-presence-service" should return something.
[16:45] <dipankar> ohl
[16:45] <dipankar> *ohk
[16:46] <dipankar> ok.. lfaraone now the problem of 's-p-s' not found is gone
[16:46] <dipankar> but lfaraone a new error is showing up:
[16:47] <dipankar> ImportError: cannot import name env
[16:47] <dipankar> File "/usr/share/sugar-presence-service/main.py", line 25, in <module>
[16:47] <dipankar>     from sugar import env
[16:48] <dipankar> lfaraone, I guess that problem is due to the reason that I have not installed 'usr' on my laptop
[16:49] <lfaraone> mTWsC1nc
[16:49] <lfaraone> oh fsck.
[16:49] <dipankar> lfaraone, what happened??
[16:50] <lfaraone> nothing.
[16:50] <dipankar> lfaraone, did I do something wrong?
[16:51] <lfaraone> dipankar: no, I made a mistake. nothing to do with you.
[16:51] <dipankar> ohk
[16:52] <dipankar> dfarning, I suppose it was planned out to move the packages to git..
[16:52] <dipankar> as you mentioned in the ubuntu mailing list dfarning
[16:54] <dfarning> dipankar, yes. I think that working as closely as possible to debian will reduce the amount of time and effort we spend in maintain mode.
[16:55] <dfarning> dipankar, much better to spend that time improving sugar on both projects.
[16:56] <dipankar> dfarning, ok..
[16:56] <dipankar> dfarning, you are the boss!! :)
[16:57] <dipankar> dfarning, Just kidding
[17:05] <dipankar> dfarning, lfaraone : i'm going for dinner..
[17:06] <dipankar> will join in 15 minutes
[17:20] <dipankar> so dfarning : is the package ready for uploading to ppa?
[17:30] <dfarning> dipankar, sorry every one came home from swiming lessons and was hungary for lunch:)
[17:30] <dipankar> dfarning, its alright!
[17:30] <dfarning> will we back as soon as the littles two are sleeping.
[18:06] <dipankar> dfarning, lfaraone : I managed to start Sugar from Applications->Education->Sugar..
[18:07] <dipankar> thanks to both of you lfaraone and dfarning
[18:13] <dfarning> dipankar, awesome. I am trying now.
[18:13] <dipankar> wait..
[18:13] <dipankar> the new package is not uploaded yet
[18:15] <dipankar> I tried it from the package that I made on my laptop
[18:15] <dfarning> dipankar, ok, no hurry.... I am just looking forward to seeing it work:)
[18:16] <dipankar> dfarning, shall I send you the package .deb file?
[18:17] <dfarning> dipankar, sure that would be good.
[18:24] <dipankar> dfarning, please accept the file
[18:30] <dipankar> dfarning, you there?
[18:32] <dipankar> dfarning, I am very exhausted today.. :( I need to catch some sleep. Will contact when I wake up.
[23:35] <lfaraone> dfarning: I'm ready when you are for a call, either today or tomorrow. you have my GV#.