Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260031 - net-analyzer/nagios-core-3.1.0 suggests bogus emerge command for gd re-merge
Summary: net-analyzer/nagios-core-3.1.0 suggests bogus emerge command for gd re-merge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-23 17:30 UTC by Tim Weber
Modified: 2009-02-24 17:07 UTC (History)
1 user (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 Tim Weber 2009-02-23 17:30:45 UTC
Emerging nagios-core-3.1.0 checks whether media-libs/gd was built with the "jpeg" or "png" USE flags, but if they are not, a non-working command that should be used to re-merge gd is presented to the user.

Reproducible: Always

Steps to Reproduce:
1. Have your media-libs/gd built with USE="-jpeg -png".
2. Try to emerge net-analyzer/nagios-core-3.1.0.

Actual Results:  
The following message appears:

 * Your gd has been compiled without jpeg and/or png support.
 * Please re-emerge gd:
 * # USE=jpeg png emerge gd

Expected Results:  
In my opinion, the command should rather be something like

   # echo media-libs/gd jpeg png >> /etc/portage/package.use
   # emerge -1 media-libs/gd

Specifying USE flags on the command line is discouraged. The next time the package is merged, they are not present anymore, and your Nagios breaks in interesting ways.

emerge --oneshot should be used, so that gd, which is actually a dependency of Nagios, is not recorded in the world file and will be available for pruning once Nagios has been removed again.
Comment 1 Tobias Scherbaum (RETIRED) gentoo-dev 2009-02-24 17:00:24 UTC
(In reply to comment #0)
> In my opinion, the command should rather be something like
> 
>    # echo media-libs/gd jpeg png >> /etc/portage/package.use
>    # emerge -1 media-libs/gd

Thanks for reminding me, this one should be switched to a use-dependency ;)
Comment 2 Tobias Scherbaum (RETIRED) gentoo-dev 2009-02-24 17:07:39 UTC
Fixed in CVS. Thanks for reporting! :)