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

Bug 177593

Summary: net-misc/cfengine - add gentoo automatically to "Defined Classes"
Product: Gentoo Linux Reporter: Peter <peter>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED UPSTREAM    
Severity: enhancement CC: jesse, ramereth
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patches misc.c to recognise gentoo

Description Peter 2007-05-08 08:12:09 UTC
Cfengine automatically recognises certain distributions and adds them to the list of classes when cfagent is run.

Attached is a patch which gives cfengine capability to recognise gentoo. It only recognises gentoo as a distribution from the /etc/gentoo-release file, not any specific versions (since I didn't see much use for that).

Patch applies and compiles fine on version 2.1.17, 2.1.18, 2.1.20 and 2.1.22-r1.
Tested in production with 2.1.20

Reproducible: Always

Steps to Reproduce:
1. Run cfagent -qv
2. Check "Defined Classes"
3. Gentoo does not appear here

Actual Results:  
Gentoo does not appear in cfengines "Defined Classes"

Expected Results:  
Gentoo should appear in cfengines "Defined Classes" for ease of management.
Comment 1 Peter 2007-05-08 08:15:01 UTC
Created attachment 118527 [details, diff]
patches misc.c to recognise gentoo
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-12-05 08:24:07 UTC
This is already in upstream 2.2.x.