Skip to contentSkip to conversation

recipe-devtools/rpm: Add PACKAGECONFIG for tomcrypt and disable by default

PATCH New Aníbal Limón 1 participant 1 message Apr 20, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recipe-devtools/rpm: Add PACKAGECONFIG for tomcrypt and disable by default

When try to build rpm-native if configure detects the ability of tomcrypt library it suppose that tommath library is available causing a failure on configure.

configure:54156: checking for magic_open in -lmagic .... gcc compile long line trying to link to -ltommath .... /usr/bin/ld: cannot find -ltommath
collect2: error: ld returned 1 exit status

Since tomcrypt is an optional feature add a PACKAGECONFIG for it and disable by default.

---
 meta/recipes-devtools/rpm/rpm_5.4.16.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-devtools/rpm/rpm_5.4.16.bb +2 -0
index cbdca88..b804213 100644
@@ -302,6 +302,8 @@ PACKAGECONFIG[tcl] = "--with-tcl,--without-tcl,tcl,"
 
 PACKAGECONFIG[augeas] = "--with-augeas,--without-augeas,augeas,"
 
+PACKAGECONFIG[tomcrypt] = "--with-tomcrypt=yes,--with-tomcrypt=no,,"
+
 EXTRA_OECONF += "--verbose \
 		--sysconfdir=${sysconfdir} \
 		--with-file \
Signature · 1 line
2.1.4