postgresql-9.x: remove binary from .dsc so autopkgtest doesn't see it
authorChristoph Berg <myon@debian.org>
Thu, 2 May 2024 08:47:49 +0000 (10:47 +0200)
committerChristoph Berg <myon@debian.org>
Thu, 2 May 2024 08:47:49 +0000 (10:47 +0200)
jenkins/generate-pgdg-source

index 1164b53400014b3275c7ac43bd7c39d1754a712e..151b1cd5448ced1ba8eb9e6ab4900bd1f0cb0095 100755 (executable)
@@ -3,7 +3,7 @@
 # The MIT License
 #
 # Copyright (c) 2011,2012 by Michael Prokop <mika@debian.org>
-# Copyright (c) 2012-2023 by Christoph Berg <myon@debian.org>
+# Copyright (c) 2012-2024 by Christoph Berg <myon@debian.org>
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the "Software"), to deal
@@ -199,6 +199,16 @@ case $PACKAGE in
     esac
     ;;
 esac
+case $PACKAGE in
+  postgresql-9.[1-6])
+    case $distribution in noble)
+      # remove binary from .dsc so autopkgtest doesn't see it (package still needs -Pnopython to build)
+      perl -i -000 -ne "print unless /^Package: postgresql-plpython3/m" debian/control
+      TWEAK+=("Disable plpython3 package, incompatible with Python 3.12.")
+      ;;
+    esac
+    ;;
+esac
 case $PACKAGE in
   postgresql-8.?|postgresql-9.?|postgresql-[1-7]?)
     case $distribution in bookworm|bullseye|buster|jammy|focal)