From owner-freebsd-doc@FreeBSD.ORG Thu Sep 4 10:20:13 2003 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70AA016A4BF for ; Thu, 4 Sep 2003 10:20:13 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18BA943FF2 for ; Thu, 4 Sep 2003 10:20:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h84HKBUp025641 for ; Thu, 4 Sep 2003 10:20:11 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h84HKBUP025640; Thu, 4 Sep 2003 10:20:11 -0700 (PDT) Resent-Date: Thu, 4 Sep 2003 10:20:11 -0700 (PDT) Resent-Message-Id: <200309041720.h84HKBUP025640@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Kang Liu" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 917CF16A4BF for ; Thu, 4 Sep 2003 10:11:42 -0700 (PDT) Received: from bjpu.edu.cn (egw.bjpu.edu.cn [202.112.78.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 416D843F93 for ; Thu, 4 Sep 2003 10:11:41 -0700 (PDT) (envelope-from liukang@bjpu.edu.cn) Received: (eyou gateway send program); Fri, 05 Sep 2003 01:10:52 +0800 Received: from unknown (HELO ssc) (unknown@61.51.121.146) by 202.112.78.77 with ; Fri, 05 Sep 2003 01:10:52 +0800 Message-Id: <000301c37308$1097eaf0$0501a8c0@ssc> Date: Fri, 5 Sep 2003 01:14:56 +0800 From: "Kang Liu" To: Subject: docs/56452: [patch]Add EXTRACT_DEPENDS&PATCH_DEPENDS in Porter's Handbook X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2003 17:20:13 -0000 >Number: 56452 >Category: docs >Synopsis: [patch]Add EXTRACT_DEPENDS&PATCH_DEPENDS in Porter's Handbook >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Sep 04 10:20:11 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Kang Liu >Release: FreeBSD 5.1-CURRENT i386 >Organization: Beijing University of Technology >Environment: System: FreeBSD ipfwtest.frontfree.net 5.1-CURRENT FreeBSD 5.1-CURRENT #9: Sat Aug 9 22:50:36 CST 2003 root@testipfw.bjpu.edu.cn:/usr/obj/usr/src/sys/IPFW i386 >Description: EXTRACT_DEPENDS and PATCH_DEPENDS was added into bsd.port.mk in March. (PR: 29856) The porter's book is not up to date in section 4.7 Dependencies. >How-To-Repeat: n/a >Fix: Index: book.sgml =================================================================== RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v retrieving revision 1.324 diff -u -r1.324 book.sgml --- book.sgml 2 Sep 2003 16:25:19 -0000 1.324 +++ book.sgml 4 Sep 2003 16:54:31 -0000 @@ -1,7 +1,7 @@ + <makevar>FETCH_DEPENDS</makevar> + + This variable specifies executables or files this port + requires to fetch. Like the previous two, it is a list of + path:dir:target + tuples. For example, FETCH_DEPENDS= + ncftp2:${PORTSDIR}/net/ncftp2 will check for an + executable called ncftp2, and descend into the + net/ncftp2 subdirectory of your ports tree to + build and install it if it is not found. + + The dependency is checked from within the + fetch target. The + target part can be omitted if it is the + same as DEPENDS_TARGET. + + + + <makevar>EXTRACT_DEPENDS</makevar> + + This variable specifies executables or files this port + requires to extract. Like the previous three, it is a list of + path:dir:target + tuples. For example, EXTRACT_DEPENDS= + ${LOCALBASE}/bin/rpm2cpio:${PORTSDIR}/archivers/rpm + will check for an + executable called rpm2cpio, and descend into the + archivers/rpm subdirectory of your ports tree to + build and install it if it is not found. + + The dependency is checked from within the + extract target. The + target part can be omitted if it is the + same as DEPENDS_TARGET. + + + + <makevar>PATCH_DEPENDS</makevar> + + This variable specifies executables or files this port + requires to patch. Like the previous four, it is a list of + path:dir:target + tuples. For example, PATCH_DEPENDS= + ${NONEXISTENT}:${PORTSDIR}/java/jfc:extract + will descend into the + java/jfc subdirectory of your ports tree to + extract its source before patch if it is not extracted. + + The dependency is checked from within the + patch target. The + target part can be omitted if it is the + same as DEPENDS_TARGET. + + + <makevar>BUILD_DEPENDS</makevar> This variable specifies executables or files this port @@ -2735,30 +2790,12 @@ ports tree to build and install it if it is not found. - build here means everything from extraction to + build here means everything from configure to compilation. The dependency is checked from within the - extract target. The + configure(if needed) target. The target part can be omitted if it is the same as DEPENDS_TARGET - - - - <makevar>FETCH_DEPENDS</makevar> - - This variable specifies executables or files this port - requires to fetch. Like the previous two, it is a list of - path:dir:target - tuples. For example, FETCH_DEPENDS= - ncftp2:${PORTSDIR}/net/ncftp2 will check for an - executable called ncftp2, and descend into the - net/ncftp2 subdirectory of your ports tree to - build and install it if it is not found. - - The dependency is checked from within the - fetch target. The - target part can be omitted if it is the - same as DEPENDS_TARGET. >Release-Note: >Audit-Trail: >Unformatted: