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

Bug#654835: libc/NEWS.Debian: please suggest use of LIBRARY_PATH and CPATH envvars



Package: libc6
Version: 2.13-24
Severity: minor
Justification: documentation
Tags: patch

libc6's NEWS.Debian explains:

	           you might try to pass the following option to your
	compiler:

	  -B/usr/lib/<triplet> -I/usr/include/<triplet>

Lately I've been building gcc trunk from time to time, and as noted in
bug#644990 there's no obvious place to put those options to ensure
they get passed to the stage1 compiler.  Then suddenly it occured to
me that the usual LIBRARY_PATH and CPATH environment variables would
be a less fussy way to tell the compiler what paths to use.

It works. :)

How about this patch?  Hopefully it can save future readers and bug
triagers some time.
---
 debian/changelog              |    8 ++++++++
 debian/debhelper.in/libc.NEWS |    6 ++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 7847ec9d..0dfeb6b2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+eglibc (2.13-25) UNRELEASED; urgency=low
+
+  * debhelper.in/libc.NEWS: suggest environment variables as an
+    alternative for build systems that make it hard to pass custom
+    arguments like -B and -I to the compiler.
+
+ -- Jonathan Nieder <jrnieder@gmail.com>  Thu, 05 Jan 2012 19:20:52 -0600
+
 eglibc (2.13-24) unstable; urgency=low
 
   * patches/m68k/cvs-byteswap.diff: fix m68k optimized version of 
diff --git a/debian/debhelper.in/libc.NEWS b/debian/debhelper.in/libc.NEWS
index e069cdc2..cb5f9e7f 100644
--- a/debian/debhelper.in/libc.NEWS
+++ b/debian/debhelper.in/libc.NEWS
@@ -15,6 +15,12 @@ eglibc (2.13-17) unstable; urgency=low
 
     -B/usr/lib/<triplet> -I/usr/include/<triplet>
 
+  Or set the LIBRARY_PATH and CPATH environment variables:
+
+    LIBRARY_PATH=/usr/lib/<triplet>
+    CPATH=/usr/include/<triplet>
+    export LIBRARY_PATH CPATH
+
  -- Aurelien Jarno <aurel32@debian.org>  Tue, 09 Aug 2011 19:58:28 +0200 
 
 eglibc (2.13-7) unstable; urgency=low
-- 
1.7.8.2




Reply to: