Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494644 - app-admin/packagekit-base-0.8.15 should DEPEND on app-shells/bash-completion - configure: error: Package requirements (bash-completion >= 2.0) were not met: No package 'bash-completion' found
Summary: app-admin/packagekit-base-0.8.15 should DEPEND on app-shells/bash-completion ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabio Erculiani (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 494648
  Show dependency tree
 
Reported: 2013-12-18 13:46 UTC by Sander Sweers
Modified: 2013-12-18 18:33 UTC (History)
0 users

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 Sander Sweers 2013-12-18 13:46:27 UTC
Add use flag and conditionally depend on app-shells/bash-completion.

----
--- packagekit-base-0.8.15.ebuild	2013-12-18 06:12:15.000000000 +0100
+++ packagekit-base-0.8.15-r1.ebuild	2013-12-18 14:22:22.242365121 +0100
@@ -20,7 +20,7 @@
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
-IUSE="connman cron command-not-found doc +introspection networkmanager nsplugin entropy static-libs systemd udev"
+IUSE="connman cron command-not-found doc +introspection networkmanager nsplugin entropy static-libs systemd udev bash-completion"
 
 CDEPEND="connman? ( net-misc/connman )
 	introspection? ( >=dev-libs/gobject-introspection-0.9.9[${PYTHON_USEDEP}] )
@@ -37,6 +37,7 @@
 	>=dev-libs/glib-2.32.0:2[${PYTHON_USEDEP}]
 	>=sys-auth/polkit-0.98
 	>=sys-apps/dbus-1.3.0
+	bash-completion? ( >=app-shells/bash-completion-2.0 )
 	${PYTHON_DEPS}"
 DEPEND="${CDEPEND}
 	doc? ( dev-util/gtk-doc[${PYTHON_USEDEP}] )
@@ -79,7 +80,7 @@
 		$(test -n "${LINGUAS}" && echo -n "--enable-nls" || echo -n "--disable-nls") \
 		--enable-introspection=$(use introspection && echo -n "yes" || echo -n "no") \
 		--localstatedir=/var \
-		--enable-bash-completion \
+		$(use_enable bash-completion) \
 		--disable-dependency-tracking \
 		--enable-option-checking \
 		--enable-libtool-lock \
----
checking for BASH_COMPLETION... no
configure: error: Package requirements (bash-completion >= 2.0) were not met:

No package 'bash-completion' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BASH_COMPLETION_CFLAGS
and BASH_COMPLETION_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-admin/packagekit-base-0.8.15/work/PackageKit-0.8.15/config.log
 * ERROR: app-admin/packagekit-base-0.8.15::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 3888:  Called econf '--enable-nls' '--enable-introspection=yes' '--localstatedir=/var' '--enable-bash-completion' '--disable-dependency-tracking' '--enable-option-checking' '--enable-libtool-lock' '--disable-local' '--with-default-backend=portage' '--disable-gtk-doc' '--disable-command-not-found' '--disable-debuginfo-install' '--disable-gstreamer-plugin' '--enable-man-pages' '--enable-portage' '--disable-entropy' '--disable-cron' '--disable-gtk-module' '--enable-introspection' '--enable-networkmanager' '--enable-browser-plugin' '--disable-static' '--enable-systemd' '--enable-systemd-updates' '--disable-connman'
 *   phase-helpers.sh, line  577:  Called die
 * The specific snippet of code:
 *   			die "econf failed"
 * 
 * If you need support, post the output of `emerge --info '=app-admin/packagekit-base-0.8.15::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-admin/packagekit-base-0.8.15::gentoo'`.
 * The complete build log is located at '/var/log/portage/elog/app-admin:packagekit-base-0.8.15:20131218-134137.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-admin/packagekit-base-0.8.15/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-admin/packagekit-base-0.8.15/temp/environment'.
 * Working directory: '/var/tmp/portage/app-admin/packagekit-base-0.8.15/work/PackageKit-0.8.15'
 * S: '/var/tmp/portage/app-admin/packagekit-base-0.8.15/work/PackageKit-0.8.15'
Comment 1 Fabio Erculiani (RETIRED) gentoo-dev 2013-12-18 18:33:43 UTC
+  18 Dec 2013; Fabio Erculiani <lxnay@gentoo.org>
+  packagekit-base-0.8.15.ebuild:
+  add conditional bash completion support, fix #494644, thanks to Sander Sweers
+