aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/packages
Commit message (Collapse)AuthorAge
* debian package: declare dependency on unzipGravatar Klaus Aehlig2018-07-09
| | | | | | | Fixes #5529 Change-Id: Ie3d45c4882355bd2f8b02c5afa1ad0248f28d505 PiperOrigin-RevId: 203751587
* python tools: ensure files are closedGravatar laszlocsomor2018-07-05
| | | | | | | | | | | Use the "with" statement to open files in various Python scripts used by Bazel, to ensure these files are closed eagerly. See https://github.com/bazelbuild/bazel/issues/5512 RELNOTES: none PiperOrigin-RevId: 203346678
* use https url in .deb package Homepage fieldGravatar Mostyn Bramley-Moore2018-06-29
| | | | | | Closes #5486. PiperOrigin-RevId: 202634385
* Make the embedded JDK targets the defaultGravatar Liam Miller-Cushon2018-06-18
| | | | | | Closes #5403. PiperOrigin-RevId: 201007405
* Add flag to skip early base extractionGravatar andy g scott ?2018-06-18
| | | | | | | | | | | | This adds a flag to the installer to skip uncompressing the base image during installation. Uncompressing the base image during installation can be problematic: 1. If you configure the startup option `output_user_root` you'll wind up extracting the image twice. Once during installation and a second time during the first bazel invocation in your project. 2. If you're bootstrapping Bazel in a controlled environment (in my case via Nix) then you can get permission errors if Bazel defaults to extracting to the home directory. There's no way to skip this extraction and for the time being I have resorted to seting `HOME` to a throw away directory during install. Closes #5303. PiperOrigin-RevId: 201004235
* Format all bzl files with buildifierGravatar vladmos2018-06-01
| | | | | | This CL aslo enables a presubmit check for correct formatting of all bzl files in //third_party/bazel. PiperOrigin-RevId: 198857055
* Remove current contents of the default global bazelrc.Gravatar John Cater2018-03-22
| | | | | | | | | | | | | The file is left as an empty file, so make upgrades easier. Site administrators can add their own content as needed, still. Fixes #4850. Closes #4857. TESTED: Created a Debian VM and tested installing the new version as an upgrade and as the first Bazel, observed that the global bazelrc had the expected content. RELNOTES: Remove the default content of the global bazelrc. Change-Id: I5f285f0c59d18179005ffe5bfc35931299635bbb PiperOrigin-RevId: 190060838
* Allow templated expansion of data dependency names in the RPM spec file.Gravatar John Cater2018-03-12
| | | | | | | | | | | Fixes #4810, invalidates #4782, and extends #4747. Change-Id: I19426bb30a151358875e9bae0e0c1d92b3818432 Closes #4816. Change-Id: I5d92cec994103e2136c5ed279780f321a42d1bdd PiperOrigin-RevId: 188722982
* Sync Debian package deps, and add a comment to prevent future desync.Gravatar John Millikin2018-03-01
| | | | | | | | | | | | | Commit c8be465869fbcfaa00b75d241c67279324976e0b added the headless JDK to `debian/control`, but this isn't propagating to published packages because those use the deps list in `debian/BUILD`. This commit adds the headless JDK to `debian/BUILD`, with comments so future changes won't hit the same problem. Closes #4686. PiperOrigin-RevId: 187461399
* Automatic code cleanup.Gravatar Googler2018-01-30
| | | | PiperOrigin-RevId: 183840991
* generate_changelog.py: Fix version number for development versionGravatar Yun Peng2018-01-30
| | | | | Change-Id: I33717f6a68035bfd5f8406685f935253e1d24325 PiperOrigin-RevId: 183815476
* Simplify generate-changelog-file ruleGravatar Yun Peng2018-01-29
| | | | | | | | | | | The debian package changlog file doesn't have to contain the real CHANGELOG.md. Parsing change log is error-prone and caused our release job to fail everytime, so here we simplified the script for generating changelog. Fix https://github.com/bazelbuild/bazel/issues/4530 Change-Id: I8adc5a98def5709ea57f9edbed9f0cf772a48d76 PiperOrigin-RevId: 183651058
* Fix index out of range error in convert_changelog.pyGravatar U-GOOGLE\pcloudy2018-01-23
| | | | | Change-Id: Ie6070b01e7d004589064edc1f182baa6b6fac8b4 PiperOrigin-RevId: 182940613
* Clean up Windows config_settingsGravatar Yun Peng2018-01-12
| | | | | | | | | | | | | | 1.Deleted config_setting for --cpu=x64_windows_msys, because we don't build Bazel with MSYS gcc anymore. 2.Deleted config_setting for --cpu=x64_windows_msvc, because it uses exactly the same toolchain as --cpu=x64_windows, it'll be removed in the future. This change reduces the complexity of our BUILD files and make them less confusing. Change-Id: I939831a6861413b0f745fb1be98aacd4fb780e0a PiperOrigin-RevId: 181751853
* Move bazel conditions into src/conditions.Gravatar tomlu2017-11-30
| | | | | | | This will enable an easier transition from checked-in BUILD files to ones generated by copybara. RELNOTES: None PiperOrigin-RevId: 177514519
* macOS compatibility in build.ps1.Gravatar Peter Mounce2017-11-28
| | | | | | | | | | | | Apparently powershell on macOS is a thing now... However, chocolatey does not yet seem to be... cc @dslomov Closes #4026. PiperOrigin-RevId: 177172660
* Allow Bazel's Debian package to install with headless JDK.Gravatar John Millikin2017-11-20
| | | | | | | | Fixes https://github.com/bazelbuild/bazel/issues/3761 Closes #4015. PiperOrigin-RevId: 176340908
* bazelrc: remove experimental_ui optionsGravatar Klaus Aehlig2017-10-20
| | | | | | | | | | Now that the experimental_ui is enabled by default in commit 784bb52613feb484221c3aa6756de, we do not need to enable it in the (recommended) bazelrc file anymore. While there, also move the default number of actions shown in the experimental_ui to the flag default. Change-Id: I74673a0d677b6d832c9fb5e2983f97c0dcbc44e4 PiperOrigin-RevId: 172736977
* Remove some left over bits of Java 7 supportGravatar Liam Miller-Cushon2017-09-04
| | | | | Change-Id: I3fce66ec2e63d152aafc0cf9ea067d6dbf1245f7 PiperOrigin-RevId: 167484075
* Update files attribute on pkg_tar.Gravatar John Cater2017-08-10
| | | | | Change-Id: I37bb40cae9d8a6ca99460df83b33541972926766 PiperOrigin-RevId: 164726294
* Fix typo in the chocolatey generation scriptGravatar hlopko2017-08-09
| | | | | | | | It's releases.bazel.build where we share the release candidates, not release.bazel.build. RELNOTES: None. PiperOrigin-RevId: 164694701
* Adjust chocolatey package for new artifact namesGravatar Peter Mounce2017-07-31
| | | | | | Closes #3466. PiperOrigin-RevId: 163459450
* Use the .bazel.build URL instead of the googleapis.com oneGravatar dmarting2017-07-27
| | | | PiperOrigin-RevId: 163326705
* Create Windows ZIP release artifact using BazelGravatar Damien Martin-Guillerez2017-07-25
| | | | | | | | | | | | The new pipeline does not support ziping artifact which was a custom hack for Windows, relies on Bazel to generate those zip instead. Step forward fixing bazelbuild/continuous-integration#101 To cherry-pick for #3375. Change-Id: Id566d66bb179096d60c5b535f245d64cea28c5b8 PiperOrigin-RevId: 163054883
* Allow Debian package to be installed alongside JDK 9Gravatar Thomas Broyer2017-07-10
| | | | | | | | | Update the documentation to instruct explicitly installing JDK 8. Fixes #3147 Change-Id: If92ff93b095bead043c9b069e000b7afbc0abca0 PiperOrigin-RevId: 161387193
* In the default bazelrc use experimental UI and target pattern evaluatorGravatar Klaus Aehlig2017-06-14
| | | | | | | | | | | | | | | In the bazelrc we ship with our packages and recommend other package maintainers to use, enable the experimental_skyframe_target_evaluator and experimental_ui by default. Also set show_progress_rate_limit to a value that fits with the experimental UI. We plan to switch to those values as default (Issue #3187), and by setting apropriate defaults in the rc-file, we encourage users to test those settings while giving the possibility to easily roll back, should any problems arise. Change-Id: I456a5a34158541151a0bff61f3039b3d7e2d61b0 PiperOrigin-RevId: 158970147
* Chocolatey install: fix script. problem onGravatar Peter Mounce2017-06-06
| | | | | | | | reading. Closes #2794. PiperOrigin-RevId: 158117701
* Make msysless flavour be the default inside chocolateyGravatar Peter Mounce2017-05-29
| | | | | | | | | | | | This attempts to fix #3006. This change will presumably have to be reversed once msysless binary name changes to become the default. It would be simpler to name the default binary for being default, to avoid special casing (see https://github.com/bazelbuild/bazel/issues/3006#issuecomment-301440068). Closes #3066. PiperOrigin-RevId: 157390473
* Fix #2982: Bazel installer should not check for installed JDK if using a ↵Gravatar philwo2017-05-15
| | | | | | bundled JDK. PiperOrigin-RevId: 156092071
* Fix #2958: Installer should not overwrite bazelrcGravatar Philipp Wollermann2017-05-08
| | | | | | | Closes #2959. Ping #2692 for cherry-picking into Bazel 0.5.0. PiperOrigin-RevId: 155357560
* Bundled JDK changes for the release process. This is a fixed versionGravatar philwo2017-04-28
| | | | | | | | | | | | | | | that should not break CI this time... - Make the default Bazel release artifacts include the bundled JDK. - Create additional Bazel release artifacts without a bundled JDK. Tested by running "bazel build //scripts/..." in a clean checkout and one with this patch in, then diffing the entire bazel-out folder and manually inspecting the resulting files (zips, tar.gz, deb, rpm) to make sure that they contain the right files. Looks all good now, so let's try again. PiperOrigin-RevId: 154544164
* Automated g4 rollback of commit 2c4dd1f3176371473667c551cd5a5ae5992f8154.Gravatar philwo2017-04-24
| | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks CI because //scripts/packages/debian:bazel-bin still references //scripts/packages:bazel-real. *** Original change description *** Bundled JDK changes for the release process. - Make the default Bazel release artifacts include the bundled JDK. - Create additional Bazel release artifacts without a bundled JDK. Change-Id: If87c986507ae8e7dbbf0e8f163dd0073a206b265 PiperOrigin-RevId: 154054435
* Bundled JDK changes for the release process.Gravatar Philipp Wollermann2017-04-24
| | | | | | | | - Make the default Bazel release artifacts include the bundled JDK. - Create additional Bazel release artifacts without a bundled JDK. Change-Id: If87c986507ae8e7dbbf0e8f163dd0073a206b265 PiperOrigin-RevId: 153718827
* Remove empty_files for bazel binary installer.Gravatar Harsh Vardhan2017-04-13
| | | | | | | | | Bazel binary installer contains empty files because of the line that wasn't removed while packaging bazel_tools inside bazel. Fixes: https://github.com/bazelbuild/bazel/issues/2662 Change-Id: I53a1f74566c48c3458ced2d46362873a68b6bf49 PiperOrigin-RevId: 153048191
* Squash remaining unmerged changes and resubmit PR from #2758Gravatar Peter Mounce2017-04-12
| | | | | | Closes #2764. PiperOrigin-RevId: 152907840
* Fix choco integrity checkGravatar dslomov2017-03-31
| | | | | | | | | | This causes a hard-fail. I'm attempting to publish a fixed package now, but chocolatey.org is failing with a `502 Bad Gateway`. I'm talking to the chocolatey team in their gitter now. I'll update here once I've been able to push. Closes #2758. PiperOrigin-RevId: 151693032
* Parse params via a built-in, and lock msys2 version Gravatar Peter Mounce2017-03-22
| | | | | | | | | | | | | @laszlocsomor - This addresses https://github.com/bazelbuild/bazel/issues/2449#issuecomment-278059161. Note - this is _not_ in the 0.4.5 package, since I was waiting for that release to go out prior to this. Closes #2690. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2690 PiperOrigin-RevId: 150745085 MOS_MIGRATED_REVID=150745085
* Fix #2671 on GitHub Gravatar Peter Mounce2017-03-15
| | | | | | | | | Closes #2678. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2678 PiperOrigin-RevId: 150167309 MOS_MIGRATED_REVID=150167309
* Fix powershellv2 Gravatar Peter Mounce2017-03-07
| | | | | | | | | | | | | | | | | | | Powershell v2 (win7 vintage) doesn't have json cmdlets. Got a report via chocolatey.org message that this doesn't work on win7. Cried. Replaced with simpler text file based approach for separating data from code. Also fix package version fix notation bit of the automation to produce version numbers valid with chocolatey/nuspec. I've already published a fixed 0.4.5-rc2 and 0.4.4 with this * https://chocolatey.org/packages/bazel/0.4.4.20170306 * https://chocolatey.org/packages/bazel/0.4.5-rc2-20170306-124051 Closes #2633. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2633 PiperOrigin-RevId: 149314972 MOS_MIGRATED_REVID=149314972
* Fix paths of binaries in .deb packages. Gravatar John Cater2017-02-28
| | | | | | | | | | | | To be cherry-picked for #2472. Fixes #2605. -- Change-Id: Idfd1bf264ceb696ca766268c8a16891476ee33b1 Reviewed-on: https://cr.bazel.build/9111 PiperOrigin-RevId: 148749784 MOS_MIGRATED_REVID=148749784
* 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