Add PG_VERSIONS and PG_ALL_VERSIONS variables
authorChristoph Berg <myon@debian.org>
Mon, 12 Jun 2023 12:23:20 +0000 (14:23 +0200)
committerChristoph Berg <myon@debian.org>
Mon, 12 Jun 2023 12:23:20 +0000 (14:23 +0200)
README.md
pgapt.conf

index 8682510dfaed7fe35b79eb7326ebab69632c2dee..795e91d135c916d80eddde760e198d182faaacd3 100644 (file)
--- a/README.md
+++ b/README.md
@@ -71,9 +71,9 @@ Update repository master host:
 
 * cd /srv/apt; sudo -u aptuser git pull
 * Seed initial packages:
-  * for pkg in postgresql-common pgdg-buildenv postgresql-x.y; do \
-      reprepro copysrc $newdist-pgdg-testing $olddist-pgdg-testing $pkg; \
-    done
+  * reprepro copysrc $newdist-pgdg-testing $olddist-pgdg-testing postgresql-common
+    reprepro copysrc $newdist-pgdg-testing $olddist-pgdg-testing pgdg-buildenv
+    for version in $PG_ALL_VERSIONS; do reprepro copysrc $newdist-pgdg-testing $olddist-pgdg-testing postgresql-$version; done
   * make sure to copy from a distribution that has all the target architectures (even if the package is arch:all, #926233)
 * reprepro export $newdist-pgdg (so apt can run update on it even if it's still empty)
 * (possibly: reprepro copymatched $newdist-pgdg $newdist-pgdg-testing \*)
index 1f0149b799a9a7bcbcc1877eb02e50f1cb60baa9..5787553d9b189ffda2e262b7dd8fd46426638a2e 100644 (file)
@@ -3,6 +3,8 @@ PG_OLDEST_VERSION=9.6
 PG_MAIN_VERSION=15
 #PG_BETA_VERSION=15
 PG_DEVEL_VERSION=16
+PG_VERSIONS="10 11 12 13 14 15 16" # supported in /usr/share/postgresql-common/supported-versions (what we build extensions for)
+PG_ALL_VERSIONS="8.2 8.3 8.4 9.0 9.1 9.2 9.3 9.4 9.5 9.6 $PG_VERSIONS" # all versions (which server packages we build on LTS dists)
 # supported dists: actively updated
 PG_SUPPORTED_DISTS="sid trixie bookworm bullseye buster \
 lunar kinetic jammy focal bionic"
@@ -14,32 +16,33 @@ PG_ARCHIVE_DISTS="sid trixie bookworm bullseye buster stretch jessie wheezy sque
 lunar kinetic jammy impish hirsute groovy focal eoan disco cosmic bionic zesty xenial wily utopic saucy precise lucid"
 
 set_dist_vars () { # args: $1 = distribution [$2 = architecture]
+  COMPONENTS="main $PG_ALL_VERSIONS"
   HAS_BACKPORTS=""
   case $1 in
     # Debian
-    sid)      PGDG_TAG=""      DISTRO="debian" RELEASE="unstable"              ARCHS="amd64 arm64 i386 ppc64el s390x" COMPONENTS="main 8.2 8.3 8.4 9.0 9.1 9.2 9.3 9.4 9.5 9.6 10 11 12 13 14 15 16" ;;
-    trixie)   PGDG_TAG="130"   DISTRO="debian" RELEASE="13"                    ARCHS="amd64 arm64      ppc64el s390x" COMPONENTS="main 8.2 8.3 8.4 9.0 9.1 9.2 9.3 9.4 9.5 9.6 10 11 12 13 14 15 16" ;;
-    bookworm) PGDG_TAG="120"   DISTRO="debian" RELEASE="12"                    ARCHS="amd64 arm64      ppc64el s390x" COMPONENTS="main 8.2 8.3 8.4 9.0 9.1 9.2 9.3 9.4 9.5 9.6 10 11 12 13 14 15 16" ;;
-    bullseye) PGDG_TAG="110"   DISTRO="debian" RELEASE="11"                    ARCHS="amd64 arm64      ppc64el s390x" COMPONENTS="main 8.2 8.3 8.4 9.0 9.1 9.2 9.3 9.4 9.5 9.6 10 11 12 13 14 15 16" ;;
-    buster)   PGDG_TAG="100"   DISTRO="debian" RELEASE="10"    HAS_BACKPORTS=1 ARCHS="amd64 arm64 i386 ppc64el s390x" COMPONENTS="main 8.2 8.3 8.4 9.0 9.1 9.2 9.3 9.4 9.5 9.6 10 11 12 13 14 15 16" ;;
-    stretch)  PGDG_TAG="90"    DISTRO="debian" RELEASE="9"     HAS_BACKPORTS=1 ARCHS="amd64       i386 ppc64el"       COMPONENTS="main 8.2 8.3 8.4 9.0 9.1 9.2 9.3 9.4 9.5 9.6 10 11 12 13 14 15 16" ;;
+    sid)      PGDG_TAG=""      DISTRO="debian" RELEASE="unstable"              ARCHS="amd64 arm64 i386 ppc64el s390x" ;;
+    trixie)   PGDG_TAG="130"   DISTRO="debian" RELEASE="13"                    ARCHS="amd64 arm64      ppc64el s390x" ;;
+    bookworm) PGDG_TAG="120"   DISTRO="debian" RELEASE="12"                    ARCHS="amd64 arm64      ppc64el s390x" ;;
+    bullseye) PGDG_TAG="110"   DISTRO="debian" RELEASE="11"                    ARCHS="amd64 arm64      ppc64el s390x" ;;
+    buster)   PGDG_TAG="100"   DISTRO="debian" RELEASE="10"    HAS_BACKPORTS=1 ARCHS="amd64 arm64 i386 ppc64el s390x" ;;
+    stretch)  PGDG_TAG="90"    DISTRO="debian" RELEASE="9"     HAS_BACKPORTS=1 ARCHS="amd64       i386 ppc64el"       ;;
     jessie)   PGDG_TAG="80"    DISTRO="debian" RELEASE="8"                     ARCHS="amd64       i386 ppc64el"       COMPONENTS="main         8.4 9.0 9.1 9.2 9.3 9.4 9.5 9.6 10 11 12" ;;
     wheezy)   PGDG_TAG="70"    DISTRO="debian" RELEASE="7"                     ARCHS="amd64       i386"               COMPONENTS="main 8.2 8.3 8.4 9.0 9.1 9.2 9.3 9.4 9.5 9.6 10" ;;
     squeeze)  PGDG_TAG="60"    DISTRO="debian" RELEASE="6.0" ;;
     lenny)    PGDG_TAG="50"    DISTRO="debian" RELEASE="5.0" ;;
     etch)     PGDG_TAG="40"    DISTRO="debian" RELEASE="4.1" ;;
     # Ubuntu
-    lunar)    PGDG_TAG="23.04" DISTRO="ubuntu" RELEASE="23.04"                 ARCHS="amd64"                          COMPONENTS="main                                         10 11 12 13 14 15 16" ;;
-    kinetic)  PGDG_TAG="22.10" DISTRO="ubuntu" RELEASE="22.10"                 ARCHS="amd64"                          COMPONENTS="main                                         10 11 12 13 14 15 16" ;;
-    jammy)    PGDG_TAG="22.04" DISTRO="ubuntu" RELEASE="22.04"                 ARCHS="amd64 arm64      ppc64el s390x" COMPONENTS="main 8.2 8.3 8.4 9.0 9.1 9.2 9.3 9.4 9.5 9.6 10 11 12 13 14 15 16" ;;
+    lunar)    PGDG_TAG="23.04" DISTRO="ubuntu" RELEASE="23.04"                 ARCHS="amd64"                          COMPONENTS="main $PG_VERSIONS" ;;
+    kinetic)  PGDG_TAG="22.10" DISTRO="ubuntu" RELEASE="22.10"                 ARCHS="amd64"                          COMPONENTS="main $PG_VERSIONS" ;;
+    jammy)    PGDG_TAG="22.04" DISTRO="ubuntu" RELEASE="22.04"                 ARCHS="amd64 arm64      ppc64el s390x" ;;
     impish)   PGDG_TAG="21.10" DISTRO="ubuntu" RELEASE="21.10"                 ARCHS="amd64"                          COMPONENTS="main                                     9.6 10 11 12 13 14 15 16" ;;
     hirsute)  PGDG_TAG="21.04" DISTRO="ubuntu" RELEASE="21.04"                 ARCHS="amd64"                          COMPONENTS="main                                     9.6 10 11 12 13 14" ;;
     groovy)   PGDG_TAG="20.10" DISTRO="ubuntu" RELEASE="20.10"                 ARCHS="amd64"                          COMPONENTS="main                                 9.5 9.6 10 11 12 13" ;;
-    focal)    PGDG_TAG="20.04" DISTRO="ubuntu" RELEASE="20.04" HAS_BACKPORTS=1 ARCHS="amd64 arm64      ppc64el s390x" COMPONENTS="main 8.2 8.3 8.4 9.0 9.1 9.2 9.3 9.4 9.5 9.6 10 11 12 13 14 15 16" ;;
+    focal)    PGDG_TAG="20.04" DISTRO="ubuntu" RELEASE="20.04" HAS_BACKPORTS=1 ARCHS="amd64 arm64      ppc64el s390x" ;;
     eoan)     PGDG_TAG="19.10" DISTRO="ubuntu" RELEASE="19.10"                 ARCHS="amd64"                          COMPONENTS="main                             9.4 9.5 9.6 10 11 12" ;;
     disco)    PGDG_TAG="19.04" DISTRO="ubuntu" RELEASE="19.04"                 ARCHS="amd64"                          COMPONENTS="main                             9.4 9.5 9.6 10 11 12" ;;
     cosmic)   PGDG_TAG="18.10" DISTRO="ubuntu" RELEASE="18.10" ;;
-    bionic)   PGDG_TAG="18.04" DISTRO="ubuntu" RELEASE="18.04" HAS_BACKPORTS=1 ARCHS="amd64 arm64 i386 ppc64el"       COMPONENTS="main 8.2 8.3 8.4 9.0 9.1 9.2 9.3 9.4 9.5 9.6 10 11 12 13 14 15 16" ;;
+    bionic)   PGDG_TAG="18.04" DISTRO="ubuntu" RELEASE="18.04" HAS_BACKPORTS=1 ARCHS="amd64 arm64 i386 ppc64el"       ;;
     zesty)    PGDG_TAG="17.04" DISTRO="ubuntu" RELEASE="17.04" HAS_BACKPORTS=1 ;;
     xenial)   PGDG_TAG="16.04" DISTRO="ubuntu" RELEASE="16.04" HAS_BACKPORTS=1 ARCHS="amd64       i386 ppc64el"       COMPONENTS="main 8.2 8.3 8.4 9.0 9.1 9.2 9.3 9.4 9.5 9.6 10 11 12 13" ;;
     wily)     PGDG_TAG="15.10" DISTRO="ubuntu" RELEASE="15.10" HAS_BACKPORTS=1 ;;