Raffi Enficiaud
fdfe4586a0
CPackDeb: Fix lintian md5sum file warning
...
Lintian warned about invalid md5sum file permissions.
2015-04-23 09:02:49 -04:00
Domen Vrankar
c8375e15eb
CPackDeb: Refactor package variable lookup by generator
...
Preparation for per component variables.
Patch makes sure we know which variables
will be set for per component generator
and also prevents accidental overflows
of variable values between components.
2015-04-21 08:47:18 -04:00
Brad King
356c26ebdf
cmSystemTools: Teach RunSingleCommand to separate stdout and stderr
...
Extend the RunSingleCommand signature to capture stdout and stderr
separately. Allow both to be captured to the same std::string
to preserve existing behavior. Update all call sites to do this
so that this refactoring does not introduce functional changes.
2015-04-20 15:47:50 -04:00
Brad King
e86f44b726
cmCPackDebGenerator: Cast file mode to proper type for %o formatter
2015-03-31 16:28:28 -04:00
Bill Hoffman
a4a1b729c6
Fix warnings from clang scanbuild.
2015-03-25 12:38:37 -04:00
Stephen Kelly
5eb4d7590e
Remove some unneeded c_str calls.
2014-11-23 11:09:54 +01:00
Nils Gladitz
cc1139cc30
strings: Remove redundant calls to std::string::c_str()
...
Replacements were detected and performed by the clang tool
remove-cstr-calls on a linux build.
2014-10-15 14:54:05 +02:00
Sean D'Epagnier
13778cd3be
CPackDeb: Add option to set compression type
...
Add a CPACK_DEBIAN_COMPRESSION_TYPE option to set the compression type.
Default to 'gzip' to preserve existing behavior. Use "cmake -E tar"
for 'gzip', 'bzip2', and 'none'. Use system "tar" for 'lzma' and 'xz'.
2014-03-14 09:29:54 -04:00
Stephen Kelly
af8a1643c1
Remove c_str calls when using stream APIs.
...
Use an ad-hoc clang tool for matching the calls which should be
ported.
2014-03-11 15:03:50 +01:00
Stephen Kelly
21c573f682
Remove some c_str() calls.
...
Use the clang RemoveCStrCalls tool to automatically migrate the
code. This was only run on linux, so does not have any positive or
negative effect on other platforms.
2014-03-11 15:03:50 +01:00
Clinton Stimpson
5730710c86
Use cmsys::[io]fstream instead of cmsys_ios::[io]fstream.
...
Also use SystemTools::Fopen() instead of fopen().
This is to eventually support utf-8 filenames.
2014-01-07 09:27:44 -05:00
Paul Kunysch
0fca154344
CPack: Avoid "format expects 'unsigned int'" warnings
...
Cast sprintf uid and gid arguments to match the type expected by their
"%-6u" format strings.
2013-03-22 08:53:58 -04:00
Clinton Stimpson
e7e2694823
CPack: Fix RPM/Deb package names to not include "ALL_COMPONENTS_IN_ONE"
2012-11-06 11:50:07 -05:00
Kitware Robot
7bbaa4283d
Remove trailing whitespace from most CMake and C/C++ code
...
Our Git commit hooks disallow modification or addition of lines with
trailing whitespace. Wipe out all remnants of trailing whitespace
everywhere except third-party code.
Run the following shell code:
git ls-files -z -- \
bootstrap doxygen.config '*.readme' \
'*.c' '*.cmake' '*.cpp' '*.cxx' \
'*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \
'*.mm' '*.pike' '*.py' '*.txt' '*.vim' |
egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' |
egrep -z -v '^(Modules/CPack\..*\.in)' |
xargs -0 sed -i 's/ \+$//'
2012-08-13 14:18:39 -04:00
Eric NOULARD
abc9b32375
Use fakeroot for control.tar.gz as well
2012-04-17 09:22:07 +02:00
Eric NOULARD
805c1b21d6
Handle CPACK_MONOLITHIC_INSTALL in some rare use cases.
...
For example, when CPACK_<GEN>_COMPONENT_INSTALL and
CPACK_MONOLITHIC_INSTALL are both set. Previously, this
combination of variable settings produced an error without
any explanation. Now, in this case CPACK_MONOLITHIC_INSTALL wins
without trouble.
This is useful for when e.g. CPACK_ARCHIVE_COMPONENT_INSTALL is
globally on and one wants MONOLITHIC install for STGZ (but not
other generators). The same behavior may be obtained by re-setting
CPACK_ARCHIVE_COMPONENT_INSTALL to 0 but in any case the
'both set' case should have been handled without error.
2012-03-18 20:21:35 +01:00
Eric NOULARD
49da3bdb2d
CPackDeb fix #10325 automagically use fakeroot for DEB if fakeroot is found
2011-09-05 22:43:45 +02:00
Martin Konrad
b22fcfb0c5
CPackDeb: Handle dirs for CONTROL_EXTRA correctly when packaging components
...
Copy the files specified in CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA to the right
directory when packaging components. This fixes #12061 .
Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
2011-04-09 09:30:19 +02:00
Eric NOULARD
9c43824066
Fix KWStyle warnings
2011-04-04 14:59:58 -04:00
Clinton Stimpson
64a5e20999
Combine component packaging methods into an enum.
...
Also allow generators to override the default packaging method.
Add a ONE_PER_GROUP option so that method can be specified by the user without relying on defaults.
2011-03-31 13:33:03 -04:00
Eric NOULARD
6dfc818394
CPack fix #11930 and simplifies component packaging options
2011-03-23 18:28:05 +01:00
Eric NOULARD
21007f8989
CPack fix CPackDeb crash when CPackDeb.cmake ends with a FATAL_ERROR
2011-03-19 11:12:31 +01:00
M. Konrad
bf7066c6ce
CPackDeb add Component Support to DEB generator fix #0011655
...
Contribution by Martin Konrad
Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
2011-03-11 08:47:15 +01:00
Eric NOULARD
a749724029
CPackDeb Added several optional debian binary package fields
...
This fixes bugs #0011355 and 0008342.
The merged patch is a contribution from Michael Lasmanis and Petri Hodju
with some extra documentation added by the merger.
2010-10-25 20:40:45 +02:00
Eric NOULARD
40dc97dc73
CPack Backward-compatibly enforce DESTDIR for DEB and RPM
2010-08-23 16:14:40 +02:00
Eric NOULARD
cd7b8a03f5
CPack: Refactor API in order to handle multi-file packages
...
The multi-argument CompressFiles(...) method has been replace by the
no-argument PackageFiles() method and 3 more member variables. This
will enable implemention of multi-package generators. Now each specific
generator (which overloads PackageFiles()) may decide to change the name
and/or the number of generated package files.
2010-08-11 14:09:52 -04:00
Brad King
1820a05cb2
Merge topic 'CPackDEB-auto-dependency-support'
...
ded3a15
CPackDeb optionally generates auto-dependency list part fix of bug 10292
2010-08-03 16:12:37 -04:00
Eric NOULARD
ded3a1585b
CPackDeb optionally generates auto-dependency list part fix of bug 10292
...
The default behavior is not to activate this option because it may break
DEB package building for project who does not use INSTALL RPATH.
2010-07-28 18:24:20 +02:00
Eric NOULARD
5495a6d975
CPackDEB: merge wrong installed size patch. see bugs 10296 (and 10292)
2010-07-28 17:03:14 +02:00
Brad King
050af165bb
Fix integer conversions in cpack
...
These were revealed by GCC's -Wconversion option.
2010-06-30 09:57:07 -04:00
Brad King
96afb12087
Convert CMake to OSI-approved BSD License
...
This converts the CMake license to a pure 3-clause OSI-approved BSD
License. We drop the previous license clause requiring modified
versions to be plainly marked. We also update the CMake copyright to
cover the full development time range.
2009-09-28 11:43:28 -04:00
Bill Hoffman
7e5222165d
ENH: add installed size to deb package
2008-09-11 10:48:49 -04:00
Bill Hoffman
2efad09d92
ENH: add CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA variable
2008-04-01 17:51:10 -04:00
Alexander Neundorf
12ba1e9b20
BUG: fix packaging of files installed to absolute paths, works only when
...
used with SET(CPACK_SET_DESTDIR "ON")
Alex
2008-03-28 20:23:01 -04:00
Brad King
f5d86035f2
COMP: Add include of <limits.h> to get USHRT_MAX constant.
2008-01-24 07:31:59 -05:00
Bill Hoffman
cfd308ce43
STYLE: fix line length issue
2007-11-06 08:27:43 -05:00
Brad King
f410f8578e
COMP: Fix warnings on 64-bit Mac OS X build. Patch from issue #3697 .
2007-11-05 14:34:36 -05:00
David Cole
5beb1da7f7
ENH: Add CPACK_SET_DESTDIR handling to enable packaging of installed files in absolute locations. With this setting on, cpack will set the DESTDIR env var when building the package so that files end up in their intended locations. Default behavior is not to set DESTDIR for backwards compatibility. Helps address issue #4993 and issue #5257 . Also, remove unused CPACK_USE_DESTDIR variable. ENH: Add variable CPACK_PACKAGING_INSTALL_PREFIX to allow overriding the CPack GetPackagingInstallPrefix from a project's CMakeLists file if necessary. Could be used to remove the annoying /usr prefix still used by default in the Mac PackageMaker generator.
2007-10-31 08:50:17 -04:00
Alexander Neundorf
2d1bcf806f
BUG: rename DEBIAN_PACKAGE_* variables to CPACK_DEBIAN_PACKAGE_* variables
...
to make them actually work
Alex
2007-10-25 13:26:54 -04:00
Alexander Neundorf
d5b135e6b5
STYLE: use %-10lld instead of %-10qd for printing a 64bit int, maybe this
...
silences the warning of the HP compiler
Alex
2007-09-21 13:37:30 -04:00
Brad King
20455c699b
BUG: Another space-in-path fix.
2007-08-31 09:14:43 -04:00
Alexander Neundorf
e47fbcb9a8
BUG: work if there are spaces in the path to cmake
...
Alex
2007-08-29 16:32:20 -04:00
Alexander Neundorf
911613edf0
COMP: fix warning about comparison signed - unsigned
...
Alex
2007-08-15 08:47:28 -04:00
Alexander Neundorf
1dde4ab36c
COMP: fix build on HPUX, snprintf apparently doesn't work there
...
Alex
2007-08-15 08:28:08 -04:00
Alexander Neundorf
eff7981b57
STYLE: another patch from Mathieu with some comments
...
Alex
2007-08-14 10:25:23 -04:00
Alexander Neundorf
dfbd4ce0f2
ENH: deb generator: don't use the system provided ar, but do it yourself
...
using the code from OpenBSD ar
COMP: don't build all package generators on all platforms
Alex
2007-08-14 08:40:40 -04:00
Alexander Neundorf
4ba24ce474
ENH: patch from Mathieu: more entries in the debian control file
...
Alex
2007-08-08 14:18:13 -04:00
Alexander Neundorf
f23169b01a
ENH: another fix for the deb generator by Mathieu
...
Alex
2007-08-06 13:31:37 -04:00
Alexander Neundorf
4040f5f1bf
BUG: patch from Mathieu: the md5sums were not correct
...
Alex
2007-08-06 09:03:10 -04:00
Alexander Neundorf
42f9a6eb08
STYLE: fix line length
...
Alex
2007-07-27 13:12:36 -04:00