Skip to content

ci: find liblzma >= 5.6.3 on windows msvc tests#2421

Merged
kientzle merged 1 commit intolibarchive:masterfrom
mostynb:windows_lzma_cmake_fix
Dec 7, 2024
Merged

ci: find liblzma >= 5.6.3 on windows msvc tests#2421
kientzle merged 1 commit intolibarchive:masterfrom
mostynb:windows_lzma_cmake_fix

Conversation

@mostynb
Copy link
Copy Markdown
Contributor

@mostynb mostynb commented Dec 2, 2024

We currently use XZ Utils 5.6.3 on windows CI jobs, but the Windows (msvc)
job which uses cmake seems to only be looking for the old library name,
liblzma.lib:

-- Looking for lzma_auto_decoder in C:/Program Files (x86)/xz/lib/liblzma.lib
-- Looking for lzma_auto_decoder in C:/Program Files (x86)/xz/lib/liblzma.lib - not found
-- Looking for lzma_easy_encoder in C:/Program Files (x86)/xz/lib/liblzma.lib
-- Looking for lzma_easy_encoder in C:/Program Files (x86)/xz/lib/liblzma.lib - not found
-- Looking for lzma_lzma_preset in C:/Program Files (x86)/xz/lib/liblzma.lib
-- Looking for lzma_lzma_preset in C:/Program Files (x86)/xz/lib/liblzma.lib - not found
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.6.3")

We need to update build/ci/github_actions/ci.cmd to look for lzma.lib instead.

@mostynb mostynb marked this pull request as draft December 2, 2024 21:22
@kientzle
Copy link
Copy Markdown
Contributor

kientzle commented Dec 4, 2024

Looks good! Let me know when you think this is ready to merge.

@mostynb
Copy link
Copy Markdown
Contributor Author

mostynb commented Dec 4, 2024

Unfortunately this isn't working yet :( -- Could NOT find LibLZMA (missing: LibLZMA_DIR)

I'm testing elsewhere at the moment- I might need to file and issue in the xz-utils repository to figure this out.

We currently use XZ Utils 5.6.3 on windows CI jobs, but the Windows (msvc)
job which uses cmake seems to only be looking for the old library name,
liblzma.lib:

```
-- Looking for lzma_auto_decoder in C:/Program Files (x86)/xz/lib/liblzma.lib
-- Looking for lzma_auto_decoder in C:/Program Files (x86)/xz/lib/liblzma.lib - not found
-- Looking for lzma_easy_encoder in C:/Program Files (x86)/xz/lib/liblzma.lib
-- Looking for lzma_easy_encoder in C:/Program Files (x86)/xz/lib/liblzma.lib - not found
-- Looking for lzma_lzma_preset in C:/Program Files (x86)/xz/lib/liblzma.lib
-- Looking for lzma_lzma_preset in C:/Program Files (x86)/xz/lib/liblzma.lib - not found
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.6.3")
```

We need to update build/ci/github_actions/ci.cmd to look for lzma.lib instead.
@mostynb mostynb force-pushed the windows_lzma_cmake_fix branch from dd2bda5 to e905c0f Compare December 7, 2024 01:27
@mostynb mostynb changed the title cmake: find liblzma >= 5.6.3 on windows ci: find liblzma >= 5.6.3 on windows msvc tests Dec 7, 2024
@mostynb mostynb marked this pull request as ready for review December 7, 2024 01:43
@mostynb mostynb requested a review from kientzle December 7, 2024 01:43
@mostynb
Copy link
Copy Markdown
Contributor Author

mostynb commented Dec 7, 2024

I think this is ready, but it turned out to be an issue in build/ci/github_actions/ci.cmd instead, therefore re-requesting a review.

@kientzle kientzle merged commit 9b7540a into libarchive:master Dec 7, 2024
@mostynb mostynb deleted the windows_lzma_cmake_fix branch December 7, 2024 12:11
mmatuska pushed a commit to mmatuska/libarchive that referenced this pull request Dec 29, 2024
We currently use XZ Utils 5.6.3 on windows CI jobs, but the Windows
(msvc)
job which uses cmake seems to only be looking for the old library name,
liblzma.lib:

```
-- Looking for lzma_auto_decoder in C:/Program Files (x86)/xz/lib/liblzma.lib
-- Looking for lzma_auto_decoder in C:/Program Files (x86)/xz/lib/liblzma.lib - not found
-- Looking for lzma_easy_encoder in C:/Program Files (x86)/xz/lib/liblzma.lib
-- Looking for lzma_easy_encoder in C:/Program Files (x86)/xz/lib/liblzma.lib - not found
-- Looking for lzma_lzma_preset in C:/Program Files (x86)/xz/lib/liblzma.lib
-- Looking for lzma_lzma_preset in C:/Program Files (x86)/xz/lib/liblzma.lib - not found
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.6.3")
```

We need to update build/ci/github_actions/ci.cmd to look for lzma.lib
instead.

(cherry picked from commit 9b7540a)
mmatuska pushed a commit to mmatuska/libarchive that referenced this pull request Mar 11, 2025
We currently use XZ Utils 5.6.3 on windows CI jobs, but the Windows
(msvc)
job which uses cmake seems to only be looking for the old library name,
liblzma.lib:

```
-- Looking for lzma_auto_decoder in C:/Program Files (x86)/xz/lib/liblzma.lib
-- Looking for lzma_auto_decoder in C:/Program Files (x86)/xz/lib/liblzma.lib - not found
-- Looking for lzma_easy_encoder in C:/Program Files (x86)/xz/lib/liblzma.lib
-- Looking for lzma_easy_encoder in C:/Program Files (x86)/xz/lib/liblzma.lib - not found
-- Looking for lzma_lzma_preset in C:/Program Files (x86)/xz/lib/liblzma.lib
-- Looking for lzma_lzma_preset in C:/Program Files (x86)/xz/lib/liblzma.lib - not found
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.6.3")
```

We need to update build/ci/github_actions/ci.cmd to look for lzma.lib
instead.

(cherry picked from commit 9b7540a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants