vars are mismatched in debian/rules in karmic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cairo (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
source package: cairo
release: karmic (9.10)
package version: 1.8.8-2ubuntu1
what I did: I modified CFLAGS_main jn debian/rules file, add "-march=native -mtune=native" to line 75. Then I use "dpkg-buildpackage -b" to rebuild the package.
expect to happen: The new package should be built with new compiler flags
what happened instead: The new package is built with default compiler flags (-g -O2), neither the original settings in debian/rules (-Wall -g -O2) nor what I added are used.
The reason is mismatch of function "flavor_get" and variables "CFLAGS_main" "CFLAGS_udeb"
According to the function, CFLAGS_main should be renamed as "main_CFLAGS", and so as "CFLAGS_udeb"
Another way to fix this bug is modify "flavor_get" from "$(or $($(current_
Not sure if any other release has the same problem.
I found that it's not a good way to solve this problem by modifying "flavor_get". _flags" and "udeb_configure _flags" .
Because there are two more variables depend on it: "main_configure