diff --git a/CHANGELOG b/CHANGELOG index 5b94ad7..d89921c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,7 +1,15 @@ -lxqt-build-tools-0.3.1 / 2017-01-01 +lxqt-build-tools-0.3.2 / 2017-01-14 =================================== + * Bump version to 0.3.2 - finally the build tools are arch: all (#15) + * Warnings (#16) + * Remove arched bits from version.cmake-file (#14) + +0.3.1 / 2017-01-01 +================== + + * Release 0.3.1: Update changelog * Bump LXQT_PATCH_VERSION and build tools version (#13) * 32 64 bit ness (#12) * Use "gcc-ar" and "gcc-ranlib" tools when building static libs with gcc link-time optimization. (#11) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8431500..e63004c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,8 +6,8 @@ option(WITH_XDG_DIRS_FALLBACK "Use our XDG_CONFIG_DIRS fallback" ON) set(LXQT_BUILD_TOOLS_MAJOR_VERSION 0) set(LXQT_BUILD_TOOLS_MINOR_VERSION 3) -set(LXQT_BUILD_TOOLS_PATCH_VERSION 1) -set(LXQT_BUILD_TOOLS_VERSION ${LXQT_BUILD_TOOLS_MAJOR_VERSION}.${LXQT_BUILD_TOOLS_MINOR_VERSION}${LXQT_BUILD_TOOLS_PATCH_VERSION}) +set(LXQT_BUILD_TOOLS_PATCH_VERSION 2) +set(LXQT_BUILD_TOOLS_VERSION ${LXQT_BUILD_TOOLS_MAJOR_VERSION}.${LXQT_BUILD_TOOLS_MINOR_VERSION}.${LXQT_BUILD_TOOLS_PATCH_VERSION}) set(LXQT_MAJOR_VERSION 0) set(LXQT_MINOR_VERSION 11) @@ -101,10 +101,10 @@ configure_file( ) # The package version file is common to superbuild and installable mode -write_basic_package_version_file( - "${CMAKE_BINARY_DIR}/lxqt-build-tools-config-version.cmake" - VERSION ${LXQT_BUILD_TOOLS_VERSION} - COMPATIBILITY AnyNewerVersion +configure_file( + "${CMAKE_CURRENT_SOURCE_DIR}/lxqt-build-tools-config-version.cmake.in" + "${CMAKE_CURRENT_BINARY_DIR}/lxqt-build-tools-config-version.cmake" + @ONLY ) install(FILES diff --git a/README.md b/README.md index f4c333a..1fb2a2b 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,4 @@ To build run `make`, to install `make install` which accepts variable `DESTDIR` ## Packagers -Please keep in mind that lxqt-build-tools are arch dependend - the package picks up **32/64bit-ness** at build time of the package - so the package has to be built for the respective architecture, arch: all will **not** fly. +This package is arch-independent now. You can simply package it as `BuildArch: noarch` (rpm) or `arch: all` (deb). diff --git a/cmake/modules/LXQtCompilerSettings.cmake b/cmake/modules/LXQtCompilerSettings.cmake index c0694de..2b1e774 100644 --- a/cmake/modules/LXQtCompilerSettings.cmake +++ b/cmake/modules/LXQtCompilerSettings.cmake @@ -103,14 +103,20 @@ endif() #----------------------------------------------------------------------------- # Common warning flags #----------------------------------------------------------------------------- -set(__LXQT_COMMON_WARNING_FLAGS "-Wall") +set(__LXQT_COMMON_WARNING_FLAGS "-Wall -Wextra -Wchar-subscripts -Wno-long-long -Wpointer-arith -Wundef -Wformat-security") #----------------------------------------------------------------------------- # Warning flags #----------------------------------------------------------------------------- if (CMAKE_COMPILER_IS_GNUCXX OR LXQT_COMPILER_IS_CLANGCXX) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${__LXQT_COMMON_WARNING_FLAGS}") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${__LXQT_COMMON_WARNING_FLAGS} -Wnon-virtual-dtor -Woverloaded-virtual -Wpedantic") +endif() + +if (LXQT_COMPILER_IS_CLANGCXX) + # qCDebug(), qCWarning, etc trigger a very verbose warning, about.... nothing. Disable it. + # Found when building lxqt-session. + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-gnu-zero-variadic-macro-arguments") endif() diff --git a/debian/changelog b/debian/changelog index 9d61a3e..c607491 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +lxqt-build-tools (0.3.2-1) unstable; urgency=medium + + * Cherry-picking upstream version 0.3.2. + * Switched Architecture any --> all + + -- Alf Gaida Sat, 14 Jan 2017 00:55:40 +0100 + lxqt-build-tools (0.3.1-1) unstable; urgency=medium * Cherry-picking upstream version 0.3.1. diff --git a/debian/control b/debian/control index 3e82cb8..51ee6e2 100644 --- a/debian/control +++ b/debian/control @@ -13,7 +13,7 @@ Vcs-Git: https://anonscm.debian.org/git/pkg-lxqt/lxqt-build-tools.git -b debian/ Homepage: https://github.com/lxde/lxqt-build-tools Package: lxqt-build-tools -Architecture: any +Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, cmake (>= 3.0.2), diff --git a/lxqt-build-tools-config-version.cmake.in b/lxqt-build-tools-config-version.cmake.in new file mode 100644 index 0000000..b09724b --- /dev/null +++ b/lxqt-build-tools-config-version.cmake.in @@ -0,0 +1,10 @@ +set(PACKAGE_VERSION "@LXQT_BUILD_TOOLS_VERSION@") + +if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + endif() +endif()