Source: lprof
Version: 1.11.4.dfsg+1.11.4.1-5
Severity: serious
Tags: patch
Justification: FTBFS

lprof fails to build from source if HOME is unset (and it actually is unset on some buildds):
| File 
"/build/buildd-lprof_1.11.4.dfsg+1.11.4.1-5+b2-mips-FwKYFa/lprof-1.11.4.dfsg+1.11.4.1/SConstruct",
 line 15, in <module>
| KeyError: 'HOME':
|   File 
"/build/buildd-lprof_1.11.4.dfsg+1.11.4.1-5+b2-mips-FwKYFa/lprof-1.11.4.dfsg+1.11.4.1/SConstruct",
 line 28:
|     'HOME' : os.environ[ 'HOME' ], # required for distcc
|   File "/usr/lib/python2.6/UserDict.py", line 22:
|     raise KeyError(key)

Full build log is available here:
https://buildd.debian.org/fetch.cgi?pkg=lprof&arch=mips&ver=1.11.4.dfsg%2B1.11.4.1-5%2Bb2&stamp=1301130565&file=log&as=raw

The attached patch fixes this bug. Please tell me if you want me to NMU.

--
Jakub Wilk
--- lprof-1.11.4.dfsg+1.11.4.1.orig/SConstruct
+++ lprof-1.11.4.dfsg+1.11.4.1/SConstruct
@@ -25,7 +25,6 @@
 env = Environment(
     ENV = {
       'PATH' : os.environ[ 'PATH' ],
-      'HOME' : os.environ[ 'HOME' ], # required for distcc
       'LDFLAGS' : ''
     }, options = opts)
 

Reply via email to