Re: error building php spec file

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



Hi Ashish,


Which CentOS version you using?
> If it is CentOS 6 then instead of building it from source, you can use IUS
> repo which has latest php packages.
> Below is the link for the packages in IUS repo for CentOS 6.
> <http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/repoview/>
>


I'm using CentOS 7. I'll check to see if I can get php version 5.6.7 from
IUS that way. But also I'm trying to get better at building RPM's. So if
anybody has any advice on how to solve this problem, I'd appreciate
anything you'd have to say!

Thanks
Tim


On Tue, Mar 24, 2015 at 1:57 AM, Ashish Yadav <gwalashish@xxxxxxxxx> wrote:

> Hi.
>
> Which CentOS version you using?
>
> If it is CentOS 6 then instead of building it from source, you can use IUS
> repo which has latest php packages.
>
> Below is the link for the packages in IUS repo for CentOS 6.
>
> <http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/repoview/>
>
> --Regards
> Ashishkumar S. Yadav
>
> On Tue, Mar 24, 2015 at 10:25 AM, Tim Dunphy <bluethundr@xxxxxxxxx> wrote:
>
> > Hey all,
> >
> >  I'm attempting to build a spec file of php 5.6.7 - the latest stable -
> > into an rpm. And it's failing with this set of errors:
> >
> > Processing files: php-5.6.7-1.el7.x86_64
> > warning: File listed twice: /etc/rc.d/init.d/php-fpm
> > error: Symlink points to BuildRoot: /usr/bin/phar ->
> >
> >
> /home/bluethundr/rpmbuild/BUILDROOT/php-5.6.7-1.el7.x86_64/usr/bin/phar.phar
> > warning: File listed twice: /usr/share/man/man1/php-cgi.1.gz
> > warning: File listed twice: /usr/share/man/man1/php-config.1.gz
> > warning: File listed twice: /usr/share/man/man1/php.1.gz
> > warning: File listed twice: /usr/share/man/man1/phpize.1.gz
> >
> >
> > RPM build errors:
> >     File listed twice: /etc/rc.d/init.d/php-fpm
> >     Symlink points to BuildRoot: /usr/bin/phar ->
> >
> >
> /home/bluethundr/rpmbuild/BUILDROOT/php-5.6.7-1.el7.x86_64/usr/bin/phar.phar
> >     File listed twice: /usr/share/man/man1/php-cgi.1.gz
> >     File listed twice: /usr/share/man/man1/php-config.1.gz
> >     File listed twice: /usr/share/man/man1/php.1.gz
> >     File listed twice: /usr/share/man/man1/phpize.1.gz
> >
> >
> > It's claiming the files above are listed twice. However I don't see
> that''s
> > the case at all in the spec file. Here it is:
> >
> >
> > [bluethundr@repo SPECS]$ cat php.spec
> > Name:           php
> > Version:        5.6.7
> > Release:        1%{?dist}
> > Summary:        PHP is a widely-used general-purpose scripting language.
> >
> > Group:          Development/Languages
> > License:        PHP License v3.01
> > URL:            http://www.php.net
> > Source0:        http://www.php.net/distributions/php-%{version}.tar.bz2
> > BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
> >
> > Obsoletes:      php
> >
> > %description
> > PHP is a widely-used general-purpose scripting language that is
> especially
> > suited for Web development and can be embedded into HTML.
> >
> > %prep
> > %setup -q -n %{name}-%{version}
> > %build
> > EXTENSION_DIR=%{_libdir}/php/modules; export EXTENSION_DIR
> > %configure --with-layout=GNU --with-libdir=lib64 --with-enchant \
> > --enable-fpm --with-gd --enable-intl --enable-mbstring --enable-pcntl \
> > --enable-soap --enable-sockets --enable-sqlite-utf8 --enable-zip
> > --with-zlib \
> > --with-curl --with-jpeg-dir --with-png-dir --with-zlib-dir
> --with-gettext \
> > --with-mcrypt --with-mysql=mysqlnd --with-mysqli=mysqlnd
> > --with-pdo-mysql=mysqlnd \
> > --with-pdo-sqlite --with-tidy --with-pear=%{_datadir}/php/pear
> > --disable-debug
> >
> > make %{?_smp_mflags}
> >
> > %install
> > rm -rf %{buildroot}
> > mkdir -p %{buildroot}%{_initrddir}
> > install -Dp -m0755 sapi/fpm/init.d.php-fpm.in
> > %{buildroot}%{_initrddir}/php-fpm
> > %{__make} install INSTALL_ROOT="%{buildroot}"
> >
> > %clean
> > rm -rf %{buildroot}
> >
> > %post
> > %/sbin/chkconfig php-fpm on
> >
> > %preun
> > if [ "$1" = 0 ] ; then
> >     /sbin/service php-fpm stop > /dev/null 2>&
> >     /sbin/chkconfig --del php-fpm
> > fi
> > exit 0
> >
> > %postun
> > if [ "$1" -ge 1 ]; then
> >     /sbin/service php-fpm condrestart > /dev/null 2>&
> > fi
> > exit 0
> >
> > %files
> > %defattr(-,root,root,-)
> > %{_bindir}/*
> > %{_sbindir}/*
> > %{_includedir}/*
> > %{_libdir}/*
> > %{_mandir}/man1/php*
> > %{_sysconfdir}/*
> > %{_datadir}/*
> > %{_initrddir}/*
> > %exclude /.channels
> > %exclude /.depdb
> > %exclude /.depdblock
> > %exclude /.filemap
> > %exclude /.lock
> >
> > %changelog
> > * Mon Mar 23 2015 Mike Willbanks <mike @_________.com> - 5.3.8-1
> > - Updated to 5.3.8
> > * Mon Mar 23 2015 Mike Willbanks </mike><mike @_________.com> - 5.3.5-1
> > - Initial Package
> >
> > I tried to build the package by going to the SPECS directory in my
> > buildroot and issuing the command: rpmbuild -ba php.spec
> >
> > Can anyone point out where I'm going wrong?
> >
> > Thanks!!
> > Tim
> >
> >
> >
> > --
> > GPG me!!
> >
> > gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
> > _______________________________________________
> > CentOS mailing list
> > CentOS@xxxxxxxxxx
> > http://lists.centos.org/mailman/listinfo/centos
> >
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B


On Tue, Mar 24, 2015 at 1:57 AM, Ashish Yadav <gwalashish@xxxxxxxxx> wrote:

> Hi.
>
> Which CentOS version you using?
>
> If it is CentOS 6 then instead of building it from source, you can use IUS
> repo which has latest php packages.
>
> Below is the link for the packages in IUS repo for CentOS 6.
>
> <http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/repoview/>
>
> --Regards
> Ashishkumar S. Yadav
>
> On Tue, Mar 24, 2015 at 10:25 AM, Tim Dunphy <bluethundr@xxxxxxxxx> wrote:
>
> > Hey all,
> >
> >  I'm attempting to build a spec file of php 5.6.7 - the latest stable -
> > into an rpm. And it's failing with this set of errors:
> >
> > Processing files: php-5.6.7-1.el7.x86_64
> > warning: File listed twice: /etc/rc.d/init.d/php-fpm
> > error: Symlink points to BuildRoot: /usr/bin/phar ->
> >
> >
> /home/bluethundr/rpmbuild/BUILDROOT/php-5.6.7-1.el7.x86_64/usr/bin/phar.phar
> > warning: File listed twice: /usr/share/man/man1/php-cgi.1.gz
> > warning: File listed twice: /usr/share/man/man1/php-config.1.gz
> > warning: File listed twice: /usr/share/man/man1/php.1.gz
> > warning: File listed twice: /usr/share/man/man1/phpize.1.gz
> >
> >
> > RPM build errors:
> >     File listed twice: /etc/rc.d/init.d/php-fpm
> >     Symlink points to BuildRoot: /usr/bin/phar ->
> >
> >
> /home/bluethundr/rpmbuild/BUILDROOT/php-5.6.7-1.el7.x86_64/usr/bin/phar.phar
> >     File listed twice: /usr/share/man/man1/php-cgi.1.gz
> >     File listed twice: /usr/share/man/man1/php-config.1.gz
> >     File listed twice: /usr/share/man/man1/php.1.gz
> >     File listed twice: /usr/share/man/man1/phpize.1.gz
> >
> >
> > It's claiming the files above are listed twice. However I don't see
> that''s
> > the case at all in the spec file. Here it is:
> >
> >
> > [bluethundr@repo SPECS]$ cat php.spec
> > Name:           php
> > Version:        5.6.7
> > Release:        1%{?dist}
> > Summary:        PHP is a widely-used general-purpose scripting language.
> >
> > Group:          Development/Languages
> > License:        PHP License v3.01
> > URL:            http://www.php.net
> > Source0:        http://www.php.net/distributions/php-%{version}.tar.bz2
> > BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
> >
> > Obsoletes:      php
> >
> > %description
> > PHP is a widely-used general-purpose scripting language that is
> especially
> > suited for Web development and can be embedded into HTML.
> >
> > %prep
> > %setup -q -n %{name}-%{version}
> > %build
> > EXTENSION_DIR=%{_libdir}/php/modules; export EXTENSION_DIR
> > %configure --with-layout=GNU --with-libdir=lib64 --with-enchant \
> > --enable-fpm --with-gd --enable-intl --enable-mbstring --enable-pcntl \
> > --enable-soap --enable-sockets --enable-sqlite-utf8 --enable-zip
> > --with-zlib \
> > --with-curl --with-jpeg-dir --with-png-dir --with-zlib-dir
> --with-gettext \
> > --with-mcrypt --with-mysql=mysqlnd --with-mysqli=mysqlnd
> > --with-pdo-mysql=mysqlnd \
> > --with-pdo-sqlite --with-tidy --with-pear=%{_datadir}/php/pear
> > --disable-debug
> >
> > make %{?_smp_mflags}
> >
> > %install
> > rm -rf %{buildroot}
> > mkdir -p %{buildroot}%{_initrddir}
> > install -Dp -m0755 sapi/fpm/init.d.php-fpm.in
> > %{buildroot}%{_initrddir}/php-fpm
> > %{__make} install INSTALL_ROOT="%{buildroot}"
> >
> > %clean
> > rm -rf %{buildroot}
> >
> > %post
> > %/sbin/chkconfig php-fpm on
> >
> > %preun
> > if [ "$1" = 0 ] ; then
> >     /sbin/service php-fpm stop > /dev/null 2>&
> >     /sbin/chkconfig --del php-fpm
> > fi
> > exit 0
> >
> > %postun
> > if [ "$1" -ge 1 ]; then
> >     /sbin/service php-fpm condrestart > /dev/null 2>&
> > fi
> > exit 0
> >
> > %files
> > %defattr(-,root,root,-)
> > %{_bindir}/*
> > %{_sbindir}/*
> > %{_includedir}/*
> > %{_libdir}/*
> > %{_mandir}/man1/php*
> > %{_sysconfdir}/*
> > %{_datadir}/*
> > %{_initrddir}/*
> > %exclude /.channels
> > %exclude /.depdb
> > %exclude /.depdblock
> > %exclude /.filemap
> > %exclude /.lock
> >
> > %changelog
> > * Mon Mar 23 2015 Mike Willbanks <mike @_________.com> - 5.3.8-1
> > - Updated to 5.3.8
> > * Mon Mar 23 2015 Mike Willbanks </mike><mike @_________.com> - 5.3.5-1
> > - Initial Package
> >
> > I tried to build the package by going to the SPECS directory in my
> > buildroot and issuing the command: rpmbuild -ba php.spec
> >
> > Can anyone point out where I'm going wrong?
> >
> > Thanks!!
> > Tim
> >
> >
> >
> > --
> > GPG me!!
> >
> > gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
> > _______________________________________________
> > CentOS mailing list
> > CentOS@xxxxxxxxxx
> > http://lists.centos.org/mailman/listinfo/centos
> >
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux