View | Details | Raw Unified | Return to bug 23450
Collapse All | Expand All

(-)book.sgml (+16 lines)
Lines 3277-3282 Link Here
3277
          <makevar>PREFIX</makevar>, as this variable is automatically passed
3277
          <makevar>PREFIX</makevar>, as this variable is automatically passed
3278
          down to every stage of the build and install processes.</para>
3278
          down to every stage of the build and install processes.</para>
3279
3279
3280
	<para>Make sure your application isn't installing things in 
3281
	<filename>/usr/local</filename> instead of <makevar>PREFIX</makevar>.
3282
	A quick test for this is to do this is:</para>
3283
3284
	<screen>&prompt.root; <userinput>make clean; make package PREFIX=/var/tmp/<replaceable>port-name</replaceable></userinput></screen>
3285
	
3286
	<para>If anything is installed outside of <makevar>PREFIX</makevar>, 
3287
	making the package creation process will complain that it
3288
	can't find the files.</para>
3289
3290
	<para>This does not test for the existence of internal references,
3291
	or correct use of <makevar>LOCALBASE</makevar> for references to
3292
	files from other ports. Testing the installation in
3293
	<filename>/var/tmp/<replaceable>port-name</replaceable></filename>
3294
	to do that that while you have it installed would do that.</para>
3295
3280
        <para>Do not set <makevar>USE_X_PREFIX</makevar> unless your port
3296
        <para>Do not set <makevar>USE_X_PREFIX</makevar> unless your port
3281
          truly requires it (i.e., it links against X libs or it needs to
3297
          truly requires it (i.e., it links against X libs or it needs to
3282
          reference files in <makevar>X11BASE</makevar>).</para>
3298
          reference files in <makevar>X11BASE</makevar>).</para>

Return to bug 23450