Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDkPp-0001wJ-2i for pgsql-pkg-yum@arkaria.postgresql.org; Thu, 25 May 2017 04:30:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dDkPn-0005Xo-Rm for pgsql-pkg-yum@arkaria.postgresql.org; Thu, 25 May 2017 04:30:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dDkPj-0005IX-Bu for pgsql-pkg-yum@postgresql.org; Thu, 25 May 2017 04:30:19 +0000 Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dDkPf-0007GG-TQ for pgsql-pkg-yum@postgresql.org; Thu, 25 May 2017 04:30:18 +0000 Received: by mail-pf0-x22a.google.com with SMTP id n23so155242757pfb.2 for ; Wed, 24 May 2017 21:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=6wy+vmrE5byGBxVYhKqdSuvDMWry5k2bN33yr7das9U=; b=2LvVRaG2blNicuGEUXeKLKjYkL4Lt1BS6gB8pI4qnVeppERcf2CyRQbt7wabkb4mS1 p3fzJdmEZ57jaCbmEHRIOJ87tB03QmExdMUuVtsGQ0asRir8t5ozMdNVvo2i+EfoY8v0 +BPI5gVGFq8W0dERu1C8unpzomkYxzjY5enmwwiXGrJBFrJdpB7tfH2BKrUOH1fbSOvS EmMqq8Z1bTilZ6OELTyHjjoVtghQxL18z8Zti7rmzDRB8FbH2c5qWoQPzai09GbVGEUS NGlOpyylxWl79/FeE3zxisiyZm+vOvOizSvlwGYzQad/VVy+kO7pnS4oo7DWz2sd/3Nu 1KGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=6wy+vmrE5byGBxVYhKqdSuvDMWry5k2bN33yr7das9U=; b=nXXr/fl7Jl98lwS/GV1+ire73SglMdi0NhtaL5B6zO17RcX1c/V0yla5uMNqt4+bUy HmNaBxKIXs7LeEDB+UvLZHy++d9UftiZPsnQP71ImluDUf32VAHXDTrbIrPsIj/P6BVO V46ssMD1PMZVqxTQBe30sMf16MjkPXQsmmshe/UJXpCevCwDWauz/TPcgmdGsV7wPLL0 7jqdD60HWjkyZWv78a1XZRdZikLftXJS/HwhsN21SFC89DLNjEgIOVjJx3k+YbWeNk14 sUGQNadbVIqSYq8fh2/Cgv6rVQZNn68pHGD5vPlwrCAiA9QO8C48zwUmN4/gGQz41fyA HLfw== X-Gm-Message-State: AODbwcAEAcei4SUR3t/TW/xem5lrlet4Jw67I1OdWsLhD4S73VQnwCvU pKQn0g04JBUM+QG6vm0xTdQHlhbUvGDyoxGQ8QAi8igKIG19zvZOnvnzQwBmyfaqTYjHbAmqXsx NBHqcQkV1gWrX+pTvEFHk6iUA6bdckNfQIrTzyU4/KIur2H+3yvsZKjeSjfxGep2H4fwLljMQeA == X-Received: by 10.84.143.68 with SMTP id 62mr42059375ply.123.1495686612676; Wed, 24 May 2017 21:30:12 -0700 (PDT) Received: from osaka.octopusnet (p2282025-ipngn17701marunouchi.tokyo.ocn.ne.jp. [153.224.103.25]) by smtp.gmail.com with ESMTPSA id n87sm10421613pfi.124.2017.05.24.21.30.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 May 2017 21:30:10 -0700 (PDT) To: pgsql-pkg-yum@postgresql.org From: Ian Barwick Subject: Version number usage in new repmgr.spec file? Message-ID: <720b4965-08bf-7bdf-3ff3-fbb01a9dd9eb@2ndquadrant.com> Date: Thu, 25 May 2017 13:30:07 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------292463E0C6253B96EFF2BEBD" Content-Language: en-US X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-pkg-yum Precedence: bulk Sender: pgsql-pkg-yum-owner@postgresql.org This is a multi-part message in MIME format. --------------292463E0C6253B96EFF2BEBD Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi I was looking at the new repmgr specfile (rpm/redhat/master/repmgr/master/repmgr.spec), it looks like %{pgpackageversion} and %{pgmajorversion} have got a bit mixed up in places; while it works for 10 of course, it looks like 9.6/96 etc. get written to the wrong places. Attached patch puts things the way they should be (at least to build a local RPM with 9.x). Apologies for the noise if that's actually intentional. Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services --------------292463E0C6253B96EFF2BEBD Content-Type: text/x-patch; name="repmgr.spec.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="repmgr.spec.diff" diff --git a/rpm/redhat/master/repmgr/master/repmgr.spec b/rpm/redhat/master/repmgr/master/repmgr.spec index 028fcdd..c860a55 100644 --- a/rpm/redhat/master/repmgr/master/repmgr.spec +++ b/rpm/redhat/master/repmgr/master/repmgr.spec @@ -1,6 +1,6 @@ %global pgmajorversion 10 %global pgpackageversion 10 -%global pginstdir /usr/pgsql-%{pgpackageversion} +%global pginstdir /usr/pgsql-%{pgmajorversion} %global sname repmgr %if 0%{?rhel} && 0%{?rhel} <= 6 %global systemd_enabled 0 @@ -10,7 +10,7 @@ %global _varrundir %{_localstatedir}/run/%{sname} -Name: %{sname}%{pgmajorversion} +Name: %{sname}%{pgpackageversion} Version: 3.3.1 Release: 1%{?dist} Summary: Replication Manager for PostgreSQL Clusters @@ -41,10 +41,10 @@ Requires(postun): initscripts Group: Applications/Databases BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %endif -BuildRequires: postgresql%{pgmajorversion}, postgresql%{pgmajorversion}-devel +BuildRequires: postgresql%{pgpackageversion}, postgresql%{pgpackageversion}-devel BuildRequires: libxslt-devel, pam-devel, openssl-devel, readline-devel BuildRequires: libmemcached-devel libicu-devel -Requires: postgresql%{pgmajorversion}-server +Requires: postgresql%{pgpackageversion}-server %description repmgr is an open-source tool suite to manage replication and failover in a @@ -111,7 +111,7 @@ fi %post /sbin/ldconfig %if %{systemd_enabled} -%systemd_post %{sname}-%{pgmajorversion}.service +%systemd_post %{sname}-%{pgpackageversion}.service %tmpfiles_create %else # This adds the proper /etc/rc*.d links for the script --------------292463E0C6253B96EFF2BEBD Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-pkg-yum mailing list (pgsql-pkg-yum@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-yum --------------292463E0C6253B96EFF2BEBD--