From 92a4330481f0898070000de60c2fb23ee5c413c7 Mon Sep 17 00:00:00 2001 From: Victor Sandin Date: Fri, 24 Nov 2023 16:13:46 +0100 Subject: [PATCH 1/6] Add julia package Signed-off-by: Victor Sandin --- julia.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 julia.yaml diff --git a/julia.yaml b/julia.yaml new file mode 100644 index 00000000000..f0973ddc4f2 --- /dev/null +++ b/julia.yaml @@ -0,0 +1,33 @@ +package: + name: julia + version: 1.9.4 + epoch: 0 + description: The Julia Programming Language + copyright: + - license: MIT +environment: + contents: + packages: + - build-base + - busybox + - ca-certificates-bundle + - perl + - python3 + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/JuliaLang/julia.git + tag: v${{package.version}} + depth: 1 + expected-commit: 8e5136fa2979885081cd502d2210633dff1d2a1a + - uses: autoconf/make + - runs: | + make install DESTDIR=${{targets.destdir}} prefix="" + - uses: strip + +update: + enabled: true + github: + identifier: JuliaLang/julia + strip-prefix: v From 44d60d5dea50139f8157a1a1f223ae5476930f6b Mon Sep 17 00:00:00 2001 From: Victor Sandin Date: Fri, 24 Nov 2023 19:46:14 +0100 Subject: [PATCH 2/6] Fix linting Signed-off-by: Victor Sandin --- julia.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/julia.yaml b/julia.yaml index f0973ddc4f2..f8bd7693934 100644 --- a/julia.yaml +++ b/julia.yaml @@ -25,9 +25,8 @@ pipeline: - runs: | make install DESTDIR=${{targets.destdir}} prefix="" - uses: strip - update: enabled: true github: - identifier: JuliaLang/julia + identifier: JuliaLang/julia strip-prefix: v From 6025dd55afbc143d3b4cc1ec08c086082da855d9 Mon Sep 17 00:00:00 2001 From: Victor Sandin Date: Fri, 24 Nov 2023 23:08:46 +0100 Subject: [PATCH 3/6] add llvm to build julia. Also fix the linting Signed-off-by: Victor Sandin --- julia.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/julia.yaml b/julia.yaml index f8bd7693934..8d97e7dcbd8 100644 --- a/julia.yaml +++ b/julia.yaml @@ -5,12 +5,14 @@ package: description: The Julia Programming Language copyright: - license: MIT + environment: contents: packages: - build-base - busybox - ca-certificates-bundle + - llvm16-dev - perl - python3 @@ -21,12 +23,17 @@ pipeline: tag: v${{package.version}} depth: 1 expected-commit: 8e5136fa2979885081cd502d2210633dff1d2a1a + - uses: autoconf/make + - runs: | make install DESTDIR=${{targets.destdir}} prefix="" + - uses: strip + update: enabled: true github: identifier: JuliaLang/julia strip-prefix: v + From 46ad63a34fa6b78090934095a7cc467da5e42aeb Mon Sep 17 00:00:00 2001 From: Victor Sandin Date: Thu, 30 Nov 2023 19:38:19 +0100 Subject: [PATCH 4/6] fixing linting Signed-off-by: Victor Sandin --- julia.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/julia.yaml b/julia.yaml index 8d97e7dcbd8..8f0448981c3 100644 --- a/julia.yaml +++ b/julia.yaml @@ -36,4 +36,3 @@ update: github: identifier: JuliaLang/julia strip-prefix: v - From 88d10fb73c8dc6521dbf886ffc0d0201086061d8 Mon Sep 17 00:00:00 2001 From: James Rawlings Date: Tue, 9 Jan 2024 00:58:34 +0000 Subject: [PATCH 5/6] julia: update to latest version and add test Signed-off-by: James Rawlings --- julia-1.10.yaml | 118 ++++++++++++++++++++++++++++++++++++++ julia-1.10/hello_world.jl | 4 ++ julia.yaml | 38 ------------ 3 files changed, 122 insertions(+), 38 deletions(-) create mode 100644 julia-1.10.yaml create mode 100644 julia-1.10/hello_world.jl delete mode 100644 julia.yaml diff --git a/julia-1.10.yaml b/julia-1.10.yaml new file mode 100644 index 00000000000..336543d507f --- /dev/null +++ b/julia-1.10.yaml @@ -0,0 +1,118 @@ +package: + name: julia-1.10 + version: 1.10.0 + epoch: 0 + description: The Julia Programming Language + copyright: + - license: MIT + +environment: + contents: + packages: + - build-base + - busybox + - ca-certificates-bundle + - llvm16-dev + - perl + - python3 + - pcre2-dev + - libatomic + - gfortran + - perl + - wget + - m4 + - cmake + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/JuliaLang/julia.git + tag: v${{package.version}} + expected-commit: 3120989f39bb7ef7863c4aab8ab1227cf71eec66 + + - runs: sed -i '/^const debug_output/c\const debug_output = stdout' contrib/generate_precompile.jl + #- runs: sed -i '/^const PARALLEL_PRECOMPILATION/c\const PARALLEL_PRECOMPILATION = false' contrib/generate_precompile.jl + + # - runs: | + # cat > Make.user <<-EOF + # prefix=/usr + # libexecdir=/usr/lib + # sysconfdir=/etc + # DESTDIR=${{targets.destdir}} + # LIBBLAS=-lopenblas + # LIBBLASNAME=libopenblas + # LIBLAPACK=-lopenblas + # LIBLAPACKNAME=libopenblas + # LLVM_CONFIG=/usr/lib/llvm16/bin/llvm-config + # LLVM_VER=16 + # NO_GIT=1 + # USE_LLVM_SHLIB=1 + # USE_SYSTEM_ARPACK=1 + # USE_SYSTEM_BLAS=1 + # USE_SYSTEM_CURL=1 + # USE_SYSTEM_DSFMT=1 + # USE_SYSTEM_FFTW=1 + # USE_SYSTEM_GMP=1 + # USE_SYSTEM_LAPACK=1 + # USE_SYSTEM_LIBBLASTRAMPOLINE=1 + # USE_SYSTEM_LIBGIT2=1 + # USE_SYSTEM_LIBM=1 + # USE_SYSTEM_LIBSSH2=1 + # USE_SYSTEM_LIBUNWIND=1 + # USE_SYSTEM_LIBUV=0 + # USE_SYSTEM_LLVM=1 + # USE_SYSTEM_MBEDTLS=1 + # USE_SYSTEM_MPFR=1 + # USE_SYSTEM_OPENLIBM=1 + # USE_SYSTEM_OPENSPECFUN=1 + # USE_SYSTEM_PATCHELF=1 + # USE_SYSTEM_PCRE=1 + # USE_SYSTEM_SUITESPARSE=1 + # USE_SYSTEM_UTF8PROC=1 + # VERBOSE=1 + # EOF + + - uses: autoconf/make + + - uses: autoconf/make-install + + - runs: | + mkdir -p ${{targets.destdir}}/usr/lib/julia + mv ${{targets.destdir}}/home/build/julia*/* ${{targets.destdir}}/usr/lib/julia/ + ln -s /usr/lib/julia/bin/julia ${{targets.destdir}}/usr/bin/julia + + - uses: strip + +test: + environment: + contents: + packages: + - busybox + - apk-tools + pipeline: + - name: Basic Hello World Test + runs: | + #!/bin/bash + + # Run the Julia program and capture the output + output=$(julia hello_world.jl) + + # Define the expected output + expected="Hello, World!" + + # Compare the actual output with the expected output + if [ "$output" = "$expected" ]; then + echo "Test Passed: Output matches expected" + else + echo "Test Failed: Output does not match expected" + echo "Expected: '$expected'" + echo "Got: '$output'" + exit 1 + fi + +update: + enabled: true + github: + identifier: JuliaLang/julia + strip-prefix: v + tag-filter-prefix: v1.10. diff --git a/julia-1.10/hello_world.jl b/julia-1.10/hello_world.jl new file mode 100644 index 00000000000..13421b945d0 --- /dev/null +++ b/julia-1.10/hello_world.jl @@ -0,0 +1,4 @@ +# This is a simple Julia program to print "Hello, World!" + +println("Hello, World!") + diff --git a/julia.yaml b/julia.yaml deleted file mode 100644 index 8f0448981c3..00000000000 --- a/julia.yaml +++ /dev/null @@ -1,38 +0,0 @@ -package: - name: julia - version: 1.9.4 - epoch: 0 - description: The Julia Programming Language - copyright: - - license: MIT - -environment: - contents: - packages: - - build-base - - busybox - - ca-certificates-bundle - - llvm16-dev - - perl - - python3 - -pipeline: - - uses: git-checkout - with: - repository: https://github.com/JuliaLang/julia.git - tag: v${{package.version}} - depth: 1 - expected-commit: 8e5136fa2979885081cd502d2210633dff1d2a1a - - - uses: autoconf/make - - - runs: | - make install DESTDIR=${{targets.destdir}} prefix="" - - - uses: strip - -update: - enabled: true - github: - identifier: JuliaLang/julia - strip-prefix: v From a6d6974d3493457b7ba158f9db79e1fde842a70c Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov <19779+xnox@users.noreply.github.com> Date: Wed, 28 Feb 2024 02:17:28 +0000 Subject: [PATCH 6/6] Update julia-1.10.yaml Signed-off-by: Dimitri John Ledkov <19779+xnox@users.noreply.github.com> --- julia-1.10.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/julia-1.10.yaml b/julia-1.10.yaml index 336543d507f..bc4d4fd8548 100644 --- a/julia-1.10.yaml +++ b/julia-1.10.yaml @@ -1,6 +1,6 @@ package: name: julia-1.10 - version: 1.10.0 + version: 1.10.1 epoch: 0 description: The Julia Programming Language copyright: @@ -28,7 +28,7 @@ pipeline: with: repository: https://github.com/JuliaLang/julia.git tag: v${{package.version}} - expected-commit: 3120989f39bb7ef7863c4aab8ab1227cf71eec66 + expected-commit: 7790d6f06411be1fd5aec7cb6fffdb38c89c0c2a - runs: sed -i '/^const debug_output/c\const debug_output = stdout' contrib/generate_precompile.jl #- runs: sed -i '/^const PARALLEL_PRECOMPILATION/c\const PARALLEL_PRECOMPILATION = false' contrib/generate_precompile.jl