Author Topic: Correct Ar Syntax To Create An Ipk  (Read 12005 times)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Correct Ar Syntax To Create An Ipk
« on: June 03, 2006, 05:31:00 am »
So I'm compiling all these packages and making ipks from them, but I can only create the old tar gzipped version of the ipk.

I can't seem to figure out, how, once you have the control.tar.gz debian-binary and data.tar.gz, do you combine them into an ar archive with an ipk ext.

Can someone give me the correct syntax?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Correct Ar Syntax To Create An Ipk
« Reply #1 on: June 03, 2006, 05:37:49 am »
Quote
So I'm compiling all these packages and making ipks from them, but I can only create the old tar gzipped version of the ipk.

I can't seem to figure out, how, once you have the control.tar.gz debian-binary and data.tar.gz, do you combine them into an ar archive with an ipk ext.

Can someone give me the correct syntax?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129581\"][{POST_SNAPBACK}][/a][/div]


use OE


(or ipkg-build.sh)
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Correct Ar Syntax To Create An Ipk
« Reply #2 on: June 04, 2006, 05:17:55 pm »
Quote
use OE
I'm trying man. Having all kinds of problems. So I'm trying on the Z too...

Quote
(or ipkg-build.sh)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129583\"][{POST_SNAPBACK}][/a][/div]
Where is it? I don't have it in my path on the Z.
[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
Correct Ar Syntax To Create An Ipk
« Reply #3 on: June 05, 2006, 01:50:10 am »
Quote
(or ipkg-build.sh)
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
I only found it [a href=\"http://www.ossh.com/zaurus/mirrors/docs.zaurus.com/ipkg_howto.shtml]here[/url], but it uses the old ipk tar.gz format not ar?

I don't need the whole procedure, I already made a shell script, just need the ar command that archives control.tar.gz data.tar.gz and debian-binary in one file. I've tried many combinations, but keep getting errors.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Correct Ar Syntax To Create An Ipk
« Reply #4 on: June 05, 2006, 02:39:53 am »
Quote
Quote
(or ipkg-build.sh)
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
I only found it [a href=\"http://www.ossh.com/zaurus/mirrors/docs.zaurus.com/ipkg_howto.shtml]here[/url], but it uses the old ipk tar.gz format not ar?

I don't need the whole procedure, I already made a shell script, just need the ar command that archives control.tar.gz data.tar.gz and debian-binary in one file. I've tried many combinations, but keep getting errors.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129814\"][{POST_SNAPBACK}][/a][/div]

did you try

ar -q blah.ipk ./control.tar.gz ./data.tar.gz ./debian-binary
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

Greg2

  • Hero Member
  • *****
  • Posts: 790
    • View Profile
    • http://
Correct Ar Syntax To Create An Ipk
« Reply #5 on: June 05, 2006, 09:02:41 am »
Quote
Quote
(or ipkg-build.sh)
Where is it? I don't have it in my path on the Z.
It's in the ipkg-utils ipk in the 3.5.4 base feed.

Greg

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Correct Ar Syntax To Create An Ipk
« Reply #6 on: June 05, 2006, 10:42:09 am »
Quote
It's in the ipkg-utils ipk in the 3.5.4 base feed.
Doh... [Smacks own forehead with a bamboo stick three times]
[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
Correct Ar Syntax To Create An Ipk
« Reply #7 on: June 07, 2006, 01:02:12 pm »
Quote
It's in the ipkg-utils ipk in the 3.5.4 base feed.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129873\"][{POST_SNAPBACK}][/a][/div]
ipkg-utils depends on python, but there is no such package...

Should the depends be libpython? Or python-core maybe?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

Greg2

  • Hero Member
  • *****
  • Posts: 790
    • View Profile
    • http://
Correct Ar Syntax To Create An Ipk
« Reply #8 on: June 07, 2006, 03:03:41 pm »
Quote
ipkg-utils depends on python, but there is no such package...
If you install from the feeds with a web connection... it will pick up the proper python depends.

That said... the ipkg-build script doesn't need python... so I suppose you could install it with --force-depends.

Greg

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Correct Ar Syntax To Create An Ipk
« Reply #9 on: June 08, 2006, 04:04:12 am »
Quote
If you install from the feeds with a web connection... it will pick up the proper python depends.[div align=\"right\"][a href=\"index.php?act=findpost&pid=130289\"][{POST_SNAPBACK}][/a][/div]
I highly doubt this, because looking in the control file, it lists the depends as "python" among others.

There is no "python_XXXX.ipk" in the feeds, so it can't pick it up.

But if it doesn't need it, I'll force-depends, thanks.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

melee

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://
Correct Ar Syntax To Create An Ipk
« Reply #10 on: June 10, 2006, 11:19:06 am »
Hi

If all you are looking for is the ar line to create the .ipk, Meanie has given it to you.

All these scripts which use perl etc add unnecessary complication to something which is quite simple.

Copy control and debian-binary into /tmp

Create /tmp/hole  and below that recreate the relevant directory structure which mirrors the Z and copy the binaries etc to the relevant parts of it

cd /tmp
tar -cvzf ./control.tar.gz ./control
cd hole
tar -cvzf ../data.tar.gz .
cd ../
ar -q (name_of_ipk).ipk ./control.tar.gz ./data.tar.gz ./debian-binary

I assume ipkg can cope with ar created .ipks, I have never tried it.
The version supplied with the standard Sharp ROM is pretty c**p and has enough trouble with some tar zipped ones.

regards

Melee
C860 - with Sharp ROM
1GB SD and 2 GB & 256MB CF
WiFi, Bluetooth and Sharp CF camera cards
Ubuntu 6.06
(WinXP if I really have to)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Correct Ar Syntax To Create An Ipk
« Reply #11 on: June 18, 2006, 03:00:26 am »
Quote
If all you are looking for is the ar line to create the .ipk, Meanie has given it to you.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130659\"][{POST_SNAPBACK}][/a][/div]
Yep, works good. Thanks.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
Correct Ar Syntax To Create An Ipk
« Reply #12 on: April 01, 2007, 12:21:07 am »
tar czvf <packagename>.ipk ./control.tar.gz ./data.tar.gz ./debian-binary

http://www.intrinsyc.com/support/i-linux/4...ianpackages.htm
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site