Skip to contentSkip to conversation

dev-manual/new-recipe.rst: update code snippet from sed recipe

PATCH Applied Robert P. J. Day 2 participants 2 messages Oct 31, 2025 – Nov 26, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dev-manual/new-recipe.rst: update code snippet from sed recipe

Update the snippet from OE-Core's sed recipe; might as well keep up to date.

---

documentation/dev-manual/new-recipe.rst +4 -2
index aa4fb97a4..30cc27248 100644
@@ -1461,8 +1461,10 @@ chapter of the BitBake User Manual.
       do_install () {
           autotools_do_install
           install -d ${D}${base_bindir}
-          mv ${D}${bindir}/sed ${D}${base_bindir}/sed
-          rmdir ${D}${bindir}/
+          if [ ! ${D}${bindir} -ef ${D}${base_bindir} ]; then
+              mv ${D}${bindir}/sed ${D}${base_bindir}/sed
+              rmdir ${D}${bindir}/
+          fi
       }
 
    It is
#1 lore raw
Quoted 4 lines · Robert P. J. Day

Update the snippet from OE-Core's sed recipe; might as well keep up to date.

Applied, thanks!

[1/1] dev-manual/new-recipe.rst: update code snippet from sed recipe

      commit: 5fd18b4c49a297b429c14daca4038b6ad438037b

Best regards,