vars are mismatched in debian/rules in karmic

Bug #506490 reported by Ronmi Ren
6
This bug affects 1 person
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_flavor)_$(1)),$($(1)))" to "$(or $($(1)_$(current_flavor)),$($(1)))"

Not sure if any other release has the same problem.

Revision history for this message
Ronmi Ren (ronmi) wrote :

I found that it's not a good way to solve this problem by modifying "flavor_get".
Because there are two more variables depend on it: "main_configure_flags" and "udeb_configure_flags".

Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your bug report, the issue should be sent to debian

Changed in cairo (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.