Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@ghost
Copy link

@ghost ghost commented Jun 29, 2018

Release notes: https://github.com/google/brotli/releases/tag/v1.0.5
Simply removed src/Native/AnyOS/brotli and extracted https://github.com/google/brotli/archive/v1.0.5.zip 's brotli/c directory there. Some new .c sources introduced in this release are added to src/Native/Unix/System.IO.Compression.Native/CMakeLists.txt and src/Native/Windows/clrcompression/CMakeLists.txt.

fixes https://github.com/dotnet/corefx/issues/30249

@ghost
Copy link
Author

ghost commented Jun 29, 2018

@stephentoub, @janvorli, should I create a subdirectory 1.0.5 under AnyOS/brotli and move the sources there, so we can tell which version is being used? Currently there is no explicit way to tell which versions of these third party libs we are using (maybe it was even some random / point in time master SHA1 hash).

I think same case is with zlib (https://github.com/madler/zlib/releases) in corefx and libunwind (https://github.com/libunwind/libunwind/releases) in coreclr. If it requires additional patches by us or cherry-pick from their master, we can add those on top of released version, or add patch in source tree like https://github.com/dotnet/source-build maintains them.

@ghost
Copy link
Author

ghost commented Jun 29, 2018

test Packaging All Configurations x64 Debug Build

https://ci3.dot.net/job/dotnet_corefx/job/master/job/windows-TGroup_all+CGroup_Debug+AGroup_x64+TestOuter_false_prtest/13679/console failed:

Archiving logs in netci-archived-logs/**
[Pipeline] archiveArtifacts
Archiving artifacts
WARN: No artifacts found that match the file pattern "netci-archived-logs/**". Configuration error?
WARN: ‘netci-archived-logs/**’ doesn’t match anything, but ‘**’ does. Perhaps that’s what you mean?
[Pipeline] isUnix
[Pipeline] bat
[windows-TGrou---0d2c9ac4] Running batch script

D:\j\workspace\windows-TGrou---0d2c9ac4>taskkill /F /IM VBCSCompiler.exe 
ERROR: The process "VBCSCompiler.exe" not found.
[Pipeline] cleanWs

@stephentoub
Copy link
Member

cc: @JeremyKuhne, @ianhays, @joshfree

@janvorli
Copy link
Member

should I create a subdirectory 1.0.5 under AnyOS/brotli and move the sources there

I think it would be enough to mention the version in the commit text. I did the same thing for libunwind in both coreclr and corert. You can always look at the git history to find that.

@ghost
Copy link
Author

ghost commented Jun 29, 2018

Retrieving the version from commit history is bit indirect / complex as it is dependent on source control. If we download the source zip (e.g. https://github.com/dotnet/corefx/archive/release/2.1.zip), this is probably the only version we will not find out in sources. Extra nesting can be avoided by just renaming brotli to brotli-1.0.5, if that's a concern.
However, that's probably not a big deal, just a suggestion.

@janvorli
Copy link
Member

More than the added indirection, the changing name is what I don't really like. It means that every time we update the library version, we would need to modify the build files to reflect that.
If the commit message doesn't sound like a usable solution, then I'd suggest adding a text file to the same folder as the brotli directory with info on where it came from. Say brotli-version.txt or something like that.

@ghost
Copy link
Author

ghost commented Jun 29, 2018

@janvorli, I have added brotli-version.txt with additional release notes URL on second line. Let me know if that is not needed.

@janvorli
Copy link
Member

@dotnet-bot test Windows x64 Debug Build please

@janvorli janvorli merged commit b17387f into dotnet:master Jun 29, 2018
@ghost ghost deleted the cpp-toc-brotli branch June 30, 2018 06:22
@karelz karelz added this to the 3.0 milestone Jul 8, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Update brotli to v1.0.5

* Define BROTLI_SHARED_COMPILATION

* Set headers language to C

* Add brotli-version.txt


Commit migrated from dotnet/corefx@b17387f
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.

Is fuzz directory needed in brotli?

3 participants