Author Topic: Installing A Local Ipk  (Read 9999 times)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Installing A Local Ipk
« on: November 22, 2006, 08:55:34 am »
I'm trying to do a simple thing, install an ipk I have on the Z.

I've compiled ratpoison.

Now both
Code: [Select]
ipkg install ratpoison_1.4.0_armv5te.ipkand
Code: [Select]
ipkg install /fullpath.../ratpoison_1.4.0_armv5te.ipk give me the error:
Code: [Select]
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package ratpoison_1.4.0_armv5te.ipk.
Check the spelling or perhaps run 'ipkg update'

What's the problem?

It's OZ GPE 3.5.4.1 on an SL-C3200.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Installing A Local Ipk
« Reply #1 on: November 22, 2006, 10:26:16 am »
I have seen this before, and it's a pita. I never tracked it down.

Try:

ipkg install ratpoison

In the same directory as the file. This may be a bug (rather than misconfiguration somewhere), but I don't suppose too many people encounter it as they use the network feeds.


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

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Installing A Local Ipk
« Reply #2 on: November 22, 2006, 05:42:55 pm »
This doesn't work either, damn, I can't believe it.

Can ipkg's behavior at least be modified so that it stores the files downloaded from the feed also locally, so that it doesn't refetch them every time when installing, but uses the local archive copy if present - like debian's /var/cache/apt/archives/ ?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Installing A Local Ipk
« Reply #3 on: November 23, 2006, 05:04:02 am »
You could probably patch it to do this, but the general theory is that downloads are fast and cheap, and storage on a handheld is small and expensive.

There aren't any new and wonderful switches that have been added to enable installation from a file (rather than from a feed) are there?

Add a bug I think, then hack at the code


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

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Installing A Local Ipk
« Reply #4 on: November 24, 2006, 09:48:09 am »
OK, it works  But only with the following syntax
Code: [Select]
ipkg install ./local_package_file_name
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Installing A Local Ipk
« Reply #5 on: November 24, 2006, 12:20:54 pm »
IIRC from #openzaurus `ipkg install ratpoison' doesn't work from a local feed because of busybox wget.

but it works with the real wget.  or something
SLC-860 cacko / senao wifi

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Installing A Local Ipk
« Reply #6 on: November 26, 2006, 04:13:10 am »
Quote
IIRC from #openzaurus `ipkg install ratpoison' doesn't work from a local feed because of busybox wget.

but it works with the real wget.  or something
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147173\"][{POST_SNAPBACK}][/a][/div]
Hmm... it might be the case, since it started working after I installed real wget...

There's many issues with busybox on OZ that I've noticed, i.e. building ipks doesn't work due to the busybox ar, but will work with the real ar etc.

So this is probably it, you're right.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Installing A Local Ipk
« Reply #7 on: November 27, 2006, 03:26:55 am »
So you are indeed right, it's the real wget thing.

If you install real wget then simply
Code: [Select]
ipkg install file_name works no probs.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Installing A Local Ipk
« Reply #8 on: November 27, 2006, 07:07:25 am »
Please post some bugs against busybox then.

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