Author Topic: Ipkg-link Why?  (Read 4529 times)

JohnKiniston

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://
Ipkg-link Why?
« on: March 31, 2005, 03:26:07 pm »
Playing with my Z today I ended up installing a bunch of java ipks that I wanted to try and ended up running low on space in / due to all the linking of packages going on.

This made me stop and ask Why do we have to link everything?

Is this just because thats how it was done with the sharp rom? Is this to make things backwards compatible with QT/Embedded ? Does OPIE just require everything to live in /opt/QtPalmtop/xxx ?

Why cant we have software that lives happily un-linked on our external media? Couldnt we modify the search paths of OPIE or something similar if that's the only reason we do all this linking?

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ipkg-link Why?
« Reply #1 on: April 01, 2005, 05:16:21 am »
What you propose would be possible, but you'd also need to alter the value of the PATH envvar every time external media was inserted (not a major issue admittedly), so that things installed to /mnt/cf/usr/bin (etc.) would be picked up.

I don't know why it's done this way (though I imagine some apps need to be in /usr/local/whatever and won't accept living elsewhere which might be one reason), perhaps a question for the openzaurus-users/devel mailing list.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ipkg-link Why?
« Reply #2 on: April 01, 2005, 06:34:47 am »
After browsing the openzaurus-* mailing lists I see talk of moving to unionfs eventually. I don't know how it works, but kergoth was talking about it removing the need for symlinks all over the place.

Might be worth taking a look at it.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Cwiiis

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Ipkg-link Why?
« Reply #3 on: April 01, 2005, 07:06:28 am »
If there are any adventurous OE users out there, try building an image with task-bootstrap-unionroot instead of task-bootstrap - unionfs + the scripts need a little work before this will work properly though...

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
Ipkg-link Why?
« Reply #4 on: April 01, 2005, 08:24:42 am »
i've started a thread on linuxquestions.org about transparent (or semi-transparent) mounts, mainly for this purpose. Apparently it is possible to use bind mounts. Still checking things out- will get back to you if I find anything.
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.

talmage

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://talmage.pycs.net/
Ipkg-link Why?
« Reply #5 on: October 24, 2005, 05:18:31 pm »
Quote
What you propose would be possible, but you'd also need to alter the value of the PATH envvar every time external media was inserted (not a major issue admittedly), so that things installed to /mnt/cf/usr/bin (etc.) would be picked up.

Why change PATH every time you mount new media?  As long as you follow the convention of installing to ${MEDIAROOT}/packages, you can predict the directories that have to be in PATH.  Just append them to the end of PATH once.  E.g. If you have a bunch of SD cards with apps on them, add /media/card/packages/opt/QtPalmtop/bin to PATH.

I'm guessing, but couldn't you add nearly the same information to /etc/ld.so.conf?  E.g. for the SD cards, add /media/card/packages/opt/QtPalmtop/lib to /etc/ld.so.conf.

Is that enough to make Opie find everything?

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ipkg-link Why?
« Reply #6 on: October 24, 2005, 05:47:23 pm »
Might work, try it.

Opie also looks for files in fixed locations, so pics and other odds & sods though.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

talmage

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://talmage.pycs.net/
Ipkg-link Why?
« Reply #7 on: October 24, 2005, 06:20:28 pm »
Well, I tried it.  The results were mixed.  You can edit LD_LIBRARY_PATH in /etc/init.d/opie.  You can edit PATH in /etc/init.d/opie and /etc/profile.d/opie_defaults.  Reboot OZ and Opie won't find applications on PATH.  You can start those apps in a shell but they don't get any of their icons and other shiny bits.

I see now that lardman is right.  Opie expects pictures and such in one place.  What a shame.

The answer is either to change Opie so it looks in a PATH-like environment variable for pictures and what not or to use that unionfs mentioned above.

lpotter

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
    • http://qtopia.net
Ipkg-link Why?
« Reply #8 on: October 24, 2005, 07:53:50 pm »
Sounds like Opie needs a port of Qtopia's 'qtopiapaths'.
Software Engineer, Systems Group, MES, Trolltech
irc.freenode.net #qtopia
http://qtopia.net