From 004cd98bfa61141e4797f1dbb67e4c250d292b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= Date: Thu, 5 Sep 2024 00:30:43 +0000 Subject: [PATCH] postgresql-common: update patch for postgres build. --- .../supported-versions-trisquel.patch | 60 ++++++++++--------- helpers/make-postgresql-common | 5 +- 2 files changed, 34 insertions(+), 31 deletions(-) diff --git a/helpers/DATA/postgresql-common/supported-versions-trisquel.patch b/helpers/DATA/postgresql-common/supported-versions-trisquel.patch index ce88977..0ef32e0 100644 --- a/helpers/DATA/postgresql-common/supported-versions-trisquel.patch +++ b/helpers/DATA/postgresql-common/supported-versions-trisquel.patch @@ -1,52 +1,54 @@ ---- debian/supported-versions.orig 2016-03-29 04:53:13.000000000 -0400 -+++ debian/supported-versions 2017-02-10 14:20:08.503521825 -0500 -@@ -55,9 +55,12 @@ - +diff --git a/debian/supported-versions b/tmp/supported-versions +index 9edb220..6d16f58 100755 +--- a/debian/supported-versions ++++ b/debian/supported-versions +@@ -48,6 +48,9 @@ DEFAULT="16" default() { - case "$DISTRO" in + . /etc/os-release + case "$ID" in + [tT]risquel) -+ trisquel "$RELEASE" ++ trisquel + ;; [uU]buntu) - ubuntu "$RELEASE" + ubuntu ;; - [dD]ebian) - debian "$RELEASE" - ;; -@@ -76,6 +82,36 @@ +@@ -56,7 +59,10 @@ default() { ;; + *) + echo "supported-versions: WARNING! Unknown distribution ID in /etc/os-release: $ID" >&2 +- if echo $ID_LIKE | grep -E '(^| )ubuntu($| )' > /dev/null; then ++ if echo $ID_LIKE | grep -E '(^| )trisquel($| )' > /dev/null; then ++ echo "trisqueln found in ID_LIKE, treating as Trisquel" >&2 ++ trisquel ++ elif echo $ID_LIKE | grep -E '(^| )ubuntu($| )' > /dev/null; then + echo "ubuntu found in ID_LIKE, treating as Ubuntu" >&2 + ubuntu + elif echo $ID_LIKE | grep -E '(^| )debian($| )' > /dev/null; then +@@ -76,6 +76,27 @@ default() { esac } -+ + +trisquel() { + case "$1" in -+ 4.0*) # Taranis -+ /bin/echo -e "8.4" -+ ;; -+ 6.0*) # Toutatis -+ /bin/echo -e "9.1" -+ ;; -+ 7.0*) # Belenos -+ /bin/echo -e "9.3" -+ ;; -+ 8.0*) # Flidas -+ /bin/echo -e "9.5" -+ ;; -+ 9.0*) # Etiona -+ /bin/echo -e "10" -+ ;; + 10.0*) # Nabia + /bin/echo -e "12" + ;; + 11.0*) # Aramo + /bin/echo -e "14" + ;; ++ 12.0*) # Ecne ++ /bin/echo -e "16" ++ ;; + *) + echo "supported_versions: WARNING: Unknown Trisquel release: $1" >&2 + /bin/echo -e "$DEFAULT" + ;; + esac +} - ++ ++trisquel() { ++ echo "$DEFAULT" ++} ubuntu() { - case "$1" in + echo "$DEFAULT" + } diff --git a/helpers/make-postgresql-common b/helpers/make-postgresql-common index f824246..1862a02 100644 --- a/helpers/make-postgresql-common +++ b/helpers/make-postgresql-common @@ -17,11 +17,12 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=1 +VERSION=2 . ./config -patch --no-backup-if-mismatch -p0 < $DATA/supported-versions-trisquel.patch +# Update patch for supported version. +patch_p1 $DATA/supported-versions-trisquel.patch changelog "Imported into Trisquel"