![]() |
Mercurial on Maemo 5/N900
Hello,
I wanted to develop on my N900 so I needed a version control software. I have seen that Subversion was available but I personnally prefer Mercurial. So I took the last version (1.4.1) and try to build it on the Scratchbox. Amazingly enough, it works the first time without any problem. I then just copied the files on my N900 and so far everything is working perfectly. Maemo 5/N900 is indeed fantastic :) P.S. : I would gladly try to make a deb and submit it, but I began to read everything about dh_make and maemo-optify and realized that I couldn't do it before next month (not enough time). |
Re: Mercurial on Maemo 5/N900
Quote:
|
Re: Mercurial on Maemo 5/N900
Quote:
Actually you just have to create a file in the debian folder to handle the optify now. "echo 'auto' > debian/optify" As for dh_make. What I do is go find the latest version of the package on the debian site. If what debian has is fairly recent I might just use that version, but if I want the latest & greatest; then I'll pull the tar.gz from the source web site. Extract it and then I copy the debian folder out of the "older" version into the new version folder. Then update the changelog to specify it is a maemo port. Fix any minor configurations in the rules file. Then test build the binary packages on armel scratchbox until I get everything fixed. Sometimes if the package has been ported before to diablo; you can look at those for the debian folder and you can use that instead. Nathan. |
Re: Mercurial on Maemo 5/N900
Do someone got a new version of mercurial for N900? The one in repo seems to be broken.
Code:
hg |
Re: Mercurial on Maemo 5/N900
I'm bumping this.
|
Re: Mercurial on Maemo 5/N900
Hi,
I hope I'm not beating a dead horse with that answer, but I recently decided to install mercurial on my N900 and I *seem* to have gotten it to work (at least running 'hg' returns the help text and no python messages about missing packages). It seems that the post-install script of mercurial_1.4.1-maemo1_armel.deb is broken, because it removes the directories mercurial and hgnext under /usr/lib/python2.5/site-packages/ after being installed, supposedly to eliminate "wrong" packages from mercurial-common_1.4.1-maemo1_all.deb, but by doing this, it also removes the version of those directories it provides itself, so the user is left without any python-modules for mercurial :confused: Anyway, the way I managed to get it to work: - first install python-dev (omitting this appearently causes the infamous " No module named osutil" error) - then install the mercurial package (which will install mercurial-common too, as it depends on this package) - then install the mercurial-common package AGAIN to bring back the site-packages the mercurial postinstall script removed: Code:
dpkg -i /var/cache/apt/archives/mercurial-common_1.4.1-maemo1_all.deb It would be nice if the maintainer could fix the package, as I don't really have a clue how to do that, and don't have time atm to dive into the depth of the debian package system... Regards, Eagle_Linux |
Re: Mercurial on Maemo 5/N900
Code:
$ hg |
Re: Mercurial on Maemo 5/N900
Yeah, I had the osutil problem too, earlier, but installing python-dev seems to have fixed the problem for me. If not, try installing the packages again, first mercurial then mercurial-common, and let me know if it worked :)
|
Re: Mercurial on Maemo 5/N900
I have reinstalled python-dev both before and after mercurial same problem. Have purged the packages and tried install them in all kinds of different orders e.c and no luck. Either i get the first errors with the missing pathes or osutils problem.
|
Re: Mercurial on Maemo 5/N900
Hmm, strange. Did you install with two seperate commands, i.e.
Code:
dpkg -i mercurial_1.4.1-maemo1_armel.deb As a result, there should be a /usr/lib/python2.5/site-packages/mercurial and a /usr/lib/python2.5/site-packages/hgext directory. Another option would be to extract the deb files with dpkg -X [filename] and then move the site-packages tree to /usr/lib/python2.5 manually. But then again, it worked for me without that, so I'm not sure if it would work or have other unforseen consequences... EDIT: removed a typo |
Re: Mercurial on Maemo 5/N900
I got those folders and i did as you suggested and extracted the deb files and manually copied them over and same problem with osutil.. :/
|
Re: Mercurial on Maemo 5/N900
I had the same problem. It seems that the postinstall sript in mercurial_1.4.1-maemo1_armel.deb deletes the folder that to where it tries to install the osutil.so (should be in /usr/lib/python2.5/site-packages/mercurial if not in there, then the next steps might help).
To fix this I did the following:
|
Re: Mercurial on Maemo 5/N900
I installed gcc and g++ and downloaded the latest mercurial source and compiled it on the device.
|
All times are GMT. The time now is 09:14. |
vBulletin® Version 3.8.8