diff --git a/cabal-debian.cabal b/cabal-debian.cabal
--- a/cabal-debian.cabal
+++ b/cabal-debian.cabal
@@ -1,7 +1,7 @@
 cabal-version:  3.0
 Name:           cabal-debian
-Version:        5.2.1
-Copyright:      Copyright (c) 2007-2014, David Fox, Jeremy Shaw; 2017-2022 Clint Adams
+Version:        5.2.2
+Copyright:      Copyright (c) 2007-2014, David Fox, Jeremy Shaw; 2017-2023 Clint Adams
 License:        BSD-3-Clause
 License-File:   LICENSE
 Author:         David Fox <dsf@seereason.com>
@@ -144,7 +144,7 @@
   test-data/artvaluereport2/output/debian/artvaluereport2-backups.install
   test-data/artvaluereport2/output/debian/copyright
   test-data/artvaluereport2/output/debian/source/format
-Tested-With: GHC ==9.2.3 || ==9.0.2 || ==8.10.7 || ==8.8.4
+Tested-With: GHC ==9.6.2 || ==9.4.7 || ==9.2.8 || ==9.0.2 || ==8.10.7
 
 Source-Repository head
   type: git
@@ -181,7 +181,7 @@
     unix,
     unliftio >= 0.2.8.0,
     utf8-string,
-    optparse-applicative >= 0.11,
+    optparse-applicative >= 0.11 && < 0.18,
     ansi-wl-pprint == 0.6.*,
     debian >= 3.95
   Exposed-Modules:
diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -73,7 +73,9 @@
  libghc-syb-doc,
  libghc-utf8-string-doc,
 Standards-Version: 3.9.6
-Homepage: https://github.com/ddssff/cabal-debian
+Homepage: https://tracker.debian.org/pkg/cabal-debian
+Vcs-Browser: https://github.com/clinty/cabal-debian
+Vcs-Git: https://github.com/clinty/cabal-debian.git
 X-Description: Create a Debianization for a Cabal package
  This package supports the generation of a package Debianization (i.e.
  the files in the @debian@ subdirectory) for a cabal package,
diff --git a/src/Debian/Debianize/InputCabal.hs b/src/Debian/Debianize/InputCabal.hs
--- a/src/Debian/Debianize/InputCabal.hs
+++ b/src/Debian/Debianize/InputCabal.hs
@@ -20,7 +20,11 @@
 import Distribution.Package (Package(packageId))
 import Distribution.PackageDescription as Cabal (PackageDescription)
 import Distribution.PackageDescription.Configuration (finalizePD)
+#if MIN_VERSION_Cabal(3,8,1)
+import Distribution.Simple.PackageDescription (readGenericPackageDescription)
+#else
 import Distribution.PackageDescription.Parsec (readGenericPackageDescription)
+#endif
 import Distribution.Types.ComponentRequestedSpec (ComponentRequestedSpec(ComponentRequestedSpec))
 import Distribution.Simple.Utils (defaultPackageDesc, die', setupMessage)
 import Distribution.System as Cabal (buildArch, Platform(..))
diff --git a/src/Debian/Orphans.hs b/src/Debian/Orphans.hs
--- a/src/Debian/Orphans.hs
+++ b/src/Debian/Orphans.hs
@@ -34,16 +34,24 @@
 deriving instance Data Compiler
 deriving instance Data CompilerId
 
+#if !MIN_VERSION_Cabal(3,10,1)
 deriving instance Ord Language
+#endif
 deriving instance Ord Compiler
 deriving instance Ord NameAddr
+#if !MIN_VERSION_Cabal(3,10,1)
 deriving instance Ord License
+#endif
 
+#if !MIN_VERSION_Cabal(3,10,1)
 instance Ord Executable where
     compare = compare `on` exeName
+#endif
 
+#if !MIN_VERSION_Cabal(3,8,1)
 instance Ord PackageDescription where
     compare = compare `on` package
+#endif
 
 dropPrefix :: String -> String -> Maybe String
 dropPrefix p s = if isPrefixOf p s then Just (drop (length p) s) else Nothing
