Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402021 - kde-misc/kcm-ufw should been installed in /usr, not in /
Summary: kde-misc/kcm-ufw should been installed in /usr, not in /
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ian Whyman (thev00d00) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-03 04:34 UTC by Egor Y. Egorov
Modified: 2012-02-03 22:02 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Y. Egorov 2012-02-03 04:34:22 UTC
after emerging kde-misc/kcm-ufw, observe the following:


# qlist kde-misc/kcm-ufw
/usr/share/doc/kcm-ufw-0.4.1-r1/AUTHORS.bz2
/usr/share/doc/kcm-ufw-0.4.1-r1/ChangeLog.bz2
/usr/share/doc/kcm-ufw-0.4.1-r1/README.bz2
/usr/share/doc/kcm-ufw-0.4.1-r1/TODO.bz2
/usr/share/polkit-1/actions/org.kde.ufw.policy
/lib64/kde4/libexec/kcm_ufw_helper.py
/lib64/kde4/libexec/kcm_ufw_helper
/lib64/kde4/kcm_ufw.so
/share/dbus-1/services/org.kde.ufw.service
/share/dbus-1/system-services/org.kde.ufw.service
/share/apps/kcm_ufw/defaults
/share/kde4/services/ufw.desktop
/share/doc/HTML/en/kcontrol/ufw/index.cache.bz2
/share/doc/HTML/en/kcontrol/ufw/index.docbook
/share/doc/HTML/en/kcontrol/ufw/example-7-all-rules.png
/share/doc/HTML/en/kcontrol/ufw/example-3-dropbox1.png
/share/doc/HTML/en/kcontrol/ufw/example-5-samba.png
/share/doc/HTML/en/kcontrol/ufw/example-1-general.png
/share/doc/HTML/en/kcontrol/ufw/example-2-ssh.png
/share/doc/HTML/en/kcontrol/ufw/example-5-samba-module.png
/share/doc/HTML/en/kcontrol/ufw/example-4-dropbox2.png
/share/doc/HTML/en/kcontrol/ufw/example-6-ktorrent.png
/share/doc/HTML/es/kcontrol/ufw/index.cache.bz2
/share/doc/HTML/es/kcontrol/ufw/index.docbook
/share/doc/HTML/es/kcontrol/ufw/example-1-general.jpg
/share/doc/HTML/es/kcontrol/ufw/example-2-ssh.jpg
/share/doc/HTML/es/kcontrol/ufw/example-3-dropbox1.jpg
/share/doc/HTML/es/kcontrol/ufw/example-4-dropbox2.jpg
/share/doc/HTML/es/kcontrol/ufw/example-5-samba.jpg
/share/doc/HTML/es/kcontrol/ufw/example-5-samba-module.jpg
/share/doc/HTML/es/kcontrol/ufw/example-6-ktorrent.jpg
/share/doc/HTML/es/kcontrol/ufw/example-7-all-rules.jpg
/share/locale/es/LC_MESSAGES/kcm_ufw.mo
/share/locale/fr/LC_MESSAGES/kcm_ufw.mo
/share/locale/lt/LC_MESSAGES/kcm_ufw.mo
/etc/dbus-1/system.d/org.kde.ufw.conf
/share/doc/HTML/en/kcontrol/ufw/common
/share/doc/HTML/es/kcontrol/ufw/common


Reproducible: Always
Comment 1 Ben Kohler gentoo-dev 2012-02-03 07:44:49 UTC
This happens because kde4-base.eclass sets 
cmakeargs+=(-DCMAKE_INSTALL_PREFIX="${EPREFIX}${PREFIX}")
so we end up with an empty -DCMAKE_INSTALL_PREFIX= when both of those prefix vars are unset.

This can be fixed in the ebuild by making sure kde4-base_pkg_setup is called (which does indeed set ${PREFIX}, but IMHO the eclass should also be fixed to provide a fallback to /usr when ${PREFIX} is unset, ie:
cmakeargs+=(-DCMAKE_INSTALL_PREFIX="${EPREFIX}${PREFIX:-/usr}")

Will open a separate bug for the eclass change.
Comment 2 Maciej Mrozowski gentoo-dev 2012-02-03 21:03:35 UTC
Hmm, I consider not calling mandatory eclass phase as a ebuild bug. Especially we don't support *not* calling kde4-{base,meta}-pkg_setup. There is a lot other important things being set up there. No need to open eclass bug then.
Comment 3 Maciej Mrozowski gentoo-dev 2012-02-03 22:02:47 UTC
Inherit order fixed and pkg-setup added. Thanks for reporting.