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

            Bug ID: 366594
           Summary: can't use ignore-modules in option stanza from config
                    file
           Product: kdesrc-build
           Version: Git
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: mp...@kde.org
          Reporter: oliver.hens...@gmail.com

I want to include kf5-frameworks-build-include etc. in my rc-file to
update/build/install all modules but there may be a few I want to exclude
permanently. For example, excluding phonon-vlc if I want to keep away from
nonfree dependencies, or other modules whose dependencies I can't/won't meet or
that won't build. I can do that with --ignore-modules on the command line but
it would be better to have the option persist.

I thought that bug #365813 might solve this but kdesrc-build still fails with:

 $ ./kdesrc-build --rc-file ../kdesrc-build-config/kdesrc-build-frameworks
phonon 
 * module #overlay_phonon (near line 11) should be declared as module-set to
use ignore-modules
kdesrc-build encountered an exceptional error condition:
 ========
    Config Error: Option ignore-modules can only be used in module-set
 ========
        Can't continue, so stopping now.

$ cat ../kdesrc-build-config/kdesrc-build-frameworks       
# Adjust all these settings at will

include /opt/kde/sources/kdesrc-build-config/kdesrc-build-options-global
include /opt/kde/sources/kdesrc-build-config/kdesrc-build-options-frameworks

# call with --ignore-modules phonon-vlc as can't exclude this module any
# other way without copying the phonon module-set
$ cat ../kdesrc-build-config/kdesrc-build-options-frameworks 
include /opt/kde/sources/kdesrc-build/kf5-frameworks-build-include

# call with --ignore-modules phonon-vlc as can't exclude this module any
# other way without copying the phonon module-set

options bluez-qt
    cmake-options -DBUILD_TESTING=TRUE -DCMAKE_BUILD_TYPE:STRING=debug
-DINSTALL_UDEV_RULE=FALSE
end options

options phonon
    ignore-modules phonon-vlc
end options

Seems that the option is still treated as if it applies to a module when it's
applied to a module set, and ignore-modules is blacklisted as a setting that
only applies to module sets.

Reproducible: Always

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

Reply via email to