Open ngenetzky-appareo opened 1 year ago
Mentioning the author in the commit that added the logic.
CC: @hnez
commit 2d3933a18413548d15b7c3160df4195fe982a4c1
Author: Leonard Göhrs <l.goehrs@pengutronix.de>
Date: Mon May 9 08:58:31 2022 +0200
python3-xmodem: add post install hook to move docs to correct location
Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
diff --git a/recipes-backport/python/python3-xmodem_0.4.6.bb b/recipes-backport/python/python3-xmodem_0.4.6.bb
index 9d722b8..d89aabd 100644
--- a/recipes-backport/python/python3-xmodem_0.4.6.bb
+++ b/recipes-backport/python/python3-xmodem_0.4.6.bb
@@ -12,3 +12,11 @@ RDEPENDS:${PN} += " \
"
BBCLASSEXTEND = "native nativesdk"
+
+do_install:append() {
+ # Move the documentation files to the expected location so they are
+ # packaged in the *-docs package.
+ mkdir -p ${D}${docdir}/
+ mv ${D}/usr/doc/* ${D}${docdir}/
+ rmdir ${D}/usr/doc
+}
do_install:append
?
The following packaging logic from python3-xmodem is causing an error when used with kirkstone layer. It appears that is logic is on longer required as we can see the correct files are installed in the correct locations (rather than in "${D}/usr/doc/").
Here is the error that is produced:
We can see that the correct files are installed: