aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/packages
Commit message (Collapse)AuthorAge
* Export Bazel's LICENSE file using our normal repo sync process.Gravatar Philipp Wollermann2017-02-17
| | | | | | -- PiperOrigin-RevId: 147825291 MOS_MIGRATED_REVID=147825291
* Add pkg_rpm build rule to help generating RPM packages. Gravatar John Cater2017-02-06
| | | | | | | | | | RELNOTES: Adds pkg_rpm rule for generating RPM packages. -- Change-Id: I2e83161e29218700bbe7e62186b0b1667e555a7c Reviewed-on: https://cr.bazel.build/8590 PiperOrigin-RevId: 146477490 MOS_MIGRATED_REVID=146477490
* Moved bazelrc and version.txt to scripts/packages to be more effectively shared.Gravatar John Cater2017-02-01
| | | | | | | | -- Change-Id: I8c6d5cdbe9e2fc19ca6a626bea26944efa36e4db Reviewed-on: https://cr.bazel.build/8550 PiperOrigin-RevId: 146120078 MOS_MIGRATED_REVID=146120078
* Move debian package building into its own package. Gravatar John Cater2017-01-31
| | | | | | | | | | | | | | | As more package options are added, it's confusing that the debian package is generated in scripts/package/BUILD, but scripts/package/debian/ contains the related files (and isn't itself a Bazel package). This change makes the file locations more predictable, and also makes it easier to see what is happening in scripts/packages. -- Change-Id: Id8c445fc164a1a4aa09c52559a5143578cfdea88 Reviewed-on: https://cr.bazel.build/8510 PiperOrigin-RevId: 146003934 MOS_MIGRATED_REVID=146003934
* Avoid hard-coding path to bashGravatar Klaus Aehlig2017-01-19
| | | | | | | | -- Change-Id: Ief0dd31d7b514caaf5ea0108b7c497d42e86da70 Reviewed-on: https://cr.bazel.build/8395 PiperOrigin-RevId: 144966247 MOS_MIGRATED_REVID=144966247
* Add script and genrule to build RPM package.Gravatar John Cater2017-01-03
| | | | | | | | | | | | This only builds a development package, further work (and probably a full pkg_rpm rule) will be needed to make a releasable RPM. Closes #2276. -- Change-Id: If307c6143334957a127c7c2fe897009a08e88d5c Reviewed-on: https://github.com/bazelbuild/bazel/pull/2276 PiperOrigin-RevId: 143450212 MOS_MIGRATED_REVID=143450212
* Revert "Revert "Fix scripts/packages/convert_changelog to read the changelog ↵Gravatar Damien Martin-Guillerez2016-12-20
| | | | | | | | | | | | | | | | correctly"" Roll-forward with fix: the original change did not produced any changelog if this was not a release branch, use a default, empty one in that case. The debian version number will then be LAST_VERSION~HEAD This reverts commit e4cf9aa8b63173326cfe72ba76be4303bc038def. -- Change-Id: I9e19b1132570ea20d90053734418f2703b1a641e Reviewed-on: https://cr.bazel.build/7976 PiperOrigin-RevId: 142525180 MOS_MIGRATED_REVID=142525180
* Revert "Fix scripts/packages/convert_changelog to read the changelog correctly"Gravatar John Cater2016-12-16
| | | | | | | | | | | This reverts commit 9012bf1676bd6426229625e2567bfa399f89dabe. Fixes #2260. -- Change-Id: Ia08dd65d55274acdd15993cfde4eab225fb01df0 Reviewed-on: https://cr.bazel.build/8012 PiperOrigin-RevId: 142294105 MOS_MIGRATED_REVID=142294105
* Fix scripts/packages/convert_changelog to read the changelog correctlyGravatar Damien Martin-Guillerez2016-12-16
| | | | | | | | | | | Partial fix of #2256 To cherry-pick for #2246 -- Change-Id: Ib25cc1dd85fd4af59b36eb2ac215ebd31d4d9eaa Reviewed-on: https://cr.bazel.build/7975 PiperOrigin-RevId: 142262764 MOS_MIGRATED_REVID=142262764
* Make release notes in chocolatey packages work for RCsGravatar Peter Mounce2016-12-05
| | | | | | | | | Closes #2152. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2152 PiperOrigin-RevId: 141046624 MOS_MIGRATED_REVID=141046624
* Make it easier for tools/bazel wrapper script to find bazel-realGravatar Dan Fabulich2016-12-02
| | | | | | | | | | | | | | | | | The launcher script uses "exec -a" to launch the wrapper, but if the wrapper script is itself a Bash script, Bash will set "$0" to be the path to the wrapper script, not the path to the launcher script. To work around this, we've been having our wrapper script search the user's PATH environment variable for bazel-real, but that doesn't work well with the IntelliJ plugin for Bazel, which may not use the expected PATH environment. -- Change-Id: I402ad29d5b809be8e687e217e19c03e7ac3eb972 Reviewed-on: https://cr.bazel.build/7550 PiperOrigin-RevId: 140851992 MOS_MIGRATED_REVID=140851992
* Release: refactor the way we keep track of release notesGravatar Damien Martin-Guillerez2016-12-02
| | | | | | | | | | | | | | | | | | | Now the release branch does not contains the release commit anymore. Instead, we regenerate the full release notes each time we have to (release candidate creation and final release). Two side effects: - The date is now showing the date of the operation and no longer the date of the release candidate (so release will be correctly dated) - The release notes show the release candidate number :) Tested: bazel test //scripts/release/... + build README.md -- Change-Id: Ia249bbdc0d6ed240bd969f24aa013f709f9a0a74 Reviewed-on: https://cr.bazel.build/7338 PiperOrigin-RevId: 140841432 MOS_MIGRATED_REVID=140841432
* Add Oracle JDK 7/8 as optional dependencies.Gravatar Misha Brukman2016-11-28
| | | | | | | | | | | | | | With this change, `oracle-java7-installer` and `oracle-java8-installer` become alternatives to satisfy the JDK dependency and thus can be implicitly installed when someone just asks to install Bazel by itself. Resolves issue #1821. Closes #2137. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2137 MOS_MIGRATED_REVID=140200795
* Prevent merge debris being part of packageGravatar Peter Mounce2016-11-24
| | | | | | | | Closes #2095. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2095 MOS_MIGRATED_REVID=140134289
* Support choco package fixesGravatar Peter Mounce2016-11-24
| | | | | | | | | | | | I've used this to create https://chocolatey.org/packages/bazel/0.4.1-rc2-20161124-122858 which is in the queue for automated validation. That package is built with #2134. Closes #2135. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2135 MOS_MIGRATED_REVID=140131036
* Reinstate python2 only constraintGravatar Peter Mounce2016-11-24
| | | | | | | | | | See gitter chat around https://gitter.im/chocolatey/choco?at=58361d42b07a1fd34833fe36. The rc failed automatic validation because of it, we think. Closes #2134. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2134 MOS_MIGRATED_REVID=140114046
* Make the python dependency more lenientGravatar Peter Mounce2016-11-23
| | | | | | | | | | Based on [this comment](https://github.com/bazelbuild/bazel/issues/2027#issuecomment-262229811), allow python3 to be used. cc @meteorcloudy. Closes #2122. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2122 MOS_MIGRATED_REVID=140031775
* Fix building Bazel under the new Linux sandboxGravatar Brian Silverman2016-11-14
| | | | | | | | | | find(1) defaults to not following symlinks, which doesn't work when all the folders get replaced with symlinks. -- Change-Id: I016db7bfefb308eb7026d2a52ba768613895dfee Reviewed-on: https://bazel-review.googlesource.com/c/6810/ MOS_MIGRATED_REVID=139063351
* Add the distribution artifact to the list of release filesGravatar Klaus Aehlig2016-11-11
| | | | | | | -- Change-Id: I09053cbd476e5f8bb5bdb9f272ad414d165f6d9f Reviewed-on: https://bazel-review.googlesource.com/#/c/7131 MOS_MIGRATED_REVID=138855685
* Fix chocolatey package hard-coding c: driveGravatar Peter Mounce2016-11-07
| | | | | | | | | | This fixes #2032. Closes #2046. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2046 MOS_MIGRATED_REVID=138377177
* Support RCs with chocolatey packageGravatar Peter Mounce2016-11-03
| | | | | | | | | | | | This - makes the `tools/*.ps1` generation more sane - supports generating a package for RCs Closes #2005. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2005 MOS_MIGRATED_REVID=138052483
* Change our URL to bazel.buildGravatar Damien Martin-Guillerez2016-10-28
| | | | | -- MOS_MIGRATED_REVID=137500893
* Fix chocolatey package build scripts - minor fixes.Gravatar Peter Mounce2016-10-24
| | | | | | | | Closes #1949. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1949 MOS_MIGRATED_REVID=137022912
* More changes for chocolatey package.Gravatar Peter Mounce2016-10-14
| | | | | | | | | | | 1. Update required version of msys to match versions that are published on chocolatey 2. Warn user about required possibly incompatible entries in PATH. Closes #1933. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1933 MOS_MIGRATED_REVID=136129573
* Changes necessary for releasing 0.3.2 chocolatey package.Gravatar Peter Mounce2016-10-11
| | | | | | | | | | Note - the chocolatey package to satisfy this has not yet been released, but it _will_ be according to [this trail](https://github.com/userzimmermann/choco-packages/issues/7#issuecomment-252605193) Closes #1905. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1905 MOS_MIGRATED_REVID=135774603
* Rollback of commit c5545fd0896f3c602a9be0986debed6f0c9c662d.Gravatar Klaus Aehlig2016-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Roll-forward with appropriate fixes: --action_env is a "build" option, not a "common" option. Moreover, also inherit the corresponding variables for tests from the effective action environment. Also fix the corresponding error in the design document. *** Original change description *** Automated [] rollback of commit 96d46280bc5a4803ba2242a4ad16939f85a3b212. *** Reason for rollback *** Broke installation on latest release. Fixes #1846 *** Original change description *** Reintroduce .bazelrc and set --action_env defaults Shipping a .bazelrc was removed in 009b48bcfaf4ebb17f9ab03bea9036cfa3c12ff0. However, as per our "Specifying environment variables for actions" design document, we want to ship a global rc file specifying the common environment variables to be inherited. So revert that change and add the desired entries to the global bazelrc file we're shipping. *** -- MOS_MIGRATED_REVID=134769063
* 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
* Rollback of commit 96d46280bc5a4803ba2242a4ad16939f85a3b212.Gravatar Damien Martin-Guillerez2016-09-28
| | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Broke installation on latest release. Fixes #1846 *** Original change description *** Reintroduce .bazelrc and set --action_env defaults Shipping a .bazelrc was removed in 009b48bcfaf4ebb17f9ab03bea9036cfa3c12ff0. However, as per our "Specifying environment variables for actions" design document, we want to ship a global rc file specifying the common environment variables to be inherited. So revert that change and add the desired entries to the global bazelrc file we're shipping. -- MOS_MIGRATED_REVID=134450299
* Debian package: remove declared dependencies on zip, unzip and pkg-configGravatar Damien Martin-Guillerez2016-09-27
| | | | | | | | | Those dependencies are not needed at runtime. Fixes #1834. -- MOS_MIGRATED_REVID=134373693
* Create a package for Windows via chocolateyGravatar Peter Mounce2016-09-26
| | | | | | -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1742 MOS_MIGRATED_REVID=134283632
* Reintroduce .bazelrc and set --action_env defaultsGravatar Klaus Aehlig2016-09-21
| | | | | | | | | | | | | Shipping a .bazelrc was removed in 009b48bcfaf4ebb17f9ab03bea9036cfa3c12ff0. However, as per our "Specifying environment variables for actions" design document, we want to ship a global rc file specifying the common environment variables to be inherited. So revert that change and add the desired entries to the global bazelrc file we're shipping. -- Change-Id: Ib763677a951e1264ae92954df9b831374594d8b7 Reviewed-on: https://bazel-review.googlesource.com/#/c/6113 MOS_MIGRATED_REVID=133704608
* Add google-jdk as Bazel debian package dependencyGravatar Yun Peng2016-08-01
| | | | | | | -- Change-Id: I70c5707db557637894054c0ccec98999d043c7bf Reviewed-on: https://bazel-review.googlesource.com/#/c/4220 MOS_MIGRATED_REVID=128979317
* Opt out of building debian packages on darwinGravatar Yun Peng2016-07-27
| | | | | | | | | Fixes #1577 -- Change-Id: I81343d611490263bc7e16dedfbbc56f9f988f63d Reviewed-on: https://bazel-review.googlesource.com/#/c/4170 MOS_MIGRATED_REVID=128576630
* Build Bazel debian source package using BazelGravatar Yun Peng2016-07-27
| | | | | | | -- Change-Id: I8c0b6adf08a4ca64ad41e0454cb30842c133fa22 Reviewed-on: https://bazel-review.googlesource.com/#/c/4161 MOS_MIGRATED_REVID=128465441
* Suggest using --user when the install directory isn't writable.Gravatar John Cater2016-07-20
| | | | | | | | | Fixes #1540. -- Change-Id: I0f16bde6496f2abef8ba3d3562e62a1534c177ca Reviewed-on: https://bazel-review.googlesource.com/#/c/4081/ MOS_MIGRATED_REVID=127960571
* Adds a GPL warning to the binary installerGravatar Damien Martin-Guillerez2016-07-04
| | | | | | | | | Also remove some bashism to fix #1456. -- Change-Id: I374f1290a3eb9e9e5bcc48e19a1c0ab1c5bdaa99 Reviewed-on: https://bazel-review.googlesource.com/#/c/3952/ MOS_MIGRATED_REVID=126572632
* Add all the sources to //:srcs filegroup and add a check to detectGravatar Damien Martin-Guillerez2016-07-01
| | | | | | | | | | | missing file to it. We need to activate this check on presubmits -- Change-Id: Ia95e92d3816ce92bb69bc0e2cf56e9c60b68d970 Reviewed-on: https://bazel-review.googlesource.com/#/c/3949/ MOS_MIGRATED_REVID=126404792
* Fixed Bazel deb package dependency on Ubuntu 16.04Gravatar Yun Peng2016-07-01
| | | | | | | | | | Declare openjdk-9-jdk as Conflicts Progress towards #1456 -- Change-Id: I67c17b78f90f81dbcc9c39bf6f3915789662fa94 Reviewed-on: https://bazel-review.googlesource.com/#/c/3951 MOS_MIGRATED_REVID=126402113
* Replace #!/bin/bash -eu with #!/bin/bash and "set -eu". Otherwise, the "-eu" ↵Gravatar Philipp Wollermann2016-06-21
| | | | | | | | | is not picked up when you run the scripts manually using "bash script.sh". This is also in our shell style guide: "Executables must start with #!/bin/bash and a minimum number of flags. Use set to set shell options so that calling your script as bash <script_name> does not break its functionality." -- MOS_MIGRATED_REVID=125450962
* Rollback of commit 23c274dcd0174a9bf0f62f028ab62084e9ea440f.Gravatar Kristina Chodorow2016-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** This is a roll-forward of commit 009b48bcfaf4ebb17f9ab03bea9036cfa3c12ff0, making --bazelrc a no-op. *** Original change description *** Automated [] rollback of commit 009b48bcfaf4ebb17f9ab03bea9036cfa3c12ff0. *** Reason for rollback *** Broke bazel installation on ci.bazel.io, see http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel-Install/578/console This change should make --bazelrc a non-op first to remove it. *** Original change description *** Remove .bazelrc This hasn't been used in several releases. -- MOS_MIGRATED_REVID=122998537
* Rollback of commit 009b48bcfaf4ebb17f9ab03bea9036cfa3c12ff0.Gravatar Yue Gan2016-05-23
| | | | | | | | | | | | | | | | | *** Reason for rollback *** Broke bazel installation on ci.bazel.io, see http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel-Install/578/console This change should make --bazelrc a non-op first to remove it. *** Original change description *** Remove .bazelrc This hasn't been used in several releases. -- MOS_MIGRATED_REVID=122993255
* Remove .bazelrcGravatar Kristina Chodorow2016-05-23
| | | | | | | This hasn't been used in several releases. -- MOS_MIGRATED_REVID=122844213
* installer: remove guard when removing the bazel symlinkGravatar Damien Martin-Guillerez2016-05-02
| | | | | | | | | | | | Previously we were not removing a potential existing symlink. If this is a directory then the rm will fail, leading to a failure of the installer, whereas we would create a wrong symlink with the previous code. Fixes #1219. -- MOS_MIGRATED_REVID=121262370
* Refactor JDK 7 build to use the vendored version of itGravatar Damien Martin-Guillerez2016-04-20
| | | | | | | | | | | | | Along the path, fix the build for JDK 7 and get rid of most ugliness in the JDK 7 build. Now simply setting JAVA_VERSION to 1.7 will build a JDK 7 compatible version. Fixes #1159. -- Change-Id: I9599283844a57d9e053f12d37445907f22a9232e Reviewed-on: https://bazel-review.googlesource.com/#/c/3452 MOS_MIGRATED_REVID=120332747
* Rollback of commit 6cb8d820689ad029a9d0dc4ee1100db9b2d96515.Gravatar Damien Martin-Guillerez2016-04-14
| | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks ci.bazel.io While the basics for fixing the build is easy (just a few typos in packages building), fixing the test is a bit more tricky. I see only one solution for fixing the test: use a select statement that would select the good bazel version but that would always pull JavaBuilder as an external dependency when we do test. Better roll this back then check the JavaBuilder 0.1.0 as a binary in third_party before rolling forward (a similar change is still needed to decouple running the test and building the binary for JDK 7) *** Original change description *** Refactor build for JDK 7 Now the JDK 7 tuning happens all in Bazel, removing logic from the CI script. It uses remote repositories to access JDK 7 dependencies. -- MOS_MIGRATED_REVID=119773123
* Refactor build for JDK 7Gravatar Damien Martin-Guillerez2016-04-13
| | | | | | | | | | | Now the JDK 7 tuning happens all in Bazel, removing logic from the CI script. It uses remote repositories to access JDK 7 dependencies. -- Change-Id: Iff590c6642ca5b2343aa15096f8fd837d1c80787 Reviewed-on: https://bazel-review.googlesource.com/#/c/3327 MOS_MIGRATED_REVID=119634530
* Only run `bazel help` if the user isn't rootGravatar Kristina Chodorow2016-03-04
| | | | | | | Fixes #739. -- MOS_MIGRATED_REVID=116257685
* Aside from Debian dependency on java{7,8}-jdk, accept java{7,8}-sdkGravatar Ivan Vucica2016-02-23
| | | | | | | | | | | It seems like the change introduced in pull request #785 does not function universally. On some releases of Debian and Ubuntu, it looks like packages are declared as providing java{7,8}-sdk. Fixes #961. -- MOS_MIGRATED_REVID=115338913
* Remove vestige of the base_workspace in the installerGravatar Damien Martin-Guillerez2016-02-17
| | | | | | | This should fix the current ci.bazel.io breakage. -- MOS_MIGRATED_REVID=114892993
* installer: set permission of bazelrc to 0644Gravatar Damien Martin-Guillerez2016-02-16
| | | | | | | | | So that bazel can read it. Fixes #894. -- MOS_MIGRATED_REVID=114689351