ports/116249: [PATCH] Fix build of devel/p5-Time-Object on 7-CURRENT
Xin LI
delphij at FreeBSD.org
Mon Sep 10 03:30:03 UTC 2007
>Number: 116249
>Category: ports
>Synopsis: [PATCH] Fix build of devel/p5-Time-Object on 7-CURRENT
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Sep 10 03:30:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Xin LI
>Release: FreeBSD 6.2-RELEASE-p7 i386
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD tarsier.delphij.net 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #5: Thu Aug 2 22:09:50 CST 2007 delphij at tarsier.delphij.net:/usr/obj/usr/src/sys/TARSIER i386
>Description:
Newer perl versions defines mini_mktime to avoid unnecessary
localtime() overhead, which conflicts with the one available
as a static function within the code, and causes build to fail.
>How-To-Repeat:
Try to install p5-Time-Object on a 7-CURRENT box.
>Fix:
This file should be added to files/ directory of devel/p5-Time-Object,
which solves the issue by conditionally undefine mini_mktime macro.
--- patch-Object.xs begins here ---
--- ./Object.xs.orig 2001-10-22 17:48:04.000000000 +0800
+++ ./Object.xs 2007-09-10 11:07:31.866215125 +0800
@@ -42,6 +42,10 @@
# define init_tm(ptm)
#endif
+#ifdef mini_mktime
+#undef mini_mktime
+#endif
+
/*
* mini_mktime - normalise struct tm values without the localtime()
* semantics (and overhead) of mktime().
--- patch-Object.xs ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list