pkgsrc-Bugs archive

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

pkg/45871: sysutils/xfce4-thunar: Solaris derived OSs haven't DEFFILEMODE defined



>Number:         45871
>Category:       pkg
>Synopsis:       sysutils/xfce4-thunar: Solaris derived OSs haven't DEFFILEMODE 
>defined
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 25 04:50:00 +0000 2012
>Originator:     Andrey N. Oktyabrski
>Release:        OpenIndiana 151a
>Organization:
>Environment:
$ uname -a
SunOS thinkpot 5.11 oi_151a i86pc i386 i86pc Solaris
$ isainfo 
amd64 i386
$ which gcc
/usr/bin/gcc
$ /usr/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/gcc/4.6/lib/gcc/i386-pc-solaris2.11/4.6.2/lto-wrapper
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.6.2/configure --prefix=/usr/gcc/4.6 
--libdir=/usr/gcc/4.6/lib --libexecdir=/usr/gcc/4.6/lib 
--mandir=/usr/gcc/4.6/share/man --infodir=/usr/gcc/4.6/info 
--with-build-time-tools=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as 
--with-ld=/usr/bin/ld --without-gnu-ld --enable-languages=c,c++,fortran,objc 
--enable-shared --disable-static --enable-decimal-float --with-gmp=/usr/gnu 
--with-mpfr=/usr/gnu --with-mpc=/usr/gnu --with-libiconv-prefix=/usr/gnu 
-enable-nls
Thread model: posix
gcc version 4.6.2 (GCC)

>Description:
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DEXO_DISABLE_DEPRECATED 
-DG_LOG_DOMAIN=\"thunar-vfs\" -DLIBEXECDIR=\"/usr/pkg/libexec\" 
-DPACKAGE_LOCALE_DIR=\"/usr/pkg/lib/locale\" -DSN_API_NOT_YET_FROZEN 
-DTHUNAR_VFS_COMPILATION -DTHUNAR_VFS_VERSION_API=\"1\" -DNDEBUG 
-DG_DISABLE_CAST_CHECKS -DHAVE_GNUC_VISIBILITY 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include/freetype2 
-D_REENTRANT -D_PTHREADS -D_POSIX_PTHREAD_SEMANTICS 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include/exo-0.3 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include/gtk-2.0 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include/xfce4 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/lib/gtk-2.0/include 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include/atk-1.0 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include/cairo 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include/gdk-pixbuf-2.0 
-I/tmp/
 pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include/pango-1.0 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include/glib/glib-2.0 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/lib/glib-2.0/include 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include/pixman-1 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include/libpng15 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include/startup-notification-1.0
 -DDBUS_API_SUBJECT_TO_CHANGE 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include/hal 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/include/dbus-1.0 
-I/tmp/pkgwrk/sysutils/xfce4-thunar/work/.buildlink/lib/dbus-1.0/include -O -MT 
libthunar_vfs_1_la-thunar-vfs-io-jobs.lo -MD -MP -MF 
.deps/libthunar_vfs_1_la-thunar-vfs-io-jobs.Tpo -c thunar-vfs-io-jobs.c  -fPIC 
-DPIC -o .libs/libthunar_vfs_1_la-thunar-vfs-io-jobs.o
thunar-vfs-io-jobs.c: In function '_thunar_vfs_io_jobs_create':
thunar-vfs-io-jobs.c:436:12: error: 'DEFFILEMODE' undeclared (first use in this 
function)
thunar-vfs-io-jobs.c:436:12: note: each undeclared identifier is reported only 
once for each function it appears in
gmake[3]: *** [libthunar_vfs_1_la-thunar-vfs-io-jobs.lo] Error 1
gmake[3]: Leaving directory 
`/tmp/pkgwrk/sysutils/xfce4-thunar/work/Thunar-1.0.1/thunar-vfs'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory 
`/tmp/pkgwrk/sysutils/xfce4-thunar/work/Thunar-1.0.1/thunar-vfs'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/tmp/pkgwrk/sysutils/xfce4-thunar/work/Thunar-1.0.1'
gmake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/sysutils/xfce4-thunar
*** Error code 1

>How-To-Repeat:
$ cd /usr/pkgsrc/sysutils/xfce4-thunar && bmake
>Fix:
This patch completely solves the problem:

--- thunar-vfs/thunar-vfs-io-jobs.c.orig        2012-01-25 08:42:09.589378759 
+0300
+++ thunar-vfs/thunar-vfs-io-jobs.c     2012-01-25 08:45:01.622084170 +0300
@@ -59,6 +59,10 @@
 #define g_stat(path, statb) (stat ((path), (statb)))
 #endif

+#ifndef DEFFILEMODE
+#define DEFFILEMODE    (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
+#endif
+
 static GList *tvij_collect_nofollow (ThunarVfsJob *job,
                                      GList        *base_path_list,
                                      GError      **error) G_GNUC_MALLOC 
G_GNUC_WARN_UNUSED_RESULT;



Home | Main Index | Thread Index | Old Index