Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

[BaseTasks] fix \-delimited paths on macOS#122

Merged
jonathanpeppers merged 3 commits into
dotnet:mainfrom
jonathanpeppers:dotnet-rid-abi-macos
Jun 8, 2021
Merged

[BaseTasks] fix \-delimited paths on macOS#122
jonathanpeppers merged 3 commits into
dotnet:mainfrom
jonathanpeppers:dotnet-rid-abi-macos

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Tests in xamarin-android have started failing with:

libfoo.so : error XA4301: Cannot determine ABI of native library 'libfoo.so'.
Move this file to a directory with a valid Android ABI name such as 'libs/armeabi-v7a/'.

Where the test in question sets Link=x86\libfoo.so:

https://github.com/xamarin/xamarin-android/blob/bf63c3d116b38459678cb3aefd2f5826e78c385e/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/XASdkTests.cs#L115

This only fails on macOS and works fine on Windows. I didn't consider
this case in 90d7621.

I've added test cases for \, and added a string.Replace() that
should solve the problem on macOS.

I added test cases for null input as well.

Tests in xamarin-android have started failing with:

    libfoo.so : error XA4301: Cannot determine ABI of native library 'libfoo.so'.
    Move this file to a directory with a valid Android ABI name such as 'libs/armeabi-v7a/'.

Where the test in question sets `Link=x86\libfoo.so`:

https://github.com/xamarin/xamarin-android/blob/bf63c3d116b38459678cb3aefd2f5826e78c385e/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/XASdkTests.cs#L115

This only fails on macOS and works fine on Windows. I didn't consider
this case in 90d7621.

I've added test cases for `\`, and added a `string.Replace()` that
should solve the problem on macOS.

I added test cases for `null` input as well.
@jonathanpeppers
jonathanpeppers marked this pull request as ready for review June 7, 2021 16:33
@jonathanpeppers
jonathanpeppers requested a review from jonpryor June 7, 2021 16:33
@jonathanpeppers
jonathanpeppers merged commit e3d708c into dotnet:main Jun 8, 2021
@jonathanpeppers
jonathanpeppers deleted the dotnet-rid-abi-macos branch June 8, 2021 13:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants