aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar
Commit message (Collapse)AuthorAge
...
* ijar: implement stat_file on WindowsGravatar Laszlo Csomor2017-03-01
| | | | | | | | See https://github.com/bazelbuild/bazel/issues/2157 -- PiperOrigin-RevId: 148887981 MOS_MIGRATED_REVID=148887981
* --Gravatar Laszlo Csomor2017-02-28
| | | | | PiperOrigin-RevId: 148768294 MOS_MIGRATED_REVID=148768294
* Add missing #include statements for ijar Gravatar Klaus Aehlig2017-01-10
| | | | | | | | | | | We may not assume that those are pulled in by other header files; in fact, they are not on FreeBSD stable/11. -- Change-Id: Ic976cc71968aab0a1c3d6652fe8d8f1c4afa480b Reviewed-on: https://cr.bazel.build/8145 PiperOrigin-RevId: 143970238 MOS_MIGRATED_REVID=143970238
* Revert commit 6d31cb01b80d0560c0c083d40e641816877b3d06.Gravatar Damien Martin-Guillerez2016-12-21
| | | | | | Commit 6d31cb was an internal reorganization of google repository that should have resulted in no change. Due to a bug in our export process it deleted several files in third_party.
* --Gravatar Damien Martin-Guillerez2016-12-21
| | | | | PiperOrigin-RevId: 142666783 MOS_MIGRATED_REVID=142666783
* Fix ijar's timestamp normalizationGravatar Liam Miller-Cushon2016-12-13
| | | | | | | | 0 is not a valid DOS timestamp, days and months start at 1. -- PiperOrigin-RevId: 141818782 MOS_MIGRATED_REVID=141818782
* Ijar: remove spurious error messageGravatar László Csomor2016-12-12
| | | | | | | | | | | | | | | | | | Commit 645dbc4 moved the file stating logic to platform_utils.cc into the `stat_file` method, then commit 8d6da00 added error reporting to that method so callers wouldn't need to report errors on their own. Problem is, one of the callers was using stat_file for simple file existence checking so reporting an error there was spurious. Fixes https://github.com/bazelbuild/bazel/issues/2201 -- Change-Id: I40d1ee2bad8f3d03627c0b5c0bfd593bb5289d23 Reviewed-on: https://cr.bazel.build/7810 PiperOrigin-RevId: 141739581 MOS_MIGRATED_REVID=141739581
* Ijar: can be compiled with MSVCGravatar Laszlo Csomor2016-12-02
| | | | | | | | | | | | | | | | | | We can now build //third_party/ijar/...:all with --cpu=x64_windows_msvc. We also have to use --output_user_root=/c/tmp or something similarly short because //third_party/zlib tickles https://github.com/bazelbuild/bazel/issues/2145 This change takes us closer to compiling Bazel with MSVC. See https://github.com/bazelbuild/bazel/issues/2107 -- PiperOrigin-RevId: 140846600 MOS_MIGRATED_REVID=140846600
* Ijar: extract MakeDirs to platform_utilsGravatar Laszlo Csomor2016-12-01
| | | | | | | | | | | | zip_main.cc no longer needs <unistd.h>. This change takes us closer to compiling ijar, thus Bazel, with MSVC. See https://github.com/bazelbuild/bazel/issues/2157 See https://github.com/bazelbuild/bazel/issues/2107 -- MOS_MIGRATED_REVID=140724421
* Ijar: extract [] to platform_utilsGravatar Laszlo Csomor2016-12-01
| | | | | | | | | | | | zip_main.cc no longer needs <unistd.h>. This change takes us closer to compiling ijar, thus Bazel, with MSVC. See https://github.com/bazelbuild/bazel/issues/2157 See https://github.com/bazelbuild/bazel/issues/2107 -- MOS_MIGRATED_REVID=140723658
* Ijar: extract file reading logic to platform_utilsGravatar Laszlo Csomor2016-12-01
| | | | | | | | | | | This change takes us closer to compiling ijar, thus Bazel, with MSVC. See https://github.com/bazelbuild/bazel/issues/2157 See https://github.com/bazelbuild/bazel/issues/2107 -- MOS_MIGRATED_REVID=140722341
* Ijar: extract file writing logic to platform_utilsGravatar Laszlo Csomor2016-12-01
| | | | | | | | | | | | | | This change takes us closer to compiling ijar, thus Bazel, with MSVC. Also update the StatFile method added by unknown commit to report any errors. See https://github.com/bazelbuild/bazel/issues/2157 See https://github.com/bazelbuild/bazel/issues/2107 -- MOS_MIGRATED_REVID=140719249
* Ijar: extract file stating logic to platform_utilsGravatar Laszlo Csomor2016-12-01
| | | | | | | | | | This change takes us closer to compiling ijar, thus Bazel, with MSVC. See https://github.com/bazelbuild/bazel/issues/2107 and https://github.com/bazelbuild/bazel/issues/2157 -- MOS_MIGRATED_REVID=140717828
* Adapt ijar for WSLGravatar Reker2016-11-24
| | | | | | | | | | | The behavior of ftruncate on WSL is not same as standard Linux due to a bug, it'll fail on maped file. This commit fix the bug by munmap the file before ftruncate. Closes #2108. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2108 MOS_MIGRATED_REVID=140134115
* Global cleanup change.Gravatar Liam Miller-Cushon2016-10-07
| | | | | -- MOS_MIGRATED_REVID=135345337
* Don't run ijar test with JDK7Gravatar Damien Martin-Guillerez2016-10-05
| | | | | | | Those tests requires JDK8 features, just ignore them. -- MOS_MIGRATED_REVID=135264862
* Rollback of commit a6b4cbbd4a4bbb42eefe8fb0e646cd30780394e4.Gravatar Laszlo Csomor2016-10-04
| | | | | | | | | | | | | | | *** Reason for rollback *** Other projects may depend on Ijar without wanting to depend on Bazel. *** Original change description *** Ijar: use utilities from Bazel's source Remove a duplicate implementation of JoinPath. -- MOS_MIGRATED_REVID=135088616
* Rollback of commit fb65f9382f34c2641b5069c30a57a08445b920a3.Gravatar Laszlo Csomor2016-10-04
| | | | | | | | | | | | | | | *** Reason for rollback *** Other projects may depend on Ijar without wanting to depend on Bazel. *** Original change description *** Ijar: use more utilities from Bazel's source Remove duplicate implementations from zip_main.cc -- MOS_MIGRATED_REVID=135086722
* Ijar: use more utilities from Bazel's sourceGravatar Laszlo Csomor2016-10-04
| | | | | | | Remove duplicate implementations from zip_main.cc -- MOS_MIGRATED_REVID=134797116
* Ijar: use utilities from Bazel's sourceGravatar Laszlo Csomor2016-09-30
| | | | | | | Remove a duplicate implementation of JoinPath. -- MOS_MIGRATED_REVID=134778185
* Ijar: make some targets compilable with MSVCGravatar Laszlo Csomor2016-09-30
| | | | | | | | Particulary third_party/ijar:{zip,zlib_client} now compile with --cpu=x64_windows_msvc. -- MOS_MIGRATED_REVID=134771232
* Windows, native: add windows_msvc config_settingGravatar Laszlo Csomor2016-09-28
| | | | | | | | | | | | | | | Update `select` statements in BUILD files with the new config_setting. This is a first step on a long path that leads to us being able to compile bazel on Windows with --cpu=x64_windows_msvc. Needless to say, we're not there yet. Tested: on Linux, Darwin, Windows/MSYS -- MOS_MIGRATED_REVID=134534613
* Fix Bazel compilation on Windows.Gravatar Laszlo Csomor2016-09-26
| | | | | | | Fixes https://github.com/bazelbuild/bazel/issues/1826 -- MOS_MIGRATED_REVID=134261731
* Clean up ijar tests that use Java 8 featuresGravatar Liam Miller-Cushon2016-09-23
| | | | | -- MOS_MIGRATED_REVID=134040102
* Move zlib-interfacing code from third_party/ijar/zip.cc into a separate ↵Gravatar Rumou Duan2016-09-22
| | | | | | | class. And add a dummy zlib client. -- MOS_MIGRATED_REVID=133879880
* Fixed some documentation in zip_main.ccGravatar Yun Peng2016-08-05
| | | | | -- MOS_MIGRATED_REVID=129429378
* zipper now can specify actual path a file is added toGravatar Yun Peng2016-08-04
| | | | | | | | | | | Examples for how to use <zip_path>=<file> syntax: zipper c x.zip a/b/__init__.py= # Add an empty file at a/b/__init__.py zipper c x.zip a/b/main.py=foo/bar/bin.py # Add file foo/bar/bin.py at a/b/main.py -- Change-Id: I3c09dfb31d082f3ca8036e87affc8d99f7e75fe0 Reviewed-on: https://bazel-review.googlesource.com/#/c/4243 MOS_MIGRATED_REVID=129325719
* Fix owner permissions bug in unzip codeGravatar Justine Tunney2016-08-02
| | | | | | | | This situation arises when a zip file does not contain entries for the directories themselves, but only the files themselves. -- MOS_MIGRATED_REVID=129072925
* Make ijar_test nuke $TEST_TMPDIR on exit.Gravatar Lukacs Berki2016-07-21
| | | | | | | $TEST_TMPDIR is not deleted automatically and this can result in the accumulation of a bunch of large files on the CI machines of Bazel because this tests writes 2GB files for testing. -- MOS_MIGRATED_REVID=128037053
* Update ijar testGravatar Kristina Chodorow2016-06-22
| | | | | | | Another part of rolling forward #1262. -- MOS_MIGRATED_REVID=125481356
* Rollback of commit bdfd58a8ca2ed5735d6aaa5b238fb0f689515724.Gravatar Laurent Le Brun2016-06-20
| | | | | -- MOS_MIGRATED_REVID=125160288
* Make the execution root match the runfiles tree structure for external ↵Gravatar Kristina Chodorow2016-06-17
| | | | | | | | | | | | | | | | | | | | | repositories One interesting side effect of how this is implemented is that for external repositories, bin/ and genfiles/ are combined. External repo output is under bazel-out/local-fastbuild/repo_name for each repo. Fixes #1262. RELNOTES[INC]: Previously, an external repository would be symlinked into the execution root at execroot/local_repo/external/remote_repo. This changes it to be at execroot/remote_repo. This may break genrules/Skylark actions that hardcode execution root paths. If this causes breakages for you, ensure that genrules are using $(location :target) to access files and Skylark rules are using http://bazel.io/docs/skylark/lib/File.html's path, dirname, etc. functions. -- MOS_MIGRATED_REVID=125095799
* Improvements to zipper extraction support (x option):Gravatar Rumou Duan2016-05-12
| | | | | | | | | | 1. Add ability to specify relative output directory through -d option. 2. Add ability to specify a list of archive entries to extract from the zip file. Fixes #630. -- MOS_MIGRATED_REVID=122159723
* Switch to using ../repo-name syntax for runfilesGravatar Kristina Chodorow2016-05-04
| | | | | -- MOS_MIGRATED_REVID=121475668
* Initialize an uninitialized field in ijarGravatar Shinichiro Hamaji2016-05-02
| | | | | | | | This was reported in -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1197 MOS_MIGRATED_REVID=121257152
* Set Bazel's workspace nameGravatar Kristina Chodorow2016-04-27
| | | | | | | | | | RELNOTES: Bazel's workspace name is now io_bazel. If you are using Bazel's source as an external repository, then you may want to update the name you're referring to it as or you'll begin seeing warnings about name mismatches in your code. -- MOS_MIGRATED_REVID=120926179
* Automated [] rollback of commit 857cda2c45a5cc68c3fa398311c48c571a64915d and ↵Gravatar Damien Martin-Guillerez2016-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | commit 790d2f6009d47fe92cf0cd92a1473bbf0141f32e. *** Reason for rollback *** Broke non-Bazel projects on ci.bazel.io Fixes #1168 *** Original change description *** Move the runfiles for external repositories to under the x.runfiles/ directory This also sets the Bazel workspace name to io_bazel_source. Fixes #848. Relevant to #1116, #1124, RELNOTES[INC]: All repositories are now directly under the x.runfiles directory in the runfiles tree (previously, external repositories were at x.runfiles/main-repo/external/other-repo. This simplifies handling remote repository runfiles considerably, but will break existing references to external repository runfiles.... *** -- MOS_MIGRATED_REVID=120535721
* Move the runfiles for external repositories to under the x.runfiles/ directoryGravatar Kristina Chodorow2016-04-20
| | | | | | | | | | | | | | | This also sets the Bazel workspace name to io_bazel_source. Fixes #848. Relevant to #1116, #1124, RELNOTES[INC]: All repositories are now directly under the x.runfiles directory in the runfiles tree (previously, external repositories were at x.runfiles/main-repo/external/other-repo. This simplifies handling remote repository runfiles considerably, but will break existing references to external repository runfiles. --- Furthermore, if a Bazel project does not provide a workspace name in the WORKSPACE file, Bazel will now default to using __main__ as the workspace name (instead of "", as previously). The repository's runfiles will appear under x.runfiles/__main__/. -- MOS_MIGRATED_REVID=120224534
* Prune anonymous classes in ijarGravatar Liam Miller-Cushon2016-04-12
| | | | | -- MOS_MIGRATED_REVID=119581073
* Add prefix to file path in ijar to allow file path longer than 260 on WindowsGravatar Yun Peng2016-04-11
| | | | | | | -- Change-Id: Ia176408e9b59caa85da7eb63fd3d9251a1d3fb40 Reviewed-on: https://bazel-review.googlesource.com/#/c/3328/ MOS_MIGRATED_REVID=119522458
* Use the zlib version in third_party instead of whatever is installed.Gravatar Lukacs Berki2016-04-07
| | | | | | | This was the last dependency of Bazel that is pulled in from the host system, so now (at least as dependencies go) the source tree of Bazel is now self-contained. -- MOS_MIGRATED_REVID=119243670
* Description redacted.Gravatar Googler2016-04-07
| | | | | -- MOS_MIGRATED_REVID=119053259
* ijar: check the return value of getcwd() functionGravatar Thiago Farina2016-04-05
| | | | | | | | | | | | | | | | | Check the return value of getcwd() and if it fails print a message to the user and return -1. This should fix the following warning: third_party/ijar/zip_main.cc:175:32: warning: ignoring return value of 'char* getcwd(char*, size_t)', declared with attribute warn_unused_result [-Wunused-result] getcwd(output_root, PATH_MAX); -- Change-Id: I8857e484f5baf60289d7c19a128f5a4616ae50e4 Reviewed-on: https://bazel-review.googlesource.com/#/c/3230/ MOS_MIGRATED_REVID=119029402
* ijar: cast to size_t instead of int to avoid sign-compare warning.Gravatar Damien Martin-Guillerez2016-04-01
| | | | | -- MOS_MIGRATED_REVID=118761993
* ijar: fix mismatched-tags warningsGravatar Thiago Farina2016-04-01
| | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes the following warnings: third_party/ijar/mapped_file_unix.cc:31:1: warning: 'MappedInputFileImpl' defined as a struct here but previously declared as a class [-Wmismatched-tags] struct MappedInputFileImpl { ^ ./third_party/ijar/mapped_file.h:22:1: note: did you mean struct here? class MappedInputFileImpl; third_party/ijar/mapped_file_unix.cc:88:1: warning: 'MappedOutputFileImpl' defined as a struct here but previously declared as a class [-Wmismatched-tags] struct MappedOutputFileImpl { ^ ./third_party/ijar/mapped_file.h:23:1: note: did you mean struct here? class MappedOutputFileImpl; -- Change-Id: Ie8269c0cfec41b4a1ddcdc9a9cd155ecac4b01d8 Reviewed-on: https://bazel-review.googlesource.com/#/c/3101 MOS_MIGRATED_REVID=118761176
* Fix comparison warning in ijarGravatar Damien Martin-Guillerez2016-03-30
| | | | | | | It's too much annoyance to see that error message in Bazel bootstrap. -- MOS_MIGRATED_REVID=118572214
* Fix asan error introduced by commit 257337638463d01bcf627c60de42861d775fefec.Gravatar Googler2016-03-23
| | | | | | | One cannot call realloc() on the result of operator new. -- MOS_MIGRATED_REVID=117906367
* Global cleanup change.Gravatar Googler2016-03-01
| | | | | -- MOS_MIGRATED_REVID=115896463
* Add a bazel-srcs target to the top-level package containing all Bazel sourcesGravatar Damien Martin-Guillerez2016-02-29
| | | | | | | | This target include all non tests targets of Bazel to do integration tests of bootstrapping. -- MOS_MIGRATED_REVID=115830741
* Use a custom ToString instead of std::to_string that is not available on mingw.Gravatar Dmitry Lomov2016-02-17
| | | | | | | Needed for #276. -- MOS_MIGRATED_REVID=114867808