diff options
| author | Peter Marko <peter.marko@siemens.com> | 2024-06-25 10:11:48 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-07-12 05:47:20 -0700 |
| commit | 219e85cc07a8d7d6d0c01f6d9e88eb658be6899b (patch) | |
| tree | 7c6ad3dee3c865a8a97d708b8f686f11247583b0 | |
| parent | b02ed677ce262e46ea46c41e562d2b9614147bda (diff) | |
| download | poky-219e85cc07a8d7d6d0c01f6d9e88eb658be6899b.tar.gz | |
flac: fix buildpaths warnings
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.
(From OE-Core rev: 860d4d6b54f61342f925ea522f9962555ae5d8ac)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c7d826c88933d53d550265f1cc382539c5c52994)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/recipes-multimedia/flac/flac_1.4.3.bb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/flac/flac_1.4.3.bb b/meta/recipes-multimedia/flac/flac_1.4.3.bb index d4e463cda5..87b67bee1f 100644 --- a/meta/recipes-multimedia/flac/flac_1.4.3.bb +++ b/meta/recipes-multimedia/flac/flac_1.4.3.bb | |||
| @@ -34,3 +34,10 @@ PACKAGES += "libflac libflac++" | |||
| 34 | FILES:${PN} = "${bindir}/*" | 34 | FILES:${PN} = "${bindir}/*" |
| 35 | FILES:libflac = "${libdir}/libFLAC.so.*" | 35 | FILES:libflac = "${libdir}/libFLAC.so.*" |
| 36 | FILES:libflac++ = "${libdir}/libFLAC++.so.*" | 36 | FILES:libflac++ = "${libdir}/libFLAC++.so.*" |
| 37 | |||
| 38 | do_install:append() { | ||
| 39 | # make the links in documentation relative to avoid buildpaths reproducibility problem | ||
| 40 | sed -i "s#${S}/include#${includedir}#g" ${D}${docdir}/flac/FLAC.tag ${D}${docdir}/flac/api/*.html | ||
| 41 | # there is also one root path without trailing slash | ||
| 42 | sed -i "s#${S}#/#g" ${D}${docdir}/flac/api/*.html | ||
| 43 | } | ||
