Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175521207
D20736.id58948.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D20736.id58948.diff
View Options
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,21 @@
<xref linkend="go-libs"/> for more information.</para>
</important>
- <para>Possible arguments: (none),
- <literal>modules</literal></para>
+ <para>Possible arguments: (none), <literal>build</literal>,
+ <literal>modules</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>
+ <literal>modules</literal> argument. <literal>build</literal>
+ will setup build environment like <varname>GO_ENV</varname>,
+ <varname>GO_BUILDFLAGS</varname> but skip creating
+ <literal>post-extract</literal>, <literal>do-build</literal>
+ and <literal>do-install</literal> targets.
+ <literal>run</literal> will also add run time dependency on
+ <package role="port">lang/go</package>.</para>
<para>The build process is controlled by several variables:</para>
@@ -1210,6 +1216,20 @@
<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 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>
+ <para>This variable should not be set by individual
+ ports!</para>
</listitem>
</varlistentry>
</variablelist>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 12, 10:31 AM (8 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40669816
Default Alt Text
D20736.id58948.diff (2 KB)
Attached To
Mode
D20736: The porter's handbook Go chapter: document no_targets/run args and GO_PORT variable
Attached
Detach File
Event Timeline
Log In to Comment