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

Bug#510957: lintian: CMake build error detection



Package: lintian
Version: 2.1.3
Severity: wishlist

Hi

would be nice if Lintian could have an E: level for an easy to detect
FTBFS.
If there is a CMakeCache.txt file in the .diff.gz and as such in the
build tree, cmake will simply refuse to build the package and outright
fail:

CMake Error: The current CMakeCache.txt directory
/tmp/buildd/mysql-connector-cpp-1.0.2~20081215/CMakeCache.txt is
different than the directory
/home/rene/mysql-connector-cpp-1.0.2~20081215 where CMackeCache.txt was
created. This may result in binaries being created in the wrong
place. If you are not sure, reedit the CMakeCache.txt
make: *** [configure-stamp] Error 1

To not have a chance of too many false positives, I would suggest
looking directly into the diff, so avoid upstream source. And do not
count the error as soon as you find that filename anywhere in the rules
file (that assumes the Maintainer takes care of it somehow).

I don't know if there are other files that are treated like this from
cmake, if there are one might also E:rror on them.

-- 
bye, Joerg
2.5 million B.C.: OOG the Open Source Caveman develops the axe and
releases it under the GPL. The axe quickly gains popularity as a means
of crushing moderators heads.



Reply to: