New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #27702 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

dpkg-deb Can not build packages with OSX Tar

Reported by: richard.maynard@… Owned by: landonf@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: dpkg, tar, gnu Cc:
Port: dpkg

Description (last modified by ryandesign@…) (diff)

When trying to use DPKG to build a package it relies on the 'gnu' format with tar. This format is not available on OSX and needs to be changed to something portable. I do not believe there is a configuration file for this.

here are the resulting errors:

dpkg-deb: building package `common-system-config' in `common-system-config.deb'.
Can't use format gnu: No such format 'gnu': Invalid argument
Usage:
  List:    tar -tf <archive-filename>
  Extract: tar -xf <archive-filename>
  Create:  tar -cf <archive-filename> [filenames...]
  Help:    tar --help
dpkg-deb: subprocess tar -cf returned error exit status 1

Attachments

patch_for_gnu_tar.patch (2.4 KB) - added by richard.maynard@… 2 years ago.
Patch to have dpkg-deb use GNU tar instead of TAR from ports. Apply in dpkg-VERSION/dpkg-deb/ directory wth patch -p0 < patchfile.patch

Change History

comment:1 Changed 2 years ago by richard.maynard@…

  • Cc richard.maynard@… added

Cc Me!

comment:2 Changed 2 years ago by ryandesign@…

  • Cc richard.maynard@… removed
  • Description modified (diff)

Don't forget to use WikiFormatting.

GNU tar is available in the port "gnutar" if you want it...

comment:3 Changed 2 years ago by ryandesign@…

  • Owner changed from macports-tickets@… to landonf@…

Changed 2 years ago by richard.maynard@…

Patch to have dpkg-deb use GNU tar instead of TAR from ports. Apply in dpkg-VERSION/dpkg-deb/ directory wth patch -p0 < patchfile.patch

comment:4 Changed 2 years ago by richard.maynard@…

I somehow missed seeing gnutar becuause I did search for it to see if it would help. I'm very new to OSX so, sorry about that.

Ideally the port would be updated to require gnutar on the system. Since it comes packaged named gnutar I attached a patch that updates build.c to use gnutar. Seems pretty straight forward and will make building DPKG's possible easily.

comment:5 Changed 2 years ago by afb@…

  • Status changed from new to closed
  • Resolution set to fixed

Fixed, r74825.

Patch was backwards and missing directory, however.

Note: See TracTickets for help on using tickets.