Thanks, I have dropped the patch.

Alex

On Sun, 2 Jan 2022 at 17:30, Alexander Kanavin via lists.openembedded.org
<[email protected]> wrote:

> Right, I'll take a closer look at this.
>
> Alex
>
> On Sun, 2 Jan 2022 at 13:40, Matt Madison <[email protected]> wrote:
>
>> On Sat, Jan 1, 2022 at 3:30 AM Alexander Kanavin <[email protected]>
>> wrote:
>> >
>> > This cannot be right: what we install for the target should not
>> > depend on what host it's being built on. If this was fixing
>> > some problem, there needs to be a different solution.
>>
>> IIRC, I added this because the go toolchain doesn't really do
>> host/target separation like gcc does. The runtime packages for both
>> host and target get populated during the compilation, and if the
>> target architecture matches the build host's architecture, you'd get
>> just one copy in the tree. And back then, at least, the go-runtime
>> package needed those files, so the check was there to make sure they
>> didn't get deleted just because the two architectures were the same.
>>
>> That's the way things were 5 years ago, though, and the toolchain has
>> changed a lot since then. It might not be needed any more.
>>
>> -Matt
>>
>> >
>> > Signed-off-by: Alexander Kanavin <[email protected]>
>> > ---
>> >  meta/recipes-devtools/go/go-runtime.inc | 6 ++----
>> >  1 file changed, 2 insertions(+), 4 deletions(-)
>> >
>> > diff --git a/meta/recipes-devtools/go/go-runtime.inc
>> b/meta/recipes-devtools/go/go-runtime.inc
>> > index a08d44dd3a..106017bd89 100644
>> > --- a/meta/recipes-devtools/go/go-runtime.inc
>> > +++ b/meta/recipes-devtools/go/go-runtime.inc
>> > @@ -43,10 +43,8 @@ do_compile[cleandirs] += "${GOTMPDIR} ${B}/bin
>> ${B}/pkg"
>> >  do_install() {
>> >         install -d ${D}${libdir}/go/src
>> >         cp --preserve=mode,timestamps -R ${B}/pkg ${D}${libdir}/go/
>> > -       if [ "${BUILD_GOTUPLE}" != "${TARGET_GOTUPLE}" ]; then
>> > -               rm -rf ${D}${libdir}/go/pkg/${BUILD_GOTUPLE}
>> > -               rm -rf ${D}${libdir}/go/pkg/obj/${BUILD_GOTUPLE}
>> > -       fi
>> > +       rm -rf ${D}${libdir}/go/pkg/${BUILD_GOTUPLE}
>> > +       rm -rf ${D}${libdir}/go/pkg/obj/${BUILD_GOTUPLE}
>> >         rm -rf ${D}${libdir}/go/pkg/tool
>> >         rm -rf ${D}${libdir}/go/pkg/obj
>> >         rm -rf ${D}${libdir}/go/pkg/bootstrap
>> > --
>> > 2.20.1
>> >
>> >
>> >
>> >
>>
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#160107): 
https://lists.openembedded.org/g/openembedded-core/message/160107
Mute This Topic: https://lists.openembedded.org/mt/88071321/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to