Bonjour,
J'essaye de créer un rpm pour vls (fichier spec en bas). Mais quand je lance
> rpmbuild -bb rpmbuild/SPECS/vls.spec
J'ai des erreurs pendant le ./configure. Résultat, la compilation échoue.
configure: WARNING: fcntl.h: present but cannot be compiled
configure: WARNING: fcntl.h: check for missing prerequisite headers?
configure: WARNING: fcntl.h: see the Autoconf documentation
configure: WARNING: fcntl.h: section "Present But Cannot Be Compiled"
configure: WARNING: fcntl.h: proceeding with the preprocessor's result
configure: WARNING: fcntl.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------------ ##
configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
configure: WARNING: ## ------------------------------------------ ##
checking for fcntl.h... yes
Par contre, si je le fait directement, je peux faire l'installe sans problème. Pour reproduire le bug, il faut que je fasse in export de CXXFLAGS (tourver dans le fichier temporaire de rpmbuild)
>CXXFLAGS="${CXXFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
Donc ma question comment empêcher le rpmbuild de positionner cet variable ou de faire en sorte que ca ne gêne pas? J'ai mis des unset un peu partout dans le fichier spec sans résultat.
Merci
Summary: VideoLAN is a free streaming software solution.
Name: vls
Version: 0.5.6
Release: 1
License: GPL
Group: Applications/Multimedia
Source: vls-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Provides: vls
Requires: libdvdread,libdvbpsi,libdvb
BuildRequires: libdvdread-devel,libdvbpsi-devel,libdvb,gcc,gcc-c++
%description
VideoLAN is a free streaming software solution developed by
students from the Ecole Centrale Paris and developers from all over the
World.
The VideoLAN Server can stream MPEG content from several sources
(MPEG 1 or 2 files, DVDs, satellite cards, digital terrestial television
cards, real time MPEG encoding cards) over an IP network in unicast or
multicast.
You may install vls-dvd to allow DVD streaming and/or vls-dvb to be able
to stream digital unencrypted satellite channels and digital unencrypted
terrestial television channels from a DVB device.
%prep
%setup -q
%build
%configure --disable-debug --enable-dvb
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_bindir}/vls
%{_bindir}/vlsd
%{_libdir}/videolan/vls/dvdreader.so
%{_libdir}/videolan/vls/dvbinput.so
%{_libdir}/videolan/vls/dvbreader.so
%{_sysconfdir}/videolan/vls/vls.cfg
%changelog
edit : mise à jour du fichier spec