Skip to content

Commit

Permalink
Add more multi-locale package configurations (#25386)
Browse files Browse the repository at this point in the history
Adds new multi-locale package configurations for various OSes

- GASNet+udp
  - debian 11
  - fedora 37
  - fedora 38
  - fedora 39
  - fedora 40 
  - ubuntu 24
- OFI+slurm
  - ubuntu 24

[Reviewed by @jhh67]
  • Loading branch information
jabraham17 authored Aug 29, 2024
2 parents 46d97ed + 9533022 commit 5568a87
Show file tree
Hide file tree
Showing 14 changed files with 391 additions and 0 deletions.
26 changes: 26 additions & 0 deletions util/packaging/apt/debian11-gasnet-udp/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM debian:bullseye AS build

@@{ARGUMENTS}

@@{INJECT_BEFORE_DEPS}

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
curl wget vim sudo gcc g++ m4 perl chrpath \
python3 python3-dev python3-venv bash make mawk git pkg-config cmake \
llvm-dev llvm clang libclang-dev libclang-cpp-dev libedit-dev

@@{USER_CREATION}

@@{GET_CHAPEL}

@@{BUILD_DEFAULT}
@@{BUILD_GASNET_UDP}

@@{INSTALL}

@@{PACKAGE_SETUP}

@@{PACKAGE_BUILD}

6 changes: 6 additions & 0 deletions util/packaging/apt/debian11-gasnet-udp/control.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Package: @@{DEB_NAME}
Version: @@{CHAPEL_VERSION}
Maintainer: chapel-lang
Architecture: @@{TARGETARCH}
Description: Chapel Programming Language
Depends: git,gcc,llvm-dev,llvm,clang,libclang-dev,libclang-cpp-dev,python3,python3-dev,python3-venv,make
25 changes: 25 additions & 0 deletions util/packaging/apt/ubuntu24-gasnet-udp/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM ubuntu:24.04 AS build

@@{ARGUMENTS}
ARG DEBIAN_FRONTEND=noninteractive
@@{INJECT_BEFORE_DEPS}

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
curl wget vim sudo gcc g++ m4 perl chrpath \
python3 python3-dev python3-venv bash make mawk git pkg-config cmake \
llvm-dev llvm clang libclang-dev libclang-cpp-dev libedit-dev

@@{USER_CREATION}

@@{GET_CHAPEL}

@@{BUILD_DEFAULT}
@@{BUILD_GASNET_UDP}

@@{INSTALL}

@@{PACKAGE_SETUP}

@@{PACKAGE_BUILD}
6 changes: 6 additions & 0 deletions util/packaging/apt/ubuntu24-gasnet-udp/control.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Package: @@{DEB_NAME}
Version: @@{CHAPEL_VERSION}
Maintainer: chapel-lang
Architecture: @@{TARGETARCH}
Description: Chapel Programming Language
Depends: git,gcc,llvm-dev,llvm,clang,libclang-dev,libclang-cpp-dev,python3,python3-dev,python3-venv,make
26 changes: 26 additions & 0 deletions util/packaging/apt/ubuntu24-ofi-slurm/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM ubuntu:24.04 AS build

@@{ARGUMENTS}
ARG DEBIAN_FRONTEND=noninteractive
@@{INJECT_BEFORE_DEPS}

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
curl wget vim sudo gcc g++ m4 perl chrpath \
python3 python3-dev python3-venv bash make mawk git pkg-config cmake \
llvm-dev llvm clang libclang-dev libclang-cpp-dev libedit-dev \
libpmi2-0-dev libslurm-dev

@@{USER_CREATION}

@@{GET_CHAPEL}

@@{BUILD_DEFAULT}
@@{BUILD_OFI_SLURM}

@@{INSTALL}

@@{PACKAGE_SETUP}

@@{PACKAGE_BUILD}
6 changes: 6 additions & 0 deletions util/packaging/apt/ubuntu24-ofi-slurm/control.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Package: @@{DEB_NAME}
Version: @@{CHAPEL_VERSION}
Maintainer: chapel-lang
Architecture: @@{TARGETARCH}
Description: Chapel Programming Language
Depends: git,gcc,llvm-dev,llvm,clang,libclang-dev,libclang-cpp-dev,python3,python3-dev,python3-venv,make,libpmi2-0-dev,libslurm-dev
25 changes: 25 additions & 0 deletions util/packaging/rpm/fc37-gasnet-udp/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM fedora:37 AS build

@@{ARGUMENTS}

@@{INJECT_BEFORE_DEPS}

RUN dnf upgrade -y && \
dnf install -y \
gcc gcc-c++ m4 perl python3 python3-devel bash make gawk git cmake \
which diffutils wget vim \
llvm-devel clang clang-devel \
rpm-build rpm-devel rpmlint coreutils patch rpmdevtools chrpath

@@{USER_CREATION}

@@{GET_CHAPEL}

@@{BUILD_DEFAULT}
@@{BUILD_GASNET_UDP}

@@{INSTALL}

@@{PACKAGE_SETUP}

@@{PACKAGE_BUILD}
49 changes: 49 additions & 0 deletions util/packaging/rpm/fc37-gasnet-udp/spec.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Name: @@{BASENAME}
Version: @@{CHAPEL_VERSION}
Release: @@{PACKAGE_VERSION}%{?dist}
ExclusiveArch: %{_arch}
Summary: Chapel

License: Apache-2.0
Source0: chapel-%{version}.tar.gz

Requires: bash perl git llvm-devel clang clang-devel python3 python3-devel make

%description
Chapel Programming Language

%global debug_package %{nil}

%prep
%setup -q -n chapel-%{version}

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_prefix}
mkdir -p %{buildroot}/%{_prefix}/bin
mkdir -p %{buildroot}/%{_prefix}/lib
mkdir -p %{buildroot}/%{_prefix}/share

# Binaries
cp %{_prefix}/bin/chpl %{buildroot}/%{_prefix}/bin/chpl
cp %{_prefix}/bin/chpldoc %{buildroot}/%{_prefix}/bin/chpldoc
cp %{_prefix}/bin/mason %{buildroot}/%{_prefix}/bin/mason
cp %{_prefix}/bin/chplcheck %{buildroot}/%{_prefix}/bin/chplcheck
cp %{_prefix}/bin/chpl-language-server %{buildroot}/%{_prefix}/bin/chpl-language-server
# Libraries
cp -r %{_prefix}/lib/chapel %{buildroot}/%{_prefix}/lib/chapel
# CHPL_HOME
cp -r %{_prefix}/share/chapel %{buildroot}/%{_prefix}/share/chapel

%files
%{_prefix}/bin/chpl
%{_prefix}/bin/chpldoc
%{_prefix}/bin/mason
%{_prefix}/bin/chplcheck
%{_prefix}/bin/chpl-language-server
%{_prefix}/lib/chapel/*
%{_prefix}/share/chapel/*

%changelog
25 changes: 25 additions & 0 deletions util/packaging/rpm/fc38-gasnet-udp/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM fedora:38 AS build

@@{ARGUMENTS}

@@{INJECT_BEFORE_DEPS}

RUN dnf upgrade -y && \
dnf install -y \
gcc gcc-c++ m4 perl python3 python3-devel bash make gawk git cmake \
which diffutils wget vim \
llvm-devel clang clang-devel \
rpm-build rpm-devel rpmlint coreutils patch rpmdevtools chrpath

@@{USER_CREATION}

@@{GET_CHAPEL}

@@{BUILD_DEFAULT}
@@{BUILD_GASNET_UDP}

@@{INSTALL}

@@{PACKAGE_SETUP}

@@{PACKAGE_BUILD}
49 changes: 49 additions & 0 deletions util/packaging/rpm/fc38-gasnet-udp/spec.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Name: @@{BASENAME}
Version: @@{CHAPEL_VERSION}
Release: @@{PACKAGE_VERSION}%{?dist}
ExclusiveArch: %{_arch}
Summary: Chapel

License: Apache-2.0
Source0: chapel-%{version}.tar.gz

Requires: bash perl git llvm-devel clang clang-devel python3 python3-devel make

%description
Chapel Programming Language

%global debug_package %{nil}

%prep
%setup -q -n chapel-%{version}

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_prefix}
mkdir -p %{buildroot}/%{_prefix}/bin
mkdir -p %{buildroot}/%{_prefix}/lib
mkdir -p %{buildroot}/%{_prefix}/share

# Binaries
cp %{_prefix}/bin/chpl %{buildroot}/%{_prefix}/bin/chpl
cp %{_prefix}/bin/chpldoc %{buildroot}/%{_prefix}/bin/chpldoc
cp %{_prefix}/bin/mason %{buildroot}/%{_prefix}/bin/mason
cp %{_prefix}/bin/chplcheck %{buildroot}/%{_prefix}/bin/chplcheck
cp %{_prefix}/bin/chpl-language-server %{buildroot}/%{_prefix}/bin/chpl-language-server
# Libraries
cp -r %{_prefix}/lib/chapel %{buildroot}/%{_prefix}/lib/chapel
# CHPL_HOME
cp -r %{_prefix}/share/chapel %{buildroot}/%{_prefix}/share/chapel

%files
%{_prefix}/bin/chpl
%{_prefix}/bin/chpldoc
%{_prefix}/bin/mason
%{_prefix}/bin/chplcheck
%{_prefix}/bin/chpl-language-server
%{_prefix}/lib/chapel/*
%{_prefix}/share/chapel/*

%changelog
25 changes: 25 additions & 0 deletions util/packaging/rpm/fc39-gasnet-udp/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM fedora:39 AS build

@@{ARGUMENTS}

@@{INJECT_BEFORE_DEPS}

RUN dnf upgrade -y && \
dnf install -y \
gcc gcc-c++ m4 perl python3 python3-devel bash make gawk git cmake \
which diffutils wget vim \
llvm-devel clang clang-devel \
rpm-build rpm-devel rpmlint coreutils patch rpmdevtools chrpath

@@{USER_CREATION}

@@{GET_CHAPEL}

@@{BUILD_DEFAULT}
@@{BUILD_GASNET_UDP}

@@{INSTALL}

@@{PACKAGE_SETUP}

@@{PACKAGE_BUILD}
49 changes: 49 additions & 0 deletions util/packaging/rpm/fc39-gasnet-udp/spec.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Name: @@{BASENAME}
Version: @@{CHAPEL_VERSION}
Release: @@{PACKAGE_VERSION}%{?dist}
ExclusiveArch: %{_arch}
Summary: Chapel

License: Apache-2.0
Source0: chapel-%{version}.tar.gz

Requires: bash perl git llvm-devel clang clang-devel python3 python3-devel make

%description
Chapel Programming Language

%global debug_package %{nil}

%prep
%setup -q -n chapel-%{version}

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_prefix}
mkdir -p %{buildroot}/%{_prefix}/bin
mkdir -p %{buildroot}/%{_prefix}/lib
mkdir -p %{buildroot}/%{_prefix}/share

# Binaries
cp %{_prefix}/bin/chpl %{buildroot}/%{_prefix}/bin/chpl
cp %{_prefix}/bin/chpldoc %{buildroot}/%{_prefix}/bin/chpldoc
cp %{_prefix}/bin/mason %{buildroot}/%{_prefix}/bin/mason
cp %{_prefix}/bin/chplcheck %{buildroot}/%{_prefix}/bin/chplcheck
cp %{_prefix}/bin/chpl-language-server %{buildroot}/%{_prefix}/bin/chpl-language-server
# Libraries
cp -r %{_prefix}/lib/chapel %{buildroot}/%{_prefix}/lib/chapel
# CHPL_HOME
cp -r %{_prefix}/share/chapel %{buildroot}/%{_prefix}/share/chapel

%files
%{_prefix}/bin/chpl
%{_prefix}/bin/chpldoc
%{_prefix}/bin/mason
%{_prefix}/bin/chplcheck
%{_prefix}/bin/chpl-language-server
%{_prefix}/lib/chapel/*
%{_prefix}/share/chapel/*

%changelog
25 changes: 25 additions & 0 deletions util/packaging/rpm/fc40-gasnet-udp/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM fedora:40 AS build

@@{ARGUMENTS}

@@{INJECT_BEFORE_DEPS}

RUN dnf upgrade -y && \
dnf install -y \
gcc gcc-c++ m4 perl python3 python3-devel bash make gawk git cmake \
which diffutils wget vim \
llvm-devel clang clang-devel \
rpm-build rpm-devel rpmlint coreutils patch rpmdevtools chrpath

@@{USER_CREATION}

@@{GET_CHAPEL}

@@{BUILD_DEFAULT}
@@{BUILD_GASNET_UDP}

@@{INSTALL}

@@{PACKAGE_SETUP}

@@{PACKAGE_BUILD}
Loading

0 comments on commit 5568a87

Please sign in to comment.