vars are mismatched in debian/rules in karmic

Bug #506490 reported by Ronmi Ren on 2010-01-12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cairo (Ubuntu)

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.

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".

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  Edit
Everyone can see this information.

Other bug subscribers