OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: lardman on August 20, 2004, 01:32:43 pm

Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: lardman on August 20, 2004, 01:32:43 pm
ipkg-link is a script and it's hard-coded with the 'dest' locations.

If I decided to create a new installation point (by adding the dest ... line to /etc/ipkg.conf) this is not picked up by ipkg-link.

This is not a major issue unless you have a C machine and want to use your /home directory to install stuff too.

Has this been fixed in a later version or shall I set to work updating it?

Cheers,


Si
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: zenyatta on August 23, 2004, 07:42:27 am
Hmmm... suddenly a couple of things fall into place... Thanks for the footwork so far.

z.
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: jesizmi on August 24, 2004, 07:08:59 am
could this be the reason that all my attempts failed, to make my 2nd partition of my SD the target for installation on SD?
I added the dest line to ipkg.conf but still every installation was placed in card (mmcda1)

Tx for reply

j.
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: lardman on August 24, 2004, 08:42:14 am
Depends what you mean by fail; the files should have been installed correctly, but they just wouldn't have been linked (and so wouldn't have worked).

This isn't what your problem sounds like (everything was placed in /dev/mmcda1). Where was your mount point (was it mounted correctly, etc.)? What command line options did you use?


Si
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: jesizmi on August 24, 2004, 12:12:48 pm
No command line options as far as i'm aware of, since i use the graphical ipkg  installer. When asked where to install, i chose SD from the popup.

But i improved the situation by tweaking sdcontrol and fstab, so that now mmcda1 is mounted to /mnt/card2 and mmcda2 to /mnt/card. Now I'm able to install to the ext2-partition. The draw back is, that PC-Link in storage mode as well tries to get on mmcda2, witch with windows does no good.
But i can live with that. I just thought it would be nice to have things properly arranged and everything in the right place.
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: Bundabrg on September 28, 2004, 04:37:49 am
For testing, I've modified ipkg-link. It now parses /etc/ipkg.conf. It (should) remain parameter compatible with programs that use existing ipkg-link.

IPKG Update (http://dev.worldguard.com.au/ipkg-link)

 - Bundabrg
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: lardman on September 28, 2004, 05:54:00 pm
Does this still hold true with OZ3.5.1?

If so, Bundabrg, you should submit a patch to the current ipkg-link (though I've no idea where it lies).

If someone can confirm that the standard ipkg-link still doesn't use /etc/ipkg.conf then I'll do some digging and work how ipkg-link is created by OE.


Si
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: Bundabrg on September 28, 2004, 11:32:25 pm
I'm running 3.5.1, and yes it has the stuff hard coded in.

My file above is for 3.5.1 though I suspect it will work for all versions that use ipkg-link since its really just a simple shell script.

I have no idea where to submit the file, but I was hoping to have it tested a bit whilst I figure that one out ;-)

 - Bundabrg
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: ironstorm on September 29, 2004, 11:40:59 pm
That's funny...  

I just had the same thought myself and rewrote ipkg-link the other night to do the same thing...

http://stacktrace.org/index_html/ipkg-link2 (http://stacktrace.org/index_html/ipkg-link2)

oh well...   one thing I added was check to make sure that the mount points are all valid...  

Cheers

-G
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: Bundabrg on September 30, 2004, 08:19:15 am
Ahh but can it wash the dishes as well ;-)

 - Bundabrg
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: awaldram on September 30, 2004, 08:23:33 am
I think your getting confused

thated be ipkg-sink not ipkg-link
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: Bundabrg on October 04, 2004, 09:10:18 pm
Whoops, my mistake.

 - Bundabrg
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: _Psycho on October 19, 2004, 02:03:14 pm
Thanks for the fix, worked great
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: donotresus on October 27, 2004, 12:50:26 pm
I think my problem falls under here.

I am trying to install my programs to the CF card I have, I followed the instructions on the thread titled Steps to a Package Manager under 3.5.1

However, the linking always fails. I always get an Operation Not Permitted error anytime ipkg-link or ln is called on the cf card. I have updated my ipkg-link script to the first one posted here.

This is meaning I can't install any software

Can anyone help?

Dave
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: dansawyer on October 27, 2004, 07:17:34 pm
Maybe,

How is the CF card formatted? It is probably formated as DOS or VFAT. In order for 'links' to work the destination must be formatted as ext2. This is a common problem with installing packages to sd cards. I assume it is the same for CF.

I have never formatted a CF to ext2 it. I suspect it should work.

Dan
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: donotresus on October 27, 2004, 07:43:20 pm
I shall try formatting my card to ext2, thanks alot if it works, if it doesn't thanks anyways
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: carpman on October 27, 2004, 07:55:28 pm
Yes, formating any sd or cf card to ext2 will allow you to link to it. You can also split the card and have a fat and ext2 partition. This is useful if you want to use usb-storage and have a windows machine read the SD card, or use the sd card in a camera as well.
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: Bundabrg on October 28, 2004, 07:23:47 am
Yeah, copy everything off the CF, and do the following:

Code: [Select]
umount /mnt/card
mkfs.ext2 /mnt/card
mount /mnt/card

Now things should be ok. However you won't be able to use this card in a windows box or camera etc... now (Though you can of course reformat it on these).

 - Bundabrg
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: zenyatta on October 28, 2004, 11:01:04 am
Shameless self-promotion: for multiple partitions on a card, see my How-to (http://www.zaurususergroup.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Multiple%20partitions%20on%20a%20CF%20%2F%20SD%20card).

z.
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: systemparadox on December 14, 2004, 07:44:47 am
I have two partitions on my sd card. It all worked fine before, as i changed sdcontol to mount mmcda2 (the ext2 partition) automatically, not mmcda1 (the fat partition). This got annoying as I would have to change sdcontrol everytime i wanted to use a fat card.
I have tried both new versions of ipkg-link on this thread, but they both fail when trying to link packages on /mnt/ext. For some reason they are either trying to make the links on /mnt/card (which is fat) or they are trying to link files from /mnt/card, which dont actually exist. Output:
Command: add
Locating package
found package on /mnt/ext
adding glider
ln: /mnt/card/opt/QtPalmtop/bin/glider: Operation not permitted
(the above is repeated for several files in the package)

What is going on?

Thanks
Simon
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: lardman on December 14, 2004, 08:37:06 am
Both fail with the same error?

What 'dest' lines do you have in /etc/ipkg.conf?

What is the exact command line you passed to ipkg-link?

What does 'mount' show?


Si
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: systemparadox on December 14, 2004, 10:41:20 am
I found out what it was. The lists for each package store the full path, which is a little stupid, if you change the mount point the packages won't link any more.
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: Mickeyl on January 05, 2005, 12:41:41 pm
lardman, did you submit this fix to the handhelds.org people yet?
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: lardman on January 05, 2005, 01:12:10 pm
Yep, I submitted a bug with an explanation and a link to this thread as an example of the way of solving it.

I did this pretty much as soon as the two examples ipkg-link scripts were posted to give you an idea of time.

I suppose I should just submit the new script itself (with credit to the author of course).


Si
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: Mickeyl on January 05, 2005, 07:31:32 pm
Send it also to oe@handhelds.org (or directly to me) and I'll include it in OZ for the time being.
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: Greg2 on January 06, 2005, 09:27:26 am
When using this new ipkg-link script with a new directory in /home on a Z with a 2 partition flash (e.g. 5600, c-7xx) what would be the equivalent of the command:

ipkg-link mount /mnt/card

for linking multiple dependencies in /home/user?

ipkg-link add 'whatever' works great for a single app but some apps have many libs

Many thanks to everyone involved in fixing this.

Greg
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: Greg2 on January 13, 2005, 01:45:22 pm
A follow up note for 5600 owners:

I realize that my last question sounded a bit strange but using

ipkg-link mount /home/user

failed to link all the ipk dependencies in /home/user... (I don't know why?) however after a clean install on a 5600 with oz3.5.2 official using the new *ipkg-link and adding the line

dest home /home/

to the ipkg.conf and installing to /home you can use

ipkg-link mount /home

and it will find and link everything in /home

*This ipkg-link:
http://dev.worldguard.com.au/ipkg-link (http://dev.worldguard.com.au/ipkg-link)

This has given me the cleanest and easiest install of OZ on a 5600 in over a year. YMMV

Hope this helps someone.

Greg
Title: ipkg-link doesn't obey /etc/ipkg.conf dest entries
Post by: lardman on January 14, 2005, 05:21:14 am
Quote
I realize that my last question sounded a bit strange but using

ipkg-link mount /home/user

failed to link all the ipk dependencies in /home/user... (I don't know why?)

Strange, it works fine for me.

'ipkg-link mount /home/user'

with 'dest user /home/user/' in /etc/ipkg.conf


Si