Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529686 - sys-auth/polkit-qt-0.112[qt4,qt5] with FEATURES="test" - multibuild image is discarded
Summary: sys-auth/polkit-qt-0.112[qt4,qt5] with FEATURES="test" - multibuild image is ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 524294
  Show dependency tree
 
Reported: 2014-11-18 12:36 UTC by Paolo Pedroni
Modified: 2016-07-06 13:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
polkit-qt-0.112.0:20141118-101859.log.gz (polkit-qt-0.112.0:20141118-101859.log.gz,15.71 KB, application/gzip)
2014-11-18 12:36 UTC, Paolo Pedroni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Pedroni 2014-11-18 12:36:50 UTC
Created attachment 389620 [details]
polkit-qt-0.112.0:20141118-101859.log.gz

I am trying to install lxqt-0.8.0 on one of my PCs, so I have unmasked all the relevant packages and the qt5 USE flag.

After installation I've run revdep-rebuild and it wanted to reinstall kdelibs:4 (and it went OK) and sys-auth/polkit-kde-agent, which failed in the configure phase with:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find PolkitQt-1 (missing: PolkitQt-1_CONFIG) (Required is at
  least version "0.99.0")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindPolkitQt-1.cmake:30 (find_package_handle_standard_args)
  CMakeLists.txt:8 (find_package)


-- Configuring incomplete, errors occurred!

I checked sys-auth/polkit-qt and I found out that despite having USE="qt4 qt5" it apparently only installed qt5 files:

# equery u polkit-qt
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-auth/polkit-qt-0.112.0:
 U I
 - - debug    : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
                http://www.gentoo.org/proj/en/qa/backtraces.xml
 - - examples : Install examples, usually source code
 + + qt4      : Add support for the Qt GUI/Application Toolkit version 4.x
 + + qt5      : Add support for the Qt 5 application and UI framework

# equery f polkit-qt
 * Searching for polkit-qt ...
 * Contents of sys-auth/polkit-qt-0.112.0:
/usr
/usr/include
/usr/include/polkit-qt5-1
/usr/include/polkit-qt5-1/PolkitQt1
/usr/include/polkit-qt5-1/PolkitQt1/ActionDescription
/usr/include/polkit-qt5-1/PolkitQt1/Agent
/usr/include/polkit-qt5-1/PolkitQt1/Agent/Listener
/usr/include/polkit-qt5-1/PolkitQt1/Agent/Session
/usr/include/polkit-qt5-1/PolkitQt1/Authority
/usr/include/polkit-qt5-1/PolkitQt1/Details
/usr/include/polkit-qt5-1/PolkitQt1/Gui
/usr/include/polkit-qt5-1/PolkitQt1/Gui/Action
/usr/include/polkit-qt5-1/PolkitQt1/Gui/ActionButton
/usr/include/polkit-qt5-1/PolkitQt1/Gui/ActionButtons
/usr/include/polkit-qt5-1/PolkitQt1/Identity
/usr/include/polkit-qt5-1/PolkitQt1/Subject
/usr/include/polkit-qt5-1/PolkitQt1/TemporaryAuthorization
/usr/include/polkit-qt5-1/polkitqt1-actiondescription.h
/usr/include/polkit-qt5-1/polkitqt1-agent-listener.h
/usr/include/polkit-qt5-1/polkitqt1-agent-session.h
/usr/include/polkit-qt5-1/polkitqt1-authority.h
/usr/include/polkit-qt5-1/polkitqt1-details.h
/usr/include/polkit-qt5-1/polkitqt1-export.h
/usr/include/polkit-qt5-1/polkitqt1-gui-action.h
/usr/include/polkit-qt5-1/polkitqt1-gui-actionbutton.h
/usr/include/polkit-qt5-1/polkitqt1-gui-actionbuttons.h
/usr/include/polkit-qt5-1/polkitqt1-identity.h
/usr/include/polkit-qt5-1/polkitqt1-subject.h
/usr/include/polkit-qt5-1/polkitqt1-temporaryauthorization.h
/usr/include/polkit-qt5-1/polkitqt1-version.h
/usr/lib64
/usr/lib64/cmake
/usr/lib64/cmake/PolkitQt5-1
/usr/lib64/cmake/PolkitQt5-1/PolkitQt5-1Config.cmake
/usr/lib64/cmake/PolkitQt5-1/PolkitQt5-1ConfigVersion.cmake
/usr/lib64/cmake/PolkitQt5-1/PolkitQt5-1Targets-gentoo.cmake
/usr/lib64/cmake/PolkitQt5-1/PolkitQt5-1Targets.cmake
/usr/lib64/libpolkit-qt5-agent-1.so -> libpolkit-qt5-agent-1.so.1
/usr/lib64/libpolkit-qt5-agent-1.so.1 -> libpolkit-qt5-agent-1.so.1.112.0
/usr/lib64/libpolkit-qt5-agent-1.so.1.112.0
/usr/lib64/libpolkit-qt5-core-1.so -> libpolkit-qt5-core-1.so.1
/usr/lib64/libpolkit-qt5-core-1.so.1 -> libpolkit-qt5-core-1.so.1.112.0
/usr/lib64/libpolkit-qt5-core-1.so.1.112.0
/usr/lib64/libpolkit-qt5-gui-1.so -> libpolkit-qt5-gui-1.so.1
/usr/lib64/libpolkit-qt5-gui-1.so.1 -> libpolkit-qt5-gui-1.so.1.112.0
/usr/lib64/libpolkit-qt5-gui-1.so.1.112.0
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/polkit-qt5-1.pc
/usr/lib64/pkgconfig/polkit-qt5-agent-1.pc
/usr/lib64/pkgconfig/polkit-qt5-core-1.pc
/usr/lib64/pkgconfig/polkit-qt5-gui-1.pc
/usr/share
/usr/share/doc
/usr/share/doc/polkit-qt-0.112.0
/usr/share/doc/polkit-qt-0.112.0/AUTHORS.bz2
/usr/share/doc/polkit-qt-0.112.0/README.bz2
/usr/share/doc/polkit-qt-0.112.0/README.porting.bz2
/usr/share/doc/polkit-qt-0.112.0/TODO.bz2

In fact in the attached build log for polkit-qt I found that it compiled both qt4 and qt5, but then it installed only qt5 (both in the qt4 and qt5 section):

>>> Install polkit-qt-0.112.0 into /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/ category sys-auth
 * qt4: running cmake-utils_src_install
>>> Working in BUILD_DIR: "/var/tmp/portage/sys-auth/polkit-qt-0.112.0/work/polkit-qt-1-0.112.0-qt5"
make -j12 install 
[  5%] [ 15%] [ 15%] Automoc for target polkit-qt5-core-1
Automoc for target polkit-qt5-agent-1
Automoc for target polkit-qt5-gui-1
[ 15%] [ 15%] Built target polkit-qt5-gui-1_automoc
Built target polkit-qt5-agent-1_automoc
[ 15%] Built target polkit-qt5-core-1_automoc
[ 52%] Built target polkit-qt5-core-1
[ 73%] Built target polkit-qt5-gui-1
[100%] Built target polkit-qt5-agent-1
Install the project...
-- Install configuration: "Gentoo"
-- Installing: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-gui-action.h
-- Installing: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-gui-actionbutton.h
-- Installing: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-gui-actionbuttons.h
-- Installing: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-authority.h
-- Installing: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-details.h
-- Installing: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-identity.h
-- Installing: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-subject.h
-- Installing: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-temporaryauthorization.h
-- Installing: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-actiondescription.h
-- Installing: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-agent-listener.h
-- Installing: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-agent-session.h
[...]

 * qt5: running cmake-utils_src_install
>>> Working in BUILD_DIR: "/var/tmp/portage/sys-auth/polkit-qt-0.112.0/work/polkit-qt-1-0.112.0-qt5"
make -j12 install 
[  5%] [ 15%] [ 15%] Automoc for target polkit-qt5-core-1
Automoc for target polkit-qt5-gui-1
Automoc for target polkit-qt5-agent-1
[ 15%] [ 15%] Built target polkit-qt5-gui-1_automoc
Built target polkit-qt5-agent-1_automoc
[ 15%] Built target polkit-qt5-core-1_automoc
[ 52%] Built target polkit-qt5-core-1
[ 73%] Built target polkit-qt5-gui-1
[100%] Built target polkit-qt5-agent-1
Install the project...
-- Install configuration: "Gentoo"
-- Up-to-date: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-gui-action.h
-- Up-to-date: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-gui-actionbutton.h
-- Up-to-date: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-gui-actionbuttons.h
-- Up-to-date: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-authority.h
-- Up-to-date: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-details.h
-- Up-to-date: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-identity.h
-- Up-to-date: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-subject.h
-- Up-to-date: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-temporaryauthorization.h
-- Up-to-date: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-actiondescription.h
-- Up-to-date: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-agent-listener.h
-- Up-to-date: /var/tmp/portage/sys-auth/polkit-qt-0.112.0/image/usr/include/polkit-qt5-1/polkitqt1-agent-session.h
Comment 1 Paolo Pedroni 2014-11-19 10:35:06 UTC
I think that the bug is in the _check_build_dir() function in cmake-utils.eclass, where it overrides the BUILD_DIR variable that is passed by the multibuild_foreach_variant() function of the multibuild.eclass.

No idea how to fix it, though.
Comment 2 Paolo Pedroni 2014-11-19 11:47:37 UTC
(In reply to Paolo Pedroni from comment #1)
> I think that the bug is in the _check_build_dir() function in
> cmake-utils.eclass, where it overrides the BUILD_DIR variable that is passed
> by the multibuild_foreach_variant() function of the multibuild.eclass.
> 
> No idea how to fix it, though.

On further investigation I discovered that this happens at test time (tests, though not existing, are "run" by the default src_test function that is not multibuild aware).

If I emerge with FEATURES=-test everything works fine.
Comment 3 Michael Palimaka (kensington) gentoo-dev 2014-11-24 16:59:40 UTC
Thanks, fixed in CVS.

+  24 Nov 2014; Michael Palimaka <kensington@gentoo.org>
+  +polkit-qt-0.112.0-r1.ebuild:
+  Solve issue where multibuild image is discarded wrt bug #529686.