Page MenuHomeFreeBSD

D20736.id59048.diff
No OneTemporary

D20736.id59048.diff

Index: en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
===================================================================
--- en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
+++ en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
@@ -1144,15 +1144,22 @@
<xref linkend="go-libs"/> for more information.</para>
</important>
- <para>Possible arguments: (none),
- <literal>modules</literal></para>
+ <para>Possible arguments: (none), <literal>modules</literal>,
+ <literal>no_targets</literal>, <literal>run</literal></para>
<para>Sets default values and targets used to build
- <application>Go</application> software. A build-time dependency
- on <package role="port">lang/go</package> is added. By default
- the build is performed in GOPATH mode. If Go software uses
- modules, the modules-aware mode can be switched on with
- <literal>modules</literal>.</para>
+ <application>Go</application> software. A build dependency
+ on the Go compiler port selected via <varname>GO_PORT</varname>
+ is added. By default the build is performed in GOPATH mode.
+ If Go software uses modules, the modules-aware mode can be
+ switched on with <literal>modules</literal> argument.
+ <literal>no_targets</literal> will setup build environment like
+ <varname>GO_ENV</varname>, <varname>GO_BUILDFLAGS</varname> but
+ skip creating <buildtarget>post-extract</buildtarget>,
+ <buildtarget>do-build</buildtarget> and
+ <buildtarget>do-install</buildtarget> targets.
+ <literal>run</literal> will also add run dependency on
+ whatever is in <varname>GO_PORT</varname>.</para>
<para>The build process is controlled by several variables:</para>
@@ -1210,6 +1217,23 @@
<listitem>
<para>Additional build arguments to be passed to
<command>go install</command>.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><varname>GO_PORT</varname></term>
+
+ <listitem>
+ <para>The Go compiler port to use. By default this is
+ <package role="port">lang/go</package> but can be set
+ to <package role="port">lang/go-devel</package> in
+ <literal>make.conf</literal> for testing with future Go
+ versions.</para>
+
+ <warning>
+ <para>This variable must not be set by individual
+ ports!</para>
+ </warning>
</listitem>
</varlistentry>
</variablelist>

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 25, 10:18 PM (12 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32145013
Default Alt Text
D20736.id59048.diff (2 KB)

Event Timeline