]> git.pld-linux.org Git - packages/ucblogo.git/commitdiff
- added lp64 patch (fixes build on LP64 platforms, like x86_64) auto/th/ucblogo-6.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 19 May 2013 08:45:54 +0000 (10:45 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 19 May 2013 08:45:54 +0000 (10:45 +0200)
ucblogo-lp64.patch [new file with mode: 0644]
ucblogo.spec

diff --git a/ucblogo-lp64.patch b/ucblogo-lp64.patch
new file mode 100644 (file)
index 0000000..9e9ac59
--- /dev/null
@@ -0,0 +1,20 @@
+--- ucblogo-6.0/wxTerminal.cpp.orig    2013-05-19 09:50:57.119887675 +0200
++++ ucblogo-6.0/wxTerminal.cpp 2013-05-19 10:04:05.197846901 +0200
+@@ -2202,7 +2202,7 @@
+   lpos.offset = 0;
+   wxterm_charpos pos_1 = line_of(lpos);
+   
+-    fprintf(stderr, "WXTERMINAL STATS: \n  width: %d, height: %d, \n cw: %d, ch: %d \n x_max: %d, y_max: %d \n cursor_x: %d, cursor_y: %d \n last_logo_x : %d, last_logo_y: %d \ncurr_charpos buf %d offset %d  \ncurr_line buf %d offset %d\n", m_width, m_height, m_charWidth, m_charHeight, x_max, y_max,cursor_x, cursor_y, last_logo_x, last_logo_y,(int)curr_char_pos.buf, curr_char_pos.offset, (int)curr_line_pos.buf, curr_line_pos.offset);
++    fprintf(stderr, "WXTERMINAL STATS: \n  width: %d, height: %d, \n cw: %d, ch: %d \n x_max: %d, y_max: %d \n cursor_x: %d, cursor_y: %d \n last_logo_x : %d, last_logo_y: %d \ncurr_charpos buf %ld offset %d  \ncurr_line buf %ld offset %d\n", m_width, m_height, m_charWidth, m_charHeight, x_max, y_max,cursor_x, cursor_y, last_logo_x, last_logo_y,(long)curr_char_pos.buf, curr_char_pos.offset, (long)curr_line_pos.buf, curr_line_pos.offset);
+     fprintf(stderr, "WXTERMINAL CHARACTER BUFFER\n###############\n");
+   while(char_of(pos_1) != '\0') {
+     if(char_of(pos_1) == '\n') {
+@@ -2218,7 +2218,7 @@
+     fprintf(stderr, "\n#############\n");
+     fprintf(stderr, "WXTERMINAL LINE BUFFER\n##############\n");
+   for(int i = 0; i <= y_max; i++) {
+-    fprintf(stderr, "LINE %d: buf: %d, offset: %d, len: %d\n", i,(int)line_of(lpos).buf, line_of(lpos).offset, line_of(lpos).line_length);
++    fprintf(stderr, "LINE %d: buf: %ld, offset: %d, len: %d\n", i,(long)line_of(lpos).buf, line_of(lpos).offset, line_of(lpos).line_length);
+     inc_linepos(lpos);
+   }
+     fprintf(stderr, "\n#############\n\n");
index a6d5789ffe38b0967f163daafca329737cd96e05..ee8c1d55798735ae83b7f2aca4cfbeeaf12df6b6 100644 (file)
@@ -10,6 +10,7 @@ Source0:      ftp://anarres.cs.berkeley.edu/pub/ucblogo/%{name}-%{version}.tar.gz
 Patch0:                %{name}-signals.patch
 Patch1:                %{name}-make.patch
 Patch2:                %{name}-wx.patch
+Patch3:                %{name}-lp64.patch
 URL:           http://www.cs.berkeley.edu/~bh/logo.html
 BuildRequires: ncurses-devel
 BuildRequires: wxGTK2-unicode-devel
@@ -45,6 +46,7 @@ plot i wiele innych.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %{__rm} -r csls/CVS
 
This page took 0.201932 seconds and 4 git commands to generate.