]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
flac: fix buildpaths warnings
authorPeter Marko <peter.marko@siemens.com>
Tue, 25 Jun 2024 08:11:48 +0000 (10:11 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Jul 2024 21:29:10 +0000 (22:29 +0100)
Generated documentation (html) contain absolute paths cources
using buildpaths warnings.
Replace them with relative links.

The file with root path to sources is in my build
/usr/share/doc/flac/api/dir_c122f5d6544f32779f55e8358fb78605.html
which does not looks as stable name, so replace it in all files.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-multimedia/flac/flac_1.4.3.bb

index d4e463cda5efa2b27f5f847ec39b017f91d7eb14..87b67bee1fb375134751e492e20ed28639a05e97 100644 (file)
@@ -34,3 +34,10 @@ PACKAGES += "libflac libflac++"
 FILES:${PN} = "${bindir}/*"
 FILES:libflac = "${libdir}/libFLAC.so.*"
 FILES:libflac++ = "${libdir}/libFLAC++.so.*"
+
+do_install:append() {
+    # make the links in documentation relative to avoid buildpaths reproducibility problem
+    sed -i "s#${S}/include#${includedir}#g" ${D}${docdir}/flac/FLAC.tag ${D}${docdir}/flac/api/*.html
+    # there is also one root path without trailing slash
+    sed -i "s#${S}#/#g" ${D}${docdir}/flac/api/*.html
+}