Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add libarchive 3.7.3 with tests and windows support #1916

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

zaucy
Copy link
Contributor

@zaucy zaucy commented Apr 30, 2024

Based on https://github.com/zaucy/libarchive/tree/bazel-v3.7.3

  • adds tests
  • adds Windows support

@zaucy zaucy force-pushed the add-libarchive-3.7.3-and-tests branch from 5459986 to df6dc6b Compare April 30, 2024 18:18
@bazel-io
Copy link
Member

Hello @dzbarsky, modules you maintain (libarchive) have been updated in this PR. Please review the changes.

@zaucy
Copy link
Contributor Author

zaucy commented Apr 30, 2024

@dzbarsky I would love your opinion on these changes since you were the original maintainer. If this works out I intend to subumit these changes for 3.7.2 as well.

@zaucy zaucy changed the title add libarchive 3.7.3 with tests add libarchive 3.7.3 with tests and windows support Apr 30, 2024
@zaucy zaucy marked this pull request as ready for review April 30, 2024 18:32
@zaucy
Copy link
Contributor Author

zaucy commented Apr 30, 2024

some of the tests take an especially long time on the GitHub free action runners, but are quite fast locally. If they run slowly on the BCR buildkite CI then I may disable them or exclude them in the presubmit.

@zaucy zaucy force-pushed the add-libarchive-3.7.3-and-tests branch from 552e852 to 9c8711b Compare May 1, 2024 03:49
@alexeagle alexeagle added the presubmit-auto-run Presubmit jobs will be triggered for new changes automatically without reviewer's approval label May 1, 2024
@DavidZbarsky-at
Copy link

Thanks for submitting! I'm about to go on vacation for a week, I will do my best to find time to look before that

@zaucy
Copy link
Contributor Author

zaucy commented May 2, 2024

The presubmit is mostly green after I've excluded some tests (with added notes for any future readers.)

However, there is a patch error only on ubuntu arm64 for some reason. If anyone has any insight on that, it would be very helpful.

@zaucy zaucy mentioned this pull request May 4, 2024
@zaucy zaucy force-pushed the add-libarchive-3.7.3-and-tests branch from 593e84d to 9530ab5 Compare May 8, 2024 18:32
Copy link
Contributor

@dzbarsky dzbarsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can go in as-is if you'd like, but I'd prefer to generate the config as config.h and reduce the patching, and a 3.7.4 base would be great as well!

Thanks for helping on this one, much appreciated

@@ -0,0 +1,15 @@
module(
name = "libarchive",
version = "3.7.3",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would you mind doing this on 3.7.4? That's the latest version in the BCR now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking of doing 3.7.4 as a follow up once we felt this patch was good, but how about I just include both 3.7.3 and 3.7.4.bcr.1 in this PR? :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whatever's easier for you :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

once all the other conversations are resolved I'll add 3.7.4.bcr.1 👍

- debian10
- debian11
- ubuntu2004
# - ubuntu2004_arm64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how did you generate the patch? I've seen patches generated with git diff work but git show not work in the past. Maybe it would help to trim the header lines?

Copy link
Contributor Author

@zaucy zaucy May 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just used git diff. I have no idea why its not working. This is how I'm currently generating it https://github.com/zaucy/libarchive/blob/bazel-v3.7.3/bazel/update_bcr.nu#L37

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, maybe @Wyverald has an idea?

Copy link
Member

@bazel-io bazel-io left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @bazelbuild/bcr-maintainers, all modules in this PR have been approved by their maintainers. Please take a final look to merge this PR.

Copy link
Member

@bazel-io bazel-io left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Require module maintainers' approval.

@peakschris
Copy link

This fix is required to allow rules_js to work on windows. Can it be moved forward?

@fmeum
Copy link
Contributor

fmeum commented May 17, 2024

Since v3.7.3 is already in the registry, is this PR still relevant? Happy to merge once the module maintainers tell me to.

@alexeagle
Copy link
Contributor

@dzbarsky we do still need this, right?

@DavidZbarsky-at
Copy link

We still need this PR and/or a 3.7.4 with these changes applied on top.

From my POV, it's ready to go in, but @zaucy can make the final call on whether to change the config.h setup or keep as is.

There's also some issue with the patch not applying cleanly on one platform that we haven't gotten to the bottom of #1916 (comment)

It would be nice to fix this before landing, but I think we need some help.

@zaucy anything else I'm missing?

@zaucy
Copy link
Contributor Author

zaucy commented May 17, 2024

yes currently #1916 (comment) is making me hesitant to say it's done. After that's resolved I'm happy to update this PR with 3.7.4.bcr.1 added as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
presubmit-auto-run Presubmit jobs will be triggered for new changes automatically without reviewer's approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants