svn commit: r450155 - head/net-im/sayaka/files

Carlos J. Puga Medina cpm at FreeBSD.org
Tue Sep 19 18:51:28 UTC 2017


Author: cpm
Date: Tue Sep 19 18:51:27 2017
New Revision: 450155
URL: https://svnweb.freebsd.org/changeset/ports/450155

Log:
  net-im/sayaka: unbreak build with vala 0.36
  
  checking SixelConverter.vala and objdir/SixelConverter.c .. SixelConverter.vala:93.23-93.23: error: The type name `i' could not be found
  			uint8 R = (uint8)((i     ) & 0x01) * 255;
  			                   ^
  SixelConverter.vala:134.23-134.23: error: The type name `i' could not be found
  			uint8 R = (uint8)((i     ) & 0x01);
  			                   ^
  SixelConverter.vala:156.30-156.30: error: The type name `i' could not be found
  			Palette[i, 2] = (uint8)(((i     ) & 0x03) * 255 / 3);
  			                          ^
  Compilation failed: 3 error(s), 0 warning(s)
  
  PR:		222028
  Submitted by:	cpm
  Approved by:	IWAMOTO Kouichi <sue at iwmt.org> (maintainer timeout, 16 days)

Added:
  head/net-im/sayaka/files/
  head/net-im/sayaka/files/patch-SixelConverter.vala   (contents, props changed)

Added: head/net-im/sayaka/files/patch-SixelConverter.vala
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/sayaka/files/patch-SixelConverter.vala	Tue Sep 19 18:51:27 2017	(r450155)
@@ -0,0 +1,29 @@
+--- SixelConverter.vala.orig	2016-09-25 11:53:37 UTC
++++ SixelConverter.vala
+@@ -90,7 +90,7 @@ public class SixelConverter
+ 	public void SetPaletteFixed8()
+ 	{
+ 		for (int i = 0; i < 8; i++) {
+-			uint8 R = (uint8)((i     ) & 0x01) * 255;
++			uint8 R = (uint8)((i >> 0) & 0x01) * 255;
+ 			uint8 G = (uint8)((i >> 1) & 0x01) * 255;
+ 			uint8 B = (uint8)((i >> 2) & 0x01) * 255;
+ 
+@@ -131,7 +131,7 @@ public class SixelConverter
+ 		// ANSI 16 色といっても色実体は実装依存らしい。
+ 
+ 		for (int i = 0; i < 16; i++) {
+-			uint8 R = (uint8)((i     ) & 0x01);
++			uint8 R = (uint8)((i >> 0) & 0x01);
+ 			uint8 G = (uint8)((i >> 1) & 0x01);
+ 			uint8 B = (uint8)((i >> 2) & 0x01);
+ 			uint8 I = (uint8)((i >> 3) & 0x01);
+@@ -153,7 +153,7 @@ public class SixelConverter
+ 		for (int i = 0; i < 256; i++) {
+ 			Palette[i, 0] = (uint8)(((i >> 5) & 0x07) * 255 / 7);
+ 			Palette[i, 1] = (uint8)(((i >> 2) & 0x07) * 255 / 7);
+-			Palette[i, 2] = (uint8)(((i     ) & 0x03) * 255 / 3);
++			Palette[i, 2] = (uint8)(((i >> 0) & 0x03) * 255 / 3);
+ 		}
+ 		PaletteCount = 256;
+ 	}


More information about the svn-ports-all mailing list