-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds a release docker image and ubuntu package for Ubuntu Noble.
- Loading branch information
Dwight Guth
authored
Sep 3, 2024
1 parent
f5e2adc
commit b4f86f2
Showing
11 changed files
with
162 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Source: kframework | ||
Section: devel | ||
Priority: optional | ||
Maintainer: Dwight Guth <dwight.guth@runtimeverification.com> | ||
Build-Depends: clang-16 , cmake , debhelper (>=10) , flex , libboost-test-dev , libfmt-dev , libgmp-dev , libjemalloc-dev , libmpfr-dev , libsecp256k1-dev , libunwind-dev , libyaml-dev , maven , openjdk-21-jdk , pkg-config , python3 , python3-dev , python3-pip , xxd , zlib1g-dev | ||
Standards-Version: 3.9.6 | ||
Homepage: https://github.com/runtimeverification/k | ||
|
||
Package: kframework | ||
Architecture: any | ||
Section: devel | ||
Priority: optional | ||
Depends: bison , clang-16 , openjdk-21-jre-headless , flex , gcc , g++ , libboost-dev , libffi-dev , libfmt-dev , libgmp-dev , libjemalloc-dev , libmpfr-dev , libsecp256k1-1 , libtinfo-dev , libunwind-dev , libyaml-0-2 , libz3-4 , lld-16 , llvm-16 , pkg-config | ||
Recommends: z3 | ||
Description: K framework toolchain | ||
Includes K Framework compiler for K language definitions, and K interpreter | ||
and prover for programs written in languages defined in K. | ||
Homepage: https://github.com/runtimeverification/k |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/make -f | ||
# See debhelper(7) (uncomment to enable) | ||
# output every command that modifies files on the build system. | ||
#export DH_VERBOSE = 1 | ||
|
||
|
||
# see FEATURE AREAS in dpkg-buildflags(1) | ||
|
||
# The LLVM backend is built using Clang, which is incompatible with LTO flags | ||
# added by default in newer versions of dpkg. | ||
# https://wiki.debian.org/ToolChain/LTO | ||
export DEB_BUILD_MAINT_OPTIONS=hardening=-stackprotector optimize=-lto | ||
|
||
# see ENVIRONMENT in dpkg-buildflags(1) | ||
# package maintainers to append CFLAGS | ||
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic | ||
# package maintainers to append LDFLAGS | ||
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed | ||
|
||
DESTDIR=$(shell pwd)/debian/kframework | ||
PREFIX=/usr | ||
PYTHON_VERSION=python3.10 | ||
PYTHON_DEB_VERSION=python3 | ||
export DESTDIR | ||
export PREFIX | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_auto_build: | ||
mvn --batch-mode package -DskipTests -Dllvm.backend.prefix=$(PREFIX) -Dllvm.backend.destdir=$(DESTDIR) | ||
|
||
override_dh_auto_install: | ||
package/package | ||
|
||
override_dh_strip: | ||
dh_strip -Xliballoc.a -Xlibarithmetic.a -XlibAST.a -Xlibutil.a -XlibParser.a -Xlibcollect.a -Xlibcollections.a -Xlibjson.a -Xlibstrings.a -Xlibmeta.a -Xlibio.a | ||
|
||
# dh_make generated override targets | ||
# This is example for Cmake (See https://bugs.debian.org/641051 ) | ||
#override_dh_auto_configure: | ||
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM runtimeverificationinc/z3:ubuntu-noble-4.13.0 | ||
|
||
ENV TZ=America/Chicago | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
RUN apt-get update \ | ||
&& apt-get upgrade --yes \ | ||
&& apt-get install --yes \ | ||
build-essential \ | ||
git \ | ||
python3 \ | ||
python3-pip \ | ||
pipx | ||
|
||
COPY kframework_amd64_ubuntu_noble.deb /kframework_amd64_ubuntu_noble.deb | ||
RUN apt-get update \ | ||
&& apt-get upgrade --yes \ | ||
&& apt-get install --yes --no-install-recommends /kframework_amd64_ubuntu_noble.deb | ||
|
||
COPY pyk /pyk | ||
RUN pipx install poetry \ | ||
&& pipx ensurepath \ | ||
&& . /root/.profile \ | ||
&& cd /pyk \ | ||
&& make build \ | ||
&& pip install dist/*.whl --break-system-packages \ | ||
&& rm -rf /pyk | ||
|
||
RUN rm -rf /kframework_amd64_ubuntu_noble.deb |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters