Thread: Add PgBackMan to the yum-repo

Add PgBackMan to the yum-repo

From
Rafael Martinez
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello

What are the requirements to get a postgreSQL related software in the
yum-repo?

I released PgBackMan 1.0.0 yesterday and I wonder if it will be
possible to include it in yum.postgresl.org.

Web: http://www.pgbackman.org/
Source: https://github.com/rafaelma/pgbackman

I already have a spec file that maybe could be used for building the
rpm packages?:

https://github.com/rafaelma/pgbackman/blob/master/packages/rpm/pgbackman.spec

Thanks in advance
regards,
- --
 Rafael Martinez Guerrero
 Center for Information Technology
 University of Oslo, Norway

 PGP Public Key: http://folk.uio.no/rafael/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAlOr/iIACgkQBhuKQurGihQWpQCfbuXra614mj1mrsV/HZkRzHyQ
LycAniMLan3WhT5Camp2+jwQ0Aocjrsq
=razc
-----END PGP SIGNATURE-----


Re: Add PgBackMan to the yum-repo

From
Devrim Gündüz
Date:
Hi,

It was already in my todo list, just after I saw the announcement.

I can't build the rpm using the spec file you provided (URL is incorrect
btw, I there is no packages subdirectory AFAICS). I fixed some of the
issues:

http://svn.pgrpms.org/browser/rpm/redhat/9.4/pgbackman/F-20/pgbackman.spec


However, it fails to build with:

creating /home/devrim/rpmbuild/BUILDROOT/pgbackman-1.0.0-1.f20.x86_64/etc
creating /home/devrim/rpmbuild/BUILDROOT/pgbackman-1.0.0-1.f20.x86_64/etc/init.d
error: can't copy '/tmp/pgbackman': doesn't exist or not a regular file
error: Bad exit status from /var/tmp/rpm-tmp.aEY8D3 (%install)

This is coming from setup.py. Can you please check what is wrong?

Regards, Devrim


 On Thu, 2014-06-26 at 13:04 +0200, Rafael Martinez wrote:
> Hello
>
> What are the requirements to get a postgreSQL related software in the
> yum-repo?
>
> I released PgBackMan 1.0.0 yesterday and I wonder if it will be
> possible to include it in yum.postgresl.org.
>
> Web: http://www.pgbackman.org/
> Source: https://github.com/rafaelma/pgbackman
>
> I already have a spec file that maybe could be used for building the
> rpm packages?:
>
> https://github.com/rafaelma/pgbackman/blob/master/packages/rpm/pgbackman.spec
>
> Thanks in advance
> regards,
>


--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR


--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR


Attachment

Re: Add PgBackMan to the yum-repo

From
Rafael Martinez Guerrero
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/30/2014 11:46 AM, Devrim Gündüz wrote:
>
> Hi,
>
> It was already in my todo list, just after I saw the announcement.
>
>
> I can't build the rpm using the spec file you provided (URL is
> incorrect btw, I there is no packages subdirectory AFAICS). I fixed
> some of the issues:
>
> http://svn.pgrpms.org/browser/rpm/redhat/9.4/pgbackman/F-20/pgbackman.spec
>
>
>
> However, it fails to build with:
>
> creating
> /home/devrim/rpmbuild/BUILDROOT/pgbackman-1.0.0-1.f20.x86_64/etc
> creating
> /home/devrim/rpmbuild/BUILDROOT/pgbackman-1.0.0-1.f20.x86_64/etc/init.d
>
>
error: can't copy '/tmp/pgbackman': doesn't exist or not a regular file
> error: Bad exit status from /var/tmp/rpm-tmp.aEY8D3 (%install)
>
> This is coming from setup.py. Can you please check what is wrong?
>

Hello Devrim

Thank you very much for working with this.

I am in a little cottage in the mountains in the North of Norway for
some days. When I am lucky I get 1-2Kb/s up/down with 30+% packet lost
so I cannot do much from here. I will be back in Oslo this friday.

I have updated setup.py to support Fedora also. I think this is enough
to get the build to work for this distribution. I will make a better
review of this file when I am back.

I have updated the master branch on Github. If you use
https://github.com/rafaelma/%{name}/archive/master.tar.gz as Source0
you should get the commit that fix this problem.

In the future we can use a source0 value with the version file insteed
of master. I do not want to create a new release for this change. The
pgbackman code has not been changed.

regards,
- --
Rafael Martinez Guerrero
Center for Information Technology
University of Oslo, Norway

PGP Public Key: http://folk.uio.no/rafael/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEUEARECAAYFAlOxshMACgkQBhuKQurGihSQPgCgieUpBq6jVarIwaB1vkEK/+d8
bn4Al1qAYjiaEA9/jFt68pWZPHg7+VE=
=Puzh
-----END PGP SIGNATURE-----


Re: Add PgBackMan to the yum-repo

From
Devrim Gündüz
Date:
Hi,

On Mon, 2014-06-30 at 20:53 +0200, Rafael Martinez Guerrero wrote:

> I have updated setup.py to support Fedora also. I think this is enough
> to get the build to work for this distribution. I will make a better
> review of this file when I am back.

Great, thanks.

> I have updated the master branch on Github. If you use
> https://github.com/rafaelma/%{name}/archive/master.tar.gz as Source0
> you should get the commit that fix this problem.

I can't. I don't want to use a version-less tarball. We have to make
sure that the package is consistent in every build, whoever builds it.

Regards,

--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR


Attachment

Re: Add PgBackMan to the yum-repo

From
Rafael Martinez Guerrero
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/10/2014 01:56 PM, Devrim Gündüz wrote:
>
> Hi,
>
> On Mon, 2014-06-30 at 20:53 +0200, Rafael Martinez Guerrero wrote:
>
>> I have updated the master branch on Github. If you use
>> https://github.com/rafaelma/%{name}/archive/master.tar.gz as
>> Source0 you should get the commit that fix this problem.
>
> I can't. I don't want to use a version-less tarball. We have to
> make sure that the package is consistent in every build, whoever
> builds it.
>

Hello Devrim

I understand this. I am on holidays the rest of july with almost no
access to internet. I will contact you again after the summer holidays
when all that it is needed is fixed.

regards,
- --
Rafael Martinez Guerrero
Center for Information Technology
University of Oslo, Norway

PGP Public Key: http://folk.uio.no/rafael/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlPEOeYACgkQBhuKQurGihTWWQCdFXTBUjs/kw7q03XbiHx9xQad
zLAAnRkDfzutqMsqCoqVgpYQZ946ixxl
=T4m+
-----END PGP SIGNATURE-----