<feed xmlns='http://www.w3.org/2005/Atom'>
<title>brew/Library/Homebrew/superenv.rb, branch 1.3.2</title>
<subtitle>🍺 The missing package manager for macOS</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/brew/'/>
<entry>
<title>Move superenv.rb to extend/ENV/super.rb</title>
<updated>2013-08-19T17:32:59+00:00</updated>
<author>
<name>Jack Nagel</name>
</author>
<published>2013-08-19T17:32:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/brew/commit/?id=cc18f5e0c4405dc9e5344f2762818eb41cd6784f'/>
<id>cc18f5e0c4405dc9e5344f2762818eb41cd6784f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix superenv ENV[] hack</title>
<updated>2013-08-19T17:32:58+00:00</updated>
<author>
<name>Jack Nagel</name>
</author>
<published>2013-08-19T17:32:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/brew/commit/?id=061f8cb35f8ac155e16943951ae39aa75cbd24d2'/>
<id>061f8cb35f8ac155e16943951ae39aa75cbd24d2</id>
<content type='text'>
We override ENV[] to always return strings under superenv, because
legacy formulae assume that CFLAGS, etc. are non-nil.

However, the current implementation has a bug. If I simply concatenate
ENV['CFLAGS'] with another string, it mutates ENV['CFLAGS']:

  irb&gt; ENV['CFLAGS']
  =&gt; ""
  irb&gt; ENV['CFLAGS'] + 'a'
  =&gt; "a"
  irb&gt; ENV['CFLAGS']
  =&gt; "a"

Instead, let's simply return an empty string if the key doesn't exist.
This is sufficient because the following are equivalent:

  1. ENV['CFLAGS'] += "string"
  2. ENV['CFLAGS'] = ENV['CFLAGS'] + "string"
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We override ENV[] to always return strings under superenv, because
legacy formulae assume that CFLAGS, etc. are non-nil.

However, the current implementation has a bug. If I simply concatenate
ENV['CFLAGS'] with another string, it mutates ENV['CFLAGS']:

  irb&gt; ENV['CFLAGS']
  =&gt; ""
  irb&gt; ENV['CFLAGS'] + 'a'
  =&gt; "a"
  irb&gt; ENV['CFLAGS']
  =&gt; "a"

Instead, let's simply return an empty string if the key doesn't exist.
This is sufficient because the following are equivalent:

  1. ENV['CFLAGS'] += "string"
  2. ENV['CFLAGS'] = ENV['CFLAGS'] + "string"
</pre>
</div>
</content>
</entry>
<entry>
<title>Re-enable superenv ENV[] hack</title>
<updated>2013-08-19T17:32:58+00:00</updated>
<author>
<name>Jack Nagel</name>
</author>
<published>2013-08-19T17:32:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/brew/commit/?id=9699c0764efddbc7f9f398ed0fd1726db28523b3'/>
<id>9699c0764efddbc7f9f398ed0fd1726db28523b3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Reference self rather than ENV in Superenv module</title>
<updated>2013-08-19T17:32:57+00:00</updated>
<author>
<name>Jack Nagel</name>
</author>
<published>2013-08-19T17:32:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/brew/commit/?id=06b1668340d8672c27205c30865a0947107925cc'/>
<id>06b1668340d8672c27205c30865a0947107925cc</id>
<content type='text'>
We want to be able to extend this module onto an arbitrary hash and use
it without mutating ENV, for testing purposes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We want to be able to extend this module onto an arbitrary hash and use
it without mutating ENV, for testing purposes.
</pre>
</div>
</content>
</entry>
<entry>
<title>Move common stuff to extend/ENV.rb</title>
<updated>2013-08-19T17:32:57+00:00</updated>
<author>
<name>Jack Nagel</name>
</author>
<published>2013-08-19T17:32:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/brew/commit/?id=eebc04ec9bfaca32024e2cb80ebf52b8ee68a7c9'/>
<id>eebc04ec9bfaca32024e2cb80ebf52b8ee68a7c9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make Superenv activation explicit</title>
<updated>2013-08-19T17:32:56+00:00</updated>
<author>
<name>Jack Nagel</name>
</author>
<published>2013-08-19T17:32:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/brew/commit/?id=bf0e32901076c5397faf4fa34bbab263f3292440'/>
<id>bf0e32901076c5397faf4fa34bbab263f3292440</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Move superbin into Superenv module</title>
<updated>2013-08-19T17:32:56+00:00</updated>
<author>
<name>Jack Nagel</name>
</author>
<published>2013-08-19T17:32:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/brew/commit/?id=a04f1ac3d362e3da38db7aea0bc89ebc55f92478'/>
<id>a04f1ac3d362e3da38db7aea0bc89ebc55f92478</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Move setup into an extended callback</title>
<updated>2013-08-19T17:32:56+00:00</updated>
<author>
<name>Jack Nagel</name>
</author>
<published>2013-08-19T17:32:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/brew/commit/?id=ab5c6218b168048de7b4c4db123fe0fac9bda30e'/>
<id>ab5c6218b168048de7b4c4db123fe0fac9bda30e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Extend Superenv onto ENV instead of defining it on the singleton class</title>
<updated>2013-08-19T17:32:55+00:00</updated>
<author>
<name>Jack Nagel</name>
</author>
<published>2013-08-19T17:32:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/brew/commit/?id=21d3402f8ea7844115d20e2d32b612af5bdaab60'/>
<id>21d3402f8ea7844115d20e2d32b612af5bdaab60</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>superenv: use Hardware::CPU.universal_archs</title>
<updated>2013-08-16T05:46:57+00:00</updated>
<author>
<name>Misty De Meo</name>
</author>
<published>2013-08-03T05:28:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/brew/commit/?id=1586a69879a900ca1677da3c8ac0fe1cdc570932'/>
<id>1586a69879a900ca1677da3c8ac0fe1cdc570932</id>
<content type='text'>
This defines the new HOMEBREW_ARCHS environment variable, which is
currently only set during universal builds, so that the tool wrappers
no longer need to hardcode i386/x86_64.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This defines the new HOMEBREW_ARCHS environment variable, which is
currently only set during universal builds, so that the tool wrappers
no longer need to hardcode i386/x86_64.
</pre>
</div>
</content>
</entry>
</feed>
