Subject: Re: pkg/31854: cairo 1.0.2 doesn't build on macppc -current
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Timo Schoeler <timo.schoeler@riscworks.net>
List: pkgsrc-bugs
Date: 10/18/2005 20:46:01
The following reply was made to PR pkg/31854; it has been noted by GNATS.

From: Timo Schoeler <timo.schoeler@riscworks.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/31854: cairo 1.0.2 doesn't build on macppc -current
Date: Tue, 18 Oct 2005 22:45:13 +0200

 This is a multi-part message in MIME format.
 --------------010606010300090802090707
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 the attached patch makes the package built (it is a compiler issue).
 
 thanks to Quentin Garnier who fixed this! :)
 
 regards,
 
 timo
 
 --------------010606010300090802090707
 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0";
  name="icint.h.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="icint.h.diff"
 
 --- icint.h_orig        2005-10-18 20:36:43.000000000 +0000
 +++ icint.h     2005-10-18 20:38:50.000000000 +0000
 @@ -812,17 +812,9 @@
     implemented with a single instruction.  There is a fallback definition
     in libgcc in case a target does not have one, which should be just as
     good as the static function below.  */
 -#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
 -# if __INT_MIN__ == 0x7fffffff
 -#  define _FbOnes(mask)                __builtin_popcount(mask)
 -# else
 -#  define _FbOnes(mask)                __builtin_popcountl((mask) & 0xffffffff)
 -# endif
 -#else
  # define ICINT_NEED_IC_ONES
  int
  _FbOnes(unsigned long mask);
 -#endif
  
  /* icformat.c */
 
 --------------010606010300090802090707--