Skip to contentSkip to conversation

yasm: Only depend on xmlto when docs are enabled

PATCH In review Mike Crowe 2 participants 4 messages Aug 24, 2022

lore
Share & tools
lore

Mike Crowe

author
#0 lore raw

PATCH 1/1 yasm: Only depend on xmlto when docs are enabled

The yasm build system only requires xmlto when building its documentation. It automatically detects whether it is present at configure time.

---
 meta-oe/recipes-devtools/yasm/yasm_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-devtools/yasm/yasm_git.bb +2 -1
index 044fcbea7..3dd382be1 100644
@@ -4,7 +4,8 @@ HOMEPAGE = "http://www.tortall.net/projects/yasm/"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=a12d8903508fb6bfd49d8d82c6170dd9"
 
-DEPENDS += "flex-native bison-native xmlto-native"
+DEPENDS += "flex-native bison-native"
+PACKAGECONFIG[docs] = ",,xmlto-native,"
 
 PV = "1.3.0+git${SRCPV}"
 # v1.3.0
Signature · 1 line
2.30.2
#1 lore raw
Quoted 3 lines · Mike Crowe via lists.openembedded.org

The yasm build system only requires xmlto when building its documentation. It automatically detects whether it is present at configure time.

Does it also detect it from build machine ?
Perhaps better to turn the knob on and off explicitly as well for determinism

Quoted 37 lines
---
 meta-oe/recipes-devtools/yasm/yasm_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-devtools/yasm/yasm_git.bb +2 -2
index 044fcbea7..3dd382be1 100644
@@ -4,7 +4,8 @@ HOMEPAGE = "http://www.tortall.net/projects/yasm/"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=a12d8903508fb6bfd49d8d82c6170dd9"
 
-DEPENDS += "flex-native bison-native xmlto-native"
+DEPENDS += "flex-native bison-native"
+PACKAGECONFIG[docs] = ",,xmlto-native,"
 
 PV = "1.3.0+git${SRCPV}"
 # v1.3.0
--

2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#98418):
https://lists.openembedded.org/g/openembedded-devel/message/98418
Mute This Topic: https://lists.openembedded.org/mt/93229252/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#2 lore raw
Quoted 9 lines · Khem Raj
Quoted 3 lines · Mike Crowe via lists.openembedded.org

The yasm build system only requires xmlto when building its documentation. It automatically detects whether it is present at configure time.

Does it also detect it from build machine ?

No, because of the recipe-specific sysroot it can't see my system version of xmlto.

I have xmlto installed, yet log.do_configure contains:

checking for xmlto... no
configure: WARNING: xmlto not found, manpages will not be rebuilt.

Quoted 2 lines

Perhaps better to turn the knob on and off explicitly as well for determinism

I couldn't find a --disable-doc/--without-xmlto knob otherwise I would have done. :(

Or did you mean that I should explicitly set ac_cv_prog_XMLTO with something like:

PACKAGECONFIG[docs] = ",ac_cv_prog_XMLTO='',xmlto-native,"

?

Thanks.

Mike.

#3 lore raw
Quoted 12 lines · Mike Crowe
Quoted 1 line · Khem Raj

On Wed, Aug 24, 2022 at 8:35 AM Mike Crowe via lists.openembedded.org

<mac=

Quoted 8 lines
Quoted 3 lines · [email protected]> wrote:

The yasm build system only requires xmlto when building its documentation. It automatically detects whether it is present at configure time.

Does it also detect it from build machine ?

Quoted 7 lines

No, because of the recipe-specific sysroot it can't see my system version of xmlto.

I have xmlto installed, yet log.do_configure contains:

checking for xmlto... no
configure: WARNING: xmlto not found, manpages will not be rebuilt.

That’s partly due to HOSTTOOLS now hiding majority of build system tools

Quoted 6 lines
Quoted 3 lines

Perhaps better to turn the knob on and off explicitly as well for determinism

I couldn't find a --disable-doc/--without-xmlto knob otherwise I would have done. :(

Ok I think it’s fine as it is since someone would have to explicitly add xmlto to HOSTTOOLS to cause the issue

Quoted 12 lines

Or did you mean that I should explicitly set ac_cv_prog_XMLTO with something like:

PACKAGECONFIG[docs] = ",ac_cv_prog_XMLTO='',xmlto-native,"

?

Thanks.

Mike.