https://bugs.kde.org/show_bug.cgi?id=382172

            Bug ID: 382172
           Summary: options blocks in kdesrc-buildrc work only when the
                    module is specified on cmdline
           Product: kdesrc-build
           Version: Git
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: mp...@kde.org
          Reporter: mp...@kde.org
  Target Milestone: ---

In testing something the libdbusmenu-qt (which is a module instead of a
module-set in the default config), I noticed that an options block declared as

options libdbusmenu-qt
  cmake-options -DWITH_DOC=OFF
end options

does not work when libdbusmenu-qt is built when the module list is generated by
reading the config file.  When libdbusmenu-qt is specifically requested to be
built on the command line, the options block *does* take effect.

E.g. compare 

$ kdesrc-build -p --debug --reconfigure --stop-after libdbusmenu-qt
> ...
> Would have run 'cmake' '/kdesrc/src/kf5/libdbusmenu-qt' '-G' 'Ninja' 
> '-DCMAKE_CXX_FLAGS:STRING=-pipe -O2 -march=native ' 
> '-DCMAKE_INSTALL_PREFIX=/home/kde-svn/kde-5'

(WITH_DOC is missing)

with 
$ kdesrc-build -p --debug --reconfigure libdbusmenu-qt
> ...
> Would have run 'cmake' '/kdesrc/src/kf5/libdbusmenu-qt' '-G' 'Ninja' 
> '-DWITH_DOC=OFF' '-DCMAKE_CXX_FLAGS:STRING=-pipe -O2 -march=native ' 
> '-DCMAKE_INSTALL_PREFIX=/home/kde-svn/kde-5'

(WITH_DOC now present).

---

The 'options' feature had been added to support ease of use with module sets
but it has been supposed to work with regular modules for some years now.  This
needs fixed to be consistent one way or the other.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to