Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jul 2004 12:31:19 +0800 (CST)
From:      Cheng-Lung Sung <clsung@dragon2.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        sergei@FreeBSD.org
Subject:   ports/69224: [patch-request] porttools doesn't work in p5-*
Message-ID:  <20040718043119.238D6153EF@mail.dragon2.net>
Resent-Message-ID: <200407180430.i6I4UND9055083@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         69224
>Category:       ports
>Synopsis:       [patch-request] porttools doesn't work in p5-*
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 18 04:30:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Cheng-Lung Sung
>Release:        FreeBSD 4.9-RELEASE i386
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD sungsung.csie.nctu.edu.tw 4.9-RELEASE FreeBSD 4.9-RELEASE #5: Wed Oct 29 20:13:25 CST 2003 root@sungsung.csie.nctu.edu.tw:/usr/obj/usr/src/sys/SUNGSUNG i386

>Description:
- original util_diff does not seem to have PKGNAMEPREFIX defined.
  this will cause "port diff" failed in p5-* ports.
- Due to that, I add PKGNAMEPREFIX in util_diff.in to make "port diff"
  work in p5-*.
- cc to maintainer
>How-To-Repeat:
[p5-WordNet-Similarity] >port diff
Original version does not exist at /usr/ports/textproc/WordNet-Similarity
>Fix:


===> Generating patch
===> Viewing diff with more
diff -ruN --exclude=CVS /usr/ports/devel/porttools/files/patch-util_diff.in /home/clsung/porttools/files/patch-util_diff.in
--- /usr/ports/devel/porttools/files/patch-util_diff.in	Thu Jan  1 08:00:00 1970
+++ /home/clsung/porttools/files/patch-util_diff.in	Sun Jul 18 12:12:06 2004
@@ -0,0 +1,12 @@
+--- util_diff.in.orig	Tue Oct 21 13:25:53 2003
++++ util_diff.in	Sun Jul 18 12:12:00 2004
+@@ -71,7 +71,8 @@
+ 			# it should be Ports tree location
+ 			CATEGORY="`make -V CATEGORIES | sed -E 's/^([^ ]+).*$/\1/'`"
+ 			PORTNAME="`make -V PORTNAME`"
+-			ORIG_DIR="${DIFF_MODE}/${CATEGORY}/${PORTNAME}"
++			PKGNAMEPREFIX="`make -V PKGNAMEPREFIX`"
++			ORIG_DIR="${DIFF_MODE}/${CATEGORY}/${PKGNAMEPREFIX}${PORTNAME}"
+ 		else 
+ 			# -d <pattern> have been specified
+ 			# <pattern> is used to determine original port location
===> Done
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040718043119.238D6153EF>