Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   FreeBSD compile fixes (http://www.linux-archive.org/archlinux-pacman-development/508733-freebsd-compile-fixes.html)

Rémy Oudompheng 04-01-2011 10:34 PM

FreeBSD compile fixes
 
Pacman no longer compiles on FreeBSD (tried with version 8.2).

* FreeBSD ships with libarchive 2.7.0 that has slightly fewer macros
* diskspace.c does not have strict enough #ifdef's (for statfs/statvfs)
* util.c does not include <limits.h> for PATH_MAX constant
(that's what `man limits.h` and the POSIX spec say at least)

The following patches fix compilation on FreeBSD (and do not break
the testsuite on Archlinux).

Note the additional dependencies for the testsuite:
* fakeroot
* python 2.6 or 2.7
* GNU make (due to wildcard usage in testsuite's Makefile.am)

To apply on branch 'maint'.

Rémy Oudompheng (3):
Fix compatibility with older versions of libarchive.
util.c: include limits.h for PATH_MAX macro
diskspace: add the actually used statfs type in ifdefs

acinclude.m4 | 8 ++++++--
lib/libalpm/be_sync.c | 2 ++
lib/libalpm/diskspace.c | 4 ++--
lib/libalpm/util.c | 1 +
4 files changed, 11 insertions(+), 4 deletions(-)

--
1.7.4.2


All times are GMT. The time now is 03:59 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.