Re: Unifying the spec files? - Mailing list pgsql-pkg-yum

From Craig Ringer
Subject Re: Unifying the spec files?
Date
Msg-id 53D8849B.50003@2ndquadrant.com
Whole thread Raw
In response to Re: Unifying the spec files?  (Devrim Gündüz <devrim@gunduz.org>)
Responses Re: Unifying the spec files?  (Devrim Gündüz <devrim@gunduz.org>)
List pgsql-pkg-yum
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/29/2014 01:06 PM, Devrim Gündüz wrote:
>
> Hi Craig,
>
> On Tue, 2014-07-29 at 09:46 +0800, Craig Ringer wrote:
>
>> While looking over the spec files for the releases I noticed
>> that the _vast_ majority of content is the same for each spec.
>>
>> Where differences exist it isn't always clear why. For example,
>> EL-7 seems to generate an init script differently to EL-6,
>
> EL-7 does not have init script ;) It uses systemd'd unit file.
> Basically, right now EL-5 and EL-6 is one group, and EL-7,F-19 and
> F-20 are another group when it comes to features/init scripts,
> etc.

Yeah, I worked that one out after posting.

> The selinux-devel version is EL-6 does not satisfy the needs for
> sepgsql module. That is the reason why we don't build it there.
> There are slight other differences IIRC.

OK, makes sense.

>> I'm a little curious about why the spec files seem to be copied
>> and edited, rather than having a single spec for the package
>> across all supported versions and using conditionals. I'm sure
>> you've thought of that, so there'll be good reasons - did you
>> try this and run into issues?
>
> I have tried this *years* ago, but it did not work, since some
> conditionals did not work across distros.

Yes, it seems lots of things really work best with rpm5.

Take a look at the attached, which is a first cut unification attempt.
I'm going to do mock builds and test installs for each arch now, but
figured I'd send it for comment as well.

I've versioned the Provides: and made some other rpmlint fixes while I
was at it.

I'd also like to parameterise the package basename ("postgresql") to
allow variants that still have "Provides: postgresql" and "Provides:
postgresql-%{majorversion}" but live in a separate datadir. The
immediate reason is to permit me to package BDR, which is 9.4 but has
a few catalog changes that mean it can't run from a straight 9.4
datadir, without stomping on PGDG packages and without the need to
rebuild all the dependencies. Thoughts?

- --
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJT2ISYAAoJELBXNkqjr+S2bBgIAJoXCUnQNAGDR5OGYj/SbiQq
VJu6bGWB8BRX8gmDqxd22qGlV7e8DC423jOKwXClcMoNor+whKFS0nRwB3BW43m9
14IqyXECpCSnXFHB/MRTkG/Tww+TqJDQ7e0ywX6XCwVsHIRqUMm2Bycy43NEDPoA
cpLFd7kF3Np+UuT5MxnjxyilJ3ga2OiE5+Rt5gNBNObEmPj4OTAhV0lNi3n2frum
62qu9uNREAWBjxTjH0ahKVdQVMYZPji4G29mT4UZI5gjqhM+emwKniEZqesC6y4Q
V/VuEJWW8kRPOX+9yoQ2/Ymra82Z0oSqOza/g5HZLX9pGMOsVMfm13GXVDV0kjU=
=1DOT
-----END PGP SIGNATURE-----

Attachment

pgsql-pkg-yum by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Koji, mock, fedpkg, etc?
Next
From: Craig Ringer
Date:
Subject: Re: Unifying the spec files?