formula_installer: build formula options better.
formula_installer: build formula options better.

Previously we got all the options based on the build, any inherited
options, any passed options and the tab. We want to make sure that these
then exclude any options that don't exist as, otherwise, passing an
option that doesn't exist (or has been deleted) is enough to stop a
bottle being poured. This was particularly nasty on upgrades where we
deleted options and one left in the tab would stop the bottle being
poured.

Closes #47891.

Signed-off-by: Mike McQuaid <a17fed27eaa842282862ff7c1b9c8395a26ac320@mikemcquaid.com>

brunchboy/homebrew,OJFord/homebrew,retrography/homebrew,decors/homebrew,joshfriend/homebrew,drbenmorgan/linuxbrew,yazuuchi/homebrew,getgauge/homebrew,sometimesfood/homebrew,AlexejK/homebrew,dongcarl/homebrew,influxdata/homebrew,MoSal/homebrew,influxdata/homebrew,jarrettmeyer/homebrew,reelsense/linuxbrew,slyphon/homebrew,muellermartin/homebrew,MartinDelille/homebrew,chadcatlett/homebrew,gawbul/homebrew,influxdb/homebrew,treyharris/homebrew,Red54/homebrew,influxdb/homebrew,hongkongkiwi/homebrew,apjanke/homebrew,apjanke/homebrew,royhodgman/homebrew,kevinastone/homebrew,skatsuta/homebrew,dalanmiller/homebrew,recruit-tech/homebrew,utzig/homebrew,hongkongkiwi/homebrew,vigo/homebrew,yumitsu/homebrew,getgauge/homebrew,reelsense/homebrew,gicmo/homebrew,base10/homebrew,vigo/homebrew,dutchcoders/homebrew,OJFord/homebrew,treyharris/homebrew,afh/homebrew,Linuxbrew/linuxbrew,thinker0/homebrew,bukzor/linuxbrew,pcottle/homebrew,redpen-cc/homebrew,dongcarl/homebrew,recruit-tech/homebrew,ilovezfs/homebrew,SuperNEMO-DBD/cadfaelbrew,slyphon/homebrew,retrography/homebrew,sferik/homebrew,dutchcoders/homebrew,galaxy001/homebrew,filcab/homebrew,dunn/homebrew,Angeldude/linuxbrew,AlexejK/homebrew,gnubila-france/linuxbrew,ExtremeMan/homebrew,royhodgman/homebrew,vigo/homebrew,hakamadare/homebrew,alebcay/homebrew,youtux/homebrew,dplarson/homebrew,sakra/homebrew,youtux/homebrew,jsjohnst/homebrew,Red54/homebrew,nandub/homebrew,marcwebbie/homebrew,elyscape/homebrew,dutchcoders/homebrew,frodeaa/homebrew,base10/homebrew,osimola/homebrew,georgschoelly/homebrew,frodeaa/homebrew,ralic/homebrew,ear/homebrew,Chilledheart/homebrew,tutumcloud/homebrew,cprecioso/homebrew,SuperNEMO-DBD/cadfaelbrew,osimola/homebrew,Homebrew/linuxbrew,dericed/homebrew,TaylorMonacelli/homebrew,SteveClement/homebrew,Asuranceturix/homebrew,scpeters/homebrew,iostat/homebrew2,drewwells/homebrew,dalanmiller/homebrew,bigbes/homebrew,jarrettmeyer/homebrew,drbenmorgan/linuxbrew,recruit-tech/homebrew,TaylorMonacelli/homebrew,utzig/homebrew,TaylorMonacelli/homebrew,sakra/homebrew,drewwells/homebrew,feelpp/homebrew,iostat/homebrew2,youtux/homebrew,skinny-framework/homebrew,adamliter/homebrew,decors/homebrew,dplarson/homebrew,reelsense/homebrew,gawbul/homebrew,kenips/homebrew,ento/homebrew,gnubila-france/linuxbrew,ExtremeMan/homebrew,dalanmiller/homebrew,josa42/homebrew,vigo/homebrew,theeternalsw0rd/homebrew,michaKFromParis/homebrew-sparks,ento/homebrew,skatsuta/homebrew,ear/homebrew,danieroux/homebrew,haihappen/homebrew,ybott/homebrew,hongkongkiwi/homebrew,haihappen/homebrew,eighthave/homebrew,jamer/homebrew,osimola/homebrew,hakamadare/homebrew,alebcay/homebrew,cosmo0920/homebrew,dplarson/homebrew,SteveClement/homebrew,skinny-framework/homebrew,esamson/homebrew,retrography/homebrew,eighthave/homebrew,polishgeeks/homebrew,cosmo0920/homebrew,cprecioso/homebrew,hakamadare/homebrew,MoSal/homebrew,ryanfb/homebrew,dericed/homebrew,decors/homebrew,liamstask/homebrew,LinusU/homebrew,josa42/homebrew,reelsense/homebrew,optikfluffel/homebrew,bukzor/linuxbrew,johanhammar/homebrew,kenips/homebrew,decors/homebrew,Asuranceturix/homebrew,menivaitsi/homebrew,danieroux/homebrew,keith/homebrew,kodabb/homebrew,yumitsu/homebrew,lrascao/homebrew,osimola/homebrew,hanxue/homebrew,drewwells/homebrew,danieroux/homebrew,deorth/homebrew,michaKFromParis/homebrew-sparks,cosmo0920/homebrew,bukzor/linuxbrew,slyphon/homebrew,haihappen/homebrew,ilovezfs/homebrew,skinny-framework/homebrew,lrascao/homebrew,esamson/homebrew,elyscape/homebrew,menivaitsi/homebrew,filcab/homebrew,LinusU/homebrew,adamliter/homebrew,gicmo/homebrew,3van/homebrew,johanhammar/homebrew,influxdata/homebrew,SteveClement/homebrew,emcrisostomo/homebrew,esamson/homebrew,BrewTestBot/homebrew,dickeyxxx/homebrew,joshfriend/homebrew,royhodgman/homebrew,dunn/homebrew,sjackman/linuxbrew,MoSal/homebrew,recruit-tech/homebrew,ybott/homebrew,bukzor/linuxbrew,gicmo/homebrew,DoomHammer/linuxbrew,danieroux/homebrew,3van/homebrew,tschoonj/homebrew,treyharris/homebrew,theeternalsw0rd/homebrew,DoomHammer/linuxbrew,kenips/homebrew,elyscape/homebrew,scorphus/homebrew,BrewTestBot/homebrew,ablyler/homebrew,booi/homebrew,tschoonj/homebrew,Linuxbrew/linuxbrew,Homebrew/homebrew,SteveClement/homebrew,galaxy001/homebrew,thinker0/homebrew,sakra/homebrew,ebouaziz/linuxbrew,marcwebbie/homebrew,influxdata/homebrew,kevinastone/homebrew,sakra/homebrew,jsjohnst/homebrew,ebouaziz/linuxbrew,dongcarl/homebrew,totalvoidness/homebrew,Angeldude/linuxbrew,sferik/homebrew,kodabb/homebrew,utzig/homebrew,liamstask/homebrew,apjanke/homebrew,cprecioso/homebrew,saketkc/linuxbrew,Asuranceturix/homebrew,optikfluffel/homebrew,menivaitsi/homebrew,jsjohnst/homebrew,ralic/homebrew,ablyler/homebrew,jamer/homebrew,ablyler/homebrew,jamer/homebrew,hongkongkiwi/homebrew,scorphus/homebrew,nandub/homebrew,BrewTestBot/homebrew,redpen-cc/homebrew,ento/homebrew,eighthave/homebrew,alebcay/homebrew,liamstask/homebrew,chadcatlett/homebrew,Homebrew/homebrew,sometimesfood/homebrew,keith/homebrew,josa42/homebrew,kevinastone/homebrew,drbenmorgan/linuxbrew,reelsense/linuxbrew,dickeyxxx/homebrew,yazuuchi/homebrew,cosmo0920/homebrew,polishgeeks/homebrew,bigbes/homebrew,dplarson/homebrew,kodabb/homebrew,yumitsu/homebrew,slyphon/homebrew,ablyler/homebrew,johanhammar/homebrew,getgauge/homebrew,Linuxbrew/linuxbrew,deorth/homebrew,totalvoidness/homebrew,yazuuchi/homebrew,booi/homebrew,filcab/homebrew,quantumsteve/homebrew,hanxue/homebrew,TaylorMonacelli/homebrew,thinker0/homebrew,skatsuta/homebrew,ilovezfs/homebrew,alebcay/homebrew,Homebrew/homebrew,mkrapp/homebrew,nandub/homebrew,SteveClement/homebrew,sjackman/linuxbrew,tutumcloud/homebrew,polishgeeks/homebrew,apjanke/homebrew,OJFord/homebrew,skatsuta/homebrew,saketkc/linuxbrew,lrascao/homebrew,base10/homebrew,Red54/homebrew,MartinDelille/homebrew,feelpp/homebrew,ebouaziz/linuxbrew,quantumsteve/homebrew,MoSal/homebrew,joshfriend/homebrew,pcottle/homebrew,iostat/homebrew2,yazuuchi/homebrew,tutumcloud/homebrew,AlexejK/homebrew,deorth/homebrew,redpen-cc/homebrew,sometimesfood/homebrew,ear/homebrew,mobileoverlord/homebrew-1,OJFord/homebrew,MartinDelille/homebrew,3van/homebrew,hanxue/homebrew,Chilledheart/homebrew,feelpp/homebrew,3van/homebrew,saketkc/linuxbrew,Homebrew/homebrew,jamer/homebrew,LinusU/homebrew,base10/homebrew,totalvoidness/homebrew,ralic/homebrew,keith/homebrew,sferik/homebrew,dickeyxxx/homebrew,elgertam/homebrew,drewwells/homebrew,sjackman/linuxbrew,influxdb/homebrew,SuperNEMO-DBD/cadfaelbrew,sometimesfood/homebrew,hanxue/homebrew,mkrapp/homebrew,scpeters/homebrew,nandub/homebrew,dunn/homebrew,brunchboy/homebrew,feelpp/homebrew,ento/homebrew,georgschoelly/homebrew,hakamadare/homebrew,georgschoelly/homebrew,georgschoelly/homebrew,emcrisostomo/homebrew,royhodgman/homebrew,ybott/homebrew,pcottle/homebrew,dalanmiller/homebrew,brunchboy/homebrew,LinusU/homebrew,benjaminfrank/homebrew,cprecioso/homebrew,iostat/homebrew2,emcrisostomo/homebrew,ralic/homebrew,elgertam/homebrew,adamliter/homebrew,frodeaa/homebrew,ryanfb/homebrew,SuperNEMO-DBD/cadfaelbrew,gawbul/homebrew,muellermartin/homebrew,DoomHammer/linuxbrew,kodabb/homebrew,muellermartin/homebrew,johanhammar/homebrew,scpeters/homebrew,scpeters/homebrew,dericed/homebrew,liamstask/homebrew,Homebrew/linuxbrew,DoomHammer/linuxbrew,benjaminfrank/homebrew,ryanfb/homebrew,ilovezfs/homebrew,emcrisostomo/homebrew,totalvoidness/homebrew,filcab/homebrew,afh/homebrew,jarrettmeyer/homebrew,dericed/homebrew,cscetbon/homebrew,esamson/homebrew,Asuranceturix/homebrew,sferik/homebrew,dickeyxxx/homebrew,retrography/homebrew,Homebrew/linuxbrew,dutchcoders/homebrew,MartinDelille/homebrew,quantumsteve/homebrew,elyscape/homebrew,tutumcloud/homebrew,marcwebbie/homebrew,Angeldude/linuxbrew,elgertam/homebrew,sjackman/linuxbrew,haihappen/homebrew,ExtremeMan/homebrew,thinker0/homebrew,booi/homebrew,saketkc/linuxbrew,ExtremeMan/homebrew,AlexejK/homebrew,muellermartin/homebrew,Angeldude/linuxbrew,utzig/homebrew,Chilledheart/homebrew,treyharris/homebrew,tschoonj/homebrew,menivaitsi/homebrew,cscetbon/homebrew,youtux/homebrew,pcottle/homebrew,mobileoverlord/homebrew-1,bigbes/homebrew,michaKFromParis/homebrew-sparks,kevinastone/homebrew,galaxy001/homebrew,dongcarl/homebrew,Linuxbrew/linuxbrew,Chilledheart/homebrew,afh/homebrew,elgertam/homebrew,ebouaziz/linuxbrew,bigbes/homebrew,dunn/homebrew,chadcatlett/homebrew,mkrapp/homebrew,theeternalsw0rd/homebrew,kenips/homebrew,quantumsteve/homebrew,keith/homebrew,frodeaa/homebrew,skinny-framework/homebrew,galaxy001/homebrew,mobileoverlord/homebrew-1,gicmo/homebrew,gnubila-france/linuxbrew,cscetbon/homebrew,adamliter/homebrew,tschoonj/homebrew,optikfluffel/homebrew,mobileoverlord/homebrew-1,reelsense/homebrew,polishgeeks/homebrew,optikfluffel/homebrew,ear/homebrew,Red54/homebrew,pcottle/homebrew,jarrettmeyer/homebrew,BrewTestBot/homebrew,reelsense/linuxbrew,ybott/homebrew,ryanfb/homebrew,redpen-cc/homebrew,benjaminfrank/homebrew,benjaminfrank/homebrew,reelsense/linuxbrew,scorphus/homebrew,jsjohnst/homebrew,influxdb/homebrew,theeternalsw0rd/homebrew,Asuranceturix/homebrew,afh/homebrew,Homebrew/linuxbrew,getgauge/homebrew,scorphus/homebrew,brunchboy/homebrew,marcwebbie/homebrew,gnubila-france/linuxbrew,eighthave/homebrew,drbenmorgan/linuxbrew