Thread: Submitting a package
Hello! I would like to submit a package to pgdg repository. What is the correct procedure for this? I`m sorry if I`ve missed a documentation about it. Proposed soft: https://github.com/postgrespro/pg_probackup -- Grigory Smolkin Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
Re: Grigory Smolkin 2019-05-05 <b5ec6b4f-ff2a-7112-def9-f9b0eb851da7@postgrespro.ru> > Hello! > > I would like to submit a package to pgdg repository. > What is the correct procedure for this? > I`m sorry if I`ve missed a documentation about it. > > Proposed soft: > https://github.com/postgrespro/pg_probackup Hi, we'd need a debian/ directory for it. Cross-check with any of the other PG packages to see how it could (should) look like. The server-side extensions are based on pg_buildext: https://manpages.debian.org/stretch/postgresql-server-dev-all/pg_buildext.1.en.html If you don't need to build separate per-PG-major binaries, it's a bit easier, and pretty much standard: https://www.debian.org/doc/manuals/maint-guide/ Ideally, the package would be uploaded to Debian and apt.postgresql.org in parallel. (I can do the necessary sponsoring.) The debian/ directory could be in the same repository, in the same or a different branch, or a completely different repo. I'll gladly help you with any questions you might have (or whoever gets to do the packaging). Cheers, Christoph
Hi, On Sun, 2019-05-05 at 23:35 +0300, Grigory Smolkin wrote: > I would like to submit a package to pgdg repository. > What is the correct procedure for this? > I`m sorry if I`ve missed a documentation about it. > > Proposed soft: > https://github.com/postgrespro/pg_probackup Is there a way to build pg_probackup without using PostgreSQL sources? Regards, -- Devrim Gündüz Open Source Solution Architect, Red Hat Certified Engineer Twitter: @DevrimGunduz , @DevrimGunduzTR
Attachment
Hello! On 5/7/19 12:39 AM, Devrim Gündüz wrote: > Hi, > > On Sun, 2019-05-05 at 23:35 +0300, Grigory Smolkin wrote: >> I would like to submit a package to pgdg repository. >> What is the correct procedure for this? >> I`m sorry if I`ve missed a documentation about it. >> >> Proposed soft: >> https://github.com/postgrespro/pg_probackup > Is there a way to build pg_probackup without using PostgreSQL sources? No, I`m afraid not, pg_probackup rely heavily on PostgreSQL code. Is it a problem? > > Regards, -- Grigory Smolkin Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
Re: Grigory Smolkin 2019-05-07 <ad4e3d47-d94b-1e42-6ccb-bb88e1bdf832@postgrespro.ru> > > Is there a way to build pg_probackup without using PostgreSQL sources? > > No, I`m afraid not, pg_probackup rely heavily on PostgreSQL code. > Is it a problem? Uh. That won't fly in Debian either. You need to solely depend on whatever the postgresql-server-$version-dev packages ship, or copy whatever other files to the pg_probackup source. Christoph
On 5/7/19 1:02 PM, Christoph Berg wrote: > Re: Grigory Smolkin 2019-05-07 <ad4e3d47-d94b-1e42-6ccb-bb88e1bdf832@postgrespro.ru> >>> Is there a way to build pg_probackup without using PostgreSQL sources? >> No, I`m afraid not, pg_probackup rely heavily on PostgreSQL code. >> Is it a problem? > Uh. That won't fly in Debian either. You need to solely depend on > whatever the postgresql-server-$version-dev packages ship, or copy > whatever other files to the pg_probackup source. Could I just make downloading PostgreSQL sources as one of the steps in debian/rules? > > Christoph -- Grigory Smolkin Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
Il 07/05/19 12:12, Grigory Smolkin ha scritto: > > On 5/7/19 1:02 PM, Christoph Berg wrote: >> Re: Grigory Smolkin 2019-05-07 >> <ad4e3d47-d94b-1e42-6ccb-bb88e1bdf832@postgrespro.ru> >>>> Is there a way to build pg_probackup without using PostgreSQL sources? >>> No, I`m afraid not, pg_probackup rely heavily on PostgreSQL code. >>> Is it a problem? >> Uh. That won't fly in Debian either. You need to solely depend on >> whatever the postgresql-server-$version-dev packages ship, or copy >> whatever other files to the pg_probackup source. > > Could I just make downloading PostgreSQL sources as one of the steps in > debian/rules? > It is not allowed by the policies. Moreover, most the build environments do not have access to the network for security reasons. Regards, Marco -- Marco Nenciarini - 2ndQuadrant Italy PostgreSQL Training, Services and Support marco.nenciarini@2ndQuadrant.it | www.2ndQuadrant.it
Attachment
Re: Grigory Smolkin 2019-05-07 <9080eaff-fd53-0aca-6101-be9d0dc9faed@postgrespro.ru> > > On 5/7/19 1:02 PM, Christoph Berg wrote: > > Re: Grigory Smolkin 2019-05-07 <ad4e3d47-d94b-1e42-6ccb-bb88e1bdf832@postgrespro.ru> > > > > Is there a way to build pg_probackup without using PostgreSQL sources? > > > No, I`m afraid not, pg_probackup rely heavily on PostgreSQL code. > > > Is it a problem? > > Uh. That won't fly in Debian either. You need to solely depend on > > whatever the postgresql-server-$version-dev packages ship, or copy > > whatever other files to the pg_probackup source. > > Could I just make downloading PostgreSQL sources as one of the steps in > debian/rules? No. Christoph
On 5/7/19 1:20 PM, Marco Nenciarini wrote: > Il 07/05/19 12:12, Grigory Smolkin ha scritto: >> On 5/7/19 1:02 PM, Christoph Berg wrote: >>> Re: Grigory Smolkin 2019-05-07 >>> <ad4e3d47-d94b-1e42-6ccb-bb88e1bdf832@postgrespro.ru> >>>>> Is there a way to build pg_probackup without using PostgreSQL sources? >>>> No, I`m afraid not, pg_probackup rely heavily on PostgreSQL code. >>>> Is it a problem? >>> Uh. That won't fly in Debian either. You need to solely depend on >>> whatever the postgresql-server-$version-dev packages ship, or copy >>> whatever other files to the pg_probackup source. >> Could I just make downloading PostgreSQL sources as one of the steps in >> debian/rules? >> > It is not allowed by the policies. Moreover, most the build environments > do not have access to the network for security reasons. Could i just set PostgreSQL source package as build dependency? > > Regards, > Marco > -- Grigory Smolkin Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
Il 07/05/19 12:36, Grigory Smolkin ha scritto: > > On 5/7/19 1:20 PM, Marco Nenciarini wrote: >> Il 07/05/19 12:12, Grigory Smolkin ha scritto: >>> On 5/7/19 1:02 PM, Christoph Berg wrote: >>>> Re: Grigory Smolkin 2019-05-07 >>>> <ad4e3d47-d94b-1e42-6ccb-bb88e1bdf832@postgrespro.ru> >>>>>> Is there a way to build pg_probackup without using PostgreSQL >>>>>> sources? >>>>> No, I`m afraid not, pg_probackup rely heavily on PostgreSQL code. >>>>> Is it a problem? >>>> Uh. That won't fly in Debian either. You need to solely depend on >>>> whatever the postgresql-server-$version-dev packages ship, or copy >>>> whatever other files to the pg_probackup source. >>> Could I just make downloading PostgreSQL sources as one of the steps in >>> debian/rules? >>> >> It is not allowed by the policies. Moreover, most the build environments >> do not have access to the network for security reasons. > > Could i just set PostgreSQL source package as build dependency? > No, it is not possible. Regards, Marco -- Marco Nenciarini - 2ndQuadrant Italy PostgreSQL Training, Services and Support marco.nenciarini@2ndQuadrant.it | www.2ndQuadrant.it
Attachment
Re: Grigory Smolkin 2019-05-07 <a8205785-05f1-b487-6c3d-718fa763b701@postgrespro.ru> > Could i just set PostgreSQL source package as build dependency? You can't build-depend on source packages. If it were that easy, I would have mentioned that in my first mail. Christoph
On 5/7/19 1:37 PM, Christoph Berg wrote: > Re: Grigory Smolkin 2019-05-07 <a8205785-05f1-b487-6c3d-718fa763b701@postgrespro.ru> >> Could i just set PostgreSQL source package as build dependency? > You can't build-depend on source packages. If it were that easy, I > would have mentioned that in my first mail. > > Christoph Thank you for clarification, we will think what can be done with our build procedure to satisfy your requirements. -- Grigory Smolkin Postgres Professional: http://www.postgrespro.com The Russian Postgres Company