Mail archive
alpine-aports

Re: [alpine-aports] [PATCH] main/postgresql: add subpackage libpq-dev with client development files

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Tue, 5 May 2015 14:32:57 +0200

On Sun, 3 May 2015 12:36:22 +0000
Ramon Soares <ramon_at_codecraft63.com> wrote:

> ---
> main/postgresql/APKBUILD | 27 ++++++++++++++++++++++++++-
> 1 file changed, 26 insertions(+), 1 deletion(-)
>
> diff --git a/main/postgresql/APKBUILD b/main/postgresql/APKBUILD
> index ae7fcbc..3138bc2 100644
> --- a/main/postgresql/APKBUILD
> +++ b/main/postgresql/APKBUILD
> _at_@ -10,7 +10,7 @@ depends="postgresql-client"
> install="$pkgname.pre-upgrade"
> depends_dev="readline-dev openssl-dev zlib-dev libxml2-dev"
> makedepends="$depends_dev"
> -subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg libpq $pkgname-client
> +subpackages="libpq-dev:libpqdev $pkgname-dev $pkgname-doc $pkgname-dbg libpq $pkgname-client
> $pkgname-contrib"
> patches="initdb.patch"
> source="ftp://ftp.$pkgname.org/pub/source/v$pkgver/$pkgname-$pkgver.tar.bz2
> _at_@ -72,6 +72,31 @@ libpq() {
> mv "$pkgdir"/usr/lib/libpq.so* "$subpkgdir"/usr/lib/
> }
>
> +libpqdev() {
> + depends="libpq"
> + pkgdesc="PostgreSQL development libraries"
> + mkdir -p "$subpkgdir"/usr/bin
> + mkdir -p "$subpkgdir"/usr/lib/pkgconfig
> + mkdir -p "$subpkgdir"/usr/include/postgresql
> + mv "$pkgdir"/usr/bin/pg_config "$subpkgdir"/usr/bin
> + mv "$pkgdir"/usr/include/libpq-events.h "$subpkgdir"/usr/include
> + mv "$pkgdir"/usr/include/libpq-fe.h "$subpkgdir"/usr/include
> + mv "$pkgdir"/usr/include/postgresql/internal "$subpkgdir"/usr/include/postgresql/
> + mv "$pkgdir"/usr/include/libpq-events.h "$subpkgdir"/usr/include/
> + mv "$pkgdir"/usr/include/libpq-fe.h "$subpkgdir"/usr/include/
> + mv "$pkgdir"/usr/include/libpq "$subpkgdir"/usr/include/
> + mv "$pkgdir"/usr//include/pg_config.h "$subpkgdir"/usr/include/
> + mv "$pkgdir"/usr/include/pg_config_ext.h "$subpkgdir"/usr/include/
> + mv "$pkgdir"/usr/include/pg_config_manual.h "$subpkgdir"/usr/include/
> + mv "$pkgdir"/usr/include/pg_config_os.h "$subpkgdir"/usr/include/
> + mv "$pkgdir"/usr/include/postgres_ext.h "$subpkgdir"/usr/include/
> + mv "$pkgdir"/usr/lib/libpq.so "$subpkgdir"/usr/lib/
> + mv "$pkgdir"/usr/lib/libpq.a "$subpkgdir"/usr/lib/
> + mv "$pkgdir"/usr/lib/libpqcommon.a "$subpkgdir"/usr/lib/
> + mv "$pkgdir"/usr/lib/libpqport.a "$subpkgdir"/usr/lib/
> + mv "$pkgdir"/usr/lib/pkgconfig/libpq.pc "$subpkgdir"/usr/lib/pkgconfig/
> +}
> +
> client() {
> depends=
> pkgdesc="PostgreSQL client"

NACK

I don't think we want manage the -dev files manually. We should make
abuild do this automatically for us. Otherwise will will get problem in
future.

I will look at it after v3.2 is released.

-nc


---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue May 05 2015 - 14:32:57 GMT