diff options
author | drochner <drochner> | 2009-02-27 19:45:52 +0000 |
---|---|---|
committer | drochner <drochner> | 2009-02-27 19:45:52 +0000 |
commit | 36607d0910471612062516189f201e8d54eae1ab (patch) | |
tree | af4b73b005288f86b4ddd17a65bd152f2642b59a /mail/evolution | |
parent | 456964eff31c4958168d4ea1da4fccf01c10c813 (diff) | |
download | pkgsrc-36607d0910471612062516189f201e8d54eae1ab.tar.gz |
fix a format string problem (use of the Linux-only "%Id" specifier
which made the small calendar display only nonsense,
ride on recent update
And again: Please test the pkgs at least a little bit before
committing an update.
Diffstat (limited to 'mail/evolution')
-rw-r--r-- | mail/evolution/distinfo | 3 | ||||
-rw-r--r-- | mail/evolution/patches/patch-ac | 43 |
2 files changed, 45 insertions, 1 deletions
diff --git a/mail/evolution/distinfo b/mail/evolution/distinfo index af6a8f7efcd..82c13d5e6ca 100644 --- a/mail/evolution/distinfo +++ b/mail/evolution/distinfo @@ -1,10 +1,11 @@ -$NetBSD: distinfo,v 1.66 2009/02/27 18:36:31 wiz Exp $ +$NetBSD: distinfo,v 1.67 2009/02/27 19:45:52 drochner Exp $ SHA1 (evolution-2.24.5.tar.bz2) = 3bc92b45b532d35decb7a8238afb469ff90c1596 RMD160 (evolution-2.24.5.tar.bz2) = bc074627728d9f9bae10e271285bfdf31c8555bc Size (evolution-2.24.5.tar.bz2) = 32657364 bytes SHA1 (patch-aa) = d490839edcbb4893086750e052ca41bfff487bfa SHA1 (patch-ab) = b56533feb1bf7d3c3eabf905a50a54e7f27f5b1c +SHA1 (patch-ac) = c73785976e31dbc94178720a2e28b968a6b00e49 SHA1 (patch-ya) = d1ab90d374ca475c4b4b54bb7ad535434d3bdfeb SHA1 (patch-yb) = babd94b7d4dde36a0dfbaa392556d54c6e8868e6 SHA1 (patch-yc) = 3ab94e66a4fe70088f1e86b035050540e1849558 diff --git a/mail/evolution/patches/patch-ac b/mail/evolution/patches/patch-ac new file mode 100644 index 00000000000..7d387985cef --- /dev/null +++ b/mail/evolution/patches/patch-ac @@ -0,0 +1,43 @@ +$NetBSD: patch-ac,v 1.20 2009/02/27 19:45:52 drochner Exp $ + +--- widgets/misc/e-calendar-item.c.orig 2009-02-26 20:09:06.000000000 +0100 ++++ widgets/misc/e-calendar-item.c +@@ -1505,12 +1505,12 @@ e_calendar_item_draw_day_numbers (ECalen + if (week_num >= 10) { + digit = week_num / 10; + text_x -= calitem->week_number_digit_widths[digit]; +- num_chars += sprintf (&buffer[num_chars], "%Id", digit); ++ num_chars += sprintf (&buffer[num_chars], "%d", digit); + } + + digit = week_num % 10; + text_x -= calitem->week_number_digit_widths[digit] + 6; +- num_chars += sprintf (&buffer[num_chars], "%Id", digit); ++ num_chars += sprintf (&buffer[num_chars], "%d", digit); + + cairo_save (cr); + gdk_cairo_set_source_color (cr, &style->text[GTK_STATE_ACTIVE]); +@@ -1618,12 +1618,12 @@ e_calendar_item_draw_day_numbers (ECalen + if (day_num >= 10) { + digit = day_num / 10; + day_x -= calitem->digit_widths[digit]; +- num_chars += sprintf (&buffer[num_chars], "%Id", digit); ++ num_chars += sprintf (&buffer[num_chars], "%d", digit); + } + + digit = day_num % 10; + day_x -= calitem->digit_widths[digit]; +- num_chars += sprintf (&buffer[num_chars], "%Id", digit); ++ num_chars += sprintf (&buffer[num_chars], "%d", digit); + + cairo_save (cr); + if (fg_color) { +@@ -1958,7 +1958,7 @@ e_calendar_item_recalc_sizes (ECalendar + gchar locale_digit[5]; + int locale_digit_len; + +- locale_digit_len = sprintf (locale_digit, "%Id", digit); ++ locale_digit_len = sprintf (locale_digit, "%d", digit); + + pango_layout_set_text (layout, locale_digit, locale_digit_len); + pango_layout_get_pixel_size (layout, &width, NULL); |