Переглянути джерело

dpkg-buildflags(1): DEB_*_(SET|APPEND) are meant for users

Make it clear that the possibility to override the compilation flags
with environment variables DEB_*_SET and DEB_*_APPEND is restricted
to users and that packages should not set those variables.
Raphaël Hertzog 15 роки тому
батько
коміт
86f689c13b
2 змінених файлів з 6 додано та 1 видалено
  1. 2 0
      debian/changelog
  2. 4 1
      man/dpkg-buildflags.1

+ 2 - 0
debian/changelog

@@ -52,6 +52,8 @@ dpkg (1.16.1) UNRELEASED; urgency=low
     around a bug of a newer prerm anyway.
   * dpkg: support new "interest-noawait" and "activate-noawait" trigger
     directives.
+  * dpkg-buildflags(1): make it clear that DEB_*_(SET|APPEND) environment
+    variables are meant for users and should not be used by packages.
 
   [ Guillem Jover ]
   * Install deb-src-control(5) man pages in dpkg-dev. Closes: #620520

+ 4 - 1
man/dpkg-buildflags.1

@@ -18,7 +18,7 @@ system-wide with \fB/etc/dpkg/buildflags.conf\fP;
 for the current user with \fB$XDG_CONFIG_HOME/dpkg/buildflags.conf\fP
 where \fB$XDG_CONFIG_HOME\fP defaults to \fB$HOME/.config\fP;
 .IP 3.
-temporarily with environment variables (see section \fBENVIRONMENT\fP).
+temporarily by the user with environment variables (see section \fBENVIRONMENT\fP).
 .P
 The configuration files can contain two types of directives:
 .TP
@@ -108,6 +108,9 @@ System wide configuration file.
 .BR $XDG_CONFIG_HOME/dpkg/buildflags.conf " or " $HOME/.config/dpkg/buildflags.conf
 User configuration file.
 .SH ENVIRONMENT
+Those environment variables should not be set by official packages, they
+are meant for users who are recompiling a Debian package and would like to
+change the compilation flags.
 .TP
 .BI DEB_ flag _SET
 This variable can be used to force the value returned for the given