• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: コミット

firtst release


コミットメタ情報

リビジョン6609a8a6d0e56d642e1c0b91362baafa5b6ac126 (tree)
日時2017-10-10 11:37:39
作者Kyotaro Horiguchi <horiguchi.kyotaro@lab....>
コミッターKyotaro Horiguchi

ログメッセージ

Prepare for rpm build for PostgreSQL 10

Edited Makefile and SPEC file so that RPM package for PostgreSQL 10 is
built.

変更サマリ

差分

--- a/Makefile
+++ b/Makefile
@@ -22,8 +22,8 @@ PG_CONFIG = pg_config
2222 PGXS := $(shell $(PG_CONFIG) --pgxs)
2323 include $(PGXS)
2424
25-STARBALL96 = pg_hint_plan96-$(HINTPLANVER).tar.gz
26-STARBALLS = $(STARBALL96)
25+STARBALL10 = pg_hint_plan10-$(HINTPLANVER).tar.gz
26+STARBALLS = $(STARBALL10)
2727
2828 TARSOURCES = Makefile *.c *.h COPYRIGHT* \
2929 pg_hint_plan--*.sql \
@@ -35,7 +35,7 @@ LDFLAGS+=-Wl,--build-id
3535
3636 installcheck: $(REGRESSION_EXPECTED)
3737
38-rpms: rpm96
38+rpms: rpm10
3939
4040 # pg_hint_plan.c includes core.c and make_join_rel.c
4141 pg_hint_plan.o: core.c make_join_rel.c # pg_stat_statements.c
@@ -50,7 +50,7 @@ $(STARBALLS): $(TARSOURCES)
5050 tar -chzf $@ $(addprefix $(subst .tar.gz,,$@)/, $^)
5151 rm $(subst .tar.gz,,$@)
5252
53-rpm96: $(STARBALL96)
54- MAKE_ROOT=`pwd` rpmbuild -bb SPECS/pg_hint_plan96.spec
53+rpm10: $(STARBALL10)
54+ MAKE_ROOT=`pwd` rpmbuild -bb SPECS/pg_hint_plan10.spec
5555
5656
--- a/SPECS/pg_hint_plan96.spec
+++ b/SPECS/pg_hint_plan10.spec
@@ -1,7 +1,7 @@
11 # SPEC file for pg_store_plans
22 # Copyright(C) 2017 NIPPON TELEGRAPH AND TELEPHONE CORPORATION
33
4-%define _pgdir /usr/pgsql-9.6
4+%define _pgdir /usr/pgsql-10
55 %define _bindir %{_pgdir}/bin
66 %define _libdir %{_pgdir}/lib
77 %define _datadir %{_pgdir}/share
@@ -12,8 +12,8 @@
1212 %endif
1313
1414 ## Set general information for pg_store_plans.
15-Summary: Optimizer hint on PostgreSQL 9.6
16-Name: pg_hint_plan96
15+Summary: Optimizer hint on PostgreSQL 10
16+Name: pg_hint_plan10
1717 Version: 1.2.0
1818 Release: 1%{?dist}
1919 License: BSD
@@ -24,8 +24,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
2424 Vendor: NIPPON TELEGRAPH AND TELEPHONE CORPORATION
2525
2626 ## We use postgresql-devel package
27-BuildRequires: postgresql96-devel
28-Requires: postgresql96-libs
27+BuildRequires: postgresql10-devel
28+Requires: postgresql10-libs
2929
3030 ## Description for "pg_hint_plan"
3131 %description
@@ -33,11 +33,11 @@ Requires: postgresql96-libs
3333 pg_hint_plan provides capability to tweak execution plans to be
3434 executed on PostgreSQL.
3535
36-Note that this package is available for only PostgreSQL 9.6.
36+Note that this package is available for only PostgreSQL 10.
3737
3838 ## pre work for build pg_hint_plan
3939 %prep
40-PATH=/usr/pgsql-9.6/bin:$PATH
40+PATH=/usr/pgsql-10/bin:$PATH
4141 if [ "${MAKE_ROOT}" != "" ]; then
4242 pushd ${MAKE_ROOT}
4343 make clean %{name}-%{version}.tar.gz
@@ -48,7 +48,7 @@ if [ ! -d %{_rpmdir} ]; then mkdir -p %{_rpmdir}; fi
4848
4949 ## Set variables for build environment
5050 %build
51-PATH=/usr/pgsql-9.6/bin:$PATH
51+PATH=/usr/pgsql-10/bin:$PATH
5252 make USE_PGXS=1 %{?_smp_mflags}
5353
5454 ## Set variables for install
旧リポジトリブラウザで表示