Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePps2-0006ab-Mh for pgsql-pkg-yum@arkaria.postgresql.org; Fri, 15 Dec 2017 13:17:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePps2-0005Hf-3S for pgsql-pkg-yum@arkaria.postgresql.org; Fri, 15 Dec 2017 13:17:46 +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 1ePps1-0005HV-S1 for pgsql-pkg-yum@lists.postgresql.org; Fri, 15 Dec 2017 13:17:46 +0000 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ePprq-0001BR-0V for pgsql-pkg-yum@postgresql.org; Fri, 15 Dec 2017 13:17:44 +0000 Received: by mail-pg0-x244.google.com with SMTP id y6so5782578pgp.4 for ; Fri, 15 Dec 2017 05:17:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=1GptMfT6StJBuWHg4D9tGZTzrxRlL9tngSuBhyk6gv0=; b=A9Hb/XRHVo0KXO6tdmUUJVpJELtSJkRg7LfKdaxP2H8j8ueooPV7jn5Sn4JkP2iFxq ugJ7jEebf50etp7flXjSpd19blj0YlV34tzgxVkEXb6YM95tC974qgXNhr2txwFmh+ii zJp4MKlOM9U59v8rO/Hs+JzOWLDs9+l6diYQ+vLEFGuxxGuiYK4hfJ2o3GUKPLerXoW+ DjiKYrJ6M5hJkMHFiJPf8ZUdvKFlO+i8T5Owpjd9dO+4x5t/QOY1aSlc7Wr69iaTwMV7 Nih18GgkSwapl/KPw6LnhsNrvRBYmRz7qBaf5IKcioVFwtM6b3Drx+MLAoq+3wEM/24H V3uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=1GptMfT6StJBuWHg4D9tGZTzrxRlL9tngSuBhyk6gv0=; b=q8Qz+O1C6LcYKhW9zU/Ck5RPr7VOdnOo/XLENH3FMO+xUT4gbT5bHOV4HLu+35QBbQ W45uP9Kmz/sH0R/Wc7iZ7Y2Rhw3eiHa3+qUZUuh5o008T1ZFvtfacTy/efseEgtud3/T Q9nO4RePGNtDcw5n51zT8G0OWtLj9LpTOBP3g0WHrb9yRX5uvRnfTDyriD4wXiAxfY3a 62WeWrOjx25cNNbh7jeCkbBAfoV611ObsD9fVT4T0YUp2eFE3MRs/pSUm6VqnUH/3CFs kSC1VmpYfr09awybDm6khQZ61QwXpjuescBWFHx07C/GBNu0ofPmbWDusLN1XBfJR+NK eorQ== X-Gm-Message-State: AKGB3mL9AsGAQnJrYtXwmoFfKbbEIFtc3iKTEMSkTrqMKsUD6qsWPc5A nhTeSyS8yAFBcrHfWgunuO9sn5VJS3UKiT0X0Ec= X-Google-Smtp-Source: ACJfBouh1znsTuaH18/MJE+23V7FswZZ3y+EdHAiO27pD+Sen5ygNeLnhDxuV32tjwexQR5IgDSGc0ggPU/rZAMnpxI= X-Received: by 10.99.117.19 with SMTP id q19mr11698936pgc.94.1513343850672; Fri, 15 Dec 2017 05:17:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.169.15 with HTTP; Fri, 15 Dec 2017 05:17:30 -0800 (PST) In-Reply-To: <20171214095802.GA16859@msg.df7cb.de> References: <1513199824.19931.133.camel@gunduz.org> <20171214095802.GA16859@msg.df7cb.de> From: Victor Yegorov Date: Fri, 15 Dec 2017 15:17:30 +0200 Message-ID: Subject: =?UTF-8?Q?Re=3A_Skytools_for_10_=E2=80=94_RPM_missing?= To: Christoph Berg , =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= , Victor Yegorov , pgsql-pkg-yum@postgresql.org Content-Type: multipart/alternative; boundary="f403045c5b3ca47950056060d2fb" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --f403045c5b3ca47950056060d2fb Content-Type: text/plain; charset="UTF-8" 2017-12-14 11:58 GMT+02:00 Christoph Berg : > > On the Debian side, we started moving to the split packages from > https://github.com/pgq . Unfortunately, there's a whole bunch of them, > and we have only packaged pgq and pgqd yet. The whole thing there > looks like a big mess :( > Indeed. I've looked into the build process, things are crashing on `sql/txid/txid.c` for me: txid.c: In function 'txid_current_snapshot': txid.c:207:6: error: 'SerializableSnapshot' undeclared (first use in this function) if (SerializableSnapshot == NULL) ^ Poking around git on `git log -S SerializableSnapshot` and `git log -- contrib/txid/txid.c` I can see, that stuff from `skytools` to expose snapshots had been integrated into core years ago (commit 18e3fcc). Looking at the `sql/txid/Makefile`, they do nothing for that directory if we're on 8.3+. Versions checks stopped working on 10: -bash-4.2$ export PGVER=10.1 -bash-4.2$ test $PGVER "<" "8.3" && echo "false" || echo "true" false -bash-4.2$ export PGVER=9.6.6 -bash-4.2$ test $PGVER "<" "8.3" && echo "false" || echo "true" true I assume that this subdirectory can be excluded from the `Makefile`, 8.3 EOL came years ago. Doing so makes things compile fine for me. Patch is as simple as: diff --git a/rpm/redhat/master/skytools/master/skytools.spec b/rpm/redhat/master/skytools/master/skytools.spec index dbdb423..bda4715 100644 --- a/rpm/redhat/master/skytools/master/skytools.spec +++ b/rpm/redhat/master/skytools/master/skytools.spec @@ -58,6 +58,7 @@ rmdir lib %if %{pgmajorversion} != 92 sed -ie '/^#include /s:parser/keywords.h:common/keywords.h:' sql/pgq/triggers/stringutil.c %endif +sed -ie '/^SUBDIRS/s:ticker txid$:ticker:' sql/Makefile ./autogen.sh %configure --with-pgconfig=%{pginstdir}/bin/pg_config --with-asciidoc Devrim, do you think it's possible to add this change and add `skytools` to 10 repo? -- Victor Yegorov --f403045c5b3ca47950056060d2fb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2017= -12-14 11:58 GMT+02:00 Christoph Berg <myon@debian.org>:On the Debian side, we started = moving to the split packages from
htt= ps://github.com/pgq . Unfortunately, there's a whole bunch of them,=
and we have only packaged pgq and pgqd yet. The whole thing there
looks like a big mess :(

Indeed.
<= div>
I've looked into the build process, things are crash= ing on `sql/txid/txid.c` for me:

=C2=A0 =C2=A0 txi= d.c: In function 'txid_current_snapshot':
=C2=A0 =C2=A0 t= xid.c:207:6: error: 'SerializableSnapshot' undeclared (first use in= this function)
=C2=A0 =C2=A0 =C2=A0 if (SerializableSnapshot =3D= =3D NULL)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^=C2=A0
Poking around git on `git log -S SerializableSnapshot` and `gi= t log -- contrib/txid/txid.c` I can see,
that stuff from `skytool= s` to expose snapshots had been integrated into core years ago (commit=C2= =A018e3fcc).

Looking at the `sql/txid/Makefile= `, they do nothing for that directory if we're on 8.3+.
Versi= ons checks stopped working on 10:

=C2=A0 =C2= =A0 -bash-4.2$ export PGVER=3D10.1
=C2=A0 =C2=A0 -bash-4.2$ test = $PGVER "<" "8.3" && echo "false" |= | echo "true"
=C2=A0 =C2=A0 false
=C2=A0 =C2= =A0 -bash-4.2$ export PGVER=3D9.6.6
=C2=A0 =C2=A0 -bash-4.2$ test= $PGVER "<" "8.3" && echo "false" = || echo "true"
=C2=A0 =C2=A0 true

<= /div>
I assume that this subdirectory can be excluded from the `Makefil= e`, 8.3 EOL came years ago.
Doing so makes things compile fine fo= r me.

Patch is as simple as:

diff --git a/rpm/redhat/master/skytools/master/skytools.spec b= /rpm/redhat/master/skytools/master/skytools.spec
index dbdb423..b= da4715 100644
--- a/rpm/redhat/master/skytools/master/skytools.sp= ec
+++ b/rpm/redhat/master/skytools/master/skytools.spec
@@ -58,6 +58,7 @@ rmdir lib
=C2=A0%if %{pgmajorversion} !=3D 92=
=C2=A0sed -ie '/^#include <parser\/keywords.h>/s:parse= r/keywords.h:common/keywords.h:' sql/pgq/triggers/stringutil.c
=C2=A0%endif
+sed -ie '/^SUBDIRS/s:ticker txid$:ticker:'= ; sql/Makefile
=C2=A0./autogen.sh
=C2=A0%configure --wi= th-pgconfig=3D%{pginstdir}/bin/pg_config --with-asciidoc


Devrim, do you think it's possible to add t= his change and add `skytools` to 10 repo?

--
=
=
Victor Yegorov
--f403045c5b3ca47950056060d2fb--