2011/9/6 Vadim Zhukov <[email protected]>:
> Just added a "debug" flavor, and for sanity re-run "make
> update-plist". It was not a big surprise something was changed; the
> surprise was that ${FLAVORS} got there:
>
> --- pkg/PLIST.orig Tue Sep 6 01:49:39 2011
> +++ pkg/PLIST Tue Sep 6 22:20:05 2011
> @@ -18,7 +18,7 @@ lib/cmake/
> lib/cmake/Akonadi/
> lib/cmake/Akonadi/AkonadiConfig.cmake
> lib/cmake/Akonadi/AkonadiConfigVersion.cmake
> -lib/cmake/Akonadi/AkonadiTargetsWithPrefix-release.cmake
> +lib/cmake/Akonadi/AkonadiTargetsWithPrefix${FLAVORS}.cmake
> lib/cmake/Akonadi/AkonadiTargetsWithPrefix.cmake
> @lib
> lib/libakonadiprotocolinternals.so.${LIBakonadiprotocolinternals_VERSION}
> lib/pkgconfig/akonadi.pc
>
> Not a big deal, of course, but is this a known issue?
The problem is a bit more serious. After constructing own variable,
update-plist still puts ${FLAVORS} instead. And what's really bad, it
brokes packaging:
(part of diff)
-lib/cmake/KdepimLibs/KDEPimLibsLibraryTargetsWithPrefix${CMAKE_TARGET_PREFIX}.cmake
+lib/cmake/KdepimLibs/KDEPimLibsLibraryTargetsWithPrefix${FLAVORS}.cmake
(variable values)
$ FLAVOR=debug make show=FLAVORS
debug
$ FLAVOR=debug make show=CMAKE_TARGET_PREFIX
-debug
--
WBR,
Vadim Zhukov