public inbox for [email protected]
help / color / mirror / Atom feedFrom: Craig Ringer <[email protected]>
To: Devrim GÜNDÜZ <[email protected]>
Cc: pgsql-pkg-yum <[email protected]>
Subject: Re: New and unified 9.5 spec file is in git
Date: Wed, 20 Jan 2016 11:52:17 +0800
Message-ID: <CAMsr+YFNvjv1NDwuFqBvvg9SV4h1Y-CFVTwaLM4MJ5FHFg3o5w@mail.gmail.com> (raw)
In-Reply-To: <CAMsr+YFqaX7shapoLRJ2S7QD1vst9ENrOtGU-_OD18Z=vpoHTA@mail.gmail.com>
References: <[email protected]>
<CAMsr+YFqaX7shapoLRJ2S7QD1vst9ENrOtGU-_OD18Z=vpoHTA@mail.gmail.com>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-pkg-yum>
On 20 January 2016 at 10:15, Craig Ringer <[email protected]> wrote:
> If anyone could take a look at it, it would be awesome.
>>
>
> I'll look right now.
>
It built perfectly with mock on Fedora 21 for a F23 target. Brilliant!
To make it clear that they're the same is it worth having a common/
directory at the same level as EL-5, F-23, etc and symlinking the specfile
to the various subdirs from there, along with any identical patches etc?
Here's the full build process I used:
sudo yum -y install rpmdevtools mock
git clone git://git.postgresql.org/git/pgrpms.git
cd pgrpms/rpm/redhat/9.5/postgresql/F-23
spectool --get-files postgresql-9.5.spec
mock -r fedora-23-x86_64 --buildsrpm --sources . --spec postgresql-9.5.spec
cp
/var/lib/mock/fedora-23-x86_64/result/postgresql95-9.5.0-2PGDG.fc23.src.rpm
.
mock -r fedora-23-x86_64 --rebuild postgresql95-9.5.0-2PGDG.fc23.src.rpm
I'm really happy about this, since it means the build depends are now
correct and it can be built without needing a dedicated build machine using
nothing but mock. No need to manually set up dependencies anymore, set up a
build box, etc. No need to juggle x86_64 and i386 either, you can run
builds for *everything* from a single F23 box or VM or docker or whatever.
If the same process is followed for other packages then it'll become
possible to build the whole PGDG system with mockchain with no custom build
machines, building anywhere that mock is available. No accidental
undeclared build or runtime dependencies. Since you seem to be using
Docker to prep build envs now it's less of an issue than when the build
boxes are hand-maintained, but the great thing about mock is that it gets
all the build depends info straight from the spec file.
I also rebuilt the F23 package for F21 just by changing the -r argument to
mock. Same for building it for i386 on an x86_64 host.
The EL-5 package built happily under mock for -r epel-5-i386 too. I didn't
test install it.
Thanks so much. This is great and I really hope you got some use out of my
prior work on it.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
view thread (11+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: New and unified 9.5 spec file is in git
In-Reply-To: <CAMsr+YFNvjv1NDwuFqBvvg9SV4h1Y-CFVTwaLM4MJ5FHFg3o5w@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox