pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/doc/guide/files



Module Name:    pkgsrc
Committed By:   gdt
Date:           Thu Jan 30 20:18:09 UTC 2025

Modified Files:
        pkgsrc/doc/guide/files: faq.xml

Log Message:
doc/guide: Suggest -E with sudo

Explain failure of bin-install with non-default python.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 pkgsrc/doc/guide/files/faq.xml

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/doc/guide/files/faq.xml
diff -u pkgsrc/doc/guide/files/faq.xml:1.59 pkgsrc/doc/guide/files/faq.xml:1.60
--- pkgsrc/doc/guide/files/faq.xml:1.59 Sat Apr  9 10:14:20 2022
+++ pkgsrc/doc/guide/files/faq.xml      Thu Jan 30 20:18:09 2025
@@ -1,4 +1,4 @@
-<!-- $NetBSD: faq.xml,v 1.59 2022/04/09 10:14:20 nia Exp $ -->
+<!-- $NetBSD: faq.xml,v 1.60 2025/01/30 20:18:09 gdt Exp $ -->
 
 <chapter id="faq"> <?dbhtml filename="faq.html"?>
 <title>Frequently Asked Questions</title>
@@ -457,10 +457,16 @@ following into your &mk.conf;, somewhere
 
 <programlisting>
 .if exists(${LOCALBASE}/bin/sudo)
-SU_CMD=        ${LOCALBASE}/bin/sudo /bin/sh -c
+SU_CMD=        ${LOCALBASE}/bin/sudo -E /bin/sh -c
 .endif
 </programlisting>
 
+<para>Note the <command>-E</command> flag; that tells
+<command>sudo</command> to preserve the environment.
+Without this, the bin-install target will fail when building a
+package with a non-default python version.
+</para>
+
 </sect1>
 
 <!-- ================================================================== -->



Home | Main Index | Thread Index | Old Index