pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47642: graphics/gimp-ufraw does not compile on Solaris



>Number:         47642
>Category:       pkg
>Synopsis:       graphics/gimp-ufraw does not compile on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 12 09:05:00 +0000 2013
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
graphics/gimp-ufraw does not compile on Solaris 10 using GCC 4.7.0. I have 
already reported this upstream.
>How-To-Repeat:

>Fix:
Until an official fix is released, these two patches should help:

--- dcraw.cc.orig       2013-03-08 03:57:35.000000000 +0000
+++ dcraw.cc
@@ -2253,7 +2253,7 @@ void CLASS lossy_dng_load_raw()
       coeff[i] = getreal(12);
     for (i=0; i < 256; i++) {
       for (tot=j=0; j <= deg; j++)
-       tot += coeff[j] * pow(i/255.0, j);
+       tot += coeff[j] * pow(i/255.0, (int)j);
       curve[c][i] = tot*0xffff;
     }
   }



--- dcraw_indi.c.orig   2013-03-05 03:40:55.000000000 +0000
+++ dcraw_indi.c
@@ -148,7 +148,7 @@ void CLASS wavelet_denoise_INDI(ushort(*
     if ((nc = colors) == 3 && filters) nc++;
     progress(PROGRESS_WAVELET_DENOISE, -nc * 5);
 #ifdef _OPENMP
-#ifdef __sun                   /* Fix bug #3205673 - NKBJ */
+#ifdef __SUNPRO_C                      /* Fix bug #3205673 - NKBJ */
     #pragma omp parallel for                           \
     default(none)                                      \
     shared(nc,image,size,noise)                                \


See also ufraw bug 275 (http://sourceforge.net/p/ufraw/bugs/275/) as reference 
for earlier attempts to fix the second problem.



Home | Main Index | Thread Index | Old Index