Skip to content

Commit 7986ba1

Browse files
committed
linuxbrew-core-migration: remove unneeded formulae
This change removes formulae that: * have newer versions or revisions in Homebrew/core * have been removed or disabled The last pkg-version string is added for remaining formulae to check when `Formula[key].pkg_version > PkgVersion.parse(value)`
1 parent 6664aa5 commit 7986ba1

File tree

2 files changed

+34
-121
lines changed

2 files changed

+34
-121
lines changed

Library/Homebrew/cmd/update-report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
require "cleanup"
1111
require "description_cache_store"
1212
require "settings"
13-
require "linuxbrew-core-migration"
1413
require "reinstall"
1514

1615
module Homebrew
@@ -153,6 +152,7 @@ def output_update_report
153152
Settings.read("linuxbrewmigrated") != "true"
154153
ohai "Migrating formulae from linuxbrew-core to homebrew-core"
155154

155+
require "linuxbrew-core-migration"
156156
LINUXBREW_CORE_MIGRATION_LIST.each do |name|
157157
begin
158158
formula = Formula[name]
Lines changed: 33 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,126 +1,39 @@
1-
# typed: strict
1+
# typed: strong
22
# frozen_string_literal: true
33

4+
# Hash of formulae with their old linuxbrew-core pkg_version strings.
5+
# These formulae had a revision in linuxbrew-core that was different
6+
# than in homebrew-core.
7+
LINUXBREW_CORE_MIGRATION_OLD_PKG_VERSIONS = T.let({
8+
"apng2gif" => "1.8_2",
9+
"argon2" => "20190702_2",
10+
"csvtomd" => "0.3.0_4",
11+
"cvs" => "1.12.13_5",
12+
"cxxtest" => "4.4_4",
13+
"datetime-fortran" => "1.7.0_1",
14+
"docbook2x" => "0.8.8_3",
15+
"exif" => "0.6.22_1",
16+
"ftgl" => "2.1.3-rc5_1",
17+
"gflags" => "2.2.2_2",
18+
"glew" => "2.2.0_2",
19+
"glui" => "2.37_2",
20+
"gtkmm" => "2.24.5_9",
21+
"intltool" => "0.51.0_3",
22+
"io" => "2017.09.06_2",
23+
"jed" => "0.99-19_1",
24+
"mecab" => "0.996_1",
25+
"openmotif" => "2.3.8_3",
26+
"osmfilter" => "0.9_1",
27+
"pius" => "3.0.0_4",
28+
"plotutils" => "2.6_5",
29+
"plplot" => "5.15.0_4",
30+
"softhsm" => "2.6.1_1",
31+
"tasksh" => "1.2.0_2",
32+
"xclip" => "0.13_4",
33+
}.freeze, T::Hash[String, String])
34+
435
# List of formulae that had a revision in linuxbrew-core
536
# that was different than in homebrew-core
637
# We will use this list to modify the version_scheme
738
# during the migration from linuxbrew-core to homebrew-core.
8-
9-
LINUXBREW_CORE_MIGRATION_LIST = %w[
10-
afuse
11-
apng2gif
12-
apr-util
13-
archivemount
14-
argon2
15-
arpack
16-
asciinema
17-
atdtool
18-
augustus
19-
avfs
20-
bandcamp-dl
21-
cairo
22-
ccls
23-
codemod
24-
cquery
25-
credstash
26-
csvtomd
27-
cvs
28-
cxxtest
29-
datetime-fortran
30-
ddd
31-
diceware
32-
docbook2x
33-
docker-squash
34-
doitlive
35-
double-conversion
36-
exif
37-
expect
38-
fades
39-
fastme
40-
fbi-servefiles
41-
foma
42-
fontconfig
43-
freeglut
44-
ftgl
45-
gcc@5
46-
gettext
47-
gflags
48-
ghc@8.6
49-
ghc@8.8
50-
git-remote-hg
51-
gitfs
52-
gitless
53-
gitup
54-
glade
55-
glew
56-
glui
57-
goolabs
58-
gperftools
59-
grip
60-
gtkmm
61-
hdf5@1.8
62-
htop
63-
intltool
64-
io
65-
jed
66-
jinja2-cli
67-
legit
68-
libebml
69-
libexif
70-
libffi
71-
libgetdata
72-
libhttpseverywhere
73-
libproxy
74-
libtool
75-
libxslt
76-
literate-git
77-
llvm@11
78-
llvm@7
79-
llvm@8
80-
llvm@9
81-
lua
82-
lua@5.1
83-
lua@5.3
84-
magic-wormhole
85-
mecab
86-
mosh
87-
mps-youtube
88-
ncview
89-
notifiers
90-
openmotif
91-
osmfilter
92-
pachi
93-
packmol
94-
passpie
95-
pius
96-
pkg-config
97-
plotutils
98-
plplot
99-
postgresql@9.4
100-
postgresql@9.5
101-
pssh
102-
pup
103-
pyvim
104-
ratfor
105-
remarshal
106-
reprepro
107-
rtv
108-
s3cmd
109-
scalapack
110-
securefs
111-
softhsm
112-
statik
113-
stormssh
114-
superlu
115-
tasksh
116-
termtosvg
117-
tinyxml
118-
vsts-cli
119-
xclip
120-
xerces-c
121-
xmlto
122-
xmltoman
123-
xmount
124-
xxhash
125-
zabbix-cli
126-
].freeze
39+
LINUXBREW_CORE_MIGRATION_LIST = T.let(LINUXBREW_CORE_MIGRATION_OLD_PKG_VERSIONS.keys.freeze, T::Array[String])

0 commit comments

Comments
 (0)