2023. 07. 24. 16:03 keltezéssel, Alexander Kanavin írta:
On Mon, 24 Jul 2023 at 16:02, Alexander Kanavin <[email protected]> wrote:
+        sed -i \
+            -e "s:^%_lib\t.*$:%_lib\t${baselib}:" \
+            -e "s:^%_libdir\t.*$:%_libdir\t${libdir}:" \
+            ${D}${prefix}/lib/rpm/platform/${MACHINE_ARCH}-linux/macros
Can this be refactored to avoid sed please? This is both difficult or
impossible to understand, and is prone to silent regressions.
What I mean is, can the file be generated in the first place with the
correct values?

I'll rework it using a template file.
Still, sed would be used, but in a more readable fashion.

Will this work for you?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#184794): 
https://lists.openembedded.org/g/openembedded-core/message/184794
Mute This Topic: https://lists.openembedded.org/mt/100328070/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to