From ddcac277d5f5ca60c1c9165c729a47d0e2329025 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 27 Jan 2020 11:30:04 -0500 Subject: [PATCH] Squashed commit of the following: commit 649629ceba98b79df61186ef7490018ce4f1cc95 Author: Matthias Koeppe Date: Mon Jan 27 03:30:35 2020 -0500 Add !nose to SAGE_CHECK_PACKAGES commit 3fad10896ad67d689650320bb02c02f28da9fce6 Author: Matthias Koeppe Date: Mon Jan 27 00:25:15 2020 -0500 Add openblas on Fedora commit 2076fbc7074a29de0edc08aa4a108d48deee071f Author: Matthias Koeppe Date: Mon Jan 27 00:14:25 2020 -0500 fixes for Fedora 26, Debian Jessie commit 648a6074421cbe080e73d8c66cfc76cd30939f45 Author: Matthias Koeppe Date: Sun Jan 26 23:57:30 2020 -0500 build/pkgs/fedora-bootstrap.txt: Add pkg-config commit bd905613611ba5b1b4f5bf66d99c92c9b72e3757 Author: Matthias Koeppe Date: Sun Jan 26 23:33:47 2020 -0500 disable R testsuite commit 67ec8c7ad37df4b07815f18194316911f4d4aae2 Author: Matthias Koeppe Date: Sun Jan 26 23:13:15 2020 -0500 fixup makeflags commit 344cd95ad1b6c97b4c5f31caebbcdbeee30af4c6 Author: Matthias Koeppe Date: Sun Jan 26 22:15:15 2020 -0500 fixup commit 8ad26f30a05cda7e3cf636d285f3f2c125cdbce4 Author: Matthias Koeppe Date: Sun Jan 26 22:05:13 2020 -0500 fixup commit 9f37768149c844bc5a644d98cb7d8f0afa270776 Author: Matthias Koeppe Date: Sun Jan 26 21:37:39 2020 -0500 fixup commit 31b90cc33ac33911e25e454e6494ebbfd6e479c6 Author: Matthias Koeppe Date: Sun Jan 26 21:04:24 2020 -0500 fix up use of condarc commit 4b2a5323d242aae9f5991edd713cc33e7160d5c6 Author: Matthias Koeppe Date: Sun Jan 26 20:37:18 2020 -0500 Better handling of IGNORE_MISSING_SYSTEM_PACKAGES commit 26538a11ec749cd64ffeb622fd72417c496e9281 Author: Matthias Koeppe Date: Sun Jan 26 20:36:27 2020 -0500 tox.ini: Fix commands syntax commit eeb5ec8aec7b3d4519416c08445d26956926695b Author: Matthias Koeppe Date: Sun Jan 26 20:36:13 2020 -0500 tox.ini: debian-sid does not need IGNORE_MISSING_SYSTEM_PACKAGES commit 4eecb3a82dd9100c1b33e80c947757e0d0766abf Author: Matthias Koeppe Date: Sun Jan 26 20:34:00 2020 -0500 conda-bootstrap.txt: Add pkg-config commit 87cde57cbe1fca0f0fd87788877954ed559ea9a9 Author: Matthias Koeppe Date: Sun Jan 26 18:09:36 2020 -0500 IGNORE_MISSING_SYSTEM_PACKAGES commit ad12b08feaf7d9e2bdb98e6284922176a9ad8fa9 Author: Matthias Koeppe Date: Sun Jan 26 17:11:20 2020 -0500 fixup commit 8f7cd6e3bffbf503877dbd7e8c0b88bf0787c5d2 Author: Matthias Koeppe Date: Sun Jan 26 17:08:03 2020 -0500 fixup commit 4a89a095c754eec8348a8a4743d366a6869fb30b Author: Matthias Koeppe Date: Sun Jan 26 16:58:59 2020 -0500 Add conda commit 8e8ed1d157bf6758e58d7f8eeb6114bc1198b61d Author: Matthias Koeppe Date: Sun Jan 26 16:21:48 2020 -0500 Add condarc.yml commit c5eb59e0c96a2dd12cb45e4c6e461dfb86128c18 Author: Matthias Koeppe Date: Sun Jan 26 14:11:54 2020 -0500 build/bin/sage-spkg: Explain to user what will be done with the system package commit 8b15253db7aa6b445b49d93c23eee94676ecf7a2 Author: Matthias Koeppe Date: Sun Jan 26 14:11:28 2020 -0500 build/bin/write-dockerfile.sh: Only install a package if it has spkg-configure.m4 commit b7e8a61914f4bcaa85cafc513f85e1cdd7ff6bef Author: Matthias Koeppe Date: Sun Jan 26 13:03:26 2020 -0500 fixup commit 81b7c62dbe07fed9ecaae105a3b484e784c16c73 Author: Matthias Koeppe Date: Sun Jan 26 12:48:16 2020 -0500 Improve log handling commit ea660983b4076e4036d03b702bae3a31f2213530 Author: Matthias Koeppe Date: Sun Jan 26 12:16:14 2020 -0500 build/pkgs/debian.txt: python3-minimal->python3 commit c834523c2180ae175c5654aa46aa4acb2850bb9c Author: Matthias Koeppe Date: Sun Jan 26 12:10:20 2020 -0500 build/pkgs/debian.txt: add g++ commit 2f272cd6fd1c9014d8c53c87d276baa940fc4438 Author: Matthias Koeppe Date: Sun Jan 26 12:04:57 2020 -0500 build/pkgs/arch.txt: Add gcc commit 41ff83d03441169d7af7706b8fc7142191516868 Author: Matthias Koeppe Date: Sun Jan 26 11:56:57 2020 -0500 remove nonexisting fedora package commit da1282f444e9ef8169aa60a7a1fd49a1466bad79 Author: Matthias Koeppe Date: Sun Jan 26 11:47:19 2020 -0500 build/pkgs/debian-bootstrap.txt: Add pkg-config --- build/bin/write-dockerfile.sh | 85 ++++++++++++++++++++++---- build/pkgs/conda-bootstrap.txt | 2 +- build/pkgs/fedora-bootstrap.txt | 2 + build/pkgs/fedora.txt | 6 ++ build/pkgs/openblas/distros/fedora.txt | 1 + condarc.yml | 6 ++ tox.ini | 27 +++++++- 7 files changed, 113 insertions(+), 16 deletions(-) create mode 100644 build/pkgs/openblas/distros/fedora.txt create mode 100644 condarc.yml diff --git a/build/bin/write-dockerfile.sh b/build/bin/write-dockerfile.sh index c12af2c6686..17812a2ec0d 100755 --- a/build/bin/write-dockerfile.sh +++ b/build/bin/write-dockerfile.sh @@ -7,6 +7,7 @@ SYSTEM="${1:-debian}" shopt -s extglob TYPE_PATTERN="${2:-standard}" WITH_SYSTEM_SPKG="${3:-yes}" +IGNORE_MISSING_SYSTEM_PACKAGES="${4:-no}" # STRIP_COMMENTS="sed s/#.*//;" SAGE_ROOT=. @@ -32,36 +33,92 @@ for PKG_SCRIPTS in build/pkgs/*; do fi fi done +echo "# Automatically generated by SAGE_ROOT/build/bin/write-dockerfile.sh" +echo "# the :comments: separate the generated file into sections" +echo "# to simplify writing scripts that customize this file" case $SYSTEM in debian*|ubuntu*) cat <&2 exit 1 ;; esac cat < {envdir}/Dockerfile' - docker build . -f {envdir}/Dockerfile --build-arg EXTRA_CONFIGURE_ARGS="{env:EXTRA_CONFIGURE_ARGS:}" {env:EXTRA_DOCKER_BUILD_ARGS:} --build-arg BASE_IMAGE={env:BASE_IMAGE} + docker: bash -c 'build/bin/write-dockerfile.sh {env:SYSTEM} "{env:TYPE_PATTERN:}" {env:WITH_SYSTEM_SPKG} {env:IGNORE_MISSING_SYSTEM_PACKAGES} > {envdir}/Dockerfile' + docker: docker build . -f {envdir}/Dockerfile \ + docker: --build-arg EXTRA_CONFIGURE_ARGS="{env:EXTRA_CONFIGURE_ARGS:}" \ + docker: --build-arg BASE_IMAGE={env:BASE_IMAGE} \ + docker-conda: --build-arg USE_CONDARC="{env:CONDARC}" \ + docker: {env:EXTRA_DOCKER_BUILD_ARGS:}