diff --git a/recipes-ros/geometry/geometry.inc b/recipes-ros/geometry/geometry.inc
index 7ee18eb59eddb41c581e72987fd2941602674aac..c3bf67aef883ad7930c4f21f91c6dc2e18b13019 100644
--- a/recipes-ros/geometry/geometry.inc
+++ b/recipes-ros/geometry/geometry.inc
@@ -2,8 +2,6 @@ SRC_URI = "https://github.com/ros/${ROS_SPN}/archive/${PV}.tar.gz;downloadfilena
 SRC_URI[md5sum] = "32fd3bf4e85fdbf40a391daf32a8a91b"
 SRC_URI[sha256sum] = "8b0341d39391abfec2b3f72dad2ec0ce8c37bd4443822322a64eacb36f0ce7b6"
 
-SRC_URI += "file://0001-rostest-is-optional.patch;striplevel=2"
-
 S = "${WORKDIR}/${ROS_SP}/${ROS_BPN}"
 
 inherit catkin
diff --git a/recipes-ros/geometry/tf_1.10.6.bb b/recipes-ros/geometry/tf_1.10.6.bb
index 1d12e6a7f61d8e456fecb11d543fd0c9194ebea5..a02855cd97d7970461ab59c223ab18e9dc3035c2 100644
--- a/recipes-ros/geometry/tf_1.10.6.bb
+++ b/recipes-ros/geometry/tf_1.10.6.bb
@@ -6,3 +6,5 @@ LIC_FILES_CHKSUM = "file://package.xml;beginline=18;endline=18;md5=d566ef916e9de
 DEPENDS = "angles geometry-msgs message-filters sensor-msgs tf2-ros"
 
 require geometry.inc
+
+SRC_URI += "file://0001-rostest-is-optional.patch;striplevel=2"