Skip to content

Commit b49397b

Browse files
authored
Fix MSys2 side-conditions for conf-packages, part 2/3 (#28944)
* Fix MinGW side-condition in conf-gtksourceview3 * Fix MinGW side-condition in conf-libevent * Fix MinGW side-conditions in conf-libffi * Fix MinGW side-conditions in conf-liblz4 * Fix MinGW side-conditions in conf-libpcre2-8 * Fix MinGW side-conditions in conf-libpcre * Fix MinGW side-conditions in conf-libssl * Fix MinGW side-condition in conf-ncurses * Remove available-guard from conf-mingw-w64-pcre-{i686,x86_64} preventing MSys2 installation * Test for 'ncursesw' on MSys2 instead * Also updated tested package name in conf-mingw-w64-ncurses-*
2 parents 8a324a5 + 4a07cf5 commit b49397b

File tree

12 files changed

+38
-31
lines changed
  • packages
    • conf-gtksourceview3/conf-gtksourceview3.0+2
    • conf-libevent/conf-libevent.1
    • conf-libffi/conf-libffi.2.0.0
    • conf-liblz4/conf-liblz4.1
    • conf-libpcre2-8/conf-libpcre2-8.2
    • conf-libpcre/conf-libpcre.2
    • conf-libssl/conf-libssl.4
    • conf-mingw-w64-ncurses-i686/conf-mingw-w64-ncurses-i686.1
    • conf-mingw-w64-ncurses-x86_64/conf-mingw-w64-ncurses-x86_64.1
    • conf-mingw-w64-pcre-i686/conf-mingw-w64-pcre-i686.1
    • conf-mingw-w64-pcre-x86_64/conf-mingw-w64-pcre-x86_64.1
    • conf-ncurses/conf-ncurses.1

12 files changed

+38
-31
lines changed

packages/conf-gtksourceview3/conf-gtksourceview3.0+2/opam

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ bug-reports: "https://github.com/ocaml/opam-repository/issues"
55
homepage: "https://projects.gnome.org/gtksourceview/"
66
license: "LGPL-2.1-or-later"
77
build: [
8-
["pkgconf" "--personality=i686-w64-mingw32" "--short-errors" "--print-errors" "gtksourceview-3.0"] {os = "win32" & os-distribution = "cygwin" & host-arch-x86_32:installed}
9-
["pkgconf" "--personality=x86_64-w64-mingw32" "--short-errors" "--print-errors" "gtksourceview-3.0"] {os = "win32" & os-distribution = "cygwin" & host-arch-x86_64:installed}
10-
["pkg-config" "--short-errors" "--print-errors" "gtksourceview-3.0"] {os != "win32" | os-distribution != "cygwin"}
8+
["pkgconf" "--personality=i686-w64-mingw32" "--short-errors" "--print-errors" "gtksourceview-3.0"] {os = "win32" & os-distribution != "cygwinports" & host-arch-x86_32:installed}
9+
["pkgconf" "--personality=x86_64-w64-mingw32" "--short-errors" "--print-errors" "gtksourceview-3.0"] {os = "win32" & os-distribution != "cygwinports" & host-arch-x86_64:installed}
10+
["pkg-config" "--short-errors" "--print-errors" "gtksourceview-3.0"] {os != "win32" | os-distribution = "cygwinports"}
1111
]
1212
depends: [
1313
"conf-pkg-config" {build}

packages/conf-libevent/conf-libevent.1/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build: [
1212
"--personality=x86_64-w64-mingw32"
1313
{os = "win32" & os-distribution != "cygwinports" &
1414
host-arch-x86_64:installed}
15-
"pkg-config" {os != "Win32" | os-distribution != "cygwin"}
15+
"pkg-config" {os != "Win32" | os-distribution = "cygwinports"}
1616
"libevent"
1717
]
1818
depends: [

packages/conf-libffi/conf-libffi.2.0.0/opam

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ authors: ["Anthony Green"]
44
homepage: "http://sourceware.org/libffi/"
55
license: "MIT"
66
build: [
7-
"pkgconf" {os = "win32" & os-distribution = "cygwin"}
8-
"--personality=i686-w64-mingw32" {os = "win32" & os-distribution = "cygwin" & host-arch-x86_32:installed}
9-
"--personality=x86_64-w64-mingw32" {os = "win32" & os-distribution = "cygwin" & host-arch-x86_64:installed}
10-
"pkg-config" {os != "win32" | os-distribution != "cygwin"}
7+
"pkgconf" {os = "win32" & os-distribution != "cygwinports"}
8+
"--personality=i686-w64-mingw32" {os = "win32" & os-distribution != "cygwinports" & host-arch-x86_32:installed}
9+
"--personality=x86_64-w64-mingw32" {os = "win32" & os-distribution != "cygwinports" & host-arch-x86_64:installed}
10+
"pkg-config" {os != "win32" | os-distribution = "cygwinports"}
1111
"libffi"
1212
]
1313
depexts: [

packages/conf-liblz4/conf-liblz4.1/opam

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ bug-reports: "https://github.com/ocaml/opam-repository/issues"
55
authors: ["Yann Collet"]
66
license: ["GPL-2.0-only" "BSD-2-Clause"]
77
build: [
8-
["pkgconf" "--personality=i686-w64-mingw32" "liblz4"] {os = "win32" & os-distribution = "cygwin" & host-arch-x86_32:installed}
9-
["pkgconf" "--personality=x86_64-w64-mingw32" "liblz4"] {os = "win32" & os-distribution = "cygwin" & host-arch-x86_64:installed}
10-
["pkg-config" "liblz4"] {os != "win32" | os-distribution != "cygwin"}
8+
["pkgconf" "--personality=i686-w64-mingw32" "liblz4"] {os = "win32" & os-distribution != "cygwinports" & host-arch-x86_32:installed}
9+
["pkgconf" "--personality=x86_64-w64-mingw32" "liblz4"] {os = "win32" & os-distribution != "cygwinports" & host-arch-x86_64:installed}
10+
["pkg-config" "liblz4"] {os != "win32" | os-distribution = "cygwinports"}
1111
]
1212
depends: [
1313
"conf-pkg-config" {build}

packages/conf-libpcre/conf-libpcre.2/opam

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ homepage: "http://www.pcre.org/"
88
dev-repo: "git+https://github.com/mmottl/pcre-ocaml.git"
99
license: "BSD-3-Clause"
1010
build:
11-
["pkgconf" {os = "win32" & os-distribution = "cygwin"}
12-
"--personality=i686-w64-mingw32" {os = "win32" & os-distribution = "cygwin" & host-arch-x86_32:installed}
13-
"--personality=x86_64-w64-mingw32" {os = "win32" & os-distribution = "cygwin" & host-arch-x86_64:installed}
14-
"pkg-config" {os != "win32" | os-distribution != "cygwin"}
11+
["pkgconf" {os = "win32" & os-distribution != "cygwinports"}
12+
"--personality=i686-w64-mingw32" {os = "win32" & os-distribution != "cygwinports" & host-arch-x86_32:installed}
13+
"--personality=x86_64-w64-mingw32" {os = "win32" & os-distribution != "cygwinports" & host-arch-x86_64:installed}
14+
"pkg-config" {os != "win32" | os-distribution = "cygwinports"}
1515
"--print-errors" "--exists" "libpcre"]
1616
depends: [
1717
"conf-pkg-config" {build}
18-
("host-arch-x86_32" {os = "win32" & os-distribution = "cygwin"} & "conf-mingw-w64-pcre-i686" {os = "win32" & os-distribution = "cygwin"} |
19-
"host-arch-x86_64" {os = "win32" & os-distribution = "cygwin"} & "conf-mingw-w64-pcre-x86_64" {os = "win32" & os-distribution = "cygwin"})
18+
("host-arch-x86_32" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-pcre-i686" {os = "win32" & os-distribution != "cygwinports"} |
19+
"host-arch-x86_64" {os = "win32" & os-distribution != "cygwinports"} & "conf-mingw-w64-pcre-x86_64" {os = "win32" & os-distribution != "cygwinports"})
2020
]
2121
bug-reports: "https://github.com/ocaml/opam-repository/issues"
2222
depexts: [

packages/conf-libpcre2-8/conf-libpcre2-8.2/opam

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ homepage: "https://www.pcre.org/"
88
dev-repo: "git+https://github.com/PCRE2Project/pcre2.git"
99
license: "BSD-3-Clause"
1010
build: [
11-
["pkgconf" {os = "win32" & os-distribution = "cygwin"}
12-
"--personality=i686-w64-mingw32" {os = "win32" & os-distribution = "cygwin" & host-arch-x86_32:installed}
13-
"--personality=x86_64-w64-mingw32" {os = "win32" & os-distribution = "cygwin" & host-arch-x86_64:installed}
14-
"pkg-config" {os != "win32" | os-distribution != "cygwin"}
11+
["pkgconf" {os = "win32" & os-distribution != "cygwinports"}
12+
"--personality=i686-w64-mingw32" {os = "win32" & os-distribution != "cygwinports" & host-arch-x86_32:installed}
13+
"--personality=x86_64-w64-mingw32" {os = "win32" & os-distribution != "cygwinports" & host-arch-x86_64:installed}
14+
"pkg-config" {os != "win32" | os-distribution = "cygwinports"}
1515
"--print-errors" "--exists" "libpcre2-8"
1616
]]
1717
depends: [

packages/conf-libssl/conf-libssl.4/opam

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ build-env: [
88
[HOMEBREW_NO_AUTO_UPDATE = "1"]
99
]
1010
build: [
11-
["pkgconf" {os = "win32" & os-distribution = "cygwin"}
12-
"--personality=i686-w64-mingw32" {os = "win32" & os-distribution = "cygwin" & host-arch-x86_32:installed}
13-
"--personality=x86_64-w64-mingw32" {os = "win32" & os-distribution = "cygwin" & host-arch-x86_64:installed}
14-
"pkg-config" {os != "win32" | os-distribution != "cygwin"}
11+
["pkgconf" {os = "win32" & os-distribution != "cygwinports"}
12+
"--personality=i686-w64-mingw32" {os = "win32" & os-distribution != "cygwinports" & host-arch-x86_32:installed}
13+
"--personality=x86_64-w64-mingw32" {os = "win32" & os-distribution != "cygwinports" & host-arch-x86_64:installed}
14+
"pkg-config" {os != "win32" | os-distribution = "cygwinports"}
1515
"--print-errors" "--exists" "openssl"]
1616
{os != "freebsd" & os != "openbsd" & os != "netbsd" & # libssl is provided by base system on BSDs
1717
os-distribution != "homebrew"}

packages/conf-mingw-w64-ncurses-i686/conf-mingw-w64-ncurses-i686.1/opam

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ bug-reports: "https://github.com/ocaml/opam-repository/issues"
55
license: "MIT"
66
flags: conf
77
available: os = "win32"
8-
build: ["pkgconf" "--personality=i686-w64-mingw32" "ncurses"]
8+
build: ["pkgconf" "--personality=i686-w64-mingw32"
9+
"ncurses" {os-distribution = "cygwin"}
10+
"ncursesw" {os-distribution = "msys2"}
11+
]
912
depends: [
1013
"conf-pkg-config" {build}
1114
"conf-mingw-w64-gcc-i686" {build}

packages/conf-mingw-w64-ncurses-x86_64/conf-mingw-w64-ncurses-x86_64.1/opam

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ bug-reports: "https://github.com/ocaml/opam-repository/issues"
55
license: "MIT"
66
flags: conf
77
available: os = "win32"
8-
build: ["pkgconf" "--personality=x86_64-w64-mingw32" "ncurses"]
8+
build: ["pkgconf" "--personality=x86_64-w64-mingw32"
9+
"ncurses" {os-distribution = "cygwin"}
10+
"ncursesw" {os-distribution = "msys2"}
11+
]
912
depends: [
1013
"conf-pkg-config" {build}
1114
"conf-mingw-w64-gcc-x86_64" {build}

packages/conf-mingw-w64-pcre-i686/conf-mingw-w64-pcre-i686.1/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license: "BSD-3-Clause"
1010
homepage: "https://www.pcre.org/"
1111
bug-reports: "https://github.com/ocaml/opam-repository/issues"
1212
flags: conf
13-
available: os = "win32" & os-distribution = "cygwin"
13+
available: os = "win32"
1414
build: ["pkgconf" "--personality=i686-w64-mingw32" "libpcre"]
1515
depends: [
1616
"conf-pkg-config" {build}

0 commit comments

Comments
 (0)