Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Commit d476c6b

Browse files
committed
portable-package: fix building deps as bottles
HOMEBREW_BUILD_BOTTLE was removed. Fixes #104.
1 parent 96260d6 commit d476c6b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/portable-package.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@ def portable_package
3333
raise UsageError, "--no-commit requires --write!" if !Homebrew.args.write? && Homebrew.args.no_commit?
3434

3535
ENV["HOMEBREW_DEVELOPER"] = "1"
36-
ENV["HOMEBREW_BUILD_BOTTLE"] = "1" if OS.linux?
3736

3837
Homebrew.args.named.each do |name|
3938
name = "portable-#{name}" unless name.start_with? "portable-"
4039
begin
4140
deps = Utils.popen_read("brew", "deps", "--include-build", name).split("\n")
4241

4342
# Avoid installing glibc. Bottles depend on glibc.
44-
safe_system "brew", "install", "-s", *deps if OS.linux?
43+
safe_system "brew", "install", "--build-bottle", *deps if OS.linux?
4544

4645
safe_system "brew", "install", "--build-bottle", name
4746
unless Homebrew.args.no_uninstall_deps?

0 commit comments

Comments
 (0)