diff --git a/helpers/make-at-spi2-core b/helpers/make-at-spi2-core
index fef6d2ca22c0a8b9673a582323496fe0484c459c..b5f105cb52501070a9d81d8f8212dd16ac0a1160 100644
--- a/helpers/make-at-spi2-core
+++ b/helpers/make-at-spi2-core
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#    Copyright (C) 2020  Ruben Rodriguez <ruben@trisquel.info>
+#    Copyright (C) 2021  Ruben Rodriguez <ruben@trisquel.info>
 #
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
@@ -27,6 +27,10 @@ X-MATE-AutoRestart=true
 X-MATE-Autostart-Phase=Initialization
 EOF
 
+# This removes a circular build dependency
+sed '/gedit/d' -i debian/control
+rm debian/tests/gedit
+
 changelog "Enable on MATE"
 
 compile