Skip to content

build: replace configure check with PP condition (Android <21) - #15871

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:bld-getpwuid_r
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:bld-getpwuid_r

Conversation

@vszakats

@vszakats vszakats commented Dec 31, 2024 •

Copy link
Copy Markdown
Member

To make it build again with CMake + Android 20 and earlier.

8e34505 synced getpwuid_r() detection
in cmake with autotools. It means cmake started detecting it with
Android <21 just like autotools, and thus cmake builds also need to
tackle the missing declaration with old Android SDK versions. Use a PP
solution, allowing to drop the autotools-specific one used before this
patch.

Follow-up to 8e34505 #15164
Follow-up to 9c33813 #2609
Ref: #2058

@github-actions github-actions Bot added the CI Continuous Integration label Dec 31, 2024
@vszakats vszakats changed the title build: replace workaround with PP condition for Android 20 and earlier build: replace configure workaround with PP condition (Android <21) Dec 31, 2024
@vszakats vszakats changed the title build: replace configure workaround with PP condition (Android <21) build: replace configure check with PP condition (Android <21) Dec 31, 2024
@vszakats

vszakats commented Jan 1, 2025 •

Copy link
Copy Markdown
Member Author

I could not find NDK 20 for download (for macOS) anymore.
Verified the patch locally with a newer Android NDK, with the
getpwuid_r declaration manually deleted.

@vszakats vszakats closed this in 0f1b23e Jan 1, 2025
@vszakats
vszakats deleted the bld-getpwuid_r branch January 1, 2025 03:56
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
To make it build again with CMake + Android 20 and earlier.

8e34505 synced `getpwuid_r()` detection
in cmake with autotools. It means cmake started detecting it with
Android <21 just like autotools, and thus cmake builds also need to
tackle the missing declaration with old Android SDK versions. Use a PP
solution, allowing to drop the autotools-specific on used before this
patch.

Follow-up to 8e34505 curl#15164
Follow-up to 9c33813 curl#2609
Ref: curl#2058
Closes curl#15871
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build CI Continuous Integration tidy-up

Development

Successfully merging this pull request may close these issues.

1 participant