You are not logged in.

#1 2020-05-11 07:24:51

FayeAleph
Member
Registered: 2020-05-10
Posts: 4

[SOLVED] Making a PKGBUILD that depends on postgresql-contrib

Hi all!

I was wondering what the best way to enforce a dependency on postgresql's contrib tree for a  package. I noticed that there is no longer a postgresql-contrib package in the AUR as far as I've looked, so I was wondering if there was some standard way of dealing with this issue. If not then if anyone could package up postgresql-contrib that would simplify my life and my user's lives as well.

Thanks for the help!!!

Last edited by FayeAleph (2020-05-11 17:36:13)

Offline

#2 2020-05-11 07:56:09

a821
Member
Registered: 2012-10-31
Posts: 381

Re: [SOLVED] Making a PKGBUILD that depends on postgresql-contrib

AFAIK, `postgresql-contrib` is part of `postgresql`, so your package should depend on `postgresql`

Offline

#3 2020-05-11 12:42:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,452
Website

Re: [SOLVED] Making a PKGBUILD that depends on postgresql-contrib

You can readily confirm the above with pacman, especially if you specify exactly what tools from postgresql-contrib you need.  Just taking a few random ones from the files list from an rpm of postgresql-contrib:

$ pacman -F oid2name
extra/postgresql 12.2-3
    usr/bin/oid2name
extra/postgresql-old-upgrade 11.7-2
    opt/pgsql-11/bin/oid2name

$ pacman -F pgbench
extra/postgresql 12.2-3
    usr/bin/pgbench
extra/postgresql-old-upgrade 11.7-2
    opt/pgsql-11/bin/pgbench

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2020-05-11 17:35:27

FayeAleph
Member
Registered: 2020-05-10
Posts: 4

Re: [SOLVED] Making a PKGBUILD that depends on postgresql-contrib

That's great! I looked through the postgresql package itself to see the contrib specific things but just couldn't confirm it for sure.

Thanks so much!

Offline

Board footer

Powered by FluxBB