pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: (patch) pkgtools/pkgin missing time_t declaration in archive.h



* On 2015-08-15 at 17:36 BST, Matthias Ferdinand wrote:

> on my oldest Linux build hosts (SuSE 9.0, Ubuntu 6.06), pkgin fails to
> build because time_t is not yet declared when archive.h declares
> functions with time_t arguments.

This is a bug in libarchive, could you raise it as an issue against:

  https://github.com/libarchive/libarchive/issues

That way it will fix any package pulling in libarchive, not just
pkgin.  The fix should be straight-foward, e.g.:

  --- a/archivers/libarchive/files/libarchive/archive.h
  +++ b/archivers/libarchive/files/libarchive/archive.h
  @@ -31,6 +31,7 @@
   #include <sys/stat.h>
   #include <stddef.h>  /* for wchar_t */
   #include <stdio.h> /* For FILE * */
  +#include <time.h> /* for time_t */

   /*
    * Note: archive.h is for use outside of libarchive; the configuration

Thanks,

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index