[Pkg-postgresql-public] Dropping postgresql 8.3 for squeeze

Dimitri Fontaine dfontaine at hi-media.com
Mon Mar 8 15:48:42 UTC 2010


Hi,

Martin Pitt <mpitt at debian.org> writes:
>> I plan to prepare the script then send it to you, would you want a
>> complete patch against your package, just the script or nothing thx?
>
> Just the files should be enough, but of course I'll appreciate a
> complete debdiff including changelog, debian/control and dh_install
> changes, etc. :-)

Finally took the time to finalise this patch, following your
comments. Please find a debdiff attached. The prefix project already
uses this patch, in git.

  http://github.com/dimitri/prefix/tree/master/debian/

The debian/rules interesting part is now

include /usr/share/postgresql-common/pgxs_debian_control.mk

build: debian/control

install: build
        ...
	# build all supported version
	pg_buildext build $(SRCDIR) $(TARGET) "$(CFLAGS)"

	# then install each of them
	for v in `pg_buildext supported-versions $(SRCDIR)`; do \
		dh_install -ppostgresql-$$v-prefix ;\
	done

As a packager you still have to provide the per package .{install,dirs}
files, but you don't have to edit debian/rules to add support for a new
PostgreSQL major version, and more importantly, you don't have to edit
it when a major version is obsoleted by debian.

Regards,
-- 
dim

-------------- next part --------------
A non-text attachment was scrubbed...
Name: postgresql-server-dev-all.105.patch
Type: text/x-diff
Size: 4866 bytes
Desc: postgresql-server-dev-all
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20100308/9e84cbd5/attachment.patch>


More information about the Pkg-postgresql-public mailing list