Enable -Wstrict-overflow to catch apps those depend on undefined signed overflow, Python hit this, autoconf hit this, now its time to fix it, see http://gcc.gnu.org/ml/gcc/2006-12/msg00459.html
This commit is contained in:
@@ -50,7 +50,7 @@ def compile(parameters = ''):
|
|||||||
|
|
||||||
def install(parameters = ''):
|
def install(parameters = ''):
|
||||||
'''does python setup.py install'''
|
'''does python setup.py install'''
|
||||||
if system('python setup.py install --root=%s --no-compile -O0 %s' % (get.installDIR(), parameters)):
|
if system('python setup.py install --root=%s --install-lib=/usr/lib/site-python --no-compile -O0 %s' % (get.installDIR(), parameters)):
|
||||||
raise InstallError, _('Install failed.')
|
raise InstallError, _('Install failed.')
|
||||||
|
|
||||||
DDOCS = 'CHANGELOG COPYRIGHT KNOWN_BUGS MAINTAINERS PKG-INFO \
|
DDOCS = 'CHANGELOG COPYRIGHT KNOWN_BUGS MAINTAINERS PKG-INFO \
|
||||||
|
|||||||
+3
-4
@@ -114,8 +114,7 @@ class ArchiveTar(ArchiveBase):
|
|||||||
elif self.type == 'tarlzma':
|
elif self.type == 'tarlzma':
|
||||||
rmode = 'r:'
|
rmode = 'r:'
|
||||||
self.file_path = self.file_path.rstrip(ctx.const.lzma_suffix)
|
self.file_path = self.file_path.rstrip(ctx.const.lzma_suffix)
|
||||||
ret, out, err = util.run_batch("lzma d %s %s" % (self.file_path + ctx.const.lzma_suffix,
|
ret, out, err = util.run_batch("lzma -k -f -d %s%s" % (self.file_path,ctx.const.lzma_suffix))
|
||||||
self.file_path))
|
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
raise LzmaRuntimeError(err)
|
raise LzmaRuntimeError(err)
|
||||||
else:
|
else:
|
||||||
@@ -190,9 +189,9 @@ class ArchiveTar(ArchiveBase):
|
|||||||
if self.tar.mode == 'wb' and self.type == 'tarlzma':
|
if self.tar.mode == 'wb' and self.type == 'tarlzma':
|
||||||
batch = None
|
batch = None
|
||||||
if ctx.config.values.build.compressionlevel:
|
if ctx.config.values.build.compressionlevel:
|
||||||
batch = "lzmash -%s %s" % (ctx.config.values.build.compressionlevel, self.file_path)
|
batch = "lzma -%s -z %s" % (ctx.config.values.build.compressionlevel, self.file_path)
|
||||||
else:
|
else:
|
||||||
batch = "lzmash %s" % self.file_path
|
batch = "lzma -z %s" % self.file_path
|
||||||
|
|
||||||
ret, out, err = util.run_batch(batch)
|
ret, out, err = util.run_batch(batch)
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
|
|||||||
+2
-2
@@ -25,8 +25,8 @@
|
|||||||
#host = i686-pc-linux-gnu
|
#host = i686-pc-linux-gnu
|
||||||
#generateDebug = False
|
#generateDebug = False
|
||||||
#jobs = "-j1"
|
#jobs = "-j1"
|
||||||
#CFLAGS= -mtune=i686 -march=i686 -O2 -pipe -fomit-frame-pointer
|
#CFLAGS= -mtune=i686 -march=i686 -O2 -pipe -fomit-frame-pointer -Wstrict-overflow
|
||||||
#CXXFLAGS= -mtune=i686 -march=i686 -O2 -pipe -fomit-frame-pointer
|
#CXXFLAGS= -mtune=i686 -march=i686 -O2 -pipe -fomit-frame-pointer -Wstrict-overflow
|
||||||
#LDFLAGS=
|
#LDFLAGS=
|
||||||
#buildno=True # necessary for generating build nos
|
#buildno=True # necessary for generating build nos
|
||||||
#buildhelper = None / ccache / icecream
|
#buildhelper = None / ccache / icecream
|
||||||
|
|||||||
Reference in New Issue
Block a user