OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Correct Ar Syntax To Create An Ipk
ShiroiKuma
post Jun 3 2006, 01:31 AM
Post #1





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



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?
Go to the top of the page
 
+Quote Post
koen
post Jun 3 2006, 01:37 AM
Post #2





Group: Members
Posts: 1,014
Joined: 4-January 05
From: Enschede, The Netherlands
Member No.: 6,107



QUOTE(ShiroiKuma @ Jun 3 2006, 09:31 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?
*



use OE smile.gif


(or ipkg-build.sh)
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Jun 4 2006, 01:17 PM
Post #3





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



QUOTE(koen @ Jun 3 2006, 10:37 AM)
use OE smile.gif

I'm trying man. Having all kinds of problems. So I'm trying on the Z too...

QUOTE
(or ipkg-build.sh)
*

Where is it? I don't have it in my path on the Z.
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Jun 4 2006, 09:50 PM
Post #4





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



QUOTE(koen @ Jun 3 2006, 10:37 AM)
(or ipkg-build.sh)
*

I only found it here, 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.
Go to the top of the page
 
+Quote Post
Meanie
post Jun 4 2006, 10:39 PM
Post #5





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(ShiroiKuma @ Jun 5 2006, 03:50 PM)
QUOTE(koen @ Jun 3 2006, 10:37 AM)
(or ipkg-build.sh)
*

I only found it here, 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.
*



did you try

ar -q blah.ipk ./control.tar.gz ./data.tar.gz ./debian-binary
Go to the top of the page
 
+Quote Post
Greg2
post Jun 5 2006, 05:02 AM
Post #6





Group: Members
Posts: 790
Joined: 28-October 03
From: USA
Member No.: 792



QUOTE(ShiroiKuma @ Jun 4 2006, 05:17 PM)
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
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Jun 5 2006, 06:42 AM
Post #7





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



QUOTE(Greg2 @ Jun 5 2006, 02:02 PM)
It's in the ipkg-utils ipk in the 3.5.4 base feed.

Doh... [Smacks own forehead with a bamboo stick three times]
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Jun 7 2006, 09:02 AM
Post #8





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



QUOTE(Greg2 @ Jun 5 2006, 02:02 PM)
It's in the ipkg-utils ipk in the 3.5.4 base feed.
*

ipkg-utils depends on python, but there is no such package...

Should the depends be libpython? Or python-core maybe?
Go to the top of the page
 
+Quote Post
Greg2
post Jun 7 2006, 11:03 AM
Post #9





Group: Members
Posts: 790
Joined: 28-October 03
From: USA
Member No.: 792



QUOTE(ShiroiKuma @ Jun 7 2006, 01:02 PM)
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
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Jun 8 2006, 12:04 AM
Post #10





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



QUOTE(Greg2 @ Jun 7 2006, 08:03 PM)
If you install from the feeds with a web connection... it will pick up the proper python depends.
*

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. smile.gif
Go to the top of the page
 
+Quote Post
melee
post Jun 10 2006, 07:19 AM
Post #11





Group: Members
Posts: 69
Joined: 17-March 05
Member No.: 6,651



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
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Jun 17 2006, 11:00 PM
Post #12





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



QUOTE(melee @ Jun 10 2006, 04:19 PM)
If all you are looking for is the ar line to create the .ipk, Meanie has given it to you.
*

Yep, works good. Thanks. smile.gif
Go to the top of the page
 
+Quote Post
telemetric_au
post Mar 31 2007, 08:21 PM
Post #13





Group: Members
Posts: 327
Joined: 28-February 06
From: South East of South Australia
Member No.: 9,251



tar czvf <packagename>.ipk ./control.tar.gz ./data.tar.gz ./debian-binary

http://www.intrinsyc.com/support/i-linux/4...ianpackages.htm
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th December 2014 - 10:01 AM