Skip to contentSkip to conversation

ctags: Recipe cleanup

PATCH In review Robert Joslyn 2 participants 4 messages May 21, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ctags: Recipe cleanup

The configure script does not have a manpages option, resulting in a
warning:
ctags-5.9.20210502.0-r0 do_configure: QA Issue: ctags: invalid PACKAGECONFIG: manpages [invalid-packageconfig]

Since there does not seem to be any man pages or documentation related configuration options, remove the manpages class.

Remove commented code which looks like leftover debugging. The binary is installed as expected.

---
 meta-oe/recipes-devtools/ctags/ctags_5.9.20210502.0.bb | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
meta-oe/recipes-devtools/ctags/ctags_5.9.20210502.0.bb +1 -5
index aca0502db..c0ffe9be6 100644
@@ -12,14 +12,10 @@ HOMEPAGE = "https://ctags.io/"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
 
-inherit autotools-brokensep pkgconfig manpages
+inherit autotools-brokensep pkgconfig
 
 DEPENDS += "libxml2 jansson libyaml python3-docutils-native"
 SRCREV = "6df08b82d4845d1b9420d9268f24d5db16ee4480"
 SRC_URI = "git://github.com/universal-ctags/ctags"
 
 S = "${WORKDIR}/git"
-
-#do_install() {
-#    install -Dm 755 ${B}/ctags ${D}${bindir}/ctags
-#}
Signature · 1 line
2.26.3
#1 lore raw
Quoted 8 lines · Robert Joslyn

The configure script does not have a manpages option, resulting in a
warning:
ctags-5.9.20210502.0-r0 do_configure: QA Issue: ctags: invalid PACKAGECONFIG: manpages [invalid-packageconfig]

Since there does not seem to be any man pages or documentation related configuration options, remove the manpages class.

so it seems it will be using python-docutils for generating manpages ?

Quoted 37 lines

Remove commented code which looks like leftover debugging. The binary is installed as expected.

---
 meta-oe/recipes-devtools/ctags/ctags_5.9.20210502.0.bb | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
meta-oe/recipes-devtools/ctags/ctags_5.9.20210502.0.bb +1 -6
index aca0502db..c0ffe9be6 100644
@@ -12,14 +12,10 @@ HOMEPAGE = "https://ctags.io/"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
 
-inherit autotools-brokensep pkgconfig manpages
+inherit autotools-brokensep pkgconfig
 
 DEPENDS += "libxml2 jansson libyaml python3-docutils-native"
 SRCREV = "6df08b82d4845d1b9420d9268f24d5db16ee4480"
 SRC_URI = "git://github.com/universal-ctags/ctags"
 
 S = "${WORKDIR}/git"
-
-#do_install() {
-#    install -Dm 755 ${B}/ctags ${D}${bindir}/ctags
-#}
--

2.26.3

#2 lore raw
Quoted 10 lines · Khem Raj
Quoted 5 lines · Robert Joslyn

The configure script does not have a manpages option, resulting in a
warning:
ctags-5.9.20210502.0-r0 do_configure: QA Issue: ctags: invalid PACKAGECONFIG: manpages [invalid-packageconfig]

Quoted 5 lines
Quoted 3 lines

Since there does not seem to be any man pages or documentation related configuration options, remove the manpages class.

so it seems it will be using python-docutils for generating manpages ?

Yes, it uses rst2man.py, which is part of python3-docutils. It looks like the configure script checks for a few rst2man varieties to determine if it should generate the man pages or not.

Perhaps a better way to do this is to add the manpages class back, and pull in the dependency with:

PACKAGECONFIG[manpages] = “,,python3-docutils-native"

Thanks,
Robert

#3 lore raw
Quoted 15 lines · Robert Joslyn
Quoted 15 lines · Khem Raj
Quoted 8 lines · Robert Joslyn

The configure script does not have a manpages option, resulting in a
warning:
ctags-5.9.20210502.0-r0 do_configure: QA Issue: ctags: invalid PACKAGECONFIG: manpages [invalid-packageconfig]

Since there does not seem to be any man pages or documentation related configuration options, remove the manpages class.

Quoted 7 lines
Quoted 1 line

so it seems it will be using python-docutils for generating manpages ?

Yes, it uses rst2man.py, which is part of python3-docutils. It looks like the configure script checks for a few rst2man varieties to determine if it should generate the man pages or not.

Perhaps a better way to do this is to add the manpages class back, and pull in the dependency with:

PACKAGECONFIG[manpages] = “,,python3-docutils-native"

perhaps that might be a better approach

Quoted 3 lines

Thanks,
Robert