[pgpool-general: 5830] Re: Creating RPMs from latest sources

Tatsuo Ishii ishii at sraoss.co.jp
Fri Dec 15 23:18:36 JST 2017


> Hi
> 
> I would like to build rpm from the latest sources. Usually I apply the patch on existing rpm and it works fine.  However, now I would like to use the latest sources and not just apply a patch.
> 
> I took the 3.6.7 rpms and replace the pgpool-II-3.6.7.tar.gz  file with the one that has the latest sources.  I ran the rpmbuild command and got the following error.
> 
> bash-4.1$ rpmbuild -ba pgpool.spec --define="pgpool_version 3.6.7" --define="pg_version 96" --define="pghome /usr/pgsql-9.6" --define="dist rhel6"
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.F6r2o2
> + umask 022
> + cd /var/lib/pgsql/rpmbuild/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + cd /var/lib/pgsql/rpmbuild/BUILD
> + rm -rf pgpool-II-3.6.7
> + /usr/bin/gzip -dc /var/lib/pgsql/rpmbuild/SOURCES/pgpool-II-3.6.7.tar.gz
> + /bin/tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd pgpool-II-3.6.7
> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + echo 'Patch #1 (pgpool-II-head.patch):'
> Patch #1 (pgpool-II-head.patch):
> + /bin/cat /var/lib/pgsql/rpmbuild/SOURCES/pgpool-II-head.patch
> + /usr/bin/patch -p1 --fuzz=0
> can't find file to patch at input line 4
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |diff -crN pgpool-II-3.6.7/doc/src/sgml/html/LEGALNOTICE.html head/pgpool-II-3.6.7/doc/src/sgml/html/LEGALNOTICE.html
> |*** pgpool-II-3.6.7/doc/src/sgml/html/LEGALNOTICE.html Wed Nov  1 01:02:24 2017
> |--- head/pgpool-II-3.6.7/doc/src/sgml/html/LEGALNOTICE.html    Wed Nov  1 03:02:23 2017
> --------------------------

The missing file pgpool-II-head.patch is the difference between 3.6
stable head and pgpool-II-3.6.7. We create rpm files including the
diff between previous release (in this case 3.6.7) and the stable
branch head. The file is actually generated in the automatic rpm build
process using docker. See
https://github.com/pgpool/docker-pgpool-II-rpm for more details. In
the mean time you can probably remove:

Patch1:         pgpool-II-head.patch

%patch1 -p1

from the spec file because you replace pgpool-II-.3.6.7.tar.gz with
the 3.6 stable head tar ball.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp


More information about the pgpool-general mailing list