Debian Patches

Status for lunar/2.2-9

Patch Description Author Forwarded Bugs Origin Last update
01_strip_trailing_whitespace.diff Strip trailing whitespace from lunar.c First applied in 2.2-4. Anthony Fok <foka@debian.org> no vendor 2013-10-04
02_fix_compiler_warnings.diff 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.
.
In July 2015, Xie Xun found a bug where lunar 2.2-4 always outputs
Solar Year 1900 no matter what the date of lunar-to-solar conversion is,
and traced to a bug that I (Anthony) introduced in 2.2-4: When I removed
the unused ‘nYear’ variable, I had mistakenly removed the necessary call
to make_yday(). Xie Xun’s report and patch in Bug #792472 fixes the bug.
Anthony Fok <foka@debian.org>, Xie Xun <xiexun162534@gmail.com> no debian vendor, https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;bug=792472 2015-09-19
03_add_full_path_to_lunar_bitmap.diff 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.
Jeronimo Pellegrini <pellegrini@mpcnet.com.br> no debian other, http://bugs.debian.org/162634 2013-10-04
04_add_big5_and_utf8_output.diff 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.
Anthony Fok <foka@debian.org> no debian vendor 2013-10-04
05_fix_output_on_year_2033.diff 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.
LI Daobing <lidaobing@gmail.com> no debian vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=12;filename=lunar-2.2-3.1-nmu.diff;att=1;bug=366918 2013-10-03
06_use_locale_and_current_date.diff 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.
update version by xiao sheng wen on 2020-12-16
xiao sheng wen <atzlinux@sina.com> no 2020-12-16
07_fix_segfault_aggressive-loop-optimizations.diff 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.
.
See http://blog.regehr.org/archives/918 for a different but related issue.
Anthony Fok <foka@debian.org> no vendor 2013-11-20
10_complete_the_makefile.diff 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.
Anthony Fok <foka@debian.org> no vendor 2013-10-04
20_update_man_page.diff 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.
update version by xiao sheng wen on 2020-05-15
xiao sheng wen <atzlinux@sina.com> no debian 2020-05-15
22_datetime-go-back_Zhi.hour_jiealert.patch fix some error on 23o'clock and show "big hour" in lunar
1. incorrect Jie-alert at 23o'clock
2. need "big hour" for lunar
3. lunar to/from solar is diff
no

All known versions for source package 'lunar'

Links