[Pkg-postgresql-public] Bug#761020: postgresql-common: please use ID_LIKE from os-release to support unknown derivatives

peter green plugwash at p10link.net
Wed Sep 10 00:12:43 UTC 2014


Package: postgresql-common
Version: 160

While troubleshooting a build failure of postgis on raspbian I 
discovered /usr/share/postgresql-common/supported-versions was returning 
9.3. Further investigation showed that the script was failling to 
identify the distribution and falling back to an apparently unmaintained 
default.

/etc/os-release provides ID_LIKE for specifically this kind of scenario. 
It shows what distros a system was derived from. The general assumption 
is that if a deriviative is unknown it should be treated like the distro 
it is derived from.

The attatched patch makes 
/usr/share/postgresql-common/supported-versions check ID_LIKE for ubuntu 
and debian and use the settings for ubuntu or debian as appropriate in 
this case, Note: the script checks for ubuntu before checking for 
debian, this is important as ubuntu and it's derivatives will have both 
debian and ubuntu in ID_LIKE

Debdiff attatched and uploaded to raspbian, no intent to NMU in debian.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: postgresql-common.debdiff
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20140910/c63ca75c/attachment.ksh>


More information about the Pkg-postgresql-public mailing list