fileLogger.c: In function 'FileLoggerDestroy':
fileLogger.c:367:4: error: 'g_static_mutex_free' is deprecated (declared at
/usr/include/glib-2.0/glib/deprecated/gthread.h:147): Use 'g_mutex_free' 
instead [-Werror=deprecated-declarations]
fileLogger.c: In function 'GlibUtils_CreateFileLogger':
fileLogger.c:414:4: error: 'g_static_mutex_init' is deprecated (declared at
/usr/include/glib-2.0/glib/deprecated/gthread.h:145): Use 'g_mutex_init' 
instead [-Werror=deprecated-declarations]
cc1: all warnings being treated as errors
make[2]: *** [libGlibUtils_la-fileLogger.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory 
`/home/builduser/rpmbuild/BUILD/open-vm-tools-9.2.2-958366/lib/glibUtils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/builduser/rpmbuild/BUILD/open-vm-tools-9.2.2-958366/lib'
make: *** [all-recursive] Error 1
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.QZYDah (%build)
______________________________________________________

i doubt it is impossible to strip the package more down as it is:

[builduser@testserver:/rpmbuild/SPECS]$ cat vmware-tools.spec
%define vmtooolsver    9.2.2
%define buildver       958366
%global kernel_uname_r %(echo $(uname -r))

Name:              open-vm-tools
Version:           %{vmtooolsver}.%{buildver}
Release:           2%{?dist}
Summary:           VMware Guest OS Tools
Group:             Applications/System
License:           LGPLv2
URL:               http://open-vm-tools.sourceforge.net/
Source0:           
http://downloads.sourceforge.net/open-vm-tools/%{name}-%{vmtooolsver}-%{buildver}.tar.gz
Source1:           vmtoolsd.service
BuildRoot:         %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} 
-n)
ExclusiveArch:     %{ix86} x86_64
Requires(post):    systemd-units
Requires(preun):   systemd-units
Requires:          systemd-units
Requires:          /usr/bin/bash
BuildRequires:     libdnet-devel
BuildRequires:     pam-devel
BuildRequires:     uriparser-devel
BuildRequires:     libnotify-devel
BuildRequires:     fuse-devel
Obsoletes:         open-vm-tools-kmod kmod-open-vm-tools akmod-open-vm-tools 
open-vm-tools-kmod-common
open-vm-tools-libs

%description
Open-vm-tools are the open source implementation of VMware Tools. They
are a set of guest operating system virtualization components that
enhance performance and user experience of VMWare virtual
machines. This package contains the user-space programs and libraries
of open-vm-tools.

%package           devel
Summary:           Development package for %{name}
Group:             Development/Libraries
Requires:          %{name} = %{version}-%{release}

%description       devel
Open-vm-tools are the open source implementation of VMware Tools. They
are a set of guest operating system virtualization components that
enhance performance and user experience of VMWare virtual machines

%prep
%setup -q -n %{name}-%{vmtooolsver}-%{buildver}

%build
%configure --disable-static \
 --disable-dependency-tracking \
 --disable-docs \
 --without-gtk2 \
 --without-gtkmm \
 --without-x \
 --without-icu \
 --without-root-privileges \
 --with-gnu-ld \
 --without-kernel-modules \
 --without-procps
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%{__make} %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
mkdir -p $RPM_BUILD_ROOT/sbin
mv $RPM_BUILD_ROOT%{_sbindir}/mount.* $RPM_BUILD_ROOT/sbin
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/vmware-user.desktop
rm -f $RPM_BUILD_ROOT/%{_libdir}/open-vm-tools/plugins/common/libhgfsServer.so
rm -f $RPM_BUILD_ROOT/sbin/mount.vmhgfs
rm -f $RPM_BUILD_ROOT/usr/bin/vmware-hgfsclient
mkdir -p ${RPM_BUILD_ROOT}/%{_unitdir}
mkdir -p ${RPM_BUILD_ROOT}%{_libexecdir}
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_unitdir}/
chmod 700 $RPM_BUILD_ROOT/usr/bin/vmtoolsd
chmod 700 $RPM_BUILD_ROOT/usr/bin/vmware-checkvm
chmod 700 $RPM_BUILD_ROOT/usr/bin/vmware-rpctool
chmod 700 $RPM_BUILD_ROOT/usr/bin/vmware-toolbox-cmd
chmod 700 $RPM_BUILD_ROOT/usr/bin/vmware-vmblock-fuse
chmod 700 $RPM_BUILD_ROOT/usr/bin/vmware-xferlogs

%clean
rm -rf $RPM_BUILD_ROOT

%post
/usr/sbin/ldconfig
/usr/bin/systemctl --system daemon-reload 2> /dev/null > /dev/null
exit 0

%postun
/usr/sbin/ldconfig
/usr/bin/systemctl --system daemon-reload 2> /dev/null > /dev/null
exit 0

%preun
if [ "$1" = 0 ]
then
 /usr/bin/systemctl stop vmtoolsd.service 2> /dev/null > /dev/null
 /usr/bin/systemctl disable vmtoolsd.service 2> /dev/null > /dev/null
fi
exit 0

%files
%defattr(-,root,root,-)
%{_bindir}/vm*
%{_datadir}/%{name}
%config(noreplace) %{_sysconfdir}/pam.d/*
%{_unitdir}/vmtoolsd.service
%{_sysconfdir}/vmware-tools
%{_libdir}/*.so.*
%{_libdir}/%{name}

%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
open-vm-tools-devel mailing list
open-vm-tools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-vm-tools-devel

Reply via email to