Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abel Nieto
Iris
Commits
12012db9
Commit
12012db9
authored
7 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
new build-dep handling without opam.pins
parent
8f8796c0
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
Makefile
+14
-10
14 additions, 10 deletions
Makefile
build/opam-ci.sh
+9
-5
9 additions, 5 deletions
build/opam-ci.sh
opam
+2
-4
2 additions, 4 deletions
opam
with
27 additions
and
20 deletions
.gitignore
+
1
−
0
View file @
12012db9
...
@@ -9,5 +9,6 @@
...
@@ -9,5 +9,6 @@
*~
*~
*.bak
*.bak
.coq-native/
.coq-native/
build-dep/
Makefile.coq*
Makefile.coq*
*.crashcoqide
*.crashcoqide
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
1
−
1
View file @
12012db9
...
@@ -47,7 +47,7 @@ iris-coq8.6.1:
...
@@ -47,7 +47,7 @@ iris-coq8.6.1:
variables
:
variables
:
COQ_VERSION
:
"
8.6.1"
COQ_VERSION
:
"
8.6.1"
SSR_VERSION
:
"
1.6.1"
SSR_VERSION
:
"
1.6.1"
VALIDATE
:
1
VALIDATE
:
"
1"
artifacts
:
artifacts
:
paths
:
paths
:
-
build-time.txt
-
build-time.txt
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
14
−
10
View file @
12012db9
# Process flags
ifeq
($(Y), 1)
YFLAG
=
-y
endif
# Forward most targets to Coq makefile (with some trick to make this phony)
# Forward most targets to Coq makefile (with some trick to make this phony)
%
:
Makefile.coq phony
%
:
Makefile.coq phony
+@make
-f
Makefile.coq
$@
+@make
-f
Makefile.coq
$@
...
@@ -15,16 +10,25 @@ clean: Makefile.coq
...
@@ -15,16 +10,25 @@ clean: Makefile.coq
find theories
\(
-name
"*.v.d"
-o
-name
"*.vo"
-o
-name
"*.aux"
-o
-name
"*.cache"
-o
-name
"*.glob"
-o
-name
"*.vio"
\)
-print
-delete
find theories
\(
-name
"*.v.d"
-o
-name
"*.vo"
-o
-name
"*.aux"
-o
-name
"*.cache"
-o
-name
"*.glob"
-o
-name
"*.vio"
\)
-print
-delete
rm
-f
Makefile.coq
rm
-f
Makefile.coq
# Create Coq Makefile. POSIX awk can't do in-place editing, but coq_makefile wants the real filename, so we do some file gymnastics.
# Create Coq Makefile. POSIX awk can't do in-place editing, but coq_makefile wants the real
# filename, so we do some file gymnastics.
Makefile.coq
:
_CoqProject Makefile awk.Makefile
Makefile.coq
:
_CoqProject Makefile awk.Makefile
coq_makefile
-f
_CoqProject
-o
Makefile.coq
coq_makefile
-f
_CoqProject
-o
Makefile.coq
mv
Makefile.coq Makefile.coq.tmp
&&
awk
-f
awk.Makefile Makefile.coq.tmp
>
Makefile.coq
&&
rm
Makefile.coq.tmp
mv
Makefile.coq Makefile.coq.tmp
&&
awk
-f
awk.Makefile Makefile.coq.tmp
>
Makefile.coq
&&
rm
Makefile.coq.tmp
# Install build-dependencies
# Install build-dependencies
build-dep
:
build-dep
:
phony
opam pin add opam-builddep-temp
"
$$(
pwd
)
"
-k
path
-n
-y
@
# We want opam to not just instal the build-deps now, but to also keep satisfying these
opam
install
opam-builddep-temp
--deps-only
$(
YFLAG
)
@
# constraints. Otherwise, `opam upgrade` may well update some packages to versions
opam pin remove opam-builddep-temp
@
# that are incompatible with our build requirements.
@
# To achieve this, we create a fake opam package that has our build-dependencies as
@
# dependencies, but does not actually install anything.
mkdir
-p
build-dep
@
echo
"build-dep package is
$$
BUILD_DEP_PACKAGE"
sed
<opam
's/^\(build\|install\|remove\):.*/\1: []/; s/^name: *"\(.*\)" */name: "\1-builddep"/'
>
build-dep/opam
@
fgrep builddep build-dep/opam
>
/dev/null
||
(
echo
"sed failed to fix the package name"
&&
exit
1
)
# sanity check
@
# Compute the package name, add the pin and install it
opam pin add
"
$$(
egrep "
^name:
" build-dep/opam | sed 's/^name: *"
\(
.
*
\)
" */
\1
/'
)
"
"
$$(
pwd
)
/build-dep"
-k
path
$(
OPAMFLAGS
)
# Some files that do *not* need to be forwarded to Makefile.coq
# Some files that do *not* need to be forwarded to Makefile.coq
Makefile
:
;
Makefile
:
;
...
...
This diff is collapsed.
Click to expand it.
build/opam-ci.sh
+
9
−
5
View file @
12012db9
...
@@ -16,7 +16,7 @@ if test $(find "$OPAMROOT/repo/package-index" -mtime +0); then
...
@@ -16,7 +16,7 @@ if test $(find "$OPAMROOT/repo/package-index" -mtime +0); then
else
else
echo
"[opam-ci] Not updating opam."
echo
"[opam-ci] Not updating opam."
fi
fi
test
-d
"
$OPAMROOT
/repo/coq-extra-dev"
||
opam repo
add coq-extra-dev https://coq.inria.fr/opam/
extra-dev
-p
5
test
-d
"
$OPAMROOT
/repo/coq-extra-dev"
&&
opam repo
remove coq-
extra-dev
test
-d
"
$OPAMROOT
/repo/coq-core-dev"
||
opam repo add coq-core-dev https://coq.inria.fr/opam/core-dev
-p
5
test
-d
"
$OPAMROOT
/repo/coq-core-dev"
||
opam repo add coq-core-dev https://coq.inria.fr/opam/core-dev
-p
5
test
-d
"
$OPAMROOT
/repo/coq-released"
||
opam repo add coq-released https://coq.inria.fr/opam/released
-p
10
test
-d
"
$OPAMROOT
/repo/coq-released"
||
opam repo add coq-released https://coq.inria.fr/opam/released
-p
10
test
-d
"
$OPAMROOT
/repo/iris-dev"
||
opam repo add iris-dev https://gitlab.mpi-sws.org/FP/opam-dev.git
-p
20
test
-d
"
$OPAMROOT
/repo/iris-dev"
||
opam repo add iris-dev https://gitlab.mpi-sws.org/FP/opam-dev.git
-p
20
...
@@ -25,11 +25,15 @@ test -d "$OPAMROOT/repo/iris-dev" || opam repo add iris-dev https://gitlab.mpi-s
...
@@ -25,11 +25,15 @@ test -d "$OPAMROOT/repo/iris-dev" || opam repo add iris-dev https://gitlab.mpi-s
opam pin remove coq-stdpp
-n
opam pin remove coq-stdpp
-n
opam pin remove coq-iris
-n
opam pin remove coq-iris
-n
# Install fixed versions of some dependencies
# We really want to run all of the following in one opam transaction, but due to opam limitations,
# that is not currently possible.
# Install fixed versions of some dependencies.
echo
echo
while
((
"$#"
))
;
do
# while there are arguments left
while
((
"$#"
))
;
do
# while there are arguments left
PACKAGE
=
"
$1
"
;
shift
PACKAGE
=
"
$1
"
;
shift
VERSION
=
"
$1
"
;
shift
VERSION
=
"
$1
"
;
shift
# Check if the pin is already set
# Check if the pin is already set
if
opam pin list | fgrep
"
$PACKAGE
.
$VERSION
"
>
/dev/null
;
then
if
opam pin list | fgrep
"
$PACKAGE
.
$VERSION
"
>
/dev/null
;
then
echo
"[opam-ci]
$PACKAGE
already pinned to
$VERSION
"
echo
"[opam-ci]
$PACKAGE
already pinned to
$VERSION
"
...
@@ -39,12 +43,12 @@ while (( "$#" )); do # while there are arguments left
...
@@ -39,12 +43,12 @@ while (( "$#" )); do # while there are arguments left
fi
fi
done
done
# Upgrade cached things
# Upgrade cached things
.
opam upgrade
-y
opam upgrade
-y
# Install build-dependencies
# Install build-dependencies
.
echo
echo
make build-dep
Y
=
1
make build-dep
OPAMFLAGS
=
-y
# done
# done
echo
echo
...
...
This diff is collapsed.
Click to expand it.
opam
+
2
−
4
View file @
12012db9
...
@@ -7,11 +7,9 @@ homepage: "http://iris-project.org/"
...
@@ -7,11 +7,9 @@ homepage: "http://iris-project.org/"
bug-reports: "https://gitlab.mpi-sws.org/FP/iris-coq/issues"
bug-reports: "https://gitlab.mpi-sws.org/FP/iris-coq/issues"
license: "BSD"
license: "BSD"
dev-repo: "https://gitlab.mpi-sws.org/FP/iris-coq.git"
dev-repo: "https://gitlab.mpi-sws.org/FP/iris-coq.git"
build: [
build: [make "-j%{jobs}%"]
[make "-j%{jobs}%"]
]
install: [make "install"]
install: [make "install"]
remove: [
"sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/iris'"
]
remove: ["sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/iris'"]
depends: [
depends: [
"coq" { (>= "8.6.1" & < "8.8~") }
"coq" { (>= "8.6.1" & < "8.8~") }
"coq-mathcomp-ssreflect" { ((>= "1.6.1" & < "1.7~") | (= "dev")) }
"coq-mathcomp-ssreflect" { ((>= "1.6.1" & < "1.7~") | (= "dev")) }
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment