2

I've searched a lot, but didn't find the solution.

I need to package my ios app into .deb. I have installed Mac Ports and dpkg, I have control file in DEBIAN folder in MyApp folder I run /opt/local/bin/dpkg-deb -b MyApp and get error.

dpkg-deb: ignoring 3 warnings about the control file(s)

Can't use format gnu: No such format 'gnu': Invalid argument

There is another topic: How to create .deb packages on Mac OS X, but no answer to this question.

Community
  • 1
  • 1
Eddie
  • 1,436
  • 5
  • 24
  • 42
  • possible duplicate of [How to create .deb packages on Mac OS X ](http://stackoverflow.com/questions/3989466/how-to-create-deb-packages-on-mac-os-x) – Jasarien Feb 09 '11 at 10:31
  • no, there were no answer to my question as I said – Eddie Feb 09 '11 at 10:32
  • It may help to explain why you want to do this. Obviously iOS can't install debs; are you just trying to make a deb on OS X which happens to contain your .ipa file? – the paul May 07 '12 at 23:25
  • Apologies; you must be talking about making Cydia debs. I didn't make that connection in my head. – the paul May 08 '12 at 16:07
  • You need to post your DEBIAN/changelog and DEBIAN/control, otherwise is hard to help you. – diogovk Apr 28 '14 at 12:25
  • Also, I would consider using dpkg-buildpackage (dpkg-dev) instead of dpkg-deb. Packages build using dpkg-deb lack some features, like ms5sums, and might give you trouble when you try to put it in a apt server. – diogovk Apr 28 '14 at 12:26

1 Answers1

0

I assume you are using a tar implementation that does not support the GNU tar fotrmat, which dpkg-deb expects for its usage.

You should install GNU tar and either recompile dpkg to use that (usually named gtar) instead of simply the executable tar, or prepare a PATH environment to prefer the GNU tar when using dpkg-deb.

Newer dpkg versions detect this requirement at build time and will abort the build, to make sure this does not happen.

Guillem Jover
  • 2,090
  • 2
  • 11
  • 16