Skip to contentSkip to conversation

checksec: add missing rdepends to readelf

PATCH New Armin Kuster 1 participant 1 message Oct 15, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checksec: add missing rdepends to readelf

update test to check for depends

---
 lib/oeqa/runtime/cases/checksec.py          | 1 +
 recipes-security/checksec/checksec_2.1.0.bb | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
lib/oeqa/runtime/cases/checksec.py +1 -0
index ff6d2f3..e46744c 100644
@@ -24,6 +24,7 @@ class CheckSecTest(OERuntimeTestCase):
         self.assertEqual(status, 0, msg = msg)
 
     @OETestDepends(['checksec.CheckSecTest.test_checksec_xml'])
+    @OEHasPackage(['binutils'])
     def test_checksec_fortify(self):
         status, output = self.target.run('checksec --fortify-proc 1')
         match = re.search('FORTIFY_SOURCE support:', output)
recipes-security/checksec/checksec_2.1.0.bb +1 -1
index 5c6528e..b67c98b 100644
@@ -16,4 +16,4 @@ do_install() {
     install -m 0755 ${S}/checksec ${D}${bindir}
 }
 
-RDEPENDS_${PN} = "bash openssl-bin"
+RDEPENDS_${PN} = "bash openssl-bin binutils"
Signature · 1 line
2.17.1