Please review: cmake check for Cagibi

Maciej Mrozowski reavertm at gmail.com
Tue Aug 24 22:21:51 CEST 2010


On Tuesday 24 of August 2010 21:21:08 Friedrich W. H. Kossebau wrote:
> Mardi, le 24 août 2010, à 20:02, Maciej Mrozowski a écrit:
> > On Tuesday 24 of August 2010 02:34:05 Friedrich W. H. Kossebau wrote:
> > > Mardi, le 24 août 2010, à 01:24, Yury G. Kudryashov a écrit:
> > > > BTW, what about adding one more parameter to m_l_f that tells whether
> > > > dependency is a runtime dep (default to FALSE)? Or even add another
> > > > macro because "required" flag MUST be FALSE for runtime dependencies?
> > > > Then we'll be able to say:
> > > > == THE FOLLOWING RUNTIME DEPENDENCIES ARE MISSING ON YOUR SYSTEM ==
> > > 
> > > That might be indeed most useful and nice to have, I agree
> > > (non-packager, but self-compiler :) ).
> > 
> > Otherwise listing runtime-only dependencies in README file is just as
> > good (what said kajonggh does for instance).
> > 
> > It's even better than CMake checks in case all runtime-only dependencies
> > are met (so no missing deps are reported) - as packager is not aware of
> > them.
> 
> True, good hint. So if packagers do read README file, than I will add one,
> too. Hm, should then be kdebase/runtime/README, or can I ever expect some
> packager to read kdebase/runtime/kioslave/network/README?

Indeed, hunting down all those files may be difficult.

> Might be good if this could be standardized.
> I still like Yury's proposal for that, as it integrates into the log
> creation, so all dependencies can be seen at one place, no need to search
> somewhere else. I guess Yury also had the second listing in mind,
> == THE FOLLOWING RUNTIME DEPENDENCIES ARE AVAILABLE ON YOUR SYSTEM ==

Definitely some macro would be handy. If it was up to me, I wouldn't provide 
separate lists for missing and met runtime dependencies.

As a packager I'm only concerned what runtime dependencies are needed, and not 
what's actually installed in my build box.

With that mind, runtime-only dependency handling could be simplified to: (see 
attachment):

macro_log_runtime_dependency("FOO" "File Ownership Obstuctor" "http://foo.org" 
TRUE "" "Sophisticated file ownership obstructor. Required by KIO.")

Will produce following output:

-----------------------------------------------------------------------------
-- The following RUNTIME-ONLY dependencies may be needed.
-- Consider installing them to enable more features from this software.
-----------------------------------------------------------------------------
   * FOO  <http://foo.org> REQUIRED
     File Ownership Obstuctor
     Sophisticated file ownership obstructor. Required by KIO.

-- 
regards
MM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: macro_log_runtime_dependency.diff
Type: text/x-patch
Size: 3478 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20100824/18977aee/attachment.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20100824/18977aee/attachment.sig 


More information about the Kde-buildsystem mailing list