Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 266540

Summary: app-admin/eselect uses pgrep, but doesn't depend on procps
Product: Gentoo Hosted Projects Reporter: catfish <catfish>
Component: eselectAssignee: Gentoo eselect Team <eselect>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: eselect procps conditional patch

Description catfish 2009-04-17 13:37:54 UTC
+++ This bug was initially created as a clone of Bug #174354 +++

During installation from amd64 2006.1 stage2, I've stumbled upon this error:
(during eselect opengl set after eselect-opengl installation)

/usr/share/eselect//libs/core.bash: line 64: pgrep: command not found

That command is contained in sys-process/procps, which hasn't yet been installed, because eselect doesn't depend on it.

Please add the dependency or remove the use of the command.

Package versions:
app-admin/eselect-1.0.9
app-admin/eselect-opengl-1.0.5


=============================================

Hello,

This fix does not work on Gentoo x86-fbsd.  There is a peference on x86-fbsd to favor native versions for select packages of which procps is one.  pgrep is contained in the sys-freebsd/freebsd-ubin on x86-fbsd so the ebuild needs to do an or similar to the previous DEPEND section. i.e.:

        procps? ( sys-process/procps )
        || ( sys-freebsd/freebsd-ubin )

applied to the RDEPEND (patch to follow).

Thanks,
Comment 1 catfish 2009-04-17 13:39:19 UTC
Created attachment 188681 [details, diff]
eselect procps conditional patch
Comment 2 Ulrich Müller gentoo-dev 2009-04-17 16:39:16 UTC
Thanks for reporting this. I've removed procps from RDEPEND again, since pgrep is only called from within the "die" function, and nothing will really break if the command is not present. See bug 264734 for more details on this.

I hope that I can roll the eselect-1.0.12 release during the weekend, which will deal with the problem.
Comment 3 Ulrich Müller gentoo-dev 2009-04-17 16:40:40 UTC
Reopening for proper assignment.