From 488190a55ddabd40a14e0851c1dea28f3516cc48 Mon Sep 17 00:00:00 2001 From: Daniel Gryniewicz Date: Sun, 25 Jan 2009 19:42:46 +0000 Subject: Real fix this time for bug #254795; thanks Javier (Portage version: 2.1.6.7/cvs/Linux x86_64) --- app-admin/logrotate/ChangeLog | 6 +++- .../logrotate/files/logrotate-3.7.7-fbsd.patch | 35 ++++++++++++++++++---- 2 files changed, 34 insertions(+), 7 deletions(-) (limited to 'app-admin/logrotate') diff --git a/app-admin/logrotate/ChangeLog b/app-admin/logrotate/ChangeLog index 4ad65d7b318d..460a7e49a595 100644 --- a/app-admin/logrotate/ChangeLog +++ b/app-admin/logrotate/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-admin/logrotate # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/ChangeLog,v 1.75 2009/01/14 16:26:28 dang Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/ChangeLog,v 1.76 2009/01/25 19:42:45 dang Exp $ + + 25 Jan 2009; Daniel Gryniewicz + files/logrotate-3.7.7-fbsd.patch: + Real fix this time for bug #254795; thanks Javier 14 Jan 2009; Daniel Gryniewicz logrotate-3.7.7.ebuild: Try again to fix fbsd; bug #254795 diff --git a/app-admin/logrotate/files/logrotate-3.7.7-fbsd.patch b/app-admin/logrotate/files/logrotate-3.7.7-fbsd.patch index 3d42c17e5297..6bd2e5470c4a 100644 --- a/app-admin/logrotate/files/logrotate-3.7.7-fbsd.patch +++ b/app-admin/logrotate/files/logrotate-3.7.7-fbsd.patch @@ -1,6 +1,10 @@ -diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN logrotate-3.7.7.orig/config.c logrotate-3.7.7/config.c ---- logrotate-3.7.7.orig/config.c 2008-05-09 03:28:59.000000000 -0400 -+++ logrotate-3.7.7/config.c 2009-01-13 16:48:13.000000000 -0500 +Fix compilation on Gentoo/FreeBSD, no alloca.h here and PATH_MAX +is defined elsewhere. + +See bug 254795 + +--- logrotate-3.7.7.orig/config.c ++++ logrotate-3.7.7/config.c @@ -1,5 +1,7 @@ #include +#ifndef NO_ALLOCA_H @@ -9,9 +13,18 @@ diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN logrotate-3.7.7.orig/con #include #include #include -diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN logrotate-3.7.7.orig/logrotate.c logrotate-3.7.7/logrotate.c ---- logrotate-3.7.7.orig/logrotate.c 2008-05-14 06:31:35.000000000 -0400 -+++ logrotate-3.7.7/logrotate.c 2009-01-13 16:48:12.000000000 -0500 +@@ -21,6 +21,9 @@ + #include + #include + ++#if !defined(PATH_MAX) && defined(__FreeBSD__) ++#include ++#endif + #include "basenames.h" + #include "log.h" + #include "logrotate.h" +--- logrotate-3.7.7.orig/logrotate.c ++++ logrotate-3.7.7/logrotate.c @@ -1,5 +1,7 @@ #include +#ifndef NO_ALLOCA_H @@ -20,3 +33,13 @@ diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN logrotate-3.7.7.orig/log #include #include #include +@@ -24,6 +24,9 @@ + int selinux_enforce = 0; + #endif + ++#if !defined(PATH_MAX) && defined(__FreeBSD__) ++#include ++#endif + #include "basenames.h" + #include "log.h" + #include "logrotate.h" -- cgit v1.2.3-65-gdbad