svn commit: r51094 - in head/en_US.ISO8859-1/books/porters-handbook: special uses

Brad Davis <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
Author: brd
Date: Mon Oct  9 16:33:16 2017
New Revision: 51094
URL: https://svnweb.freebsd.org/changeset/doc/51094

Log:
  Add chapter detailing our policy on Go libs.
  
  Submitted by:	swills

Modified:
  head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml
  head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml

Modified: head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml	Mon Oct  9 16:17:12 2017	(r51093)
+++ head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml	Mon Oct  9 16:33:16 2017	(r51094)
@@ -5554,4 +5554,34 @@ GROUPS=	pulse pulse-access pulse-rt</programlisting>
       takes care of most items that these ports need to take into
       account.</para>
   </sect1>
+
+  <sect1 xml:id="go-libs">
+    <title>Go Libraries</title>
+
+    <para>Ports must not package or install Go libs or source code.  Only
+      <filename>lang/go*</filename> should install into
+      <varname>GO_SRCDIR</varname> and <varname>GO_LIBDIR</varname>.  Go
+      ports must fetch the required deps at the normal fetch time and
+      should only install the programs and things users need, not the
+      things Go developers would need.</para>
+
+    <para>Ports should (in order of preference):</para>
+    <itemizedlist>
+      <listitem>
+        <para>Use vendored dependencies included with the package
+          source.</para>
+      </listitem>
+
+      <listitem>
+        <para>Fetch the versions of deps specified by upstream (in the
+          case of vendor.json or similar).</para>
+      </listitem>
+
+      <listitem>
+        <para>As a last resort (deps are not included nor versions
+          specified exactly) fetch versions of dependencies available
+          at the time of upstream development/release.</para>
+      </listitem>
+    </itemizedlist>
+  </sect1>
 </chapter>

Modified: head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml	Mon Oct  9 16:17:12 2017	(r51093)
+++ head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml	Mon Oct  9 16:33:16 2017	(r51094)
@@ -1048,6 +1048,11 @@ USE_GNOME=	gnomemenus3:build intlhack</programlisting>
   <sect1 xml:id="uses-go">
     <title><literal>go</literal></title>
 
+    <important>
+      <para>Ports should not be created for Go libs, see
+        <xref linkend="go-libs"/> for more information.</para>
+    </important>
+
     <para>Possible arguments: (none)</para>
 
     <para>Sets default values and targets used to build
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.