docs/56452: [patch]Add EXTRACT_DEPENDS&PATCH_DEPENDS in Porter's Handbook

Kang Liu liukang at bjpu.edu.cn
Thu Sep 4 17:20:13 UTC 2003


>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 at 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 @@
 <!--
      The FreeBSD Documentation Project

-     $FreeBSD: doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v 1.324 2003/09/02 16:25:19 glewis Exp $
+     $FreeBSD: /repoman/r/dcvs/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v 1.324 2003/09/02 16:25:19 glewis Exp $
 -->

 <!DOCTYPE BOOK PUBLIC "-//FreeBSD//DTD DocBook V4.1-Based Extension//EN" [
@@ -2722,6 +2722,61 @@
         </sect2>

         <sect2>
+          <title><makevar>FETCH_DEPENDS</makevar></title>
+
+          <para>This variable specifies executables or files this port
+            requires to fetch.  Like the previous two, it is a list of
+            <replaceable>path</replaceable>:<replaceable>dir</replaceable><optional><replaceable>:target</replaceable></optional>
+            tuples.  For example, <programlisting> FETCH_DEPENDS=
+              ncftp2:${PORTSDIR}/net/ncftp2</programlisting> will check for an
+            executable called <command>ncftp2</command>, and descend into the
+            <filename>net/ncftp2</filename> subdirectory of your ports tree to
+            build and install it if it is not found.</para>
+
+          <para>The dependency is checked from within the
+            <maketarget>fetch</maketarget> target.  The
+            <replaceable>target</replaceable> part can be omitted if it is the
+            same as <makevar>DEPENDS_TARGET</makevar>.</para>
+        </sect2>
+
+        <sect2>
+          <title><makevar>EXTRACT_DEPENDS</makevar></title>
+
+          <para>This variable specifies executables or files this port
+            requires to extract.  Like the previous three, it is a list of
+            <replaceable>path</replaceable>:<replaceable>dir</replaceable><optional><replaceable>:target</replaceable></optional>
+            tuples.  For example, <programlisting> EXTRACT_DEPENDS=
+              ${LOCALBASE}/bin/rpm2cpio:${PORTSDIR}/archivers/rpm
+		</programlisting> will check for an
+            executable called <command>rpm2cpio</command>, and descend into the
+            <filename>archivers/rpm</filename> subdirectory of your ports tree to
+            build and install it if it is not found.</para>
+
+          <para>The dependency is checked from within the
+            <maketarget>extract</maketarget> target.  The
+            <replaceable>target</replaceable> part can be omitted if it is the
+            same as <makevar>DEPENDS_TARGET</makevar>.</para>
+        </sect2>
+
+        <sect2>
+          <title><makevar>PATCH_DEPENDS</makevar></title>
+
+          <para>This variable specifies executables or files this port
+            requires to patch.  Like the previous four, it is a list of
+            <replaceable>path</replaceable>:<replaceable>dir</replaceable><optional><replaceable>:target</replaceable></optional>
+            tuples.  For example, <programlisting> PATCH_DEPENDS=
+              ${NONEXISTENT}:${PORTSDIR}/java/jfc:extract
+		</programlisting>will descend into the
+            <filename>java/jfc</filename> subdirectory of your ports tree to
+            extract its source before patch if it is not extracted.</para>
+
+          <para>The dependency is checked from within the
+            <maketarget>patch</maketarget> target.  The
+            <replaceable>target</replaceable> part can be omitted if it is the
+            same as <makevar>DEPENDS_TARGET</makevar>.</para>
+        </sect2>
+
+        <sect2>
           <title><makevar>BUILD_DEPENDS</makevar></title>

           <para>This variable specifies executables or files this port
@@ -2735,30 +2790,12 @@
             ports tree to build and install it if it is not found.</para>

           <note>
-            <para><quote>build</quote> here means everything from extraction to
+            <para><quote>build</quote> here means everything from configure to
               compilation.  The dependency is checked from within the
-              <maketarget>extract</maketarget> target.  The
+              <maketarget>configure(if needed)</maketarget> target.  The
               <replaceable>target</replaceable> part can be omitted if it is
               the same as <makevar>DEPENDS_TARGET</makevar></para>
           </note>
-        </sect2>
-
-        <sect2>
-          <title><makevar>FETCH_DEPENDS</makevar></title>
-
-          <para>This variable specifies executables or files this port
-            requires to fetch.  Like the previous two, it is a list of
-            <replaceable>path</replaceable>:<replaceable>dir</replaceable><optional><replaceable>:target</replaceable></optional>
-            tuples.  For example, <programlisting> FETCH_DEPENDS=
-              ncftp2:${PORTSDIR}/net/ncftp2</programlisting> will check for an
-            executable called <command>ncftp2</command>, and descend into the
-            <filename>net/ncftp2</filename> subdirectory of your ports tree to
-            build and install it if it is not found.</para>
-
-          <para>The dependency is checked from within the
-            <maketarget>fetch</maketarget> target.  The
-            <replaceable>target</replaceable> part can be omitted if it is the
-            same as <makevar>DEPENDS_TARGET</makevar>.</para>
         </sect2>

         <sect2>


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list