Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 2015 07:00:42 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r402582 - in head/graphics/lcms2: . files
Message-ID:  <201511290700.tAT70gIl076714@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Nov 29 07:00:42 2015
New Revision: 402582
URL: https://svnweb.freebsd.org/changeset/ports/402582

Log:
  - Fix build on armv6
  - Bump PORTREVISION for package change
  
  PR:		201226
  Submitted by:	Mikael Urankar <mikael.urankar@gmail.com>
  Tested by:	mmoll

Added:
  head/graphics/lcms2/files/
  head/graphics/lcms2/files/patch-src-cmsnamed.c   (contents, props changed)
Modified:
  head/graphics/lcms2/Makefile

Modified: head/graphics/lcms2/Makefile
==============================================================================
--- head/graphics/lcms2/Makefile	Sun Nov 29 07:00:39 2015	(r402581)
+++ head/graphics/lcms2/Makefile	Sun Nov 29 07:00:42 2015	(r402582)
@@ -3,7 +3,7 @@
 
 PORTNAME=	lcms2
 PORTVERSION=	2.7
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	SF/lcms/lcms/${PORTVERSION}
 

Added: head/graphics/lcms2/files/patch-src-cmsnamed.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/lcms2/files/patch-src-cmsnamed.c	Sun Nov 29 07:00:42 2015	(r402582)
@@ -0,0 +1,116 @@
+--- src/cmsnamed.c.orig	2015-03-17 11:19:51 UTC
++++ src/cmsnamed.c
+@@ -185,8 +185,19 @@ cmsBool CMSEXPORT cmsMLUsetASCII(cmsMLU*
+     cmsUInt32Number i, len = (cmsUInt32Number) strlen(ASCIIString)+1;
+     wchar_t* WStr;
+     cmsBool  rc;
+-    cmsUInt16Number Lang  = _cmsAdjustEndianess16(*(cmsUInt16Number*) LanguageCode);
+-    cmsUInt16Number Cntry = _cmsAdjustEndianess16(*(cmsUInt16Number*) CountryCode);
++    union {
++        cmsUInt16Number uint16;
++        char str[2];
++    } code_convert;
++    cmsUInt16Number Lang;
++    cmsUInt16Number Cntry;
++
++    code_convert.str[0] = LanguageCode[0];
++    code_convert.str[1] = LanguageCode[1];
++    Lang = _cmsAdjustEndianess16(code_convert.uint16);
++    code_convert.str[0] = CountryCode[0];
++    code_convert.str[1] = CountryCode[1];
++    Cntry = _cmsAdjustEndianess16(code_convert.uint16);
+ 
+     if (mlu == NULL) return FALSE;
+ 
+@@ -220,10 +231,22 @@ cmsUInt32Number mywcslen(const wchar_t *
+ // Add a wide entry
+ cmsBool  CMSEXPORT cmsMLUsetWide(cmsMLU* mlu, const char Language[3], const char Country[3], const wchar_t* WideString)
+ {
+-    cmsUInt16Number Lang  = _cmsAdjustEndianess16(*(cmsUInt16Number*) Language);
+-    cmsUInt16Number Cntry = _cmsAdjustEndianess16(*(cmsUInt16Number*) Country);
+     cmsUInt32Number len;
+ 
++    union {
++        cmsUInt16Number uint16;
++        char str[2];
++    } code_convert;
++    cmsUInt16Number Lang;
++    cmsUInt16Number Cntry;
++
++    code_convert.str[0] = Language[0];
++    code_convert.str[1] = Language[1];
++    Lang = _cmsAdjustEndianess16(code_convert.uint16);
++    code_convert.str[0] = Country[0];
++    code_convert.str[1] = Country[1];
++    Cntry = _cmsAdjustEndianess16(code_convert.uint16);
++
+     if (mlu == NULL) return FALSE;
+     if (WideString == NULL) return FALSE;
+ 
+@@ -350,8 +373,19 @@ cmsUInt32Number CMSEXPORT cmsMLUgetASCII
+     cmsUInt32Number  StrLen = 0;
+     cmsUInt32Number ASCIIlen, i;
+ 
+-    cmsUInt16Number Lang  = _cmsAdjustEndianess16(*(cmsUInt16Number*) LanguageCode);
+-    cmsUInt16Number Cntry = _cmsAdjustEndianess16(*(cmsUInt16Number*) CountryCode);
++    union {
++        cmsUInt16Number uint16;
++        char str[2];
++    } code_convert;
++    cmsUInt16Number Lang;
++    cmsUInt16Number Cntry;
++
++    code_convert.str[0] = LanguageCode[0];
++    code_convert.str[1] = LanguageCode[1];
++    Lang = _cmsAdjustEndianess16(code_convert.uint16);
++    code_convert.str[0] = CountryCode[0];
++    code_convert.str[1] = CountryCode[1];
++    Cntry = _cmsAdjustEndianess16(code_convert.uint16);
+ 
+     // Sanitize
+     if (mlu == NULL) return 0;
+@@ -394,8 +428,19 @@ cmsUInt32Number CMSEXPORT cmsMLUgetWide(
+     const wchar_t *Wide;
+     cmsUInt32Number  StrLen = 0;
+ 
+-    cmsUInt16Number Lang  = _cmsAdjustEndianess16(*(cmsUInt16Number*) LanguageCode);
+-    cmsUInt16Number Cntry = _cmsAdjustEndianess16(*(cmsUInt16Number*) CountryCode);
++    union {
++        cmsUInt16Number uint16;
++        char str[2];
++    } code_convert;
++    cmsUInt16Number Lang;
++    cmsUInt16Number Cntry;
++
++    code_convert.str[0] = LanguageCode[0];
++    code_convert.str[1] = LanguageCode[1];
++    Lang = _cmsAdjustEndianess16(code_convert.uint16);
++    code_convert.str[0] = CountryCode[0];
++    code_convert.str[1] = CountryCode[1];
++    Cntry = _cmsAdjustEndianess16(code_convert.uint16);
+ 
+     // Sanitize
+     if (mlu == NULL) return 0;
+@@ -427,10 +472,20 @@ CMSAPI cmsBool CMSEXPORT cmsMLUgetTransl
+ {
+     const wchar_t *Wide;
+ 
+-    cmsUInt16Number Lang  = _cmsAdjustEndianess16(*(cmsUInt16Number*) LanguageCode);
+-    cmsUInt16Number Cntry = _cmsAdjustEndianess16(*(cmsUInt16Number*) CountryCode);
+     cmsUInt16Number ObtLang, ObtCode;
+ 
++    union {
++        cmsUInt16Number uint16;
++        char str[3];
++    } code_convert;
++    cmsUInt16Number Lang;
++    cmsUInt16Number Cntry;
++
++    strcpy(code_convert.str, LanguageCode);
++    Lang = _cmsAdjustEndianess16(code_convert.uint16);
++    strcpy(code_convert.str, CountryCode);
++    Cntry = _cmsAdjustEndianess16(code_convert.uint16);
++
+     // Sanitize
+     if (mlu == NULL) return FALSE;
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511290700.tAT70gIl076714>