Menu

#82 Add py27-mercurial + dependencies to ipkg package list

open
2016-03-05
2016-03-03
daniel kho
No

Hi,
I would like py27-mercurial to be part of the package list in ipkg. Currently, I have to download it and all its dependencies.

Here is the list of dependencies which I downloaded:
libdb_4.2.52-3_arm.ipk
libstdc++_5.0.5-6_arm.ipk
ncursesw_5.7-2_arm.ipk
python27_2.7.3-1_arm.ipk

and of course, py27-mercurial_1.9-1_arm.ipk.

There is a problem when installing mercurial, which is actually quite easy to resolve (I think) if done by ipkg itself. When installing py27-mercurial, the installer thinks that it requires the package python27. So I downloaded python27 package (as above), and the installation of py27-mercurial completed successfully.

However, when running /opt/bin/hg-py2.7, there is an error. Somehow, py27-mercurial didn't really work with the python27 package, though it actually "requires" the package. So, what I did was to remove python27 package (only perform the remove after py27-mercurial installation has completed). I then installed the default "python" package already available in the repository.

Finally, manually edit the shebang line of the /opt/bin/hg-py2.7 script to use the new python version instead of python2.7. The shebang line at the first line of this script should be (assuming the script was opened by a text editor such as vi):
#!/usr/bin/python

Finally, finally:
I made a symlink from hg-py2.7 to hg
ln -s /opt/bin/hg-py2.7 /opt/bin/hg

  • dan

Discussion

  • João Cardoso

    João Cardoso - 2016-03-03

    where do you download py27-mercurial and the other dependencies from?
    Used the box ipkg and/or edited /etc/ipkg.conf? That can make the package manager webUI to missbehave.

     
  • daniel kho

    daniel kho - 2016-03-05

    At first I manually downloaded the packages from optware website and used ipkg to install them. However, I soon found out that I can use ipkg to directly install from the site.

    I wrote a script (as attached) to do that.

    • dan
     

Log in to post a comment.