Skip to content

Commit 5ad463d

Browse files
authored
Merge pull request #6205 from kit-ty-kate/2.3-post-2.3.0-alpha1
[2.3 backport] Post 2.3.0~alpha1 release bumps and fixes
2 parents 6ed22cb + 9a614be commit 5ad463d

15 files changed

+39
-33
lines changed

configure

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl The line below must be formatted AC_INIT([opam],[VERSION]) with no extra spaces
2-
AC_INIT([opam],[2.3.0~alpha1])
2+
AC_INIT([opam],[2.3.0~alpha2~dev])
33
AC_COPYRIGHT(Copyright 2012-2019 OcamlPro SAS)
44

55
AC_CONFIG_MACRO_DIR([m4])

dune-project

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(lang dune 2.6)
1+
(lang dune 2.8)
22
(name opam)
33

44
(implicit_transitive_deps true)

master_changes.md

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ moved, etc.), please update the _API updates_ part (it helps opam library
1111
users)
1212

1313
## Version
14+
* Bump the version of opam to 2.3.0~alpha2~dev [#6204 @kit-ty-kate]
1415

1516
## Global CLI
1617

@@ -69,10 +70,14 @@ users)
6970
## VCS
7071

7172
## Build
73+
* Bump the requirement for dune to 2.8 [#6204 @kit-ty-kate]
7274

7375
## Infrastructure
7476

7577
## Release scripts
78+
* Fix the release script after the bump of dune lang to 2.6 [#6204 @kit-ty-kate]
79+
* Fix the release script after the introduction of opam\_core\_stubs [#6204 @kit-ty-kate]
80+
* Improve the release script by ignoring interactive questions asked by the FreeBSD package manager [#6204 @kit-ty-kate]
7681

7782
## Install script
7883

opam-client.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "2.3.0~alpha1"
2+
version: "2.3.0~alpha2~dev"
33
synopsis: "Client library for opam 2.2"
44
description: """
55
Actions on the opam root, switches, installations, and front-end.
@@ -35,7 +35,7 @@ depends: [
3535
"opam-repository" {= version}
3636
"re" {>= "1.10.0"}
3737
"cmdliner" {>= "1.1.0"}
38-
"dune" {>= "2.6.0"}
38+
"dune" {>= "2.8.0"}
3939
]
4040
conflicts: [
4141
"extlib" {< "1.7.8"}

opam-core.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "2.3.0~alpha1"
2+
version: "2.3.0~alpha2~dev"
33
synopsis: "Core library for opam 2.2"
44
description:
55
"Small standard library extensions, and generic system interaction modules used by opam."
@@ -26,7 +26,7 @@ depends: [
2626
"base-unix"
2727
"ocamlgraph"
2828
"re" {>= "1.9.0"}
29-
"dune" {>= "2.6.0"}
29+
"dune" {>= "2.8.0"}
3030
"sha" {>= "1.13"}
3131
"jsonm"
3232
"swhid_core"

opam-devel.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "2.3.0~alpha1"
2+
version: "2.3.0~alpha2~dev"
33
synopsis: "Bootstrapped development binary for opam 2.2"
44
description: """
55
This package compiles (bootstraps) opam. For consistency and safety of the installation, the binaries are not installed into the PATH, but into lib/opam-devel, from where the user can manually install them system-wide.
@@ -31,7 +31,7 @@ depends: [
3131
"ocaml" {>= "4.08.0"}
3232
"opam-client" {= version}
3333
"cmdliner" {>= "1.1.0"}
34-
"dune" {>= "2.6.0"}
34+
"dune" {>= "2.8.0"}
3535
"conf-openssl" {with-test}
3636
"conf-diffutils" {with-test}
3737
]

opam-format.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "2.3.0~alpha1"
2+
version: "2.3.0~alpha2~dev"
33
synopsis: "Format library for opam 2.2"
44
description: """
55
Definition of opam datastructures and its file interface.
@@ -32,5 +32,5 @@ depends: [
3232
"opam-core" {= version}
3333
"opam-file-format" {>= "2.1.4"}
3434
"re" {>= "1.9.0"}
35-
"dune" {>= "2.6.0"}
35+
"dune" {>= "2.8.0"}
3636
]

opam-installer.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "2.3.0~alpha1"
2+
version: "2.3.0~alpha2~dev"
33
synopsis: "Installation of files to a prefix, following opam conventions"
44
description: """
55
opam-installer is a small tool that can read *.install files, as defined by opam [1], and execute them to install or remove package files without going through opam.
@@ -33,5 +33,5 @@ depends: [
3333
"ocaml" {>= "4.08.0"}
3434
"opam-format" {= version}
3535
"cmdliner" {>= "0.9.8"}
36-
"dune" {>= "2.6.0"}
36+
"dune" {>= "2.8.0"}
3737
]

opam-repository.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "2.3.0~alpha1"
2+
version: "2.3.0~alpha2~dev"
33
synopsis: "Repository library for opam 2.2"
44
description: """
55
This library includes repository and remote sources handling, including curl/wget, rsync, git, mercurial, darcs backends.
@@ -30,5 +30,5 @@ build: [
3030
depends: [
3131
"ocaml" {>= "4.08.0"}
3232
"opam-format" {= version}
33-
"dune" {>= "2.6.0"}
33+
"dune" {>= "2.8.0"}
3434
]

opam-solver.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "2.3.0~alpha1"
2+
version: "2.3.0~alpha2~dev"
33
synopsis: "Solver library for opam 2.2"
44
description: """
55
Solver and Cudf interaction. This library is based on the Cudf and Dose libraries, and handles calls to the external solver from opam.
@@ -34,7 +34,7 @@ depends: [
3434
"dose3" {>= "6.1"}
3535
"cudf" {>= "0.7"}
3636
"re" {>= "1.9.0"}
37-
"dune" {>= "2.6.0"}
37+
"dune" {>= "2.8.0"}
3838
"opam-0install-cudf" {>= "0.5.0"}
3939
]
4040
depopts: [

opam-state.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "2.3.0~alpha1"
2+
version: "2.3.0~alpha2~dev"
33
synopsis: "State library for opam 2.2"
44
description: """
55
Handling of the ~/.opam hierarchy, repository and switch states.
@@ -32,5 +32,5 @@ depends: [
3232
"opam-repository" {= version}
3333
"re" {>= "1.9.0"}
3434
"spdx_licenses" {>= "1.0.0"}
35-
"dune" {>= "2.6.0"}
35+
"dune" {>= "2.8.0"}
3636
]

release/Dockerfile.in

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ CMD { tar xz && \
2727
./configure --with-vendored-deps --with-mccs && \
2828
echo "(${LINKING})" > src/client/linking.sexp && \
2929
make opam && \
30+
chmod u+w _build/default/src/client/opamMain.exe && \
3031
strip opam ; \
3132
} >&2 && \
3233
cat opam

release/Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,21 @@ build/%.image: build/Dockerfile.%
5353
# Actually, this is for alpine 3.13, and varies
5454
CLINKING_linux = \
5555
-Wl,-Bstatic \
56-
-lunix -lmccs_stubs -lmccs_glpk_stubs -lsha_stubs \
56+
-lunix -lmccs_stubs -lmccs_glpk_stubs -lsha_stubs -lopam_core_stubs \
5757
-lstdc++ \
5858
-static-libgcc \
5959
-static
6060
# -Wl,-Bdynamic
6161

6262
CLINKING_macos = \
63-
-lunix -lmccs_stubs -lmccs_glpk_stubs -lsha_stubs \
63+
-lunix -lmccs_stubs -lmccs_glpk_stubs -lsha_stubs -lopam_core_stubs \
6464
-lstdc++
6565

6666
CLINKING_openbsd = $(CLINKING_macos)
6767
CLINKING_freebsd = $(CLINKING_macos)
6868

6969
CLINKING_windows = \
70-
-lunix -lmccs_stubs -lmccs_glpk_stubs -lsha_stubs \
71-
-lopam_stubs_win32_stubs \
70+
-lunix -lmccs_stubs -lmccs_glpk_stubs -lsha_stubs -lopam_core_stubs \
7271
-l:libstdc++.a -l:libpthread.a \
7372
-Wl,-static \
7473
-ladvapi32 -lgdi32 -luser32 -lshell32 -lole32 -luuid -luserenv
@@ -124,6 +123,7 @@ host: $(OUTDIR)/opam-full-$(VERSION).tar.gz build/$(HOST).env
124123
echo "$(call LINKING,$(HOST_OS))" >src/client/linking.sexp && \
125124
$(MAKE) opam; \
126125
)
126+
chmod u+w build/opam-full-$(VERSION)/_build/default/src/client/opamMain.exe
127127
cp build/opam-full-$(VERSION)/opam $(OUTDIR)/opam-$(VERSION)-$(HOST)
128128
strip $(OUTDIR)/opam-$(VERSION)-$(HOST)
129129
$(OUTDIR)/opam-$(VERSION)-$(HOST) --version

release/release.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ windows_build() {
4040
qemu-img convert -O raw "./${image}.qcow2" "./${image}.raw"
4141
# NOTE: -machine q35 seems to be required to avoid random but recurring crashes
4242
"qemu-system-x86_64" -drive "file=./${image}.raw,format=raw" -nic "user,hostfwd=tcp::${port}-:22" -m 6G -smp "${JOBS}" -machine q35 &
43-
sleep 120
43+
sleep 240
4444
fi
4545

4646
# Disable Windows Defender before anything else (makes the build process faster)
@@ -90,5 +90,5 @@ make JOBS="${JOBS}" TAG="$TAG" s390x-linux
9090
[ -f "${OUTDIR}/opam-$TAG-arm64-macos" ] || make TAG="$TAG" JOBS="${JOBS}" macos-local MACOS_ARCH=arm64 REMOTE_DIR=opam-release-$TAG GIT_URL="$CWD/.."
9191
[ -d ./qemu-base-images ] || git clone https://gitlab.com/kit-ty-kate/qemu-base-images.git
9292
[ -f "${OUTDIR}/opam-$TAG-x86_64-openbsd" ] || qemu_build 9999 OpenBSD-7.4-amd64 "pkg_add gmake curl bzip2" gmake x86_64
93-
[ -f "${OUTDIR}/opam-$TAG-x86_64-freebsd" ] || qemu_build 9998 FreeBSD-13.2-RELEASE-amd64 "pkg install -y gmake curl bzip2" gmake x86_64
93+
[ -f "${OUTDIR}/opam-$TAG-x86_64-freebsd" ] || qemu_build 9998 FreeBSD-13.2-RELEASE-amd64 "env IGNORE_OSVERSION=yes pkg install -y gmake curl bzip2" gmake x86_64
9494
[ -f "${OUTDIR}/opam-$TAG-x86_64-windows" ] || windows_build 9997 Windows-10-x86_64

0 commit comments

Comments
 (0)