To support Rocky, Alma, etc.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
pkgs = append(pkgs, "g++", "libcurl4", "libcurl4-openssl-dev")
case osv.Debian || osv.Ubuntu:
pkgs = append(pkgs, "g++", "libcurl3", "libcurl3-openssl-dev")
pkgs = append(pkgs, "g++", "libcurl4", "libcurl4-openssl-dev")
case osv.Debian || osv.Ubuntu:
pkgs = append(pkgs, "g++", "libcurl3", "libcurl3-openssl-dev")
pkgs = append(pkgs, "gcc", "gcc-c++", "libcurl-devel", "postgresql-devel")
}
cmd := exec.CommandContext(ctx, "apt-get")
pkgs = append(pkgs, "gcc", "gcc-c++", "libcurl-devel", "postgresql-devel")
}
cmd := exec.CommandContext(ctx, "apt-get")
type osversion struct {
Debian bool
Ubuntu bool
type osversion struct {
Debian bool
Ubuntu bool
osv.Ubuntu = true
case "debian":
osv.Debian = true
osv.Ubuntu = true
case "debian":
osv.Debian = true
- case "centos":
- osv.Centos = true
- return osv, fmt.Errorf("unsupported ID in /etc/os-release: %q", kv["ID"])
+ id_like_match := false
+ for _, id_like := range strings.Split(kv["ID_LIKE"], " ") {
+ switch id_like {
+ case "debian":
+ osv.Debian = true
+ id_like_match = true
+ case "rhel":
+ osv.RedHat = true
+ id_like_match = true
+ }
+ if id_like_match {
+ break
+ }
+ }
+ if !id_like_match {
+ return osv, fmt.Errorf("no supported ID found in /etc/os-release")
+ }
}
vstr := kv["VERSION_ID"]
if i := strings.Index(vstr, "."); i > 0 {
}
vstr := kv["VERSION_ID"]
if i := strings.Index(vstr, "."); i > 0 {
return append(pkgs,
"mime-support", // keep-web
)
return append(pkgs,
"mime-support", // keep-web
)
return append(pkgs,
"fuse-libs", // services/fuse
"mailcap", // keep-web
return append(pkgs,
"fuse-libs", // services/fuse
"mailcap", // keep-web