Author Topic: Cacko Ipkg Dependancies  (Read 6951 times)

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
Cacko Ipkg Dependancies
« Reply #15 on: June 20, 2006, 04:35:40 am »
Ali,

You are right ... just half of it.  ... You still need a file named "Packages" in your local feed/directory that ipkg can update from.

eg,
In http://zaurus.spy.org/feeds/cacko/pdaXrom/1.1.0/rc10/feed/ there is a file called "Packages" ... http://zaurus.spy.org/feeds/cacko/pdaXrom/...0/feed/Packages

It contains definitions of the packages in that feed ... like

Quote
Package: abiword
Priority: optional
Section: Office
Maintainer: Alexander Chukov <sash@pdaXrom.org>
Architecture: armv5tel
Version: 2.2.7
Depends: fribidi, libglade, gtk2, popt
Description: AbiWord is a free word processing program similar to Microsoft Word. It is suitable for typing papers, letters, reports, memos, and so forth.
Size: 14.0M
...
...

So although you have the ipks in your local directory, if you want ipkg to update the ipk list from such a local feed, you need to have a corresponding "Packages" file in it.

ipkg reads from this file "Packages" instead of thrawling the feed itself, ie faster.
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>

Sy Ali

  • Full Member
  • ***
  • Posts: 122
    • View Profile
    • SyeedAli.com
Cacko Ipkg Dependancies
« Reply #16 on: June 20, 2006, 05:24:54 am »
Oh, I understand now.

I looked at the package building script and believed it was to create a single .ipk file.

I didn't understand that it was an index file used for package management.  I was confused by the terminology all along.  =)

..

My next question is:  Can I organize my ipks better?

Now that I have n-1 ipk files, can I put them in different sub-directories and create the "Packages"-index for each sub-directory?

Perhaps I should learn the "Packages"-index format -- maybe even rewrite the script in Ruby to learn it -- and try to do this:

games/
lib/

games/ contains game ipk files.  lib/ contains the dependancies.  I would build the packages-index file in games/ to reference dependancies on ipk files in lib/ .. is this possible?

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Cacko Ipkg Dependancies
« Reply #17 on: June 20, 2006, 05:53:39 am »
Quote
Quote
Quote
Quote
update will only refresh the Package Manager cache of packages listed on the remote feed
But isn't the file:///path/to/feed/ the right way to tell it where the remote feed is?  I used this setting and 'update' did not refresh the list.

Quote
you need the Packages files in your local feed in order for it to resolve dependencies for your local packages. once you got a proper Packages file in your local feed, then update will be able to refresh the cache with data from the local Packages file in your local feed assuming you create an appropriate Packages file for your local feed/files.
What is the "local feed"?  Where is it?

Once I put files into this local feed, how do I install software and have it check dependancies automatically?

Nothing I have been doing so far has worked with dependancy checking.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

If you made a local feed you also have to create a "Package" file in this feed.
At the bottom of [a href=\"http://dream.reichholf.net/wiki/Howto:IPK_Pakete_erstellen]this[/url] page you can find the script to create this file.

...tschüß, Gerhart
[div align=\"right\"][a href=\"index.php?act=findpost&pid=131791\"][{POST_SNAPBACK}][/a][/div]

Das Script dort baut nur IPK Dateien aber macht nicht die Packages Datei. Man braucht da ipkg-make-index
[div align=\"right\"][a href=\"index.php?act=findpost&pid=131954\"][{POST_SNAPBACK}][/a][/div]


oops, sorry, I accidentally posted in German
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
Cacko Ipkg Dependancies
« Reply #18 on: June 20, 2006, 05:54:47 am »
 Glad we are on the same page now.

I think some feeds do have libraries in different directories ... a simple script can generate the file, but you will need to fill in the dependencies as well! ... it might be easier to pull down the original Packages file and have a script process it to scrap out the package definitions and generate a final output.

As to different directories ... yes! I remember now ... in oz, there is like many feeds, each pointing to a different sub directory, one for apps, one for lib etc. That way, if a dependency is needed, ipkg will look through its own ipk lists (that comprises ipk infos from the Packages of each feed that is defined and active in /etc/ipkg.conf) ...

eg
src apps file:///mnt/cf/...my feed.../apps
src libs file:///mnt/cf/...my feed.../libs

and in each directory, the relevant ipks are inside and a single Packages file corresponding to each list of ipks for each directory.
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>

Lemuus

  • Newbie
  • *
  • Posts: 35
    • View Profile
Cacko Ipkg Dependancies
« Reply #19 on: July 24, 2006, 02:22:42 am »
I can't get i work!!!!, i read all the post in the forum!!!,
but when i run ipkg update:
Downloadling file:///mnt/card/feed/Packages ...
file:///mnt/card/feed/Packages: Unsupported scheme.

my ipkg.conf is
src localsd file:///mnt/card/feed

and i have the Packages file in /mnt/card/feed/
I'm using the Cacko rom 1.23
thanks for any help
Daniel.

gerhart.steiner

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • http://members.a1.net/gerhart.steiner
Cacko Ipkg Dependancies
« Reply #20 on: July 25, 2006, 02:22:47 am »
Quote
...
and i have the Packages file in /mnt/card/feed/
...

The Packages file and the *.ipks ?

How do you build the Packages-File?

And you've selected only this feed (localsd) in the ipkg.conf file?

...tschüß, Gerhart
...
C760, Cacko 1.22a, Qtopia 1.5.4 , SD 512 MB, CF 256 MB, Nokia Bluetooth DTL-1, Buffalo WLAN Airstation, GPS Emtac Crux II, ...

Lemuus

  • Newbie
  • *
  • Posts: 35
    • View Profile
Cacko Ipkg Dependancies
« Reply #21 on: July 25, 2006, 05:47:04 pm »
Quote
Quote
...
and i have the Packages file in /mnt/card/feed/
...

The Packages file and the *.ipks ?

How do you build the Packages-File?

And you've selected only this feed (localsd) in the ipkg.conf file?

...tschüß, Gerhart
[div align=\"right\"][a href=\"index.php?act=findpost&pid=136309\"][{POST_SNAPBACK}][/a][/div]
Yes, i have the Package file and the *.ipks, and i build the Package file with the script in this forum.
my ipkg.conf is:
# Written by Qt Palmtop Package Manager
src localsd file:///mnt/card/feed
dest root /
dest tmpinst /home/tmp/ipkg/inst

gerhart.steiner

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • http://members.a1.net/gerhart.steiner
Cacko Ipkg Dependancies
« Reply #22 on: July 26, 2006, 02:46:53 am »
Quote
Quote
Quote
...
and i have the Packages file in /mnt/card/feed/
...

The Packages file and the *.ipks ?

How do you build the Packages-File?

And you've selected only this feed (localsd) in the ipkg.conf file?

...tschüß, Gerhart
[div align=\"right\"][a href=\"index.php?act=findpost&pid=136309\"][{POST_SNAPBACK}][/a][/div]
Yes, i have the Package file and the *.ipks, and i build the Package file with the script in this forum.
my ipkg.conf is:
# Written by Qt Palmtop Package Manager
src localsd file:///mnt/card/feed
dest root /
dest tmpinst /home/tmp/ipkg/inst
[div align=\"right\"][a href=\"index.php?act=findpost&pid=136403\"][{POST_SNAPBACK}][/a][/div]

And how does your Packages-File looks like?

...
Package: qshdlg
Priority: optional
Section: misc
Maintainer: Yutaka Yamada <yakty@s31.xrea.com>
Architecture: arm
Version: 0.6.2-1
Filename: qshdlg_0.6.2-1_arm.ipk
Size: 35313
MD5Sum: bb4012a6df68d4e99100c8af95d58b66
Description: Qtopia Shell Bridge Dialog
...

...tschüß, Gerhart
...
C760, Cacko 1.22a, Qtopia 1.5.4 , SD 512 MB, CF 256 MB, Nokia Bluetooth DTL-1, Buffalo WLAN Airstation, GPS Emtac Crux II, ...

Lemuus

  • Newbie
  • *
  • Posts: 35
    • View Profile
Cacko Ipkg Dependancies
« Reply #23 on: July 26, 2006, 06:55:35 pm »
And how does your Packages-File looks like?

...
Package: qshdlg
Priority: optional
Section: misc
Maintainer: Yutaka Yamada <yakty@s31.xrea.com>
Architecture: arm
Version: 0.6.2-1
Filename: qshdlg_0.6.2-1_arm.ipk
Size: 35313
MD5Sum: bb4012a6df68d4e99100c8af95d58b66
Description: Qtopia Shell Bridge Dialog
...

...tschüß, Gerhart
[div align=\"right\"][a href=\"index.php?act=findpost&pid=136431\"][{POST_SNAPBACK}][/a][/div]
[/quote]
 this is my last entry from Packages:
Package: zuc
Installed-Size: 144KB
Architecture: arm
Version: 640x480-1
Priority: optional
Section: gpe/utilities
Maintainer: Nicholas J Kreucher <nick@kreucher.net>
Depends:
Cardinst: enabled
Description: ZUC Zaurus Unit Converter
 This is the Zaurus Unit Converter use it to
 convert just about any unit to any other unit.
 You can even add your own units!