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