From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Oct 20 03:30:15 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D61316A43A for ; Thu, 20 Oct 2005 03:30:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8540A43D64 for ; Thu, 20 Oct 2005 03:30:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9K3UEQx027716 for ; Thu, 20 Oct 2005 03:30:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9K3UE2r027714; Thu, 20 Oct 2005 03:30:14 GMT (envelope-from gnats) Resent-Date: Thu, 20 Oct 2005 03:30:14 GMT Resent-Message-Id: <200510200330.j9K3UE2r027714@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Byung-Hee HWANG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04C1716A420 for ; Thu, 20 Oct 2005 03:21:44 +0000 (GMT) (envelope-from bh@izb.knu.ac.kr) Received: from izb.knu.ac.kr (izb.knu.ac.kr [155.230.157.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8DF143D62 for ; Thu, 20 Oct 2005 03:21:42 +0000 (GMT) (envelope-from bh@izb.knu.ac.kr) Received: (qmail 49452 invoked from network); 20 Oct 2005 12:21:37 +0900 Received: from e.mx (HELO i.mx) (2002:9be6:9d5d:2::1) by e.mx (envelope-from bh@izb.knu.ac.kr) with AES256-SHA encrypted SMTP; 20 Oct 2005 12:21:37 +0900 Received: (qmail 49444 invoked from network); 20 Oct 2005 12:21:36 +0900 Received: from viola.izb.knu.ac.kr (2002:9be6:9d9f:3::2) by i.mx (envelope-from bh@izb.knu.ac.kr) with AES256-SHA encrypted SMTP; 20 Oct 2005 12:21:36 +0900 Received: by viola.izb.knu.ac.kr (Postfix, from userid 1001) id BCA0F6AFF; Thu, 20 Oct 2005 12:21:37 +0900 (KST) Message-Id: <20051020032137.BCA0F6AFF@viola.izb.knu.ac.kr> Date: Thu, 20 Oct 2005 12:21:37 +0900 (KST) From: Byung-Hee HWANG To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: ports@FreeBSD.org Subject: ports/87702: textproc/diffutils: timestamp precision X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Byung-Hee HWANG List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2005 03:30:15 -0000 >Number: 87702 >Category: ports >Synopsis: textproc/diffutils: timestamp precision >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Oct 20 03:30:14 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Byung-Hee HWANG >Release: FreeBSD 5.4-STABLE i386 >Organization: InZealBomb >Environment: System: FreeBSD viola.izb.knu.ac.kr 5.4-STABLE FreeBSD 5.4-STABLE #0: Mon Sep 26 16:45:09 KST 2005 bh@viola.izb.knu.ac.kr:/usr/src/sys/i386/compile/II82801BA i386 >Description: GNU Diff program have timestamp precision option of diff format. For example, see follow: --- hello.c.orig 2005-10-20 11:57:11.967564207 +0900 +++ hello.c 2005-10-20 11:57:20.547697157 +0900 As you can see, she can display NanoSeconds format. By the way, the option is not build under FreeBSD. Thus we need to patch for that. >How-To-Repeat: This patch has been tested under FreeBSD 4.11-STABLE and FreeBSD 5.4-STABLE. >Fix: --- ports-diffutils-timestamp-preision.diff begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/textproc/diffutils/Makefile,v retrieving revision 1.5 diff -u -r1.5 Makefile --- Makefile 21 Dec 2003 00:22:51 -0000 1.5 +++ Makefile 20 Oct 2005 02:49:21 -0000 @@ -22,6 +22,12 @@ MAN1= gcmp.1 gdiff.1 gdiff3.1 gsdiff.1 +.if defined(WITH_TIMESTAMP_PRECISION) +PATCH_SITES+= http://izb.knu.ac.kr/~bh/diffs/ +PATCHFILES+= diffutils-2.8.1-timestamp_precision.diff +PATCH_DIST_STRIP+= -p1 +.endif + #post-extract: remove-info-files # #remove-info-files: @@ -37,5 +43,13 @@ # #install-info: # @${INSTALL_INFO} ${PREFIX}/info/${PORTNAME:S/utils//}.info ${PREFIX}/info/dir + +post-patch: +.if defined(WITH_TIMESTAMP_PRECISION) + @${ECHO_MSG} "" ; \ + ${ECHO_MSG} "===> This rule need to a change of sysctl value." ; \ + ${ECHO_MSG} "===> Do not forget to run the following command." ; \ + ${ECHO_MSG} "===> sysctl vfs.timestamp_precision=1" ; +.endif .include Index: distinfo =================================================================== RCS file: /home/ncvs/ports/textproc/diffutils/distinfo,v retrieving revision 1.3 diff -u -r1.3 distinfo --- distinfo 29 Jan 2004 16:11:56 -0000 1.3 +++ distinfo 20 Oct 2005 02:49:21 -0000 @@ -1,2 +1,4 @@ MD5 (diffutils-2.8.1.tar.gz) = 71f9c5ae19b60608f6c7f162da86a428 SIZE (diffutils-2.8.1.tar.gz) = 780086 +MD5 (diffutils-2.8.1-timestamp_precision.diff) = 1ac049df51ef80fe9acaba123b2a4128 +SIZE (diffutils-2.8.1-timestamp_precision.diff) = 1989 --- ports-diffutils-timestamp-preision.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: