OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => 6000 - Tosa => Topic started by: inode0 on January 06, 2005, 07:54:35 pm

Title: Ipkg Internals
Post by: inode0 on January 06, 2005, 07:54:35 pm
This likely isn't the best place for me to ask, but being new around here I'll just hope I hit someone with the answer.  I've compiled a boatload of stuff for the 6K including heimdal, hesiod, screen, ddate, and cowsay (ok that isn't compiled but how can people live without it).  I'm experimenting with the ipkg system now and am wondering if while using a preinst script one can determine the target location of the install that is about to occur?  Is it going to the SD card?  CF card?  It seems that if one wants to be careful preparing for an install (is there room on the device?  am I about to clobber something?  are links available on the filesystem?) one really needs a way to know where the stuff is *really* headed.

Any tips on determining this location from the preinst script would be most appreciated.

Thanks,
John
Title: Ipkg Internals
Post by: lardman on January 07, 2005, 07:51:07 am
Quote
can determine the target location of the install that is about to occur

Do you mean whether it's going to be installed to root/cf/sd (because you will know the file structure as you created the package)?

You could just open the ipkg script (assuming you're not using OZ) and take a look there at the var names and how the scripts are called. If you're using (the vastly better version of ipkg in) OZ, look at the source from handhelds.org.


Si
Title: Ipkg Internals
Post by: inode0 on January 21, 2005, 11:44:24 pm
Since I"ve mostly been building GNU software, I've been installing it in /usr.  It would be nice if that could be /mnt/cf/usr or /mnt/card/usr but I haven't figured out how to accomplish that.  I'm also still running the stock sharp rom as I get acquainted with my first zaurus.

Tonight I learned how to configure my repository as a feed and discovered that my dependencies are fubar too.  Some I can see how to fix.  But I'm curious about the libc6 dependency that seems to be in every package I've looked into.  Is that necessary or useful?  This is what I see checking dependencies with ipkg when that is listed.

# ipkg depends bc
ipkg_depends: Warning: libc6 mentioned in dependency but no package found in /usr/lib/ipkg/lists

Perhaps I don't quite have ipkg configured to know what is in the base system or perhaps that just shouldn't be listed as a dependency at all?  Anyone have a clue to offer me about this?

Thanks,
John