pkgsrc-Bugs archive

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

pkg/40045: fix for graphics/gimp-ufraw on Solaris 10

>Number:         40045
>Category:       pkg
>Synopsis:       fix for graphics/gimp-ufraw on Solaris 10
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 27 13:45:00 +0000 2008
>Originator:     Jörn Clausen
University of Bielefeld
SunOS spare4200 5.10 Generic_120012-14 i86pc i386 i86pc

graphics/gimp-ufraw does not compile on Solaris 10 (and maybe earlier 
versions), as the wrong version of ctime_r is picked. Depending on some 
defines, both a two argument and a three argument version are available.

NB that the define triggering this behaviour is produced by "gimptool-2.0 
--cflags", so in other environments YMMV.

As it seems not possible to submit bug reports to ufraw without registering on 
sourceforge, I leave it to the pkgsrc maintainer to forward this upstream :)

--- work.spare4200/ufraw-0.14.1/ufraw_ufraw.c   2008/11/27 13:06:01     1.1
+++ work.spare4200/ufraw-0.14.1/ufraw_ufraw.c   2008/11/27 13:08:38
@@ -427,7 +427,7 @@
 #ifdef __MINGW32__
     /* MinG32 does not have ctime_r(). */
     g_strlcpy(uf->conf->timestampText, ctime(&raw->timestamp), max_name);
-#elif defined(__sun) /* Solaris */
+#elif defined(__sun) && !defined(_POSIX_PTHREAD_SEMANTICS) /* Solaris */
      * Some (all?) versions of Solaris followed a draft POSIX.1c standard
      * where ctime_r took a third length argument.

Home | Main Index | Thread Index | Old Index