Package: lunar / 2.2-4

Metadata

Package Version Patches format
lunar 2.2-4 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
01_strip_trailing_whitespace.diff | (download)

lunar.c | 46 23 + 23 - 0 !
1 file changed, 23 insertions(+), 23 deletions(-)

 strip trailing whitespace from lunar.c
 First applied in 2.2-4.
02_fix_compiler_warnings.diff | (download)

lunar.c | 12 4 + 8 - 0 !
1 file changed, 4 insertions(+), 8 deletions(-)

 fix gcc compiler warnings found in lunar.c
 Revise lunar.c to remove GCC compiler warnings such as:
 .
  * implicit declaration of function CmpDate
  * implicit declaration of function exit
  * incompatible implicit declaration of built-in function exit
  * unused variable d
  * suggest parentheses around && within ||
  * variable nYear set but not used
 .
 First applied since 2.2-1; revised in 2.2-3 and 2.2-4.
03_add_full_path_to_lunar_bitmap.diff | (download)

lunar.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 add full path of lunar.bitmap to lunar.c
 Prepend "/usr/share/lunar/" to "lunar.bitmap" to make "lunar -b"
 actually works.  Thanks to Jeronimo Pellegrini for finding the bug
 and submitted a bug report, with patch, to Debian on 2002-09-27.
 .
 First applied in 2.2-2.
04_add_big5_and_utf8_output.diff | (download)

lunar.c | 216 207 + 9 - 0 !
1 file changed, 207 insertions(+), 9 deletions(-)

 add big5 and utf-8 output options for lunar.c
 Big5 support was added to 2.2-1 in 2002.
 .
 UTF-8 support was added to 2.2-3 at the request of LI Daobing in 2006,
 see Debian Bug#288170.  However, it could only print simplified Chinese
 in UTF-8 mode back then.
 .
 In 2013, two new options, -s and -t, were added to 2.2-4 so that the
 end-user may choose either simplified or traditional Chinese in UTF-8 mode.
05_fix_output_on_year_2033.diff | (download)

tables.h | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix lunar-2.2 output on year 2033
 On 2006-05-26, CHENG Yuk-Pong reported:
 .
   I have found a bug in the lunar-2.2, on the leap months in year 2033.
   The year 2033 is a special case in modern Chinese Lunar Calendar,
   as the  must be on 11th month.
 .
 and provided a patch on the Debian BTS.
 .
 LI Daobing reviewed the patch in October 2008, and noted:
 .
   the patch provided by bug reporter still have a bug, the 10th month of
   2003 in chinese calendar should have 30 days (a big month). so the
   correct value should be 0x04afb.
 .
 Daobing then corrected the patch, prepared a NMU of lunar-2.2-3.1,
 which was uploaded by Alexander Reichle-Schmehl on 2008-10-08.
06_use_locale_and_current_date.diff | (download)

lunar.c | 91 81 + 10 - 0 !
1 file changed, 81 insertions(+), 10 deletions(-)

 use current locale and system time for display by default
 I was getting too lazy to type out the long string of parameters
 to manually set the output character set and the full date every time
 I wanted to check the current date in Lunar calendar, hence this patch.
 It was also a good little exercise to brush up my C programming skill.  :-)
 .
 First applied in 2.2-4.
07_fix_segfault_aggressive loop optimizations.diff | (download)

lunar.bitmap | 2 1 + 1 - 0 !
lunar.c | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 fix "lunar -b" segfault when compiled with -o2 in gcc-4.8
 lunar.bitmap contained a line that was too long with extraneous
 trailing spaces, causing an overflow the array in readBM(), but did not
 ause any visible error previously.
 .
 When compiled with GCC 4.8, however, this bug results in segmentation fault,
 probably due to the new aggressive loop optimizations used in -O2 and -O3.
 .
10_complete_the_makefile.diff | (download)

Makefile | 19 16 + 3 - 0 !
1 file changed, 16 insertions(+), 3 deletions(-)

 complete the makefile so debian/rules can truly be minimal
 The special provisions in previous debian/rules are now moved into
 the upstream Makefile.
 .
 Also, the explicit compilation rules in Makefile are removed
 so that compiler flags set by dpkg-buildflags may get through.
20_update_man_page.diff | (download)

lunar.1 | 122 88 + 34 - 0 !
1 file changed, 88 insertions(+), 34 deletions(-)

 update lunar.1 man page with added options
 Jidanni reported in 2009:
 .
   There are options, e.g., --utf8, on --help that are not documented on
   the man page. Indeed, also mention --help itself.
 .
 In October 2013, I finally worked on the man page to document the new
 options and changes as found in the Debian version of lunar 2.2-4.