[pgpool-general: 5828] Creating RPMs from latest sources

Avi Weinberg AviW at gilat.com
Thu Dec 14 18:29:15 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
--------------------------
IMPORTANT - This email and any attachments is intended for the above named addressee(s), and may contain information which is confidential or privileged. If you are not the intended recipient, please inform the sender immediately and delete this email: you should not copy or use this e-mail for any purpose nor disclose its contents to any person.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.sraoss.jp/pipermail/pgpool-general/attachments/20171214/aa06469c/attachment.html>


More information about the pgpool-general mailing list