Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280853 - New QA warning for mislocated app-defaults files/directories (Feature request)
Summary: New QA warning for mislocated app-defaults files/directories (Feature request)
Status: RESOLVED DUPLICATE of bug 273282
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2009-08-09 07:41 UTC by Samuli Suominen (RETIRED)
Modified: 2009-10-19 07:52 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 Samuli Suominen (RETIRED) gentoo-dev 2009-08-09 07:41:15 UTC
Correct directory is /usr/share/X11/app-defaults but yet I keep seeing app-defaults installed in /usr/lib/X11/app-defaults, /etc/X11/app-defaults, /usr/X11R6/lib/app-defaults and so forth by multiple programs in tree in weekly basis which are relics from the past.

Maybe Portage could print a QA warning after install phase if it sees "app-defaults" directory installed to some other than /usr/share/X11/ ?
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2009-08-09 08:31:39 UTC
How about something a bit more abstract.

Basically have a 'path inspector' function.  This could be python, or it could be a bash function from profile.bashrc (so we keep as much QA code outside of portage as we can) and this inspector function basically gets called after src_install or possibly after postinst (so the postinst doesn't screw with the paths or we don't scan things that get deleted?).  We can call it once per file (probably expensive) or better yet call it in batches (don't want to hit the ARGV limit).

I don't like QA code in portage because while Zac can basically release portage versions relatively quickly he can't make developers upgrade to the new releases so older versions can contain QA-code bugs and then get angry at false positives, false negatives; if we continue to write QA code that ships with Gentoo-x86 fixing it once fixes it everywhere (alternatively; breaking it once also breaks it everywhere; but I assume it will be fixed relatively quickly.)
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-10-19 07:52:16 UTC
Looks like this is a duplicate of bug 273282 in fact.

*** This bug has been marked as a duplicate of bug 273282 ***