specifying -O to parser causes the parser to not consider cache files
Bug #1385947 reported by
Jamie Strandboge
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Confirmed
|
Medium
|
Unassigned | ||
apparmor (Ubuntu) |
Fix Released
|
Medium
|
Jamie Strandboge | ||
apparmor (Ubuntu RTM) |
Fix Released
|
Critical
|
Jamie Strandboge |
Bug Description
If the cache files are up to date and I specify:
/sbin/apparmor_
then the cache files in /var/cache/apparmor are used (good).
However, if the cache files are up to date and I specify:
/sbin/apparmor_
then the cache files in /var/cache/apparmor are all regenerated (not good). This needs to be fixed in order to use '-O no-expr-simplify' to fix bug #1383858.
Related branches
Changed in apparmor: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in apparmor (Ubuntu RTM): | |
status: | New → Confirmed |
Changed in apparmor (Ubuntu): | |
status: | New → Confirmed |
Changed in apparmor (Ubuntu RTM): | |
importance: | Undecided → Critical |
Changed in apparmor (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in apparmor (Ubuntu RTM): | |
status: | Confirmed → In Progress |
assignee: | nobody → Jamie Strandboge (jdstrand) |
Changed in apparmor (Ubuntu): | |
importance: | Undecided → Medium |
assignee: | nobody → Jamie Strandboge (jdstrand) |
tags: | added: rtm14 touch-2014-10-28 |
tags: | added: aa-parser |
To post a comment you must log in.
So this is working as designed, when you explicitly override the Optimization flags it is assumed that you will not want the old compile.
There are a couple of ways to properly fix this
1. Store the compile options used with the cache, and compare them at the start of a compile, to determine whether or not to skip using the cache.
2. add a new flag to indicate that the implied skip cache shouldn't be used. This is easier but some what hacky.
A third option is open to Ubuntu, to use a distro patch (I don't think this will be taken upstream, at least not with out discussion) to remove forcing optimization options to skip the cache. This is the easiest and the patch to do so is attached